Package org.ddolib.nolayer.modeling
Interface NoLayerDominanceChecker<T>
- Type Parameters:
T- the type of states
- All Known Implementing Classes:
DefaultNoLayerDominanceChecker,MispNoLayerDominanceChecker,TSPNoLayerDominanceChecker,TSPTWDominance
public interface NoLayerDominanceChecker<T>
Defines a dominance checking mechanism to prune search states in NoLayer models.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclear()Clears the internally cached states used for dominance checking.booleanupdateDominance(T state, double value) Evaluates if a state can be pruned based on previously seen states.
-
Method Details
-
updateDominance
Evaluates if a state can be pruned based on previously seen states.- Parameters:
state- the current state to checkvalue- the objective value associated with reaching the state- Returns:
trueif the state is dominated and should be pruned;falseotherwise
-
clear
default void clear()Clears the internally cached states used for dominance checking. This is useful to reset the checker's state between solver iterations.
-