Struct contents reference from a non-struct array object. Error in cvx_global (line 76) osolvers = cvx___.solvers.list;


#1

Any ideas why this might occur? After I installed Gurobi, CVX stopped working. (I never touched any CVX commands.)

Example error code.

cvx_begin
variable x
minimize(x)
subject to
x>=1
cvx_end
Warning: Your CVX preferences file seems out of date; default preferences will be used.
In cvx_version>cvx_load_prefs (line 393)
In cvx_version (line 130)
In cvx_global (line 17)
In cvxprob (line 4)
In cvx_begin (line 41)
Struct contents reference from a non-struct array object.

Error in cvx_global (line 76)
osolvers = cvx___.solvers.list;

Error in cvxprob (line 4)
cvx_global

Error in cvx_begin (line 41)
assignin( ‘caller’, ‘cvx_problem’, cvxprob( varargin{:} ) );

When I call cvx_solver, I get the following message:
Struct contents reference from a non-struct array object.

Error in cvx_solver (line 63)
snames = solvers.names;


(Michael C. Grant) #2

I’m afraid I have not seen this before. I would recommend restarting MATLAB; and if that does not work, removing and reinstalling CVX altogether.