ryanjoneil / python-zibopt

Automatically exported from code.google.com/p/python-zibopt
2 stars 1 forks source link

stop solving after given number of found solutions #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As far as i can see, the exposed stopping criteria for 
solver.minimize/maximize are time, gap and absgap. I suggest to add a 
parameter like "nsol" as the maximum number of solutions, after that solving 
stops. Default: -1.

Excerpt from the default parameters of scip:

# solving stops, if the given number of solutions were found (-1: no limit)
# [type: int, range: [-1,2147483647], default: -1]
limits/solutions = -1

For example, nsol=1 would halt the optimization process after the first 
feasible point has been found. That's good for debugging, etc.

Original issue reported on code.google.com by harald.schilly on 15 Feb 2010 at 1:00

GoogleCodeExporter commented 9 years ago
This is done in revision 101 and will be in version 0.6.

Original comment by ryan%che...@gtempaccount.com on 26 Jun 2010 at 5:12