Dear Members of the community,
I want to experiment with the new functionalities of Mathematica regarding model predictive control. In the process, I found troubles using outputresponse[] for discrete systems. Even for a few sample points, the response takes considerable time. My workflow is in the attached notebook.
I have doubts using ToDiscreteTimeModel[]. It seems to me that, in this case, Mathematica is using Euler’s formula to approximate the derivative. I could not find much information about this. Is there documentation about this?
Also, I would like to know if it is possible to name the discrete variable and not use the automatic name given by Mathematica in this step.
It might be the case that the discrete systems be unstable because of the sampling time I am using, but I guess this will not be the cause of outputresponse[] taking so long.
I will appreciate your comments since I usually work in continuous time.
Jesus