Cvx cpu usage while "compiling" model before solving


#1

Hi,

I’ve noticed that when cvx is “compiling” the model to the solver it is not using all of my cores. The solver (Mosek) does use them, it’s very noticeable as it spikes the cpu usage. Is there a way to make it use more cpu in that step?

Thanks,
Sebastian


(Michael C. Grant) #2

I’m afraid not. Please understand that CVX is not designed for speed of solving; it is designed for the convenience of the user. And of course it’s limited by what MATLAB can do.


(Erling D.Andersen) #3

To be fair to CVX. It is not common that multiple threads can used during model building. For instance AMPL i.e.

https://groups.google.com/forum/#!topic/ampl/6R4-Z66EJ70

can not do it in parallel.