We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The example in the README.md uses GenSA but fails with the very new version that will probably end up on CRAN soon:
> library("bbotk") Loading required package: paradox > fun = function(xs) { - (xs[[1]] - 2)^2 - (xs[[2]] + 3)^2 + 10 } # set domain domain = ps( x1 = p_dbl(-10, 10), x2 = p_dbl(-5, 5) ) # set codomain codomain = ps( y = p_dbl(tags = "maximize") ) # create Objective object objective = ObjectiveRFun$new( fun = fun, domain = domain, codomain = codomain, properties = "deterministic" ) # Define termination criterion terminator = trm("evals", n_evals = 10) # create optimization instance instance = OptimInstanceSingleCrit$new( objective = objective, terminator = terminator ) # load optimizer optimizer = opt("gensa") # trigger optimization optimizer$optimize(instance) INFO [13:49:59.346] [bbotk] Starting to optimize 2 parameter(s) with '<OptimizerGenSA>' and '<TerminatorEvals> [n_evals=10, k=0]' Error in GenSA::GenSA(par = NULL, fn = inst$objective_function, lower = inst$search_space$lower, : Trace mat has to be activated to have no improvment stop criteria to work.
the gensa 1.1.11 found here: https://cran.r-project.org/incoming/archive/
The text was updated successfully, but these errors were encountered:
problem is this
bbotk/R/OptimizerGenSA.R
Line 84 in d553069
Sorry, something went wrong.
Thanks. Fixed by #215.
No branches or pull requests
The example in the README.md uses GenSA but fails with the very new version that will probably end up on CRAN soon:
the gensa 1.1.11 found here: https://cran.r-project.org/incoming/archive/
The text was updated successfully, but these errors were encountered: