Solve() now backtracks at the end/ RejectSolution on SearchMonitor is now split into AcceptSolution() and AtSolution/ There is a new virtual OnStart() on neighborhoods/Examples were tweaked to adapt to the new API

This commit is contained in:
lperron@google.com
2010-10-06 16:04:31 +00:00
parent e0c66e81da
commit 672aa0605c
14 changed files with 310 additions and 296 deletions

View File

@@ -43,13 +43,14 @@ def main():
solver.INT_VALUE_DEFAULT)
# And solve.
solver.Solve(db)
solver.NewSearch(db)
solver.NextSolution()
# Display output.
print solver
print pheasant
print rabbit
solver.EndSearch()
print solver
if __name__ == "__main__":
main()