commit 9734f4815fda152a20491a617818badb631adbf6 Author: Chris Matrakidis Date: Sat Jan 14 16:24:45 2017 +0200 use schur complement update in pcost calculation diff --git a/src/glpios09.c b/src/glpios09.c index 727761c..255e681 100644 --- a/src/glpios09.c +++ b/src/glpios09.c @@ -447,12 +447,19 @@ static double eval_degrad(glp_tree *T, int j, double bnd) double degrad; /* prepare lp */ if (lp == NULL) - { /* the current basis must be optimal */ + { glp_bfcp bfcp; + /* the current basis must be optimal */ xassert(glp_get_status(P) == GLP_OPT); /* create a copy of mip */ lp = glp_create_prob(); glp_copy_prob(lp, P, 0); csa->work = lp; + glp_get_bfcp(lp, &bfcp); + if (bfcp.type & GLP_BF_FT) + { bfcp.type &= ~GLP_BF_FT; + bfcp.type |= GLP_BF_BG; + } + glp_set_bfcp(lp, &bfcp); /* factorize and store */ glp_factorize(lp); csa->bfd = bfd_create_it();