geosolver/doc/pydoc/geosolver.selconstr.html

244 lines
16 KiB
HTML

<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module geosolver.selconstr</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="geosolver.html"><font color="#ffffff">geosolver</font></a>.selconstr</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/rick/Programming/Python/GeoSolver/geosolver/selconstr.py">/home/rick/Programming/Python/GeoSolver/geosolver/selconstr.py</a></font></td></tr></table>
<p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="math.html">math</a><br>
</td><td width="25%" valign=top><a href="re.html">re</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td><td width="25%" valign=top><a href="geosolver.vector.html">geosolver.vector</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="geosolver.selconstr.html#FunctionConstraint">FunctionConstraint</a>
</font></dt><dt><font face="helvetica, arial"><a href="geosolver.selconstr.html#NotAcuteConstraint">NotAcuteConstraint</a>
</font></dt><dt><font face="helvetica, arial"><a href="geosolver.selconstr.html#NotClockwiseConstraint">NotClockwiseConstraint</a>
</font></dt><dt><font face="helvetica, arial"><a href="geosolver.selconstr.html#NotCounterClockwiseConstraint">NotCounterClockwiseConstraint</a>
</font></dt><dt><font face="helvetica, arial"><a href="geosolver.selconstr.html#NotObtuseConstraint">NotObtuseConstraint</a>
</font></dt></dl>
</dd>
</dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="FunctionConstraint">class <strong>FunctionConstraint</strong></a>(<a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>select&nbsp;solutions&nbsp;where&nbsp;function&nbsp;returns&nbsp;true&nbsp;when&nbsp;applied&nbsp;to&nbsp;given&nbsp;variables<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="geosolver.selconstr.html#FunctionConstraint">FunctionConstraint</a></dd>
<dd><a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a></dd>
<dd><a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="FunctionConstraint-__init__"><strong>__init__</strong></a>(self, function, vars)</dt><dd><tt>init&nbsp;constraint&nbsp;with&nbsp;function&nbsp;and&nbsp;a&nbsp;sequence&nbsp;of&nbsp;variables</tt></dd></dl>
<dl><dt><a name="FunctionConstraint-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="FunctionConstraint-satisfied"><strong>satisfied</strong></a>(self, map)</dt><dd><tt>return&nbsp;True&nbsp;iff&nbsp;given&nbsp;solution&nbsp;(map)&nbsp;for&nbsp;given&nbsp;variables&nbsp;applied&nbsp;to&nbsp;function&nbsp;gives&nbsp;True</tt></dd></dl>
<hr>
Methods inherited from <a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a>:<br>
<dl><dt><a name="FunctionConstraint-variables"><strong>variables</strong></a>(self)</dt><dd><tt>return&nbsp;a&nbsp;list&nbsp;of&nbsp;variables<br>
&nbsp;<br>
If&nbsp;an&nbsp;attribute&nbsp;'_variables'&nbsp;has&nbsp;been&nbsp;defined,&nbsp;a&nbsp;new&nbsp;list<br>
with&nbsp;the&nbsp;contents&nbsp;of&nbsp;that&nbsp;attribute&nbsp;will&nbsp;be&nbsp;returned.&nbsp;<br>
Subclasses&nbsp;may&nbsp;choose&nbsp;to&nbsp;initialise&nbsp;this&nbsp;variable&nbsp;or&nbsp;to&nbsp;<br>
override&nbsp;this&nbsp;function.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="NotAcuteConstraint">class <strong>NotAcuteConstraint</strong></a>(<a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>select&nbsp;triplets&nbsp;that&nbsp;are&nbsp;not&nbsp;acute&nbsp;(obtuse&nbsp;or&nbsp;degenerate)<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="geosolver.selconstr.html#NotAcuteConstraint">NotAcuteConstraint</a></dd>
<dd><a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a></dd>
<dd><a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="NotAcuteConstraint-__init__"><strong>__init__</strong></a>(self, v1, v2, v3)</dt><dd><tt>init&nbsp;constraint&nbsp;with&nbsp;names&nbsp;of&nbsp;point&nbsp;variables</tt></dd></dl>
<dl><dt><a name="NotAcuteConstraint-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="NotAcuteConstraint-satisfied"><strong>satisfied</strong></a>(self, map)</dt><dd><tt>return&nbsp;True&nbsp;iff&nbsp;mapping&nbsp;from&nbsp;variable&nbsp;names&nbsp;to&nbsp;points&nbsp;satisfies&nbsp;constraint</tt></dd></dl>
<hr>
Methods inherited from <a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a>:<br>
<dl><dt><a name="NotAcuteConstraint-variables"><strong>variables</strong></a>(self)</dt><dd><tt>return&nbsp;a&nbsp;list&nbsp;of&nbsp;variables<br>
&nbsp;<br>
If&nbsp;an&nbsp;attribute&nbsp;'_variables'&nbsp;has&nbsp;been&nbsp;defined,&nbsp;a&nbsp;new&nbsp;list<br>
with&nbsp;the&nbsp;contents&nbsp;of&nbsp;that&nbsp;attribute&nbsp;will&nbsp;be&nbsp;returned.&nbsp;<br>
Subclasses&nbsp;may&nbsp;choose&nbsp;to&nbsp;initialise&nbsp;this&nbsp;variable&nbsp;or&nbsp;to&nbsp;<br>
override&nbsp;this&nbsp;function.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="NotClockwiseConstraint">class <strong>NotClockwiseConstraint</strong></a>(<a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>select&nbsp;triplets&nbsp;that&nbsp;are&nbsp;not&nbsp;clockwise&nbsp;(counterclockwise&nbsp;or&nbsp;degenerate)<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="geosolver.selconstr.html#NotClockwiseConstraint">NotClockwiseConstraint</a></dd>
<dd><a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a></dd>
<dd><a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="NotClockwiseConstraint-__init__"><strong>__init__</strong></a>(self, v1, v2, v3)</dt><dd><tt>init&nbsp;constraint&nbsp;with&nbsp;names&nbsp;of&nbsp;point&nbsp;variables</tt></dd></dl>
<dl><dt><a name="NotClockwiseConstraint-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="NotClockwiseConstraint-satisfied"><strong>satisfied</strong></a>(self, map)</dt><dd><tt>return&nbsp;True&nbsp;iff&nbsp;mapping&nbsp;from&nbsp;variable&nbsp;names&nbsp;to&nbsp;points&nbsp;satisfies&nbsp;constraint</tt></dd></dl>
<hr>
Methods inherited from <a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a>:<br>
<dl><dt><a name="NotClockwiseConstraint-variables"><strong>variables</strong></a>(self)</dt><dd><tt>return&nbsp;a&nbsp;list&nbsp;of&nbsp;variables<br>
&nbsp;<br>
If&nbsp;an&nbsp;attribute&nbsp;'_variables'&nbsp;has&nbsp;been&nbsp;defined,&nbsp;a&nbsp;new&nbsp;list<br>
with&nbsp;the&nbsp;contents&nbsp;of&nbsp;that&nbsp;attribute&nbsp;will&nbsp;be&nbsp;returned.&nbsp;<br>
Subclasses&nbsp;may&nbsp;choose&nbsp;to&nbsp;initialise&nbsp;this&nbsp;variable&nbsp;or&nbsp;to&nbsp;<br>
override&nbsp;this&nbsp;function.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="NotCounterClockwiseConstraint">class <strong>NotCounterClockwiseConstraint</strong></a>(<a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>select&nbsp;triplets&nbsp;that&nbsp;are&nbsp;not&nbsp;counter&nbsp;clockwise&nbsp;(clockwise&nbsp;or&nbsp;degenerate)<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="geosolver.selconstr.html#NotCounterClockwiseConstraint">NotCounterClockwiseConstraint</a></dd>
<dd><a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a></dd>
<dd><a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="NotCounterClockwiseConstraint-__init__"><strong>__init__</strong></a>(self, v1, v2, v3)</dt><dd><tt>init&nbsp;constraint&nbsp;with&nbsp;names&nbsp;of&nbsp;point&nbsp;variables</tt></dd></dl>
<dl><dt><a name="NotCounterClockwiseConstraint-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="NotCounterClockwiseConstraint-satisfied"><strong>satisfied</strong></a>(self, map)</dt><dd><tt>return&nbsp;True&nbsp;iff&nbsp;mapping&nbsp;from&nbsp;variable&nbsp;names&nbsp;to&nbsp;points&nbsp;satisfies&nbsp;constraint</tt></dd></dl>
<hr>
Methods inherited from <a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a>:<br>
<dl><dt><a name="NotCounterClockwiseConstraint-variables"><strong>variables</strong></a>(self)</dt><dd><tt>return&nbsp;a&nbsp;list&nbsp;of&nbsp;variables<br>
&nbsp;<br>
If&nbsp;an&nbsp;attribute&nbsp;'_variables'&nbsp;has&nbsp;been&nbsp;defined,&nbsp;a&nbsp;new&nbsp;list<br>
with&nbsp;the&nbsp;contents&nbsp;of&nbsp;that&nbsp;attribute&nbsp;will&nbsp;be&nbsp;returned.&nbsp;<br>
Subclasses&nbsp;may&nbsp;choose&nbsp;to&nbsp;initialise&nbsp;this&nbsp;variable&nbsp;or&nbsp;to&nbsp;<br>
override&nbsp;this&nbsp;function.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="NotObtuseConstraint">class <strong>NotObtuseConstraint</strong></a>(<a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>select&nbsp;triplets&nbsp;that&nbsp;are&nbsp;not&nbsp;obtuse&nbsp;(acute&nbsp;or&nbsp;degenerate)<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="geosolver.selconstr.html#NotObtuseConstraint">NotObtuseConstraint</a></dd>
<dd><a href="geosolver.selconstr.html#SelectionConstraint">SelectionConstraint</a></dd>
<dd><a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="NotObtuseConstraint-__init__"><strong>__init__</strong></a>(self, v1, v2, v3)</dt><dd><tt>init&nbsp;constraint&nbsp;with&nbsp;names&nbsp;of&nbsp;point&nbsp;variables</tt></dd></dl>
<dl><dt><a name="NotObtuseConstraint-__str__"><strong>__str__</strong></a>(self)</dt></dl>
<dl><dt><a name="NotObtuseConstraint-satisfied"><strong>satisfied</strong></a>(self, map)</dt><dd><tt>return&nbsp;True&nbsp;iff&nbsp;mapping&nbsp;from&nbsp;variable&nbsp;names&nbsp;to&nbsp;points&nbsp;satisfies&nbsp;constraint</tt></dd></dl>
<hr>
Methods inherited from <a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a>:<br>
<dl><dt><a name="NotObtuseConstraint-variables"><strong>variables</strong></a>(self)</dt><dd><tt>return&nbsp;a&nbsp;list&nbsp;of&nbsp;variables<br>
&nbsp;<br>
If&nbsp;an&nbsp;attribute&nbsp;'_variables'&nbsp;has&nbsp;been&nbsp;defined,&nbsp;a&nbsp;new&nbsp;list<br>
with&nbsp;the&nbsp;contents&nbsp;of&nbsp;that&nbsp;attribute&nbsp;will&nbsp;be&nbsp;returned.&nbsp;<br>
Subclasses&nbsp;may&nbsp;choose&nbsp;to&nbsp;initialise&nbsp;this&nbsp;variable&nbsp;or&nbsp;to&nbsp;<br>
override&nbsp;this&nbsp;function.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="SelectionConstraint">class <strong>SelectionConstraint</strong></a>(<a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>constraints&nbsp;for&nbsp;solution&nbsp;selection<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods inherited from <a href="geosolver.constraint.html#Constraint">geosolver.constraint.Constraint</a>:<br>
<dl><dt><a name="SelectionConstraint-satisfied"><strong>satisfied</strong></a>(self, mapping)</dt><dd><tt>return&nbsp;true&nbsp;iff&nbsp;constraint&nbsp;is&nbsp;satisfied&nbsp;by&nbsp;given&nbsp;mapping<br>
from&nbsp;variables&nbsp;to&nbsp;values&nbsp;(dictionary)</tt></dd></dl>
<dl><dt><a name="SelectionConstraint-variables"><strong>variables</strong></a>(self)</dt><dd><tt>return&nbsp;a&nbsp;list&nbsp;of&nbsp;variables<br>
&nbsp;<br>
If&nbsp;an&nbsp;attribute&nbsp;'_variables'&nbsp;has&nbsp;been&nbsp;defined,&nbsp;a&nbsp;new&nbsp;list<br>
with&nbsp;the&nbsp;contents&nbsp;of&nbsp;that&nbsp;attribute&nbsp;will&nbsp;be&nbsp;returned.&nbsp;<br>
Subclasses&nbsp;may&nbsp;choose&nbsp;to&nbsp;initialise&nbsp;this&nbsp;variable&nbsp;or&nbsp;to&nbsp;<br>
override&nbsp;this&nbsp;function.</tt></dd></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-fnot"><strong>fnot</strong></a>(function)</dt></dl>
<dl><dt><a name="-test"><strong>test</strong></a>()</dt></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>NegInf</strong> = geosolver.tolerance.NegInf<br>
<strong>PosInf</strong> = geosolver.tolerance.PosInf<br>
<strong>default_tol</strong> = 9.9999999999999995e-07<br>
<strong>diag_selector</strong> = &lt;_sre.SRE_Pattern object at 0xb7ec9b60&gt;<br>
<strong>diag_stream</strong> = &lt;open file '&lt;stdout&gt;', mode 'w' at 0xb7eb3068&gt;</td></tr></table>
</body></html>