Usage

Arguments

Details

mxOption is used to set, clear, or query an option (given in the ‘key’ argument)
in the back-end optimizer. Valid option keys are listed below.

Use value = NULL to remove an existing option. Leaving value blank will return
the current value of the option specified by ‘key’.

To reset all options to their default values, use ‘reset = TRUE’.
When reset = TRUE, ‘key’ and ‘value’ are ignored.

If the ‘model’ argument is set to NULL, the default optimizer option (i.e
those applying to all models by default) will be set.

To see the defaults, use getOption('mxOptions').

Before the model is submitted to the back-end, all keys and values are converted into
strings using the as.character function.

The maximum number of major iterations (the option “Major iterations”)
for optimization for NPSOL can be specified either by using a
numeric value (such as 50, 1000, etc) or by specifying a user-defined function.
The user-defined function should accept two arguments as input, the number of
parameters and the number of constraints, and return a numeric value as output.

OpenMx options

Number of Threads

i

the number of processor cores to use. Use detectCores()
to find how many are available.