nonlinear mpc controller

35 views
Skip to first unread message

Touraj Eslami

unread,
Dec 12, 2021, 9:51:50 AM12/12/21
to apmonitor
Dear John

In nonlinear MPC controller, for predicting the system I turned my equation from
Xk=f(Xk-1,Uk-1)
Yk=g(Xk-1)
To this format :
Xk+Np=Fk*Xk-1+Gk*Uk-1+Hk *ΔU
When we perform Taylor series expansion to linearize the system around the trajectory point, we change the states to a linear format with a deviation term, (X_NL=X ̅+∆X, U_NL=U ̅+∆U  and the same for Y)
Here is my question, what should I use for Uk-1 and Xk-1 ? I know they aren’t the actual state but the deviation term, then what is the amount of these terms ? is it related to the cycle time? or I have to neglect them and just use the Hk*ΔU term to optimize the system?

thank you in advance,
Touraj

John Hedengren

unread,
Dec 12, 2021, 9:47:02 PM12/12/21
to apmo...@googlegroups.com

Dear Touraj,

 

There is the discrete state space model in Gekko that may be helpful: https://apmonitor.com/wiki/index.php/Apps/DiscreteStateSpace  If you have Gekko code that you’d like help with, please post to StackOverflow with tag [gekko]: https://stackoverflow.com/questions/tagged/gekko  You can also write out the model algebraically with sets if you’d like additional control of the model form. Gekko allows any term (such as Delta U) to be optimized by including it as an MV.

 

Best Regards,

John Hedengren

--
--
APMonitor user's group e-mail list.
- To post a message, send email to apmo...@googlegroups.com
- To unsubscribe, send email to apmonitor+...@googlegroups.com
- Visit this group at http://groups.google.com/group/apmonitor
---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmonitor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/e1146f59-fcd8-41c7-8e11-aa3310b6a467n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages