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

Method checkCut

highs/mip/HighsDebugSol.cpp:167–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void HighsDebugSol::checkCut(const HighsInt* Rindex, const double* Rvalue,
168 HighsInt Rlen, double rhs) {
169 if (!debugSolActive) return;
170
171 HighsCDouble violation = -rhs;
172
173 for (HighsInt i = 0; i != Rlen; ++i)
174 violation += debugSolution[Rindex[i]] * Rvalue[i];
175
176 assert(violation <= mipsolver->mipdata_->feastol);
177}
178
179void HighsDebugSol::checkRowAggregation(const HighsLp& lp,
180 const HighsInt* Rindex,

Callers 9

computeDualProofMethod · 0.45
storeDualInfProofMethod · 0.45
addCutMethod · 0.45
generateCutMethod · 0.45
generateConflictMethod · 0.45
finalizeAndAddCutMethod · 0.45
addInfeasibleConflictMethod · 0.45
evaluateRootNodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected