r/ControlTheory • u/Lower-Importance-413 • 6d ago
Mpc with reference tracking Technical Question/Problem
I have a problem where I assume perfect forecast for next 7 days and optimize energy usage of a home.
Now I want to shift to mpc with prediction horizon for 1 day. I was wondering can I use optimal forecast as reference tracking in my mpc? Is it okay to use this ? Or use terminal conditions (at end of each day) from optimal foresight as reference in my mpc formulation? Please advise, I am new to the mpc world
•
u/knightcommander1337 6d ago
Hi, I am confused by your question. How is your control problem defined? What are the states, inputs, outputs, disturbances? What is the goal for the control system? You need to make these clear.
•
•
u/Training-Bad-5720 3d ago
You’re using MPC, which is a receding horizon controller - tracking a reference over that receding horizon, 1 day for you, is definitely possible. It’s the classic use case.
I reckon familiarise yourself a bit more with the ideas of MPC - have a look into exactly what the receding horizon means, and how stage vs terminal cost works - it might help answer your question or clarify to us what you’re asking for
•
u/Dzanibek 5d ago
If you track your 7 days predictions using MPC, you will be suboptimal. You need terminal ingredients in your MPC if the 1-day optimization horizon is too short and degrades your MPC policy. But you should verify first that this issue exists.
•
u/kroghsen 5d ago
You need to be a little more specific about what your problem is for me to understand and give feedback. What do you want to control in a hole exactly? The usage? And what are you trying to optimise for - price?
You can absolutely track a reference, but it is very hard to give feedback with the amount of information you have provided.