Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 894 Bytes

README.md

File metadata and controls

49 lines (33 loc) · 894 Bytes

Nextmv Python OR-Tools Cost Flow

Example for running a Python application on the Nextmv Platform using the OR-Tools package. We solve a minimum cost flow problem for assigning workers to projects.

  1. Install packages.

    • With pip

      pip install .
    • With uv

      uv sync
  2. Run the app.

    • With python

      cat input.json | python main.py
    • With uv

      cat input.json | uv run main.py

      Or with custom options:

      cat input.json | uv run main.py -duration 30 -penalty 3000

Next steps

  • Open main.py and modify the model.
  • Visit our docs and blog. Need more assistance? Contact us!