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 Parameter (see parameter).

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:

  • config_abc – configuration function for the Artificial Bee Colony Algorithm.

  • config_bat – configuration function for the Bat Algorithm.

  • config_cs – configuration function for the Cuckoo Search Algorithm.

  • config_ga – configuration function for the Genetic Algorithm.

  • config_gsa – configuration function for the Gravitational Search Algorithm.

  • config_gwo – configuration function for the Grey Wolf Optimizer Algorithm.

  • config_hs – configuration function for the Harmony Search Algorithm.

  • config_ihs – configuration function for the Improved Harmony Search Algorithm.

  • config_mfo – configuration function for the Moth-flame Optimization Algorithm.

  • config_ps – configuration function for the Particle Swarm Algorithm.

  • config_sa – configuration function for the Simulated Annealing algorithm.

  • config_woa – configuration function for the Whale Optimization Algorithm.

constraints

list of constraints. Constraints are requested to be objects of class Constraint (see constraint).

...

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)



[Package EmiR version 1.0.4 Index]