cloud-routing

command
v0.20.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

Nextmv cloud-routing template

The cloud-routing template sets up a vehicle routing problem (VRP) solver that is compatible with our cloud input files. In addition to almost being a drop-in replacement for the cloud endpoint it also demonstrates some of the more advanced router options.

The most important files created are main.go and several data input files for different uses cases: fleet management, delivery, distribution and sourcing. By default the workspace file points to fleet-tiny.json. In addition there is the schema.go file that defines needed data structures and the helper.go file in which helper functions are defined, e.g. for data handling.

main.go is the entry point for the VRP solver. The actual configuration can be found in the routing package of this template. In particular routing/solver.go.

Before you start customizing run the command below to see if everything works as expected:

nextmv run local . -- -hop.runner.input.path data/fleet-tiny.json\
  -hop.runner.output.path output.json -hop.solver.limits.duration 10s

A file output.json should have been created with a VRP solution.

Next steps

  • For more information about our platform, please visit our docs.
  • Need more assistance? Send us an email!

Documentation

Overview

package main holds the implementation of the cloud-routing template.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL