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

Method registerDomain

highs/mip/HighsDebugSol.cpp:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void HighsDebugSol::registerDomain(const HighsDomain& domain) {
112 conflictingBounds.emplace(&domain, std::multiset<HighsDomainChange>());
113
114 if (!debugSolActive) return;
115
116 for (HighsInt i = 0; i != mipsolver->numCol(); ++i) {
117 assert(domain.col_lower_[i] <=
118 debugSolution[i] + mipsolver->mipdata_->feastol);
119 assert(domain.col_upper_[i] >=
120 debugSolution[i] - mipsolver->mipdata_->feastol);
121 }
122}
123
124void HighsDebugSol::newIncumbentFound() {
125 if (debugSolActive && debugSolObjective > mipsolver->mipdata_->upper_limit) {

Callers 2

runMethod · 0.45
runSetupMethod · 0.45

Calls 1

numColMethod · 0.80

Tested by

no test coverage detected