ne"><div class="highlight"><pre>cvx_solver gurobi
cvx_save_prefs
</pre></div>
</div>
<p>The first command changes the active solver to Gurobi, but only for the current session.
The second line saves that change to CVX&#8217;s preference file, so that Gurobi will be
selected as the active solver every time you start MATLAB.</p>
<p>If multiple versions of Gurobi were found on the MATLAB path, then CVX will append a
numeral to the end of the solver name, allowing you to switch between them; e.g.,</p>
<div clas