Skip to content

Commit

Permalink
Defensive check in case propagator is called by non-integer framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Löfberg committed Jun 13, 2024
1 parent 747679c commit 4fd9b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/global/update_integer_bounds.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function model = update_integer_bounds(model);
function model = update_integer_bounds(model)

if ~isempty(model.implied_integers)
if isfield(model,'implied_integers') && ~isempty(model.implied_integers)
I = model.implied_integers;
% Clean up things like 0.00001 <= x <= 0.999999 to 0 <= x <= 1
% however, don't kill equalities 1 <= x <= 1
Expand Down

0 comments on commit 4fd9b71

Please sign in to comment.