244 lines
16 KiB
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> <br>
|
|
<font color="#ffffff" face="helvetica, arial"> <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> <br>
|
|
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </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> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </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> <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> </tt></td>
|
|
<td colspan=2><tt>select solutions where function returns true when applied to given variables<br> </tt></td></tr>
|
|
<tr><td> </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 constraint with function and a sequence of 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 True iff given solution (map) for given variables applied to function gives 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 a list of variables<br>
|
|
<br>
|
|
If an attribute '_variables' has been defined, a new list<br>
|
|
with the contents of that attribute will be returned. <br>
|
|
Subclasses may choose to initialise this variable or to <br>
|
|
override this 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> <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> </tt></td>
|
|
<td colspan=2><tt>select triplets that are not acute (obtuse or degenerate)<br> </tt></td></tr>
|
|
<tr><td> </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 constraint with names of point 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 True iff mapping from variable names to points satisfies 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 a list of variables<br>
|
|
<br>
|
|
If an attribute '_variables' has been defined, a new list<br>
|
|
with the contents of that attribute will be returned. <br>
|
|
Subclasses may choose to initialise this variable or to <br>
|
|
override this 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> <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> </tt></td>
|
|
<td colspan=2><tt>select triplets that are not clockwise (counterclockwise or degenerate)<br> </tt></td></tr>
|
|
<tr><td> </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 constraint with names of point 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 True iff mapping from variable names to points satisfies 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 a list of variables<br>
|
|
<br>
|
|
If an attribute '_variables' has been defined, a new list<br>
|
|
with the contents of that attribute will be returned. <br>
|
|
Subclasses may choose to initialise this variable or to <br>
|
|
override this 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> <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> </tt></td>
|
|
<td colspan=2><tt>select triplets that are not counter clockwise (clockwise or degenerate)<br> </tt></td></tr>
|
|
<tr><td> </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 constraint with names of point 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 True iff mapping from variable names to points satisfies 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 a list of variables<br>
|
|
<br>
|
|
If an attribute '_variables' has been defined, a new list<br>
|
|
with the contents of that attribute will be returned. <br>
|
|
Subclasses may choose to initialise this variable or to <br>
|
|
override this 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> <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> </tt></td>
|
|
<td colspan=2><tt>select triplets that are not obtuse (acute or degenerate)<br> </tt></td></tr>
|
|
<tr><td> </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 constraint with names of point 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 True iff mapping from variable names to points satisfies 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 a list of variables<br>
|
|
<br>
|
|
If an attribute '_variables' has been defined, a new list<br>
|
|
with the contents of that attribute will be returned. <br>
|
|
Subclasses may choose to initialise this variable or to <br>
|
|
override this 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> <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> </tt></td>
|
|
<td colspan=2><tt>constraints for solution selection<br> </tt></td></tr>
|
|
<tr><td> </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 true iff constraint is satisfied by given mapping<br>
|
|
from variables to values (dictionary)</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SelectionConstraint-variables"><strong>variables</strong></a>(self)</dt><dd><tt>return a list of variables<br>
|
|
<br>
|
|
If an attribute '_variables' has been defined, a new list<br>
|
|
with the contents of that attribute will be returned. <br>
|
|
Subclasses may choose to initialise this variable or to <br>
|
|
override this 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> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </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> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </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> = <_sre.SRE_Pattern object at 0xb7ec9b60><br>
|
|
<strong>diag_stream</strong> = <open file '<stdout>', mode 'w' at 0xb7eb3068></td></tr></table>
|
|
</body></html> |