Skip to content
Because optimization is fun!
Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Update requirements.txt Feb 25, 2015
examples Adding multistage example Oct 6, 2015
optoy Adding multistage example Oct 6, 2015
tests bump to casadi version 2.4.0 Aug 25, 2015
.gitignore Initial commit Oct 21, 2014
.travis.yml travis error Sep 22, 2015
LICENSE Initial commit Oct 21, 2014
Makefile Adding robust example Feb 25, 2015
README.rst Update README.rst Feb 25, 2015 Move conf to seperate file Oct 22, 2014



Because optimization is fun!

Build Status of the master branch on Linux Coverage Status Documentation Status

Optoy combines the power of casadi with a very compact Python user interface. Start optimizing in minutes...


$ pip install git+git://

Static optimization

from optoy import *

x = var()
y = var()
print "cost = ", minimize((1-x)**2+100*(y-x**2)**2,[x**2+y**2<=1, x+y>=0])
print "sol = ", x.sol, y.sol

Dynamic optimization

from optoy import *

x = state()
y = state()
q = state()
u = control()

T = var(lb=0,init=10) = (1-y**2)*x-y+u = x = x**2+y**2



Get started with some examples or by reading the API documentation .

You can’t perform that action at this time.