Hi, in my optimization model, constraints require lots of FOR loops to build. Is it possible to build them outside the cvx to speedup setup? and how?
Thank you in advance.
Build model outside of cvx
Maybe if you show us the model you are trying to build, someone will have suggestions fro speeding up the model building process, one way or another.
Read the tricks at How to vectorize most constraint loops in CVX and make use of sum() function,it might work out if ismember() has its vectorized version.
sorry for my mistake. thanks Mark, that is what I mean.
I think @jackfsuia meant to specifically link this thread How to vectorize most constraint loops in CVX .

