# README
Nextmv nextroute template
routing-legacy
is a modeling kit for vehicle routing problems (VRP). This
template will get you up to speed deploying your own solution.
The most important files created are main.go
and input.json
.
main.go
implements a VRP solver with many real world features already
configured. input.json
is a sample input file that follows the input
definition of our legacy cloud fleet input format.
Before you start customizing run the command below to see if everything works as expected:
nextmv sdk run . -- -runner.input.path input.json\
-runner.output.path output.json -solve.duration 10s
A file output.json
should have been created with a VRP solution.
Next steps
- For more information about our platform, please visit: https://docs.nextmv.io.
- Need more assistance? Send us an email!
# Functions
ToFleetSolutionOutput is a transformation function to create a legacy fleet output format.
# Structs
FleetOutput is the root output structure.
FleetOutputStop contains all data of a stop.
FleetOutputSummary contains a breakdown of the objective value.
FleetOutputVehicle contains the route for one vehicle.
FleetState is the solution output structure.
Statistics adds run stats to the output.
Time holds runtime information.