FRAMES NO FRAMES

Class IlcPathTransitEvalI

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 an implementation class, a predefined subclass of IlcPathTransitI, that you use to define a new transition function expressed by an evaluation function. This evaluation function is of type IlcPathTransitFunction.

See Also:

Constructor Summary
public IlcPathTransitEvalI(IlcPathTransitFunction function)
Method Summary
public virtual IlcFloattransit(IlcInt i, IlcInt j)
Inherited Methods from IlcPathTransitI
transit
Constructor Detail

IlcPathTransitEvalI

public IlcPathTransitEvalI(IlcPathTransitFunction function)

This constructor creates a new transit function from an evaluation function. Objects of this class use the evaluation function indicated by the argument function to define the transition costs used in the path constraint.


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. In order to do this, it calls the evaluation function.