41 lines
3.7 KiB
HTML
41 lines
3.7 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module geosolver.randomproblem</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>.randomproblem</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/randomproblem.py">/home/rick/Programming/Python/GeoSolver/geosolver/randomproblem.py</a></font></td></tr></table>
|
|
<p><tt># ----------- random problem generation ----------------</tt></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="random.html">random</a><br>
|
|
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></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="-add_random_constraint"><strong>add_random_constraint</strong></a>(problem, ratio)</dt><dd><tt>add a random constraint to a problem, with a given ratio angles/distances</tt></dd></dl>
|
|
<dl><dt><a name="-random_distance_problem_3D"><strong>random_distance_problem_3D</strong></a>(npoints, radius, roundoff)</dt><dd><tt>creates a 3D problem with random distances</tt></dd></dl>
|
|
<dl><dt><a name="-random_problem_2D"><strong>random_problem_2D</strong></a>(numpoints, radius<font color="#909090">=10.0</font>, roundoff<font color="#909090">=0.0</font>, angleratio<font color="#909090">=0.5</font>)</dt><dd><tt>Generate a random problem with given number of points, a roundoff<br>
|
|
value for the prototype points, a radius for the cloud of prototype points<br>
|
|
and a ratio of angle constraints over distance constraints</tt></dd></dl>
|
|
<dl><dt><a name="-random_triangular_problem_3D"><strong>random_triangular_problem_3D</strong></a>(npoints, radius, roundoff, pangle)</dt></dl>
|
|
<dl><dt><a name="-randomize_angles"><strong>randomize_angles</strong></a>(problem)</dt></dl>
|
|
<dl><dt><a name="-randomize_balloons"><strong>randomize_balloons</strong></a>(problem)</dt><dd><tt>combine adjacent angles to balloons and replace with different angles.<br>
|
|
modifies problem</tt></dd></dl>
|
|
<dl><dt><a name="-randomize_hedgehogs"><strong>randomize_hedgehogs</strong></a>(problem)</dt><dd><tt>combine adjacent angles to hedgehogs and replace with different angles.<br>
|
|
modifies problem</tt></dd></dl>
|
|
<dl><dt><a name="-test"><strong>test</strong></a>()</dt></dl>
|
|
</td></tr></table>
|
|
</body></html> |