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.

%%

Opportunities for recent engineering grads.

Apply Today
## 9 Comments

## Walter Roberson (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/458055-nonlinear-inequality-constraint-for-fmincon#comment_697406

## Susan (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/458055-nonlinear-inequality-constraint-for-fmincon#comment_697410

## Walter Roberson (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/458055-nonlinear-inequality-constraint-for-fmincon#comment_697421

## Susan (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/458055-nonlinear-inequality-constraint-for-fmincon#comment_697451

## Walter Roberson (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/458055-nonlinear-inequality-constraint-for-fmincon#comment_697456

## Susan (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/458055-nonlinear-inequality-constraint-for-fmincon#comment_697459

## Susan (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/458055-nonlinear-inequality-constraint-for-fmincon#comment_703678

## Walter Roberson (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/458055-nonlinear-inequality-constraint-for-fmincon#comment_703682

## Susan (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/458055-nonlinear-inequality-constraint-for-fmincon#comment_703905

Sign in to comment.