Over-all sum value in fmincon for multiple x

조회 수: 1 (최근 30일)
Maheen Fazal
Maheen Fazal 2019년 9월 19일
댓글: Maheen Fazal 2019년 9월 26일
Sir, i just want to know that how to write the over all sum <= 1-beta in the constraints?
constraintt.png
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
Matt J 2019년 9월 19일
편집: Matt J 2019년 9월 19일
Maheen Fazal
Maheen Fazal 2019년 9월 19일
Sir i just gave a number, it differes according. depends on me that how many values i take.

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
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
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
Maheen Fazal
Maheen Fazal 2019년 9월 26일
pleasure Sir.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by