added support for search options

This commit is contained in:
Denys Duchier
2011-12-03 22:04:04 +01:00
parent 9ebcae23ea
commit 9a78735aaf
4 changed files with 63 additions and 25 deletions

View File

@@ -60,10 +60,24 @@ represented by atoms with the same name as the Gecode constant
SEARCHING FOR SOLUTIONS
=======================
SolSpace := search(Space)
SolSpace := search(Space)
This is a backtrackable predicate that enumerates all solution spaces
(SolSpace).
(SolSpace). It may also take options:
SolSpace := search(Space,Options)
Options is a list whose elements maybe:
restart
to select the Restart search engine
threads=N
to activate the parallel search engine and control the number of
workers (see Gecode doc)
c_d=N
to set the commit distance for recomputation
a_d=N
to set the adaptive distance for recomputation
EXTRACTING INFO FROM A SOLUTION
===============================