Cvx/min find the position


(Menna Khaled) #1

I need to find the minimum in an array containing a cvx Object and I am interested in finding its position, would it help if I edit the cvx/min fn. so that the position returned is this line becomes :
[vu pos] = sort( vr(all) );
instead of:
vu = sort( vr(all) );

and note that this isn’t the objective function, it’s just a step in the calculations.


(Michael C. Grant) #2

http://ask.cvxr.com/t/why-isnt-cvx-accepting-my-model-read-this-first/570

You’re simply not using CVX properly. Please stop, until you fully understand the FAQ. In all likelihood, CVX cannot handle the models you are trying to solve.