Closed mb706 closed 2 years ago
This is because OptimInstance$clear() calls Progressor$new(), but initializing the progressor needs arguments. The progressor (if not NULL) may need to have its own clear() function? Otherwise maybe reset it to NULL.
OptimInstance$clear()
Progressor$new()
NULL
clear()
testoi = OptimInstanceSingleCrit$new(ObjectiveRFun$new(function(xs) xs, domain = ps(x = p_dbl()), codomain = ps(y = p_dbl(tags = "minimize"))), terminator = TerminatorNone$new()) testoi$clear() #> Error in .__Progressor__initialize(self = self, private = private, super = super, : #> argument "progressor" is missing, with no default #> Environment: #> 1: testoi$clear() #> 2: .__OptimInstance__clear(self = self, private = private, super = super) #> 3: Progressor$new() #> 4: initialize(...) #> 5: .__Progressor__initialize(self = self, private = private, super = super, pr
Thanks for reporting. Fixed by #176.
This is because
OptimInstance$clear()
callsProgressor$new()
, but initializing the progressor needs arguments. The progressor (if notNULL
) may need to have its ownclear()
function? Otherwise maybe reset it toNULL
.