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

Method checkIntegrality

highs/mip/HighsObjectiveFunction.cpp:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void HighsObjectiveFunction::checkIntegrality(double epsilon) {
116 if (numIntegral == (HighsInt)objectiveNonzeros.size()) {
117 if (numIntegral) {
118 objIntScale =
119 HighsIntegers::integralScale(objectiveVals, epsilon, epsilon);
120 if (objIntScale * kHighsTiny > epsilon) objIntScale = 0.0;
121 } else
122 objIntScale = 1.0;
123 }
124}

Callers 1

checkObjIntegralityMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected