alexliniger/MPCC

What is ZHO?

ziyi-joe opened this issue · 1 comments

Hi! Thank u so much for the perfect work!
I have a question about the ZHO you mention in the model.cc

// disctetize the continuous time linear model \dot x = A x + B u + g using ZHO

Do you mean ZOH(Zero-Order Hold)?
BTW, I have never seen the integrator in the discretizeModel. It i concise and precise. Could you give some reference? I'd like to learn about it, but I didn't find it on Google.

Yes it is zero order hold, and what I use is the matrix exponential.
The matrix exponential is the exact discretization of the linear system, for nonlinear system it is not exact. However, it is definitly more accurate than euler forward.
In the new automatic diff branch I am using RK4 for all discretizations.