geosolver.randomproblem
index
/home/rick/Programming/Python/GeoSolver/geosolver/randomproblem.py

# ----------- random problem generation ----------------

 
Modules
       
random

 
Functions
       
add_random_constraint(problem, ratio)
add a random constraint to a problem, with a given ratio angles/distances
random_distance_problem_3D(npoints, radius, roundoff)
creates a 3D problem with random distances
random_problem_2D(numpoints, radius=10.0, roundoff=0.0, angleratio=0.5)
Generate a random problem with given number of points, a roundoff
value for the prototype points, a radius for the cloud of prototype points
and a ratio of angle constraints over distance constraints
random_triangular_problem_3D(npoints, radius, roundoff, pangle)
randomize_angles(problem)
randomize_balloons(problem)
combine adjacent angles to balloons and replace with different angles.
modifies problem
randomize_hedgehogs(problem)
combine adjacent angles to hedgehogs and replace with different angles.
modifies problem
test()