Learn R Programming

umx (version 1.4.0)

umx_set_optimizer: umx_set_optimizer

Description

Set the optimizer in OpenMx

Usage

umx_set_optimizer(opt = NA, model = NULL)

Arguments

opt
default (NA) returns current value. Current alternatives are "NPSOL" "SLSQP" and "CSOLNP".
model
A model for which to set the optimizer. Default (NULL) sets the optimizer globally.

Value

-

References

- http://tbates.github.io, https://github.com/tbates/umx

See Also

Other Get and set: umx_get_checkpoint, umx_set_auto_plot, umx_set_auto_run, umx_set_checkpoint, umx_set_condensed_slots, umx_set_cores, umx_set_plot_format, umx_set_table_format

Examples

Run this code
library(umx)
old = umx_set_optimizer() # get the existing state
umx_set_optimizer("SLSQP") # update globally
umx_set_optimizer(old) # set back

Run the code above in your browser using DataLab