Fseminf can't be used if the constraints' dimsion is higher than 2?

2 次查看(过去 30 天)
Hello
What can you do if the constraints have higher dimension than 2?
Here
is the 2D example, but in my problem I have products like ... . Not exactly this but the point is that I have n number of and I have to multiply all of them(not only 2 of them).
  5 个评论
Richárd Tóth
Richárd Tóth 2019-8-7
Seems like transforming the constraint matrix into a lower dimension form doesn't work, I tried adding this line after K1 is assigned in the two dimensional example
K1=K1(:);
and the solution I get from fseminf is not a valid solution even though the matrix elements are the same.
[c,ceq,K1] = mycon(x,[0.5,0.5]); % Sampling interval 0.5
max(max(K1))
returns a positive number
Lucas Schaare
Lucas Schaare 2022-2-25
Hello,
were you able to solve this problem with 3D constraint matrix?
Thank you in advance.
Lucas

请先登录,再进行评论。

回答(1 个)

Bruno Luong
Bruno Luong 2019-8-7
If you have one inequality (doesn't matter how the lhs is computed, with finite or infinite series or products), then you have ONE constraint.

类别

Help CenterFile Exchange 中查找有关 Systems of Nonlinear Equations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by