Skip to content

Instantly share code, notes, and snippets.

@mlubin
Created February 5, 2016 02:12
Show Gist options
  • Save mlubin/6e354eda6684bce24112 to your computer and use it in GitHub Desktop.
Save mlubin/6e354eda6684bce24112 to your computer and use it in GitHub Desktop.
JuMP install instructions for 15.083

Install Julia

You should use Julia 0.4.0 or later. If you have an older version of Julia installed, e.g., 0.3 or 0.4.0-rc1, please update to the latest version. Binaries of Julia for all platforms are available here.

  • Windows and Linux users should choose the 64-bit version, unless using a very old computer.

If updating from Julia 0.4.0-rc1, you should also update your packages by running:

Pkg.update()

from a Julia prompt.

Install IJulia/Jupyter

Jupyter is a convenient notebook-based interface to present documents which interleave code, text, and equations. Follow the instructions here to set up IJulia. If you've used IJulia previously and just updated Julia, double check that IJulia is still working!

Install Gurobi

Gurobi is a commercial mixed integer linear and mixed integer second-order conic solver which we will be using during the class. If you don't have Gurobi installed already, please follow their installation guide for your platform.

The main steps are:

  • Go to gurobi.com and sign up for an account
  • Get an academic license from the website (section 2.1 of the quick-start guide)
  • Download and install the Gurobi optimizer (section 3 of the quick-start guide)
  • Activate your academic license (section 4.1 of the quick-start guide)
    • You need to do the activation step while connected to the MIT network. If you are off-campus, you can use the MIT VPN to connect to the network and then activate (get in touch if you have trouble with this).
  • Test your license (section 4.6 of the quick-start guide)

Install Julia packages

To start off, we will be using the following packages:

  • JuMP
  • Gurobi

Install each one by running Pkg.add("xxx") where xxx is the package name from a Julia prompt or notebook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment