Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 654 Bytes

File metadata and controls

27 lines (19 loc) · 654 Bytes

Nextmv Python OR-Tools Knapsack

Example for running a Python application on the Nextmv Platform using the OR-Tools package. We solve a knapsack Mixed Integer Programming problem.

  1. Install packages.

    pip3 install -r requirements.txt
  2. Run the app.

    python3 main.py -input inputs/input.json -output output.json \
      -duration 30 -provider SCIP

Next steps

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