User Tools

Site Tools


projects:project2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
projects:project2 [2016/10/26 13:03]
aytonb [Dependencies (Students Not Using the VM)]
projects:project2 [2016/11/10 21:51]
aytonb [Part 0: Introduction]
Line 25: Line 25:
 Find SCIP and an academic license in ''​chef/​site-cookbooks/​intro-to-autonomy/​files/​default/​scipopt''​. Place the contents in ''/​usr/​local/​src''​. (No need to decompress yet.) Find SCIP and an academic license in ''​chef/​site-cookbooks/​intro-to-autonomy/​files/​default/​scipopt''​. Place the contents in ''/​usr/​local/​src''​. (No need to decompress yet.)
  
-Run the following script from ''/​usr/​local/​src'':​+Run the following script from ''/​usr/​local/​src'' ​as root to compile SCIP with NumberJack flags:
  
 +<​code>​
 +#!/bin/bash
  
 +set -e
 +# Check SCIP not compiled yet
 +file="/​usr/​local/​src/​scipoptsuite-3.2.0/​lib/​libscipopt-3.2.0.linux.x86_64.gnu.opt.a"​
 +if [ -f "​$file"​ ]
 +then
 +  echo "​Compiled SCIP library found. Exiting compilation of SCIP bash script successfully."​
 +  exit 0
 +else
 +  echo "SCIP compiled library not found in: $file. Proceeding to compile SCIP....."​
 +  tar xvf scipoptsuite-3.2.0.tgz
 +  cd scipoptsuite-3.2.0
 +  make scipoptlib ZIMPL=false ZLIB=false READLINE=false GAMS=false GMP=false LEGACY=true SPX_LEGACY=true -j3
 +  echo "SCIP compiled sucessfully. Exiting compilation of SCIP bash script successfully."​
 +fi
 +</​code>​
 +
 +Then, set a SCIP environment variable, which will be used when Numberjack is installed:
 +
 +<​code>​
 +ENV['​ZIBPATH'​] = '/​usr/​local/​src/​scipoptsuite-3.2.0'​
 +</​code>​
 +
 +Finally, install Numberjack, matplotlib, and numpy through pip. The Python files required for this project are located in the Project 2 git repository.
 +
 +
 +===== If You Cannot Use SCIP =====
 +
 +If you are unable to use SCIP in the VM, please follow [[:​numberjack|these instructions]].
  
 ===== Project Overview ===== ===== Project Overview =====
Line 43: Line 73:
 ===== Part 0: Introduction ===== ===== Part 0: Introduction =====
  
-First, you must learn about the VRP problem. Read the following sections of [[http://​citeseerx.ist.psu.edu/​viewdoc/​download?​doi=10.1.1.170.2577&​rep=rep1&​type=pdf|Handbook of Constraint Programming (2006)]]:+First, you must learn about the VRP problem. Read the following sections of [[http://​citeseerx.ist.psu.edu/​viewdoc/​download?​doi=10.1.1.170.2577&​rep=rep1&​type=pdf|Handbook of Constraint Programming (2006)]] ​(also posted on Stellar):
  
   * Chapter 23 intro    * Chapter 23 intro 
projects/project2.txt ยท Last modified: 2016/11/16 21:16 by aytonb