Example for running a Python application on the Nextmv Platform using the AMPL package. We solve a knapsack Mixed Integer Programming problem.
If you have an AMPL license, remove the .template
extension from the
ampl_license_uuid.template
file and replace the contents with your actual
license key. Modify the app.yaml
file to include the ampl_license_uuid
in
the files list.
-
Install packages.
pip3 install -r requirements.txt
-
Run the app.
python3 main.py -input input.json -output output.json \ -duration 30 -provider highs