be.cetic.ddolibscala.layered.modeling
This package contains the traits and abstract classes that must be implemented as problem specific classes to model a layered problem.
Attributes
Members list
Type members
Classlikes
Default implementation of a DominanceChecker that performs no dominance checking.
Default implementation of a DominanceChecker that performs no dominance checking.
This class can be used as a placeholder when dominance pruning is not required or when a problem does not define any dominance relation between states.
In decision diagram or search-based algorithms, a dominance checker is used to compare two states and discard those that are dominated (i.e., guaranteed to lead to no better solution). This default implementation disables that feature: it never reports any dominance and never removes any state.
Type parameters
- T
-
the type of states
Attributes
- Supertypes
Default implementation of the FastLowerBound trait that always returns Int.MinValue
Default implementation of the FastLowerBound trait that always returns Int.MinValue
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.
Type parameters
- T
-
the type of the state
Attributes
- Supertypes
Default implementation of the StateRanking trait where all the states are equals.
Default implementation of the StateRanking trait where all the states are equals.
This implementation can be used as a placeholder or a fallback when no meaningful ranking is available for a given problem.
Type parameters
- T
-
the type of states
Attributes
- Supertypes
-
trait StateRanking[T]trait StateRanking[T]trait Comparator[T]class Objecttrait Matchableclass AnyShow all
Defines a dominance relation used to compare and prune states during the exploration of decision diagrams or search spaces.
Defines a dominance relation used to compare and prune states during the exploration of decision diagrams or search spaces.
Dominance relation provides a way to determine whether one state of the problem is at least as good as (i.e., dominates) another, allowing the solver to discard redundant or inferior subproblems.
The dominance check is an essential optimization mechanism in decision diagram–based solvers, as it helps reduce the search space by recognizing equivalent or dominated states that do not need to be further expanded.
Type parameters
- T
-
the type representing the problem state
Attributes
- Supertypes
-
trait Dominance[T]class Objecttrait Matchableclass Any
- Known subtypes
-
class MispDominanceclass TspTwDominance
Object that, given a dominance, will check if a state is dominated.
Object that, given a dominance, will check if a state is dominated.
Type parameters
- T
-
the type of states
Value parameters
- dominance
-
the problem specific dominance rule
Attributes
- Supertypes
-
class DominanceChecker[T]class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultDominanceChecker[T]
Heuristic defining a fast lower bound for states
Heuristic defining a fast lower bound for states
Type parameters
- T
-
the type of the state
Attributes
- Supertypes
-
trait FastLowerBound[T]class Objecttrait Matchableclass Any
- Known subtypes
Problem defines the state space, the transitions between states induced by decisions, and the objective values associated with those transitions. Implementations provide the essential operations required by solvers.
Problem defines the state space, the transitions between states induced by decisions, and the objective values associated with those transitions. Implementations provide the essential operations required by solvers.
Type parameters
- T
-
the type representing a state in the problem
Attributes
- Supertypes
-
trait Problem[T]class Objecttrait Matchableclass Any
- Known subtypes
Defines the relaxation that may be applied to the given problem. In particular, the merge method from this trait defines how the nodes of a layer may be combined to provide an upper bound approximation standing for an arbitrarily selected set of nodes.
Defines the relaxation that may be applied to the given problem. In particular, the merge method from this trait defines how the nodes of a layer may be combined to provide an upper bound approximation standing for an arbitrarily selected set of nodes.
Type parameters
- T
-
the type of states
Attributes
- Supertypes
-
trait Relaxation[T]class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
A state ranking is used to order the states and decides the ones that are kept and the ones that are merged/deleted when a relaxation/restriction occurs.
A state ranking is used to order the states and decides the ones that are kept and the ones that are merged/deleted when a relaxation/restriction occurs.
In this context, a state ranking is nothing but an ordering on the states which is defined in the form of a comparator. The solvers and MDD should interpret compare(a, b) > 0 as a should have a higher chance of being kept intact while b should have a higher chance of being merged.
Type parameters
- T
-
the type of states
Attributes
- Supertypes
-
trait StateRanking[T]trait Comparator[T]class Objecttrait Matchableclass Any
- Known subtypes