Thank you for the quick response. I am using the current build 1148.
The output of cvx_version
---------------------------------------------------------------------------
CVX: Software for Disciplined Convex Programming (c)2014 CVX Research
Version 2.2, Build 1148 (62bfcca) Tue Jan 28 00:51:35 2020
---------------------------------------------------------------------------
Installation info:
Path: /home/ubuntu/Documents/MATLAB/cvx
MATLAB version: 9.8 (R2020a)
OS: Linux amd64 version 4.4.0-1106-aws
Java version: 1.8.0_202
Verfying CVX directory contents:
WARNING: The following files/directories are missing:
/home/ubuntu/Documents/MATLAB/cvx/sedumi/.travis.yml
These omissions may prevent CVX from operating properly.
Preferences:
Path: /home/ubuntu/.matlab/cvx_prefs.mat
Installed license:
No license installed.
---------------------------------------------------------------------------
A minimal working example to demonstrate this issue.
>> cvx_solver SDPT3;cvx_save_prefs; % Reset CVX
>> addpath '/home/ubuntu/Documents/MATLAB/gurobi902/linux64/matlab';cvx_setup;
>> cvx_solver Gurobi_2;cvx_save_prefs;cvx_solver;
>> contains(path, 'gurobi') % Returns 1
>> cvx_begin; variable a; minimize(a); cvx_end % Solves this correctly
>> contains(path, 'gurobi') % Returns 0