Uses of Class
org.ddolib.examples.mks.MKSState
Packages that use MKSState
Package
Description
The Multidimensional Knapsack Problem (MKP) is a generalization of the KP
to multiple capacity constraints: $n$ items and $m$ dimensions of the knapsack
are given, each dimension with capacity bound $(C_1,\ldots ,C_m)$.
-
Uses of MKSState in org.ddolib.examples.mks
Methods in org.ddolib.examples.mks that return MKSStateModifier and TypeMethodDescriptionMKSState.clone()Creates a deep copy of this state.MKSProblem.initialState()Returns the initial state for this problem, representing full capacities.MKSRelax.mergeStates(Iterator<MKSState> states) Merges multiple MKS states into a single relaxed state.MKSProblem.transition(MKSState state, Decision decision) Computes the state resulting from taking a decision in the current state.Methods in org.ddolib.examples.mks with parameters of type MKSStateModifier and TypeMethodDescriptionintCompares two MKS states based on their average remaining capacities.doubleComputes the normalized Euclidean distance between two MKS states.doubleMKSDistance.distanceWithRoot(MKSState a) Computes the normalized Euclidean distance from the given state to the initial state.Returns an iterator over the domain of a variable (item) in a given state.doubleMKSFastLowerBound.fastLowerBound(MKSState state, Set<Integer> variables) Computes a fast lower bound for a given state and a set of variables (items).Returns a key for grouping states in dominance checks.booleanMKSDominance.isDominatedOrEqual(MKSState state1, MKSState state2) Determines whetherstate1is dominated by or equal tostate2.doubleReturns the cost of an edge in the relaxed decision diagram.MKSProblem.transition(MKSState state, Decision decision) Computes the state resulting from taking a decision in the current state.doubleMKSProblem.transitionCost(MKSState state, Decision decision) Computes the cost of taking a decision in a given state.Method parameters in org.ddolib.examples.mks with type arguments of type MKSStateModifier and TypeMethodDescriptionMKSRelax.mergeStates(Iterator<MKSState> states) Merges multiple MKS states into a single relaxed state.