fixed casadi bug (deltaMatrix)
now tune parameters since casadi is fixed