Skip to main content

Running optimization with APIs

Three optimization options are available, increasing in complexity and customizability:

  1. Automatic Optimization (Default): Upload orders via the API with the immediate_calculation flag set to true (the default). This uses default settings for all vehicles and orders. Use this for basic optimization workflows.

  2. 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).

  3. 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.