R: Convert a numeric or character vector into an optimizer...

as.statusCode {OpenMx} | R Documentation

## Convert a numeric or character vector into an optimizer status code factor

### Description

- 0,‘OK’: Optimization succeeded

- 1,‘OK/green’: Optimization succeeded, but the sequence of iterates has not yet converged. NPSOL was terminated because no further improvement could be made in the merit function (Mx status GREEN)

- 2,‘infeasible linear constraint’: The linear constraints and bounds could not be satisfied. The problem has no feasible solution.

- 3,‘infeasible non-linear constraint’: The nonlinear constraints and bounds could not be satisfied. The problem may have no feasible solution.

- 4,‘iteration limit’: The major iteration limit was reached (Mx status BLUE).

- 5,‘not convex’: The Hessian at the solution does not appear to be convex (Mx status RED).

- 6,‘nonzero gradient’: The model does not satisfy the first-order optimality conditions to the required accuracy, and no improved point for the merit function could be found during the final linesearch (Mx status RED)

- 7,‘bad deriv’: The function derivates returned by funcon or funobj seem incorrect.

- 9,‘internal error’: An input parameter was invalid

- 10,‘infeasible start’: Starting values were infeasible.

### Usage

    as.statusCode(code)

### Arguments

`code` | a character or numeric vector of optimizer status code

### See Also

`mxBootstrap` `summary.MxModel`

[Package OpenMx version 2.9.6 Index]