jgillis edited this page Oct 5, 2017 · 7 revisions

Install CasADi 3.2.3

Grab a binary from the table (for MATLAB, use the newest compatible version below):

Windows 64 bit Linux (14.04+) Mac
Matlab R2014b or later R2014b or later R2015a or later
R2014a R2014a R2014b
R2013a or R2013b R2014a
Octave 4.2.1 32bit or 64bit 4.2.1 4.2.1
Python Py27 (py 32bit or py 64bit ) Py27 Py27
Py35 (py 32bit or py 64bit ) Py35 Py35
Py36 (py 32bit or py 64bit ) Py36 Py36

or see download page for more options/versions ...

Unzip in your home directory and adapt the path:

Matlab/Octave Python
import casadi.*
x = MX.sym('x')
from sys import path
from casadi import *
x = MX.sym("x")

New: install with pip install casadi

Get started with the example pack.

Getting error "CasADi is not running from its package context." in Python? Check that you have casadi-py27-np1.9.1-v3.2.3/casadi/ If you have casadi-py27-np1.9.1-v3.2.3/ instead, that's not good; add an extra casadi folder.