MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / removedFixedCol

Method removedFixedCol

highs/presolve/HighsPostsolveStack.h:444–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442
443 template <typename ColStorageFormat>
444 void removedFixedCol(HighsInt col, double fixValue, double colCost,
445 const HighsMatrixSlice<ColStorageFormat>& colVec) {
446 assert(std::isfinite(fixValue));
447 colValues.clear();
448 for (const HighsSliceNonzero& colVal : colVec)
449 colValues.emplace_back(origRowIndex[colVal.index()], colVal.value());
450
451 reductionValues.push(FixedCol{fixValue, colCost, origColIndex[col],
452 HighsBasisStatus::kNonbasic});
453 reductionValues.push(colValues);
454 reductionAdded(ReductionType::kFixedCol);
455 }
456
457 void redundantRow(HighsInt row) {
458 reductionValues.push(RedundantRow{origRowIndex[row]});

Callers 4

finaliseProbingMethod · 0.80
singletonRowMethod · 0.80
rowPresolveMethod · 0.80
colPresolveMethod · 0.80

Calls 4

clearMethod · 0.45
indexMethod · 0.45
valueMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected