Over-all sum value in fmincon for multiple x
1 次查看(过去 30 天)
显示 更早的评论
Sir, i just want to know that how to write the over all sum <= 1-beta in the constraints?
e.g. if value of beta =0.4,
and i have 6 phi values to optimize, i have to optimize its value but the sum of all these 6 phi values not exceed 1-beta (i.e 0.6).
i will be thank full to you, if you could answer this question.
2 个评论
采纳的回答
Matt J
2019-9-19
编辑:Matt J
2019-9-19
Are you sure you only have 6 unknowns? In your earlier post, you had more.
If you truly only have 6 unknowns, use the A,b inputs in
x = fmincon(fun,x0,A,b,______)
with
A=ones(1,6);
b=1-beta;
7 个评论
Matt J
2019-9-23
A constraint is nonlinear if it is not linear. A linear constraint is one that can be expressed with matrix-vector multiplication,
A*x<=b
Aeq*x=beq
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!