Skip to content

Commit

Permalink
use API functions instead of accessing fields
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Nov 29, 2024
1 parent a6cd733 commit fe9fb94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/branchandbound.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ end

function _monotonicity_check(f::Function, X::Interval, dfX::Interval)
if inf(dfX) >= 0 || sup(dfX) <= 0 # monotone function, evaluate at extrema
lo = interval(X.lo)
hi = interval(X.hi)
lo = interval(inf(X))
hi = interval(sup(X))
return hull(f(lo), f(hi)), true
end

Expand Down

0 comments on commit fe9fb94

Please sign in to comment.