How to Fix Input Matrices in Yalmip During Optimization? #1424
Replies: 1 comment 1 reply
-
You are telling YALMIP the parameter A is symmetric (which I don't think it is) so it will get completely messed up when sending non-symmetric data |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I'm working on a Model Predictive Control (MPC) problem using Yalmip, and I've run into an issue regarding input matrices. Specifically, I have the matrices Am, Bm, and E that I want to keep fixed during the optimization process. These matrices are recalculated at each instant of the simulation based on a time-varying vector v. The problem is that I noticed the matrix Am is being optimized and changes during the simulation, whereas Bm and E remain fixed as intended.
Is there a way to ensure that the matrix Am remains fixed during the optimization, or am I missing something in my implementation?
Here is the relevant part of my code:
Controller
Example call to controller
Any advice or suggestions would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions