luinardi / hypermapper

Black-box Optimizer based on Bayesian Optimization
MIT License
154 stars 26 forks source link

Changing lines to avoid getting error "division by zero" #55

Closed rzahra closed 3 years ago

rzahra commented 3 years ago

I've changed the lines that tmp_objective_limits[objective][1] - tmp_objective_limits[objective][0] are calculated.

rzahra commented 3 years ago

Assuming difference_obj = 1 where tmp_objective_limits[objective][1] - tmp_objective_limits[objective][0] == 0 when divide on zero happens