From 0452be55119375eb92ace47e4ef431695882c5b2 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 7 Jun 2007 21:52:27 +0200 Subject: [PATCH] basis_reduction_cdd.cc: get correct dual solution in case of equalities --- basis_reduction_cdd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis_reduction_cdd.cc b/basis_reduction_cdd.cc index 64ca5bd..a461098 100644 --- a/basis_reduction_cdd.cc +++ b/basis_reduction_cdd.cc @@ -137,7 +137,7 @@ void CDD_LP::get_alpha(int row, mytype *alpha) if (lp->nbindex[j+1] == row+1) { dd_set(*alpha, lp->dsol[j]); break; - } else if (lp->nbindex[j+1] == row+neq+1) { + } else if (lp->nbindex[j+1] == row+neq+2*P->NbEq+1) { dd_neg(*alpha, lp->dsol[j]); break; } -- 2.11.4.GIT