get_control function

Format the optimization method controls

Format the optimization method controls

This function provides a way to merge the user specified controls for the optimization methods with their respective default controls.

get_control(method, control = list())

Arguments

  • method: A character string. Type of algorithm to be used for global optimization. The four available methods are simulated annealing (GenSA), particle swarm (psoptim), genetic algorithm (GA), and grid search (gridSearch) Default is GenSA,
  • control: A list. Arguments to be used to control the behavior of the algorithm chosen in method. See controls section for more details.

Returns

A list. Arguments to be used to control the behavior of the algorithm chosen in method.