Skip to content

Commit

Permalink
Presolve bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Löfberg committed Aug 24, 2024
1 parent 06f58fc commit ea0ff80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/global/presolve_downforce.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
% Search for y >= x1 + x2 +...
candidates = find(ff(:,1)==0);
for i = 1:length(candidates)
row = p.F_struc(candidates(i),2:end);
row = ff(candidates(i),2:end);
xx = find(row==-1);
yy = find(row==1);
if length(yy)==1 && length(xx)+1==nnz(row)
Expand Down
2 changes: 1 addition & 1 deletion modules/global/presolve_upforce.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
% Search for y <= x1 + x2 +...
candidates = find(ff(:,1)==0);
for i = 1:length(candidates)
row = p.F_struc(candidates(i),2:end);
row = ff(candidates(i),2:end);
xx = find(row==1);
yy = find(row==-1);
if length(yy)==1 && length(xx)+1==nnz(row)
Expand Down

0 comments on commit ea0ff80

Please sign in to comment.