| Forum | GitHub | Maps | Blog

How to balance routes with min-max


This topic is related to the earlier post: New feature: balance activities

@Stefan, @karussell: Could you please advice how to set the objective to min-max by calling java functions (instead of passing the JSON options). For example, my program currently has:

VehicleRoutingProblem vrp =;
VehicleRoutingAlgorithm vra = new GreedySchrimpfFactory().createAlgorithm(vrp);

Where should I add the command for setting the min-max objective? Thank you.