fix bug in glop found by the scip team

This commit is contained in:
Laurent Perron
2017-07-06 04:06:40 -07:00
parent 743f26b453
commit 49c7e20c37

View File

@@ -1107,10 +1107,10 @@ Status RevisedSimplex::Initialize(const LinearProgram& lp) {
// TODO(user): If the basis is incomplete, we could complete it with
// better slack variables than is done by InitializeFirstBasis() by
// using a partial LU decomposition (see markowitz.h).
dual_edge_norms_.Clear();
dual_pricing_vector_.clear();
if (InitializeFirstBasis(basis_).ok()) {
primal_edge_norms_.Clear();
dual_edge_norms_.Clear();
dual_pricing_vector_.clear();
reduced_costs_.ClearAndRemoveCostShifts();
solve_from_scratch = false;
} else {