During the solving process in YALMIP, a certain constraint was bypassed without any error message, and an optimal solution was given, but the solution does not satisfy the aforementioned constraint. #1342
Replies: 7 comments
-
You would have to supply reproducible code, because there is no way that a constraint you have stated would not have been sent to the solver, i.e. there is a bug in your code (or you've missed this https://yalmip.github.io/faq/solutionviolated/) |
Beta Was this translation helpful? Give feedback.
-
As I said, you would have to supply reproducible code (your code does not run as it is not pasted into a code block and is therefore butchered, and it uses external data) |
Beta Was this translation helpful? Give feedback.
-
As I said, you have to use code blocks bad and broken y=10x What you have to do (<>)
Copy your code back to matlab and you will see that it is broken and does not run |
Beta Was this translation helpful? Give feedback.
-
Hello, my code has become garbled during the copy-pasting process. If possible, could you provide your email address so I can send it to you? Thank you for your response. |
Beta Was this translation helpful? Give feedback.
-
Open a code block, paste into it. Done |
Beta Was this translation helpful? Give feedback.
-
All constraints are satisfied (and not even close to being infeasible), as easily seen by giving them a name and check them after solving the problem
|
Beta Was this translation helpful? Give feedback.
-
Thank you. My junior female colleague and I have solved the problem together. Thank you for your help!!! |
Beta Was this translation helpful? Give feedback.
-
I wrote a constraint in YALMIP, but during the solving process, this constraint was ignored without any error message, and an optimal solution was given. When I verified it, I found that the above constraint was ignored and did not function. I would like to know why this happened. Because in previous optimization processes, this problem has never occurred. If you could help me solve this problem, I would be very grateful. I am looking forward to your reply. Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions