NetworkCenter2

Top  Previous  Next

Function NetworkCenter2(NodeNumber, MaxIterations: Integer; Eps, power, cutoff: Double; var TotalCost: Double): integer;

 

Same function as NetworkCenter, except weight for each link is supplied by calling SetLinkResult and an additional cutoff parameter is available.

 

Cutoff is used when power<>100: If cost < cutoff, the link is not included in calculation of totalcost. If cost > cutoff, (cost-cutoff) is used in the calculation of totalcost.

 

This can be used for location fire stations for instance. If cutoff is 10 minutes, the optimization process will focus on minimizing drive times beyond 10 minutes. Anything below 10 minutes will be considered within the limit.

 

Possible error codes: -10 -30 -40 -41 -64

Versions: Pro

ActiveX / VCL / CLX component: RWcalc