This example app demonstrates the following features:
- Make changes on a order from an optimization.
The changes will be seen on the optimization's route in which is visited, so consider this method when you want to update a order from a route.
When you run the example app, the order changes will be saved and a new optimization is returned.
- Create a
ProgressListenerand avrp::Service. - Retrieve the optimization like in the example
GetOptimization()in avrp::Optimization. - Create a
vrp::Orderand initialize it with the optimization order that you want to update. - Make the desired changes on the
vrp::Orderfrom 3.). - Call the
optimization.updateOrder()method from thevrp::Optimizationfrom 2.) using thevrp::Orderfrom 3.) and theProgressListener. - Once the operation completes, the
vrp::Optimizationfrom 2.) will contain the new optimization with the order updated.