Wikunia / Bonobo.jl

A general branch and bound framework
https://wikunia.github.io/Bonobo.jl/dev
MIT License
31 stars 2 forks source link

default to Inf #23

Closed matbesancon closed 2 years ago

matbesancon commented 2 years ago

The default incumbent and lb should be set to + and - Inf respectively which make more sense as trivial values than NaN which require an additional check.

Otherwise

tree.incumbent >= val

is always false on the first iteration

Wikunia commented 2 years ago

Thanks a lot!