Hi Mark,
Thank you so much for your response. I was running the same exact code in the same exact version of MATLAB. However, the cvx and Gurobi versions I can’t swear on. I have downloaded the only cvx-Gurobi package for windows 64 I have found online, so that’s the cvx version I have. It had Gurobi version 9 in it. I was getting the following error with that:

So I downloaded the Gurobi version 10. It was the same error. Finally I downloaded Gurobi version 9.1.2 and now I am getting this size error.
However, there is one thing I would like to add. I was having issues with using the previous license as it had a different host and machine name. So I downloaded the limited version and realized that’s not gonna work. So I copied the limited version’s details (host name, id) and pasted it in the old license file. I wanted to download a new academic license but I am getting an “Academic Domain” error message as I am not on campus. I am out of state and unable to do so.
I am also getting an academic error while running the Gurobi command in matlab but the cvx is still able to find the Gurobi as a solver. Below is the installation log if you can have a look at it please:
cd C:\Users\faria\Downloads\cvx-w64
cvx_setup C:\Users\faria\Downloads\cvx-w64\cvx\cvx_license.dat
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: C:\Users\faria\Downloads\cvx-w64\cvx
MATLAB version: 9.6 (R2019a)
OS: Windows 10 amd64 version 10.0
Java version: 1.8.0_181
Verfying CVX directory contents:
WARNING: The following files/directories are missing:
C:\Users\faria\Downloads\cvx-w64\cvx\sedumi.travis.yml
These omissions may prevent CVX from operating properly.
WARNING: The following extra files/directories were found:
C:\Users\faria\Downloads\cvx-w64\cvx\gurobi\w64\gurobi.lic
These files may alter the behavior of CVX in unsupported ways.
Preferences:
Path: C:\Users\faria\AppData\Roaming\MathWorks\MATLAB\cvx_prefs.mat
License host:
Username: faria
Host ID: 00059a3c7a00 (eth1,10.38.130.161)
Installed license:
Also in file: C:\Users\faria\Downloads\cvx-w64\cvx\cvx_license.dat
Also in file: C:\Users\faria\Downloads\cvx_license.dat
Organization: University of North Carolina at Charlotte
Contact: Faria Kamal (fkamal@uncc.edu)
License type: academic
Named user: fkamal, faria
Host ID: 00155d25ab01, 00059a3c7a00
Expiration: 2024-09-12 (365 days remaining)
Status: verified
Setting CVX paths…already set!
Searching for solvers…5 shims found.
6 solvers initialized (* = default):
- Gurobi 9.00 {cvx}\gurobi\w64
Gurobi_2 9.00 C:\gurobi900\win64\matlab
Gurobi_3 9.00 C:\gurobi900\win64\matlab
Mosek 9.1.9 {cvx}\mosek\w64
SDPT3 4.0 {cvx}\sdpt3
SeDuMi 1.3.4 {cvx}\sedumi
1 solver skipped:
GLPK
Could not find a GLPK installation.
Saving updated preferences…done.
Testing with a simple model…done!
To change the default solver, type “cvx_solver <solver_name>”.
To save this change for future sessions, type “cvx_save_prefs”.
Please consult the users’ guide for more information.
cvx_grbgetkey 2ffbc98c-7e6b-11ed-be9e-0242ac120004
CVX/Gurobi license key installer
Contacting the Gurobi Optimization license server…done.
The attempt to retrieve the license key failed with the following error
while trying to verify your academic license eligibility:
info : grbgetkey version 9.0.0, build v9.0.0rc2
info : Contacting Gurobi key server…
error : ERROR 303: Ip: 69.119.234.188 host ool-4577eabc.dyn.optonline.net is not recognized as belonging to an academic domain
info : Is your computer connected to the university network?
info : Your computer must be connected to the university network for the grbgetkey
info : command to work. You can connect your computer either directly or via a VPN
info : that tunnels all traffic through the university network. Once the license is
info : installed, your computer does not need to be connected to the university
info : network. You can repeat this process to get licenses for additional computers.
info : If you are unable to install this license, please contact key@gurobi.com for
info : further assistance.
For information about this error, please consult the Gurobi documentation
http://www.gurobi.com/documentation/5.5/quick-start-guide/node5
Once you have rectified the error, please try again.
Now that the license has been retrieved, please run CVX_SETUP to configure
CVX to use the Gurobi solver with the new license.
cvx_setup
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: C:\Users\faria\Downloads\cvx-w64\cvx
MATLAB version: 9.6 (R2019a)
OS: Windows 10 amd64 version 10.0
Java version: 1.8.0_181
Verfying CVX directory contents:
WARNING: The following files/directories are missing:
C:\Users\faria\Downloads\cvx-w64\cvx\sedumi.travis.yml
These omissions may prevent CVX from operating properly.
WARNING: The following extra files/directories were found:
C:\Users\faria\Downloads\cvx-w64\cvx\gurobi\w64\gurobi.lic
These files may alter the behavior of CVX in unsupported ways.
Preferences:
Path: C:\Users\faria\AppData\Roaming\MathWorks\MATLAB\cvx_prefs.mat
License host:
Username: faria
Host ID: 00059a3c7a00 (eth1,10.38.130.161)
Installed license:
Organization: University of North Carolina at Charlotte
Contact: Faria Kamal (fkamal@uncc.edu)
License type: academic
Named user: fkamal, faria
Host ID: 00155d25ab01, 00059a3c7a00
Expiration: 2024-09-12 (365 days remaining)
Status: verified
Setting CVX paths…already set!
Searching for solvers…5 shims found.
6 solvers initialized (* = default):
- Gurobi 9.00 {cvx}\gurobi\w64
Gurobi_2 9.00 C:\gurobi900\win64\matlab
Gurobi_3 9.00 C:\gurobi900\win64\matlab
Mosek 9.1.9 {cvx}\mosek\w64
SDPT3 4.0 {cvx}\sdpt3
SeDuMi 1.3.4 {cvx}\sedumi
1 solver skipped:
GLPK
Could not find a GLPK installation.
Saving updated preferences…done.
Testing with a simple model…done!
To change the default solver, type “cvx_solver <solver_name>”.
To save this change for future sessions, type “cvx_save_prefs”.
Please consult the users’ guide for more information.
cvx_solver gurobi
cvx_save_prefs
Saving prefs…done.
Once again, thank you so much. I really appreciate your help. I am towards the end of my dissertation and was unable to get a response when I emailed cvx support. Gurobi support was responding until the day before yesterday and now they have stopped replying.
Looking forward to hearing from you soon.