When I try to re-install CVX to including solver SCS, The following strange error is reported.
CVX: Software for Disciplined Convex Programming ©2014 CVX Research
Version 3.0beta, Build 1175 (1326ef2) Mon Nov 23 14:29:34 2015
Installation info:
MATLAB version: 9.1 (R2016b)
OS: Windows 8 amd64 version 6.2
Java version: 1.7.0_60
Verfying CVX directory contents:
No missing files.
…
…
…
Saving updated preferences…done.
Testing with a simple model…
UNEXPECTED ERROR: --------------------------------------------
Undefined function ‘vec’ for input arguments of type ‘double’.
Error in cvx_binary_op (line 107)
z = p.funcs{vu(1)}( vec(x), vec(y), varargin{:} );
Error in - (line 27)
z = cvx_binary_op( P, x, y );
Error in cvx_setup (line 261)
minimize( norm(A*x-b,1) );
--------------------------------------------------------------
Please report this error to support, and include entire output of
CVX_SETUP in your support request.
Typing ‘help vec’ in comand window, I get the following information.
Warning: ‘FxvcATsnitliubxvcerp_46wxvcnoitalumislairetaMhcraeseR鐩樻鍚屼簯搴︾櫨E’ exceeds MATLAB’s maximum name length of 63
characters and has been truncated to ‘FxvcATsnitliubxvcerp_46wxvcnoitalumislairetaMhcraeseR鐩樻鍚屼’.
In matlab.internal.language.introspective.hashedDirInfo (line 34)
In matlab.internal.language.introspective.classWrapper.base/getFileMethod (line 51)
In matlab.internal.language.introspective.classWrapper.base/getElement (line 29)
In matlab.internal.language.introspective.classWrapper.rawMCOS/getElement (line 41)
In matlab.internal.language.introspective.classWrapper.base/getClassInformation (line 24)
In matlab.internal.language.introspective.NameResolver/resolveImplicitPath>binaryResolveThroughPackages (line 198)
In matlab.internal.language.introspective.NameResolver/resolveImplicitPath>binaryResolve (line 115)
In matlab.internal.language.introspective.NameResolver/resolveImplicitPath>innerResolveImplicitPath (line 45)
In matlab.internal.language.introspective.NameResolver/resolveImplicitPath (line 23)
In matlab.internal.language.introspective.NameResolver/innerDoResolve (line 13)
In matlab.internal.language.introspective.NameResolver/doResolve (line 31)
In matlab.internal.language.introspective.NameResolver/underqualifiedResolve (line 11)
In matlab.internal.language.introspective.NameResolver/executeResolve (line 15)
In matlab.internal.language.introspective.resolveName (line 20)
In helpUtils.helpProcess/getTopicHelpText (line 12)
In helpUtils.helpProcess/getHelpText (line 3)
In help (line 55)
— help for cvx/vec —
vec CVX implementation of vec
I found there are two functions vec. One is %cvxrootfile%\cvx\functions\vec_\vec.m. Another is %cvxrootfile%\cvx\functions@cvx\vec.m. The former is for cvx objects, while the latter is for numbers.