hello all.i have a problem such:
sd1=2;
cvx_begin
variables x y
minimize(exp(y+x))
subject to
y>=0;
y<=20;
x>=2;
x<=30;
y<=SD1*(((1+x+0.5x.^2)-(1+x))+100exp(x));
cvx_end
but cvx shows error:
Error using cvxprob/newcnstr (line 192)
Disciplined convex programming error:
Invalid constraint: {real affine} <= {convex}

Error in <= (line 21)
b = newcnstr( evalin( ‘caller’, ‘cvx_problem’, ‘[]’ ), x, y, ‘<=’ );

Error in Untitledmenha (line 10)
y<=SD1*(((1+x+0.5x.^2)-2(1+x))+100*exp(x));
please help me to eliminate the error.
thanks.

hello. this is a new question and there is not connection between this question and last post. this error is engendered when we have a inequality constraints such. please help me to eliminate the above problem error.
thanks.

It is most certainly related, because you are still failing to understand the fundamental prerequisites for using CVX. Please stop trying to use CVX. It cannot solve most of the problems you are trying to give it, by design. Nothing can be done to fix that.