Package org.ddolib.examples.layered.misp
Class MispFastLowerBound
java.lang.Object
org.ddolib.examples.layered.misp.MispFastLowerBound
- All Implemented Interfaces:
FastLowerBound<BitSet>
Computes a fast lower bound for the Maximum Independent Set Problem (MISP).
This implementation of FastLowerBound estimates the best possible solution from a
given state by considering all remaining vertices optimistically. The bound is used in search
algorithms to prune suboptimal branches efficiently.
-
Constructor Summary
ConstructorsConstructorDescriptionMispFastLowerBound(MispProblem problem) Constructs a fast lower bound calculator for a given MISP problem. -
Method Summary
Modifier and TypeMethodDescriptiondoublefastLowerBound(BitSet state, Set<Integer> variables) Computes a fast lower bound for the given state and set of remaining variables.
-
Constructor Details
-
MispFastLowerBound
Constructs a fast lower bound calculator for a given MISP problem.- Parameters:
problem- the MISP problem instance
-
-
Method Details
-
fastLowerBound
Computes a fast lower bound for the given state and set of remaining variables.The state contains the vertices that can still be selected (the unassigned vertices that are not neighbors of a selected vertex). The method sums their weights and returns its negation: this is the cost of selecting all of them, a lower bound on the cost of the remaining decisions since the costs are the negated weights. This bound is weak, since it ignores the edges between the selectable vertices;
MispCliqueCoverLowerBoundis tighter for the same cost per node.- Specified by:
fastLowerBoundin interfaceFastLowerBound<BitSet>- Parameters:
state- the current state of the solution as aBitSetvariables- the set of remaining variable indices (unused in this implementation)- Returns:
- a fast lower bound on the optimal solution value
-