modelon-community / Assimulo

Assimulo is a simulation package for solving ordinary differential equations.
https://jmodelica.org/assimulo/index.html
GNU Lesser General Public License v3.0
69 stars 17 forks source link

Symbolic Jacobian for sundials solver #19

Open swsyoon opened 3 years ago

swsyoon commented 3 years ago

Hello

Is there a simple example of using symbolic jacobian function with Assimulo sundials solver? I am trying to create a simple example of how to use AD scheme to provide Jacobian for sundials solvers such as IDA or CVODE. I am using casadi python version to provide symbolic jacobian and try to use it in 'ida_with_jac.py' example but I keep getting errors such as f function return type error or Jacobian function is not callable.

Thanks,