public class DomOverWDeg extends AbstractStrategy<IntVar> implements IMonitorContradiction
| Modifier and Type | Field and Description |
|---|---|
protected IntMap |
p2w
Map (propagator - weight), where weight is the number of times the propagator fails.
|
vars| Constructor and Description |
|---|
DomOverWDeg(IntVar[] variables,
long seed,
IntValueSelector valueSelector)
Creates a DomOverWDeg variable selector
|
| Modifier and Type | Method and Description |
|---|---|
Decision<IntVar> |
computeDecision(IntVar variable)
Computes a decision to be applied to variable var
This method should be implemented in order to use search patterns
|
Decision<IntVar> |
getDecision()
Provides access to the current decision in the strategy.
|
void |
onContradiction(ContradictionException cex) |
getVariables, init, makeIntDecision, toStringprotected IntMap p2w
public DomOverWDeg(IntVar[] variables, long seed, IntValueSelector valueSelector)
variables - decision variablesseed - seed for breaking ties randomlyvalueSelector - a value selectorpublic void onContradiction(ContradictionException cex)
onContradiction in interface IMonitorContradictionpublic Decision<IntVar> computeDecision(IntVar variable)
AbstractStrategycomputeDecision in class AbstractStrategy<IntVar>variable - a variablepublic Decision<IntVar> getDecision()
AbstractStrategynull.getDecision in class AbstractStrategy<IntVar>Copyright © 2018. All rights reserved.