Skip to content
API Optim, return to homepage
API Optim, return to homepage
API Optim, return to homepage
Industries

Milk collection

Animal feed

Flour milling

Live animals

Multi-temperature

Fuel

Features

Compartmentalised vehicles

Schedules and regulations

Fleet and site access

Route reoptimisation

Priorities and assignments

Pricing

Documentation

Resources

Quick start ↗

Use cases ↗

API updates Coming soon

Blog Coming soon

Request a demo
  • Documentation
  • Six heavy goods vehicle industries, already modelled

    Milk collection

    Compartment management and product downgrading

    Animal feed

    Bulk feed delivered to farms

    Flour milling

    Bulk and bagged flour, one flour type per compartment

    Live animals

    Multi-deck livestock trailers

    Multi-temperature

    Movable bulkheads, chilled and frozen goods in the same vehicle

    Fuel

    Diesel, petrol and heating oil in the same tanker

    Your customers’ industry isn’t listed? Let’s talk about their vehicles and their constraints.

    Discuss your project →

  • What the engine does

    Compartmentalised vehicles

    Compartments, configurations and loading rules

    Schedules and regulations

    Time windows, service times, driving and breaks

    Fleet and site access

    Equipment, size, weight, trailers and depots

    Route reoptimisation

    Modify an already optimised plan

    Priorities and assignments

    Required vehicles, priorities, unscheduled operations

    For your developers

    Each feature has its own page in the technical documentation.

    Parameters, example requests and results in JSON.

    Read the documentation
  • Pricing
  • Get started

    Quick start ↗

    Tutorial: calculate your first route in minutes

    Use cases ↗

    Add, move, reoptimise: what the API can do

    Coming soon

    API updates Coming soon

    API developments and new features

    Blog Coming soon

    Articles and guides on route optimisation.

    Start your trial

    Test the API using data from one of your customers.

    Tell us about your software and we’ll provide your trial key.

    Request a demo
  • en-gb
    • fr
Request a demo

Features › Assignments, priorities and unscheduled operations

Assignments, priorities and unscheduled operations

Impose a vehicle or depot on an operation, give priorities to orders and vehicles, and limit the activity of each lorry. When not everything can be scheduled, API Optim lists the rejected operations and their probable causes.

Read the documentation
Request a demo

What the API handles

Your customers’ planning rules.

Imposed assignments and priorities are declared on operations, a site’s position in its logistics profile, and activity limits on vehicle types and their availability periods. The extract opposite shows where each parameter goes; each card below links to its page in the technical documentation.

API Optim JSON structure grouping assignments, priorities and limits: operation with priority, splitting allowed, imposed vehicle and group, maximum number of sites per route, usage priority and maximum number of routes per period

01 Imposed assignments

Operation reserved for a vehicle

Impose the vehicle, and its availability period if needed, when you know in advance who must carry out the operation. It is scheduled on that vehicle or rejected.

truckAssignment idTruck idAvailablePeriod

View the technical page

Operation attached to a depot

Specify the depot where a collection is unloaded, or the one where a delivery is loaded. The solution respects this link.

idSiteOrigin idSiteDestination

View the technical page

Grouped operations

Give the same group identifier to operations at different sites to favour scheduling them on the same route.

idGroup

View the technical page

Site position on the route

Put a site first on the route, or give it a route of its own. The other sites are placed as best they can be.

positionOnRoute FIRST SITE_ALONE

View the technical page

02 Priorities

Operation priority

When the fleet is not enough to schedule everything, give each operation a priority level. Which way the scale reads is set in the profile, and a dedicated optimisation criterion, defined with our experts, takes it fully into account.

priority operationsPriorities

View the technical page

Vehicle usage priority

When there are more vehicles than needed, favour certain availability periods. The lower the value, the higher the period’s priority, with the appropriate optimisation criteria.

usePriority

View the technical page

Optimisation criteria

Choose what the calculation aims to improve, in order: rejected operations, distance… These criteria are set with our experts.

valorizations

View the technical page

03 Activity limits

Number of sites per route

Limit the number of collection or delivery sites on a route, per vehicle type. Depots, yards and uncoupling sites are not counted.

maxSitesPerRoute

View the technical page

Number of routes per period

Limit the number of routes a vehicle can run within an availability period.

maxRoutes

View the technical page

Operation split across several routes

Allow the API to split an operation that is too large for one vehicle and schedule its parts across several routes.

splittable idxSplit

View the technical page

04 Unscheduled operations

List of unscheduled operations

Operations the API could not schedule are listed in the solution. Your software can show them to the planner.

rejectOperations

View the technical page

Probable causes

For each unscheduled operation, the API can give probable causes, with a code and a message: end of time window exceeded, operation too far from the route…

rejectionCauses constraintViolation

View the technical page

Annotated example

An unscheduled order, with its probable causes.

JSON request: COMPUTE_ROUTES global calculation with service times set to one hour per site and per operation, and rejection causes enabled in the calculation profile
API JSON response: operation OPERATION_02 is rejected with two probable causes, DEP0042 end of time window exceeded and DEP0060 operation too far from the route

Service times are increased to one hour per site and per operation. Given the vehicles’ availability, not all operations fit any more.

The API schedules what it can and lists operation OPERATION_02 among the unscheduled operations.

It gives two probable causes: the end of the time window would be exceeded, and the operation is too far from the route to be inserted.

What the API returns

What is scheduled, and what is not.

As well as the routes, the solution lists the rejected operations and, where relevant, how some were split. Your software knows what is left to handle and can display it to the planner.

FieldContent
rejectOperationsThe list of operations the API could not schedule.
rejectionCausesFor each unscheduled operation, an unordered list of probable causes, during a global calculation.
code · messageViolationFor each cause, a code and a message, in the language chosen in the profile (French by default).
idxSplitFor a split operation, the index of each of its parts, which keep the identifier of the original operation.
modifiedDataThe changes made to operations during the calculation, including splitting, with the quantity of each part.

Good to know

A few rules to know before integrating.

RuleWhat you need to knowParameters involved
Probable causes are only available for global calculationThey are available during a global optimisation, once enabled in the calculation profile, and not for actions on existing routes.COMPUTE_ROUTES rejectionCauses
Causes are probable and unorderedThe list helps you understand why an operation could not be fitted in. It is not ranked by importance.constraintViolation
An imposed assignment can cause the operation to be rejectedAn operation reserved for a vehicle is scheduled on that vehicle, or rejected if inserting it breaks constraints.truckAssignment
Operations are not split by defaultSplitting across several routes must be allowed operation by operation.splittable
Grouping favours, it does not imposeA group identifier steers operations towards the same route.idGroup
Optimisation criteria require expertiseHow they are set determines the quality of the results. Our experts tell you which criteria to use, and in what order.valorizations

FAQ

Your questions about assignments and priorities.

Discuss my project
What happens when the fleet is not enough to schedule everything?

The API schedules what it can and lists the rejected operations. With priorities on operations and the appropriate optimisation criterion, the most important ones are scheduled first.

Can I find out why an operation was not scheduled?

Yes, during a global optimisation. For each rejected operation, the API gives probable causes, with a code and a message your software can display.

Can a vehicle be imposed for an order?

Yes. The operation is attached to a vehicle, and to one of its availability periods if needed. It is scheduled on that vehicle, or rejected if that is impossible.

Can certain vehicles be used first?

Yes. Each availability period can be given a usage priority, for example to call on the in-house fleet first.

Can I choose what the optimisation aims to reduce?

Yes, with ordered criteria: number of rejected operations, distance… They are set with our experts.

Take the next step

Test priorities on your customers’ routes.

Our experts help you translate your customers’ assignment rules and priorities into API parameters.

Read the documentation

API Optim

The route and load optimisation API for heavy goods vehicles.

Request a demo

API

Documentation

Pricing

Industries

Milk collection

Animal feed

Flour milling

Live animals

Multi-temperature

Fuel

Features

Compartmentalised vehicles

Schedules and regulations

Fleet and site access

Route reoptimisation

Priorities and assignments

Company

About

Contact

AntsRoute


© 2026 API Optim. All rights reserved.

Legal notice

|

Privacy

|

Cookies

|

Your cookie preferences

We use audience measurement cookies to understand how the site is used and to improve it. They are only set with your consent, and you can change your mind at any time.

Functional Always active
Essential for the site to work: security, display language and remembering your choices. They cannot be disabled.
Preferences
Technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
Audience measurement with Google Analytics: pages viewed, length of visits and site performance. Technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your internet service provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
Technical storage or access is required to create user profiles in order to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Customise
  • {title}
  • {title}
  • {title}
  • English
  • Français (French)