Giter Site home page Giter Site logo

jump-cplex-gurobi-container's Introduction

JuMIP: Docker Container for JuMP, CPLEX and Gurobi

Creates a docker container with Julia, JuMP, CPLEX & Gurobi installed, all with correct environment variables so CPLEX.jl and Gurobi.jl install without fuss.

Preparation

CPLEX

Obtain a licence and download the linux installer. The file should be something like cplex_studioXXXX.linux_x68_64.bin. Place this file in bin/. bin should then contain the following 2 files,

bin
 - cplex_studioXXX.linux_x68_64.bin
 - cplex_installer.properties

Gurobi

Obtain web service licence (client-only licences don't work for containers). Generate a gurobi.lic licence file and place it in C:/gurobi/ (as recommended (for Windows) here).

JuMIP Dockerimage

The Dockerfile starts by creating a 'mipopt' image with both Cplex and Gurobi installed into the /opt/ directory. We then copy this over to a fresh julia image. The correct environment variables are then set so that CPLEX.jl and Gurobi.jl install correctly (when you eventually want them).

Usage

We can start a REPL session container by using the docker-compose.yml. Note that a volume must be added to transfer across the Gurobi.lic. To keep have code between your local environment, and the REPL container, we add a volume in the docker compose file. Then, to start your REPL in a container, run

docker compose run jumip

If changes have been made to the Project.toml, you may need to force rebuild with

docker compose up --build jumip
docker compose run jumip

jump-cplex-gurobi-container's People

Contributors

sandyspiers avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.