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

Method updateThresholdUbChange

highs/mip/HighsDomain.cpp:1515–1528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1513}
1514
1515void HighsDomain::updateThresholdUbChange(HighsInt col, double newbound,
1516 double val, double& threshold) const {
1517 if (newbound != col_lower_[col]) {
1518 double thresholdNew =
1519 std::fabs(val) * boundRange(newbound, col_lower_[col],
1520 mipsolver->mipdata_->feastol,
1521 variableType(col));
1522
1523 // the new threshold is now the maximum of the new threshold and the current
1524 // one
1525 threshold =
1526 std::max({threshold, thresholdNew, mipsolver->mipdata_->feastol});
1527 }
1528}
1529
1530void HighsDomain::updateActivityLbChange(HighsInt col, double oldbound,
1531 double newbound) {

Callers 1

Calls 1

boundRangeFunction · 0.85

Tested by

no test coverage detected