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

Method cleanupFixed

highs/mip/HighsCliqueTable.cpp:1829–1845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1827}
1828
1829void HighsCliqueTable::cleanupFixed(HighsDomain& globaldom) {
1830 HighsInt numcol = globaldom.col_upper_.size();
1831 HighsInt oldnfixings = nfixings;
1832 for (HighsInt i = 0; i != numcol; ++i) {
1833 if (colDeleted[i] || !globaldom.isFixed(i)) continue;
1834 if (globaldom.col_lower_[i] != 1.0 && globaldom.col_lower_[i] != 0.0)
1835 continue;
1836
1837 HighsInt fixval = static_cast<HighsInt>(globaldom.col_lower_[i]);
1838 CliqueVar v(i, 1 - fixval);
1839
1840 vertexInfeasible(globaldom, v.col, v.val);
1841 if (globaldom.infeasible()) return;
1842 }
1843
1844 if (nfixings != oldnfixings) propagateAndCleanup(globaldom);
1845}
1846
1847HighsInt HighsCliqueTable::getNumImplications(HighsInt col) const {
1848 // first count all cliques as one implication, so that cliques of size two

Callers 4

runMethod · 0.80
separationRoundMethod · 0.80
prepareProbingMethod · 0.80
finaliseProbingMethod · 0.80

Calls 3

isFixedMethod · 0.80
infeasibleMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected