public class GreedyBranching extends AbstractStrategy
vars
Constructor and Description |
---|
GreedyBranching(AbstractStrategy mainSearch) |
Modifier and Type | Method and Description |
---|---|
Decision |
computeDecision(Variable variable)
Computes a decision to be applied to variable var
This method should be implemented in order to use search patterns
|
Decision |
getDecision()
Provides access to the current decision in the strategy.
|
boolean |
init()
Prepare
this to be used in a search loop
The initialization can detect inconsistency, in that case, it returns false |
getVariables, makeIntDecision, toString
public GreedyBranching(AbstractStrategy mainSearch)
public boolean init()
AbstractStrategy
this
to be used in a search loop
The initialization can detect inconsistency, in that case, it returns falseinit
in class AbstractStrategy
public Decision getDecision()
AbstractStrategy
null
.getDecision
in class AbstractStrategy
public Decision computeDecision(Variable variable)
AbstractStrategy
computeDecision
in class AbstractStrategy
variable
- a variableCopyright © 2018. All rights reserved.