Vroom

Vroom

Using Vroom with Nextmv

Vroom

Vroom is an open-source optimization engine written in C++20 that aim at providing good solutions to various real-life vehicle routing problems (VRP) within a small computing time.

Get started

A community app is a great place to get started with the Vroom integration. Make sure to specify the python runtime in your app’s app.yaml manifest:

# This manifest holds the information the app needs to run on the Nextmv Cloud.
type: python
runtime: ghcr.io/nextmv-io/runtime/python:3.11
# List all files/directories that should be included in the app. Globbing
# (e.g.: configs/*.json) is supported.
files:
  - main.py
python:
  # Packages the app depends on need to be listed in a requirements.txt file
  # that is referenced here. All listed packages will get bundled with the app.
  pip-requirements: requirements.txt

configuration:
  # Specify the format the app reads and writes.
  content:
    format: "json" # Read JSON from stdin and write JSON to stdout.
Copy

Read more about using Python with Nextmv.

License

Pyvroom does not require additional licensing or setup for running locally or remotely on Nextmv Platform. Vroom Premium API does require additional setup. Please see below.

Languages & runtimes

Supported languages and available runtimes for Vroom apps are listed in the table below. These properties must be defined in the app manifest for your app to run remotely.

Language Runtime
Pythonghcr.io/nextmv-io/runtime/python

Community apps

The community apps listed in the table below use Vroom.

Community app Description
python-pyvroom-routingSolve a knapsack problem with PyOptInterface
python-vroom-premium-api-routingSolve a low-code vehicle routing problem

Clone a community app locally using Nextmv CLI:

nextmv community clone -a python-pyvroom-routing
Copy

Marketplace apps

The Pyvroom Routing app and the Vroom Premium Routing API app in Nextmv Marketplace use Vroom.

Sign up for a free Nextmv Cloud account to test out the Pyvroom Routing app and the Vroom Premium Routing API app.

Vroom Premium Routing API app setup

To run the Vroom Premium Routing API app, you will need to add your Vroom Premium API key as a secret in your Nextmv account. First, create a new subscription app from the Vroom Premium Routing API Marketplace app and navigate to this newly created app’s details view.

Screenshot showing dropdown menu after clicking the create new app button on the apps view, New subscription app is one of the options Screenshot showing first screen of the create new subscription app modal, a place to add an app name, ID and description. Screenshot of the next screen where you select Vroom Premium Routing API as the app to subscribe to. Screenshot showing the overview screen of the Vroom Premium Routing API with a large blue Subscribe button. Screenshot showing the dashboard of the newly created subscription app, the first screen that appears when you click into the app details view.

In the left-hand navigation of the Nextmv UI, click “Secrets” then click the “+” button in the top right to create a new secrets collection. Give the collection a name, call your env variable VROOM_API_KEY, and then paste in your Vroom Premium API key.

Screenshot showing the UI to add a new secret in Nextmv Console

After you’ve created your secrets collection, click “Instances” in the left-hand nav, select “Latest” and then click “Edit” in the top right corner. Under “Secrets Collection” select the collection you just created and click “Save”.

Screenshot showing the UI for editing an instance, at the bottom is the UI for selecting the newly created secret collection

Now you can run your Vroom Premium Routing API app. Go to Runs, and click the “+” button in the top right. Click on “Edit input” and load the sample input. Start the run 🎉

Page last updated

Go to on-page nav menu