nonlinear inequality constraint for fmincon()

조회 수: 1 (최근 30일)
Susan
Susan 2019년 4월 23일
편집: Susan 2019년 5월 22일
Hey guys,
I am trying to write down the below nonlinear inequality constraint
Calculate_W_S_R(J, I, K, tr_prob, Tp, Tavg, Pf, Wrate) <= rateTh
in the form of c(x)<=0. However, when I want to define the constraint function, i.e., function[c ceq] = constraint(x), the input get more parameters than only the single variable x. Any idea how can I deal with this issue? Thanks in advance
the nonlinear inequality constraint c is a function of variable ptilda (the optimization variable which shows up in "Wrate") and some other given parameter (J, I, K, tr_prob, Tp, Tavg, Pf, ateTh). Wrate is a function of J, I, K, TB, ps, UE_A, SINR where SINR is a function of ptilda.
%%
  댓글 수: 9
Walter Roberson
Walter Roberson 2019년 5월 9일
The tools in the global optimization toolbox help you try to solve all kinds of optimizations. They never make any promises that they will definitely solve it, but they are not restricted to searching local minima.
ga() and gamultiobj() in particular do not require that the objective be continuous to any level of derivative, and can deal with discrete problems or mixed integer.
The algorithms used by fmincon() (base MATLAB, no toolbox needed) work best with convex optimizations, but you can add non-linear constraints that have the effect of making the search area non-convex. However, it cannot handle discrete or mixed integer problems at all, and the function is required to be continuous within the regions that are not prohibitted.
Susan
Susan 2019년 5월 10일
Thank you so much for your helpful answer. Appreciate that

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by