Uses of Class
org.ddolib.examples.gruler.GRState
Packages that use GRState
Package
Description
This package implements the acs, astar and ddo models for the Golomb Rule Problem (GRP).
-
Uses of GRState in org.ddolib.examples.gruler
Methods in org.ddolib.examples.gruler that return GRStateModifier and TypeMethodDescriptionGRState.copy()Creates and returns a deep copy of this state.GRProblem.initialState()Returns the initial state of the problem, containing only the first mark at position 0.GRRelax.mergeStates(Iterator<GRState> states) Merges severalGRStateobjects into a single relaxed state.GRProblem.transition(GRState state, Decision decision) Computes the next state resulting from applying a decision (adding a new mark).Methods in org.ddolib.examples.gruler with parameters of type GRStateModifier and TypeMethodDescriptionintCompares twoGRStateinstances based on their last placed mark.Returns the possible domain values for the next decision (i.e., possible positions for the next mark).doubleGRFastLowerBound.fastLowerBound(GRState state, Set<Integer> variables) doubleComputes the relaxed cost of transitioning between two states in the relaxed problem.GRProblem.transition(GRState state, Decision decision) Computes the next state resulting from applying a decision (adding a new mark).doubleGRProblem.transitionCost(GRState state, Decision decision) Computes the cost associated with a transition between states.Method parameters in org.ddolib.examples.gruler with type arguments of type GRStateModifier and TypeMethodDescriptionGRRelax.mergeStates(Iterator<GRState> states) Merges severalGRStateobjects into a single relaxed state.