Originally posted by: anahana
Dear all,
I went through the "Minimizing the number of vehicles" example in CP. Part of the code requires that all empty vehicles are closed (i.e. their first visit is set to equal their last visit) in order to try and minimize the number of vehicles.
To close empty vehicles, this constraint is added to the model: vehicle.getFirstVisit().getNextVar() == vehicle.getLastVisit().
If I want to use the empty vehicles after the whole "Minimizing the number of vehicles" algorithm runs, what shall I do? I tried removing the above constraint from the model (using model.remove()), but it's not working. Any thoughts?
Regards,
#CPOptimizer#DecisionOptimization