Relaxation class for the Traveling Salesman Problem with Time Windows (TSPTW).
This class implements the org.ddolibscala.modeling.Relaxation interface for TspTwState. It provides methods to merge multiple states into a relaxed state and to relax the cost of transitions (edges) between states.
Value parameters
numVar
number of variables/nodes in the associated TSPTW problem
Relaxes the cost of an edge (transition) between two states.
Relaxes the cost of an edge (transition) between two states.
In this implementation, the cost is not modified, and the method simply returns the provided value. This method can be extended to apply more sophisticated relaxations if needed.
Value parameters
cost
the cost of the not relaxed arc which used to go from the from state to the to state
decision
the decision which is being challenged
from
the origin of the relaxed arc
merged
the destination of the relaxed arc (after relaxation)
to
the destination of the relaxed arc (before relaxation)