FRAMES NO FRAMES

Class IlcPathTransitI

Definition file: ilsolver/ilcpath.h
Include file: <ilsolver/ilosolver.h>

Solver lets you define the transit function in a path constraint (the cost for linking two nodes together).

This class is the implementation class for IlcPathTransit, the class of object that defines a transit function for the path constraint. The virtual member function 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 subclass IlcPathTransitEvalI for that purpose.

See Also:

Constructor and Destructor Summary
public IlcPathTransitI()
public ~IlcPathTransitI()
Method Summary
public virtual IlcFloattransit(IlcInt i, IlcInt j)
Constructor and Destructor Detail

IlcPathTransitI

public IlcPathTransitI()

This constructor creates an implementation object.


~IlcPathTransitI

public ~IlcPathTransitI()

As this class is to be subclassed, a virtual destructor is provided


Method Detail

transit

public virtual IlcFloat transit(IlcInt i, IlcInt 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.