Warm Starting Routing Model from previous solution (Same Setup!)

17 views
Skip to first unread message

Nano Byte

unread,
Jul 29, 2026, 3:10:38 AM (5 days ago) Jul 29
to or-tools-discuss
Hello,

TL;DR: How much pre-filling of the Assignment is possible, necessary, and/or good when starting a new model from an old fully defined, valid solution? 

Long:
I am using the Routing Model Iteratively.

1. Setup New Routing Model
2. Read Assignment From Routes
3. Solve
4. Reading the "Time" dimension values and node index lists ("Routes")
5. Repeate 

I am doing this for the sake of intermediate solutions, clean cuts and changing model parameters. I never change the time callback.

Usually it has no issue and the model is fine restarting only from the "Routes" (node to vehicle index lists).
But some recent experiments with DimensionDependentDimenision or other weird model edge cases lead to the solver not finding a valid solution in (3.).
Now I do have every exact (Min) value of each dimension at hand given that I come from a previous solution. I can provide dimension values of which I can guarantee for them to be correct.

Question:
- Is it possible to set the dimensions as well when giving a node-to-vehicle route?
- Is it sometimes beneficial or necessary to do so?
- What is best practice when it comes to booting a previous solution?


Thx and Kind Regards!
nano
Reply all
Reply to author
Forward
0 new messages