Package org.ddolib.examples.misp
Class MispFastLowerBound
java.lang.Object
org.ddolib.examples.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 method sums the weights of all vertices already selected in the current
stateand returns its negation, which corresponds to the maximal independent set assumption.- 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
-