Set the optimization parameters in a UBaymodel object.
setOptim(model, method = "GA", popsize, maxiter)a UBaymodel object with updated optimization parameters
a UBaymodel object created using build.UBaymodel
the method to evaluate the posterior distribution; currently only'GA' (genetic algorithm) is supported
size of the initial population of the genetic algorithm for model optimization
maximum number of iterations of the genetic algorithm for model optimization
build.UBaymodel