If you are already running CVX 2.2, try reinstalling CVX in a fresh MATLAB session.
If that doesn’t work, what is the output from which -all cellfun
Maybe there you have another `cellfun which is being called which is incompatible with what CVX expects.
The cvx version is 2.2 and refresh it as suggested. I also have copied the cvx installation files to the MATLAB codes directory and refreshed it again, yet the issue is still the same
cvx_version shows that:
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\alhartomi\Documents\MATLAB\MATLAB codes-TCCN\groubi\cvx
MATLAB version: 23.2 (R2023b)
OS: Windows 10 amd64 version 10.0
Java version: 1.8.0_202
Verfying CVX directory contents:
WARNING: The following files/directories are missing:
C:\Users\alhartomi\Documents\MATLAB\MATLAB codes-TCCN\groubi\cvx\sedumi.travis.yml
These omissions may prevent CVX from operating properly.
Preferences:
Path: C:\Users\alhartomi\AppData\Roaming\MathWorks\MATLAB\cvx_prefs.mat
License host:
Username: alhartomi
Host ID: 3464a93117d5 (eth3,10.173.203.154)
Installed license:
Organization: University of ---------
Contact: alhartomi (my email)
License type: academic
Named user: alhartomi
Host ID: 3464a93117d5
Expiration: 2024-12-06 (358 days remaining)
Status: verified
The error is exactly what it says. If your problem has integer or binary variables, the only solvers which can be used under CVX are Mosek and Gurobi (also GLPK for MILP, but “Support for GLPK should be considered experimental.” and I’m not sure whether GLPK actually works properly under CVX). If the problem has SDP constraints and integer or binary variables, there are no solver options under CVX (but there are under YALMIP).