get_control: Format the optimization method controls

Description Usage Arguments Value Examples

View source: R/controls.R

Description

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

Usage

1
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 (pso), 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.

Value

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

Examples

1
2
3
4
5
6
7
8
# Select method
method = "GenSA"

# Select control to modify and store in a list
control = list(maxit = 100)

# Get all controls for the method specify
MaxMC:::get_control(method = method, control = control)

julienneves/MMC documentation built on May 20, 2019, 4:22 a.m.