diff --git a/modules/global/presolve_downforce.m b/modules/global/presolve_downforce.m index 2ab42c53..c51b101a 100644 --- a/modules/global/presolve_downforce.m +++ b/modules/global/presolve_downforce.m @@ -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) diff --git a/modules/global/presolve_upforce.m b/modules/global/presolve_upforce.m index 001db0e0..b4854f68 100644 --- a/modules/global/presolve_upforce.m +++ b/modules/global/presolve_upforce.m @@ -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)