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

Method doubletonEquation

highs/presolve/HighsPostsolveStack.h:349–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347
348 template <typename ColStorageFormat>
349 void doubletonEquation(HighsInt row, HighsInt colSubst, HighsInt col,
350 double coefSubst, double coef, double rhs,
351 double substLower, double substUpper, double substCost,
352 bool lowerTightened, bool upperTightened,
353 RowType rowType,
354 const HighsMatrixSlice<ColStorageFormat>& colVec) {
355 colValues.clear();
356 for (const HighsSliceNonzero& colVal : colVec)
357 colValues.emplace_back(origRowIndex[colVal.index()], colVal.value());
358
359 reductionValues.push(DoubletonEquation{
360 coef, coefSubst, rhs, substLower, substUpper, substCost,
361 row == -1 ? -1 : origRowIndex[row], origColIndex[colSubst],
362 origColIndex[col], lowerTightened, upperTightened, rowType});
363 reductionValues.push(colValues);
364 reductionAdded(ReductionType::kDoubletonEquation);
365 }
366
367 template <typename RowStorageFormat>
368 void equalityRowAddition(HighsInt row, HighsInt addedEqRow, double eqRowScale,

Callers 4

doubletonEqMethod · 0.80
rowPresolveMethod · 0.80
dualFixingMethod · 0.80

Calls 4

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

Tested by

no test coverage detected