Class BoundSearch
- java.lang.Object
-
- org.chocosolver.solver.search.strategy.strategy.AbstractStrategy<IntVar>
-
- org.chocosolver.solver.search.strategy.BoundSearch
-
public class BoundSearch extends AbstractStrategy<IntVar>
BEWARE: ONLY FOR INTEGERS (lets the default search work for other variable types) Search heuristic combined with a constraint performing strong consistency on the next decision variable and branching on the value with the best objective bound (for optimization) and branches on the lower bound for SAT problems.- Author:
- Jean-Guillaume FAGES
-
-
Field Summary
Fields Modifier and Type Field Description intMAX_DOM_SIZE-
Fields inherited from class org.chocosolver.solver.search.strategy.strategy.AbstractStrategy
vars
-
-
Constructor Summary
Constructors Constructor Description BoundSearch(AbstractStrategy<IntVar> mainSearch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Decision<IntVar>getDecision()Provides access to the current decision in the strategy.booleaninit()Preparethisto be used in a search loop The initialization can detect inconsistency, in that case, it returns false-
Methods inherited from class org.chocosolver.solver.search.strategy.strategy.AbstractStrategy
computeDecision, getVariables, makeIntDecision, toString
-
-
-
-
Constructor Detail
-
BoundSearch
public BoundSearch(AbstractStrategy<IntVar> mainSearch)
-
-
Method Detail
-
init
public boolean init()
Description copied from class:AbstractStrategyPreparethisto be used in a search loop The initialization can detect inconsistency, in that case, it returns false- Overrides:
initin classAbstractStrategy<IntVar>
-
getDecision
public Decision<IntVar> getDecision()
Description copied from class:AbstractStrategyProvides access to the current decision in the strategy. If there are no more decision to provide, it returnsnull.- Specified by:
getDecisionin classAbstractStrategy<IntVar>- Returns:
- the current decision
-
-