Modifier and Type | Method and Description |
---|---|
default void |
limitBacktrack(long limit)
Defines a limit over the number of backtracks allowed during the resolution.
|
default void |
limitFail(long limit)
Defines a limit over the number of fails allowed during the resolution.
|
default void |
limitNode(long limit)
Defines a limit on the number of nodes allowed in the tree search.
|
default void |
limitSearch(Criterion aStopCriterion)
Limit the exploration of the search space with the help of a
aStopCriterion . |
default void |
limitSolution(long limit)
Defines a limit over the number of solutions found during the resolution.
|
default void |
limitTime(long limit)
Defines a limit over the run time.
|
default void |
limitTime(String duration)
Defines a limit over the run time.
|
default void |
setNoGoodRecordingFromRestarts()
* Record nogoods from restart, that is, anytime the search restarts, a nogood is produced, based on the decision path, to prevent from
scanning the same sub-search tree.
|
default void |
setNoGoodRecordingFromSolutions(IntVar... vars)
Record nogoods from solution, that is, anytime a solution is found, a nogood is produced to prevent from
finding the same solution later during the search.
|
default void setNoGoodRecordingFromSolutions(IntVar... vars)
vars
are the decision variables (to reduce ng size).vars
- array of decision variablesdefault void setNoGoodRecordingFromRestarts()
default void limitSearch(Criterion aStopCriterion)
aStopCriterion
.
When the condition depicted in the criterion is met,
the search stops.aStopCriterion
- the stop criterion which, when met, stops the search.default void limitNode(long limit)
limit
- maximal number of nodes to opendefault void limitFail(long limit)
limit
- maximal number of failsdefault void limitBacktrack(long limit)
limit
- maximal number of backtracksdefault void limitSolution(long limit)
limit
- maximal number of solutionsdefault void limitTime(long limit)
SearchMonitorFactory.limitThreadTime(long)
, that runs the limit in a separated thread.limit
- maximal resolution time in milliseconddefault void limitTime(String duration)
SearchMonitorFactory.limitThreadTime(String)
, that runs the limit in a separated thread.
Based on SearchMonitorFactory.convertInMilliseconds(String duration)
duration
- a String which states the duration like "WWd XXh YYm ZZs".TimeUtils.convertInMilliseconds(String)
Copyright © 2018. All rights reserved.