View source: R/METHOD__Minimize.R
minimize | R Documentation |
Minimize (or maximize) an objective function, possibly subjected to inequality constraints, using any of the algorithms available in EmiR.
minimize(algorithm_id, obj_func, parameters, config, constraints = NULL, ...)
algorithm_id |
id of the algorithm to be used. See list_of_algorithms for the list of the available algorithms. |
obj_func |
objective function be minimized/maximized. |
parameters |
list of parameters composing the search space for the objective function.
Parmeters are requested to be objects of class |
config |
an object with the configuration parameters of the chosen algorithm. For each algorithm there is different function for the tuning of its configuration parameter, as reported in the following list:
|
constraints |
list of constraints. Constraints are requested to be objects of
class |
... |
additional options (see MinimizerOpts). |
minimize
returns an object of class OptimizationResults
(see OptimizationResults).
## Not run: results <- minimize(algorithm_id = "BAT", obj_func = ob, config = conf, parameters = list(p1,p2, p3, p4), constraints = list(c1,c2,c3), save_pop_history = TRUE, constrained_method = "BARRIER", constr_init_pop = TRUE, oob_solutions = "RBC", seed = 1) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.