SetCost

Top  Previous  Next

This method sets cost for a single link and array index.

 

Normally cost has to be a positive number, unless you set AllowNegativeCost.

 

Syntax: SetCost(index,link: integer; cost: TCost)

 

See also CreateArrayCost, CalculateCost, GetCost and TCalc.SetCheapest.