Skip to contents

Set the optimization parameters in a UBaymodel object.

Usage

setOptim(model, method = "GA", popsize, maxiter)

Arguments

model

a UBaymodel object created using build.UBaymodel

method

the method to evaluate the posterior distribution; currently only"GA" (genetic algorithm) is supported

popsize

size of the initial population of the genetic algorithm for model optimization

maxiter

maximum number of iterations of the genetic algorithm for model optimization

Value

a UBaymodel object with updated optimization parameters

See also

build.UBaymodel