Package org.ddolib.nolayer.modeling
Interface Relaxation<T>
- Type Parameters:
T- the type representing the states
public interface Relaxation<T>
Defines the relaxation rules for merging states in unlayered decision diagrams.
-
Method Summary
Modifier and TypeMethodDescriptiondefault doubleOptional method to compute a local bound (or backward bound component) when taking a transition from an origin to a destination state.merge(Collection<T> states) Merges a collection of states into a single relaxed state.
-
Method Details
-
merge
Merges a collection of states into a single relaxed state.- Parameters:
states- the collection of states to merge- Returns:
- a new relaxed state representing the merged states
-
localCost
Optional method to compute a local bound (or backward bound component) when taking a transition from an origin to a destination state. This bound helps in providing a stronger dual bound in the backward pass. By default, it returns 0.0.- Parameters:
origin- the state before the transitionlabel- the transition action/labeldestination- the state after the transition- Returns:
- the local bound cost
-