Skip to content

Commit

Permalink
Fies #1077 Don't crash on trivially infeasible SOS
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlofberg committed Feb 14, 2022
1 parent 1211abd commit 18fb262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sos/solvesos.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

[F,obj,m,everything,modeltype] = compilesos(F,obj,options,params,candidateMonomials);

if isempty(everything)
if isempty(everything) || ~isfield(everything,'p')
% compilesos has detected trivially infeasible
sol.yalmipversion = yalmip('version');
sol.matlabversion = version;
Expand Down

0 comments on commit 18fb262

Please sign in to comment.