According to your suggestion, firstly, I should start the
OptServerLight.
Then, replace 'port' with the number '10413' in cvx_solver_settings('MSK_SPAR_REMOTE_OPTSERVER_HOST', 'http://host:port')
Finally, run the code directly.
My solver setting of CVX is as follows:
cvx_solver mosek
cvx_solver_settings('MSK_SPAR_REMOTE_OPTSERVER_HOST', '
http://host:
10413 ')
cvx_solver_settings('MSK_IPAR_NUM_THREADS', 1)
However, the code cannot run correctly.