Currently there is just a single depot. I want to use my own data as input and I need to generate 2 depot locations with their own vehicles located to them.
How to get multiple depots in the Optaplanner cvrptw example?
354 views Asked by Elme Pieterse At
1
The solution for creating is second depot is pretty easy. Depending on which file you want to change it becomes a little more tedious.
Go to the corresponding .vrp file and scroll down to:
Change into:
Here the 1 refers to the first position in the NODE_COORD_SECTION, and the 2 to the second.
Go to the corresponding XML file and go to:
You can then change which trucks are sourced from which warehouse (or depot).