mpopt2pneopt

mpopt2pneopt(mpopt, model, alg)

mpopt2pneopt() Create/modify pnes_master() options struct from mpopt.

PNEOPT = MPOPT2PNEOPT(MPOPT, MODEL)
PNEOPT = MPOPT2PNEOPT(MPOPT, MODEL, ALG)

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

Inputs (default values in parentheses):
    MPOPT : MATPOWER options struct
    MODEL ('PNE') : (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):
        'PNE' - nonlinear equation with all continuous variables
                (NEWTON, FSOLVE)
    ALG ('DEFAULT') : (optional) any valid value of OPT.alg for
            PNES_MASTER.

Output:
    PNEOPT : an options struct for use by PNES_MASTER and friends

See also pnes_master(), mpoption().