Test JModelica.org and CasADi installation

Run the examples in this notebook to make sure your installation is configured correctly (see http://www.jmodelica.org/page/27667 for more details).


In [ ]:
from pylab import rcParams
rcParams['figure.figsize'] = 12, 8

Simple simulation - Van Der Pool oscillator


In [ ]:
from pyjmi.examples import VDP_sim
VDP_sim.run_demo()

Optimization - Continuous Stirred-Tank Reactor (CSTR) example


In [ ]:
from pyjmi.examples import cstr
cstr.run_demo()

Optimization - Continuous Stirred-Tank Reactor (CSTR) example with Casadi


In [ ]:
from pyjmi.examples import cstr_casadi
cstr_casadi.run_demo()