Example for running a Python application on the Nextmv Platform using the HiGHS solver. We solve a knapsack Mixed Integer Programming problem.
-
Install packages.
-
With
pippip install . -
With
uvuv sync
-
-
Run the app.
-
With
pythoncat input.json | python main.py -
With
uvcat input.json | uv run main.pyOr with custom options:
cat input.json | uv run main.py -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.