Skip to content

Commit

Permalink
Fixes #1070 dual fails on list of equalities
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlofberg committed Jan 15, 2022
1 parent 88f7236 commit 1211abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/@lmi/dual.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
end

if nlmi>1
if ~all(is(X,'elementwise'))
if ~(all(is(X,'elementwise')) || all(is(X,'equality')))
error('Dual not applicable on list of constraints. Use dual(F(index)) or dual(F(''tag''))')
end
end
Expand Down

0 comments on commit 1211abd

Please sign in to comment.