In which situations is cvx_optval nan

Uncategorized
Feb 28, 2022
B

Why sometimes the cvx_optval is equal to nan, but other variables have values?

M

Please post a complete reproducible problem, including all solver and CVX output, and disp of relevant variables. I am not aware of any situation in which cvx_optval is NaN, but variables have non-NaN values (although I am not saying it definitely can’t happen). Are you using CVX 2.2?