mpopt2nleqopt

mpopt2nleqopt(mpopt, model, alg)

mpopt2nleqopt() - Create/modify nleqs_master() options struct from mpopt.

NLEQOPT = MPOPT2NLEQOPT(MPOPT, MODEL)
NLEQOPT = MPOPT2NLEQOPT(MPOPT, MODEL, ALG)

Uses a MATPOWER options struct, MPOPT, to create or modify an
NLEQS_MASTER options struct.

Inputs (default values in parentheses):
    MPOPT : MATPOWER options struct
    MODEL ('NLEQ') : (optional) one of the following model types, required
            for selection of solver in case ALG is 'DEFAULT' (solver
            precedence for each model type list in parentheses):
        'NLEQ' - nonlinear equation with all continuous variables
                (NEWTON, FSOLVE)
    ALG ('pf.alg') : (optional) 'pf.alg' or any valid value of
            OPT.alg for NLEQS_MASTER. The first option indicates that
            it should be taken from MPOPT.pf.alg.

Output:
    NLEQOPT : an options struct for use by NLEQS_MASTER and friends

See also nleqs_master(), mpoption().