How to insert square terms in constraints for fmincon
2 views (last 30 days)
Show older comments
Hello together,
I want to solve a non-linear model with fmincon. Now some restrictions are squares like x(1)^2 + 2x(2)^2 <=540. How is the correct way to write them in A? A = [1^2 2^2] seems to be the wrong solution.
Could you please give me support?
0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!