public class RealStrategy extends AbstractStrategy<RealVar>
RealVar.
It defines how a variable is selected to be part of the next decision, and which value from its domain is selected too.
Then, the decision will be var ≤ {value}.
vars| Constructor and Description |
|---|
RealStrategy(RealVar[] scope,
VariableSelector<RealVar> varselector,
RealValueSelector valueIterator) |
| Modifier and Type | Method and Description |
|---|---|
Decision<RealVar> |
computeDecision(RealVar 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 RealStrategy(RealVar[] scope, VariableSelector<RealVar> varselector, RealValueSelector valueIterator)
public boolean init()
AbstractStrategythis to be used in a search loop
The initialization can detect inconsistency, in that case, it returns falseinit in class AbstractStrategy<RealVar>public Decision<RealVar> computeDecision(RealVar variable)
AbstractStrategycomputeDecision in class AbstractStrategy<RealVar>variable - a variablepublic Decision getDecision()
AbstractStrategynull.getDecision in class AbstractStrategy<RealVar>Copyright © 2017. All rights reserved.