Example for running a Python application on the Nextmv Platform using the OR-Tools package. We solve a knapsack Mixed Integer Programming problem.
-
Install packages.
-
With
pippip install . -
With
uvuv sync
-
-
Run the app.
-
With
pythoncat inputs/input.json | python main.py -
With
uvcat inputs/input.json | uv run main.pyOr with custom options:
cat inputs/input.json | uv run main.py -duration 30 -provider SCIP
-