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

Function activityContributionMax

highs/mip/HighsDomain.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33static double activityContributionMax(double coef, const double& lb,
34 const double& ub) {
35 if (coef < 0) {
36 if (lb == -kHighsInf) return kHighsInf;
37
38 return coef * lb;
39 } else {
40 if (ub == kHighsInf) return kHighsInf;
41
42 return coef * ub;
43 }
44}
45
46static HighsCDouble computeDelta(double val, double oldbound, double newbound,
47 double inf, HighsInt& numinfs) {

Callers 2

computeMaxActivityMethod · 0.85
propagateRowLowerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected