Skip to content

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

License

Notifications You must be signed in to change notification settings

jaantollander/install-minizinc-ortools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks