Package org.ddolib.modeling
Class DefaultFastLowerBound<T>
java.lang.Object
org.ddolib.modeling.DefaultFastLowerBound<T>
- Type Parameters:
T- the type representing the problem state
- All Implemented Interfaces:
FastLowerBound<T>
Default implementation of the
FastLowerBound interface that always returns
Integer.MIN_VALUE as the lower bound estimate.
This implementation can be used as a placeholder or a fallback when no meaningful fast lower bound heuristic is available for a given problem. It effectively disables lower bound pruning since the returned value is the smallest possible integer.
In practice, a fast lower bound is a lightweight estimation of the minimal achievable objective value from a given state and set of remaining variables. This default implementation deliberately returns the lowest possible value, ensuring that no pruning occurs based on this bound.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublefastLowerBound(T state, Set<Integer> variables) Computes a trivial fast lower bound for the given state and remaining variables.
-
Constructor Details
-
DefaultFastLowerBound
public DefaultFastLowerBound()
-
-
Method Details
-
fastLowerBound
Computes a trivial fast lower bound for the given state and remaining variables.This default implementation always returns
Integer.MIN_VALUE, effectively indicating that no lower bound information is available.- Specified by:
fastLowerBoundin interfaceFastLowerBound<T>- Parameters:
state- the current state for which the lower bound is estimatedvariables- the set of remaining variable indices yet to be assigned- Returns:
- always
Integer.MIN_VALUE
-