NAN matrices #926
-
Hi, I have written a code and used YALMIP to solve LMI and my aim is that I want to find a fuzzy controller gain matrix. But it results in NAN matrices. It would be a huge help if you can help me find out what's the cause of this problem. My code is as follow and I have attached the paper I'm working on.
` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
First issues is that you are doing
which is equivalent to
What you intended is
Another issues is that you haven't checked symmetry of the stuff you have created. You have bugs causing some expressions to be non-symmetric, leading to element-wise constraints instead of semidefinite cones
For instance, the fourth constraint cond3 which isn't symmetric
...and never turn of solver display until you know everything is running perfectly fine |
Beta Was this translation helpful? Give feedback.
First issues is that you are doing
X <= 1e-6
which is equivalent to
X <= 1e-6*ones(n)
What you intended is
X <= 1e-6*eye(n)
Another issues is that you haven't checked symmetry of the stuff you have created. You have bugs causing some expressions to be non-symmetric, leading to element-wise constraints instead of semidefinite cones