public interface IloTransitionDistance
A transition distance is a square matrix of
non-negative integers that represents a minimal distance between two interval variables. An instance of transition
distance can be used in the no-overlap constraint () and in state functions
(IloNoOverlap). In a no-overlap constraint the transition distance represents the minimal
distance between two non-overlapping interval variables. The matrix is indexed using the integer types of interval
variables in the sequence variable of the no-overlap constraint.
In a state function, the transition distance represents the minimal distance
between two integer states of the function.IloStateFunction
IloNoOverlap| Modifier and Type | Method and Description |
|---|---|
int |
getSize()
This member function returns the size of the invoking transition distance.
|
int |
getValue(int fromState,
int toState)
This member function returns the value of the invoking transition distance between index
fromState and index toState. |
void |
setValue(int fromState,
int toState,
int value)
This member function sets the value of the invoking transition distance.
|
int getSize()
void setValue(int fromState,
int toState,
int value)
fromState and toState must be non-negative integer indices lower than the size of the invoking
transition distance. The argument value must be a non-negative integer representing the distance
between index fromState and index toState.int getValue(int fromState,
int toState)
fromState and index toState. This value is a non-negative integer. The arguments
fromState and toState must be non negative integer indices lower than the size of the invoking
transition distance.