Help with error

I am new into CVX and I have acode is ready worked using CVX but when I do run it this error came up

Calling SDPT3 4.0: 5574 variables, 3762 equality constraints


Status: Error
Optimal value (cvx_optval): NaN

Error using cellfun
Input #2 expected to be a cell array, was double instead.

Error in cvx_id (line 2)
y = cellfun( @cvx_id, x );

Error in cvxprob/pop (line 109)
s2 = evalin( ‘caller’, sprintf( ‘cellfun( @cvx_id, { %s } )’, s2(1:end-2) ) );

Error in cvx_end (line 130)
evalin( ‘caller’, ‘pop( cvx_problem, ‘‘value’’ )’ );

Error in Main (line 71)
cvx_end

What does
cvx_version
show?

If it is CVX 3.0beta, follow the advice at CVX 3.0beta is riddled with bugs, which are very unlikely to ever be fixed. Use the latest build of CVX 2.2

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

which -all cellfun shows that:
built-in (C:\Program Files\MATLAB\R2023b\toolbox\matlab\datatypes\applyfuns\cellfun)
C:\Program Files\MATLAB\R2023b\toolbox\matlab\bigdata@tall\cellfun.m % tall method
C:\Program Files\MATLAB\R2023b\toolbox\parallel\parallel@codistributed\cellfun.m % codistributed method

Try a new MATLAB session. Try rebooting. beyond that, I don’t know what to do.

after rebooting, a new error came up now:

Calling SDPT3 4.0: 5574 variables, 3762 equality constraints


Status: Error
Optimal value (cvx_optval): NaN

Error using cvx_sdpt3>solve
SDTP3 does not support integer variables.

Error in cvxprob/solve (line 435)
[ x, status, tprec, iters ] = shim.solve( At, b, c, cones, quiet, prec, solv.settings, eargs{:} );

Error in cvx_end (line 88)
solve( prob );

Error in Main (line 71)
cvx_end

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).

See Solvers — CVX Users' Guide .