From ea0ff80254acc43e852fc782b5acab3951f9df7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20L=C3=B6fberg?= Date: Sat, 24 Aug 2024 17:33:38 +0200 Subject: [PATCH] Presolve bug fixed --- modules/global/presolve_downforce.m | 2 +- modules/global/presolve_upforce.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)