Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

umx_set_optimizer

Set the optimizer in OpenMx


Description

umx_set_optimizer provides an easy way to get and set the default optimizer.

Usage

umx_set_optimizer(opt = NA, model = NULL, silent = FALSE)

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.

silent

If TRUE, no message will be printed.

Value

  • current optimizer if nothing requested to be set.

References

See Also

Examples

library(umx)
umx_set_optimizer() # print the existing state
old = umx_set_optimizer(silent = TRUE) # store the existing state
umx_set_optimizer("SLSQP") # update globally
umx_set_optimizer(old) # set back

umx

Structural Equation Modeling and Twin Modeling in R

v4.10.10
GPL-3
Authors
Timothy C. Bates [aut, cre] (<https://orcid.org/0000-0002-1153-9007>), Gillespie Nathan [wit], Michael Zakharin [wit], Brenton Wiernik [ctb], Joshua N. Pritikin [ctb], Michael C. Neale [ctb], Hermine Maes [ctb]
Initial release
2021-11-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.