Running optimization with APIs
Three optimization options are available, increasing in complexity and customizability:
-
Automatic Optimization (Default): Upload orders via the API with the
immediate_calculationflag set totrue(the default). This uses default settings for all vehicles and orders. Use this for basic optimization workflows. -
Explicit Optimization (Selected Orders & Vehicles): Use the API to explicitly start optimization for chosen orders, vehicles, and simulation. This allows re-optimization of unassigned orders after initial automatic optimization (e.g., following order or vehicle adjustments).
-
Custom Simulation Processor (Advanced): Create a simulation processor with custom settings and filters for the selected simulation. This option supports complex scenarios, such as milk runs with dynamic insertions, requiring multiple processors. The simulation object must contain appropriate simulation processors.