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, toStringpublic GreedyBranching(AbstractStrategy mainSearch)
public boolean init()
AbstractStrategythis to be used in a search loop
The initialization can detect inconsistency, in that case, it returns falseinit in class AbstractStrategypublic Decision getDecision()
AbstractStrategynull.getDecision in class AbstractStrategypublic Decision computeDecision(Variable variable)
AbstractStrategycomputeDecision in class AbstractStrategyvariable - a variableCopyright © 2018. All rights reserved.