Closed surmann closed 7 years ago
When I change the optimisation direction via convertToMinimization the value of the optima should change, too. It is difficult to get the information from the output of getGlobalOptimum that I have to multiply $value by -1.
convertToMinimization
getGlobalOptimum
$value
-1
packageVersion("smoof") [1] ‘1.5’ obj.fun = makeAlpine02Function(2) getGlobalOptimum(obj.fun) $value [1] 7.884864 $is.minimum [1] FALSE obj.fun = convertToMinimization(obj.fun) getGlobalOptimum(obj.fun) $value [1] 7.884864 $is.minimum [1] TRUE
packageVersion("smoof")
obj.fun = makeAlpine02Function(2) getGlobalOptimum(obj.fun)
obj.fun = convertToMinimization(obj.fun) getGlobalOptimum(obj.fun)
What do you think?
I think you found an embarrassing bug sir! Thanks for reporting!
Fixed.
When I change the optimisation direction via
convertToMinimization
the value of the optima should change, too. It is difficult to get the information from the output ofgetGlobalOptimum
that I have to multiply$value
by-1
.What do you think?