- Python 3+
- VirtualEnv
Create virtual environment
virtualenv -p python3.6 venv
Activate virtual environment
source ./venv/bin/activate
Install requirements
pip install -r requirements.txt
Run the test suit
pytest -v -s --cov-report term-missing --cov=robot_routing -r w tests
Build docker image
sudo docker build -t robot_routing .
Execute the script directly in your machine
Don't forget to follow the "Setup" steps!
python robot_routing <problem file> <solution file>
Use the docker image to solve a problem
docker run \
--rm \
-v $(pwd)/problems:/problems \
robot_routing \
/problems/<problem file> \
/problems/<solution file>
Solve all problems in the problems folder (except sample):
./solve_all_problems.sh