How to add a custom constraint by replacing jsprit core constraint

Hi all,

Is there any way that I can add my own custom ‘VehicleDependentTimeWindowConstraints’ constraint to the jsprit vehicle routing problem by disabling the jsprit core hard activity constraint - VehicleDependentTimeWindowConstraints?

I was able to add custom constraint, but I also need to disable/remove jsprit core constraint

 VehicleRoutingAlgorithm algorithm = 
Jsprit.Builder.newInstance(problem).addCoreStateAndConstraintStuff(false)

which disable those constraints jsprit/AlgorithmUtil.java at master · graphhopper/jsprit · GitHub

Powered by Discourse