Skip to content

tuxetuxe/robot_routing

Repository files navigation

Robot Routing

Requirements

  • Python 3+
  • VirtualEnv

Setup

Create virtual environment

virtualenv -p python3.6 venv

Activate virtual environment

source ./venv/bin/activate

Install requirements

pip install -r requirements.txt

Build

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

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published