Skip to content

Latest commit

 

History

History
executable file
·
31 lines (17 loc) · 2.06 KB

README.md

File metadata and controls

executable file
·
31 lines (17 loc) · 2.06 KB

JuMP Examples Build Status Moonlight contractors

Optimization examples in Julia using the JuMP package from the StaffJoy team.

Installation

This repository is built for development using Vagrant. Vagrant provides local development virtual machines. Booting the associated Vagrant virtual machine in this repository installs all dependencies so that you can focus on the code.

Prerequisites

Install Vagrant and Virtualbox.

Booting the VM

  1. Run vagrant up. This boots the virtual machine. Installation the first time will take a long time because the Ubuntu linux image must be downloaded and the dependencies must be compiled from source.
  2. To enter the VM, run vagrant ssh. The repository folder is synced to /vagrant/ and you can find examples in the src folder. All the tools you need - including Julia and solvers - are already installed.
  3. When done, exit any SSH sessions and run vagrant halt to end the virtual machine.

Debugging

If you run into issues, it's possible that the base virtual image must be updated. To do this, run vagrant destroy, then rebuild the machine with vagrant up.

Modifying problems

You can modify code either inside or outside of the virtual machine - it will sync immediately. To run the code, run vagrant ssh to enter the instance, go to the source code folder with cd /vagrant/src/, then execute code with julia <file.jl>.

Presentations

This repository has been used in the following presentations:

  • Feb 21 2015 - Philip Thomas on Predictive Analytics at SQuInT Breakout Sessions (Slides)