mpopt2nlpopt

mpopt2nlpopt(mpopt, model, alg)

mpopt2nlpopt() - Create/modify nlps_master() options struct from mpopt.

NLPOPT = MPOPT2NLPOPT(MPOPT, MODEL)
NLPOPT = MPOPT2NLPOPT(MPOPT, MODEL, ALG)

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

Inputs (default values in parentheses):
    MPOPT : MATPOWER options struct
    MODEL ('NLP') : (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):
        'NLP'   - nonlinear program with all continuous variables
                (MIPS, FMINCON, IPOPT, Artelys Knitro)
        'MINLP' - NLP with mixed integer/continuous variables
                (Artelys Knitro) -- not yet implemented
    ALG ('opf.ac') : (optional) 'opf.ac' or any valid value of
            OPT.alg for NLPS_MASTER. The first option indicates that
            it should be taken from MPOPT.opf.ac.solver.

Output:
    NLPOPT : an options struct for use by NLPS_MASTER and friends

See also nlps_master(), mpoption().