Skip to content

Commit

Permalink
Fixes #1461 yalmip2scs wrong check on zero dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlofberg committed Feb 3, 2025
1 parent a5cab36 commit 4f7cf42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solvers/yalmip2scs.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
end

% Remove cones.s if ==0 to avoid SCS fatal error if BLAS/LAPACK is not installed
if isfield(cones, 's') && cones.s == 0
if isfield(cones, 's') && all(cones.s == 0)
cones = rmfield(cones, 's');
end

Expand Down

0 comments on commit 4f7cf42

Please sign in to comment.