Hi Mark and Michal,
I can successfully dumped file for some models, but not every model. And I get the following error information.
Error using cell2struct
Number of field names must match number of fields in new structure.
Error in cvx_run_solver (line 68)
_ dstruct = cell2struct( [ inputs, varargout, output ], [ inp_names, otp_names, ‘output’ ], 2 ); %#ok_
Error in cvx_mosek
Error in cvxprob/solve (line 429)
_ [ x, status, tprec, iters ] = shim.solve( At, b, c, cones, quiet, prec, solv.settings, eargs{:} );_
Error in cvx_end (line 88)
_ solve( prob );_
Error in distr_ADMM_8500_3depth_VirtualMeasTest (line 1740)
_ cvx_end_
Someone posted this problem on 2016, but it has not been solved yet. I still can get dumped file with only command, prob, param. When I dumped the file successfully in the other models, I can get prob, param,rr, res, output. What’s more, I didn’t type “cvx_begin quiet”, but I can’t get screen output.
When I comment “cvx_solver_settings( ‘dumpfile’, ‘filename’)”, cvx and MOSEK work properly. I don’t know why dumping file affect cvx and MOSEK. Is it possible that cvx dump file before screening out the results? I guess something is wrong when mosek return the solution to cvx or when cvx output the task file.
I feed the not successfully dumped file to MOSEK by [r,res]=mosekopt(Md.command,Md.prob,Md.param). I get matrix variable by “V(id)=res.sol.itr.barx”. From what I read, the lower triangular of matrix variables are stacked column-by-column into an array. The Matrix variable V here is the same as the matrix variable from cvx when commenting “cvx_solver_settings( ‘dumpfile’, ‘filename’)”. But once the error appears, the code will stop, and I can’t run the following iterations.
How can I solve the problem?
Thanks,
Jianqiao Huang