ControlSystems.jl icon indicating copy to clipboard operation
ControlSystems.jl copied to clipboard

Accuracy in simulations

Open mfalt opened this issue 7 years ago • 0 comments

Since changing to continuous simulations we lose accuracy in lsim compared to the previous zoh method when the input is already zoh. (see https://github.com/JuliaControl/ControlSystems.jl/pull/118#discussion_r167433616) Step was, for example, exact almost up to machine precision before. We should do at least one of the following

  • Default step to zoh when the t input is equidistant (this was the previous behaviour)
  • Allow time responses to accept a tolerance argument that is sent to the numerical solver
  • Lower the default tolerance in call to the numerical solver

mfalt avatar Feb 11 '18 13:02 mfalt