minimize {EmiR} | R Documentation |
Minimize an Objective Function
Description
Minimize (or maximize) an objective function, possibly subjected to inequality constraints, using any of the algorithms available in EmiR.
Usage
minimize(algorithm_id, obj_func, parameters, config, constraints = NULL, ...)
Arguments
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). |
Value
minimize
returns an object of class OptimizationResults
(see OptimizationResults).
Examples
## 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)