Overview | Group | Tree | Graph | Index | Concepts |
You can define the transit function in a path constraint (the cost for linking two nodes together).
This class is the implementation class for IloPathTransit
,
the class of object that defines a transit function for the path
constraint. The virtual member function transit
in
IlcPathTransitI
returns the transition cost for connecting two
nodes together.
To express new transit functions, you can define a subclass of
IlcPathTransitI
. If this transition can be expressed by an
evaluation function, then you can use the predefined
IloPathFunction
for that purpose.
Most member functions in this class contain assert
statements. For an explanation of the macro NDEBUG
(a way to
turn on or turn off these assert
statements), see the concept
Assert and NDEBUG.
See Also:
IloPathLength, IloPathTransitFunction
Constructor and Destructor Summary | |
---|---|
public | IloPathTransitI() |
Method Summary | |
---|---|
public virtual IloPathTransitI * | makeClone(IloEnvI *) |
public virtual IloNum | transit(IloInt, IloInt) |
Constructor and Destructor Detail |
---|
This constructor creates an implementation of a transit function.
Method Detail |
---|
This virtual member function returns a copy of the invoking object.
This virtual member function returns the transition cost from node
i
to node j
. Its default implementation returns 0
(zero) as the value of every transition.