Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 775 Bytes

File metadata and controls

29 lines (20 loc) · 775 Bytes

Nextmv Python HiGHS Knapsack

Example for running a Python application on the Nextmv Platform using the HiGHS solver. We solve a knapsack Mixed Integer Programming problem.

  1. Install packages.

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

    python3 main.py -input input.json -output output.json -duration 30

Alternatively, you may reference the main.ipynb Jupyter notebook which, in addition to running locally, showcases how to push the app and run it remotely.

Next steps

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