NO FRAMES

Class IloPathTransitI

Definition file: ilconcert/ilomodel.h

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:

Constructor and Destructor Summary
public IloPathTransitI()
Method Summary
public virtual IloPathTransitI *makeClone(IloEnvI *)
public virtual IloNumtransit(IloInt, IloInt)
Constructor and Destructor Detail

IloPathTransitI

public IloPathTransitI()

This constructor creates an implementation of a transit function.


Method Detail

makeClone

public virtual IloPathTransitI * makeClone(IloEnvI * )

This virtual member function returns a copy of the invoking object.


transit

public virtual IloNum transit(IloInt i, IloInt j)

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.