Cost Calculation in JSprit

Hello,I am a student and studying JSprit.In all examples of JSprit, cost is being calculated. How the cost is being calculated? What is the formula that is being used. I have seen VehicleTypeImpl.java which shows the parameters required for cost calculation, but cannot identify the formula, please help me identifying it.

Hi !

have a look to getObjectiveFunction in core/algorithm/box/Jsprit.java

It should orient you to the different parts of this formula :wink:

1 Like