Skip to content

Commit

Permalink
Fixes #612 strange error/warning in uncertain model with linear equality
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlofberg committed May 17, 2024
1 parent 461dd81 commit 4cd4f5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/robust/filter_eliminatation.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
if any(sum(mt(getvariables(Fi),wvars),2)>order)
[BilinearizeringConstraints,failure] = deriveBilinearizing(Fi,w,order);
if failure
error('Cannot get rid of nonlinear uncertainty in uncertain constraint')
if is(F_xw(i),'equality')
disp('<a href="https://yalmip.github.io/equalityinuncertainty">You might want to read this article to debug.</a>')
error('Cannot get rid of uncertainty in uncertain equality.')
else
error('Cannot get rid of uncertainty in uncertain constraint')
end
else
% remove all the violating terms from the expression
F_xw(i) = clear_poly_dep(F_xw(i),w,order);
Expand Down

0 comments on commit 4cd4f5d

Please sign in to comment.