mlr-org / miesmuschel

Flexible Mixed Integer Evolutionary Strategies
Other
15 stars 4 forks source link

Updates for compatibility with bbotk >= 0.5.2 #73

Closed dandls closed 2 years ago

dandls commented 2 years ago

bbotk (>= 0.5.2) is not compatible with the miesmuschel multiobjective_hb branch because bbotk has an idfield now for terminators and optimizers. Without an update, I would run into an error for:

> library("bbotk")
> library("miesmuschel")
> t = trm("gens")
Error in assert_string(id, min.chars = 1L) : 
  argument "id" is missing, with no default

I added an id field to terminators and optimizers, and updated how unit is initialized.