jaantollander / install-minizinc-ortools

Shell scripts for installing MiniZinc and Google OR-Tools on Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scripts for Installing MiniZinc and OR-Tools on Linux

These scripts are tested on Ubuntu 20.04. They can be modified for other Linux distributions. Credits for @juanmarcosdev for the helpful Dockerfile: https://github.com/juanmarcosdev/minizinc-or-tools.

Instructions

Let's install wget if we don't already have it.

apt-get update
apt-get install wget -y

Now, we can use the scripts to install MiniZinc and Google OR-Tools.

The install-minizinc.sh shell script downloads MiniZinc from GitHub releases, extracts the archive to $HOME/bin directory, removes the extracted archive and write the exports for the path environment variables to $HOME/.bashrc.

./install-minizinc

The install-or-tools.sh shell script downloads Google OR-Tools from GitHub releases, extracts the archive to $HOME/bin directory, removes the extracted archive and creates a solver configuration file to $HOME/.minizinc/solvers/or-tools.msc.

./install-or-tools

Usage

We can use the solver with the name or-tools.

minizinc --solver or-tools

About

Shell scripts for installing MiniZinc and Google OR-Tools on Linux.

License:MIT License


Languages

Language:Shell 55.2%Language:Dockerfile 44.8%