InstallNOC DAE

jgillis edited this page Feb 10, 2016 · 6 revisions

The NOC-DAE course will make use of a very recent version of CasADi which is not really officially released yet (3.0.0-rc2). The exercise sheets and solutions will be based on MATLAB. Python enthusiasts are also welcome to try the exercises in Python

Install instructions for MATLAB users

  • Obtain CasADi for your version of Matlab:
Windows Linux Mac
R2014a or later R2014a or later R2015a or later
R2013a or later R2014a or later
  • Add the unzipped directory (e.g. C:\Downloads\casadi-matlabR2014a-v3.0.0-rc2) to the Matlab path:
addpath('C:\Downloads\casadi-matlabR2014a-v3.0.0-rc2') % adapt to your situation
  • See if the following code runs without errors:
import casadi.*
x = MX.sym('x')
jacobian(sin(x),x)
  • If there's errors, contact us.

Install instructions for Python users

Windows Linux Mac
Python 2.7 Python 2.7 or later Python 2.7 or later
  • Add the unzipped directory (e.g. C:\Downloads\casadi-py27-np1.9.1-v3.0.0-rc2) to the Python path:
import sys
sys.path.append(r"C:\Downloads\casadi-py27-np1.9.1-v3.0.0-rc2") # Adapt to your situation
  • See if the following code runs without errors:
from casadi import *
x = MX.sym("x")
print jacobian(sin(x),x)
  • If there's errors, contact us.