Skip to content

Latest commit

 

History

History

docker

pyTFA Docker

This Docker offers a suitable environment to run pyTFA.

Requirements

Make sure docker is installed. You might want to install a commercial solver. Gurobi and CPLEX are supported. See solver/instructions.txt for more informations on how to install them.

Running the Docker

First, build the container with build.bat or . build. Then start the container with run.bat or . run.

. build
. run

You can run the examples in /pytfa/tutorials:

cd /pytfa/tutorials
python relaxation_example.py

You can also run them inside IPython to experiment and play with the objects:

ipython
run tutorial_basics.py
tmodel.print_info()

Additional information

If you are running your Docker container in a Unix-based environment, you might get permission errors on the .sh scripts. This is because permissions are inherited from the host environment. You can fix this by running in the docker folder:

chmod +x utils/*.sh