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

Method computeIntermediateMatrix

highs/presolve/HPresolve.cpp:6457–6474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6455}
6456
6457void HPresolve::computeIntermediateMatrix(std::vector<HighsInt>& flagRow,
6458 std::vector<HighsInt>& flagCol,
6459 size_t& numreductions) {
6460 shrinkProblemEnabled = false;
6461 HighsPostsolveStack stack;
6462 stack.initializeIndexMaps(flagRow.size(), flagCol.size());
6463 setReductionLimit(numreductions);
6464 presolve(stack);
6465 numreductions = stack.numReductions();
6466
6467 toCSC(model->a_matrix_.value_, model->a_matrix_.index_,
6468 model->a_matrix_.start_);
6469
6470 for (HighsInt i = 0; i != model->num_row_; ++i)
6471 flagRow[i] = 1 - rowDeleted[i];
6472 for (HighsInt i = 0; i != model->num_col_; ++i)
6473 flagCol[i] = 1 - colDeleted[i];
6474}
6475
6476HPresolve::Result HPresolve::removeDependentEquations(
6477 HighsPostsolveStack& postsolve_stack) {

Callers 1

debugMethod · 0.80

Calls 3

initializeIndexMapsMethod · 0.80
numReductionsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected