Package org.ddolib.examples.nolayer.misp
Class MispNoLayerDominanceChecker
java.lang.Object
org.ddolib.examples.nolayer.misp.MispNoLayerDominanceChecker
- All Implemented Interfaces:
NoLayerDominanceChecker<MispState>
public class MispNoLayerDominanceChecker
extends Object
implements NoLayerDominanceChecker<MispState>
Dominance checker for the Maximum Independent Set Problem (MISP). Assumes a minimization
framework where lower values (more negative weights) are better.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this dominance checker. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the internally cached states used for dominance checking.booleanupdateDominance(MispState state, double value) Evaluates if a state can be pruned based on previously seen states.
-
Constructor Details
-
MispNoLayerDominanceChecker
public MispNoLayerDominanceChecker()Creates a new instance of this dominance checker.
-
-
Method Details
-
updateDominance
Description copied from interface:NoLayerDominanceCheckerEvaluates if a state can be pruned based on previously seen states.- Specified by:
updateDominancein interfaceNoLayerDominanceChecker<MispState>- 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
public void clear()Description copied from interface:NoLayerDominanceCheckerClears the internally cached states used for dominance checking. This is useful to reset the checker's state between solver iterations.- Specified by:
clearin interfaceNoLayerDominanceChecker<MispState>
-