glop: update

This commit is contained in:
Corentin Le Molgat
2023-11-21 11:56:52 +01:00
parent c8c429b2a8
commit bd63e8a355
2 changed files with 5 additions and 0 deletions

View File

@@ -177,6 +177,7 @@ ProblemStatus LPSolver::SolveWithTimeLimit(const LinearProgram& lp,
SOLVER_LOG(&logger_, "Initial problem: ", lp.GetDimensionString());
SOLVER_LOG(&logger_, "Objective stats: ", lp.GetObjectiveStatsString());
SOLVER_LOG(&logger_, "Bounds stats: ", lp.GetBoundsStatsString());
SOLVER_LOG(&logger_, "Parameters: ", parameters_.ShortDebugString());
}
// Check some preconditions.

View File

@@ -532,6 +532,10 @@ void PrimalPrices::UpdateBeforeBasisPivot(ColIndex entering_col,
// given by the update_row.
UpdateEnteringCandidates</*from_clean_state=*/false>(
update_row->GetNonZeroPositions());
// This should be redundant with the call above, except in degenerate
// cases where the update_row has a zero position on the entering col!
prices_.Remove(entering_col);
}
void PrimalPrices::RecomputePriceAt(ColIndex col) {