dcopf_solver

dcopf_solver(om, mpopt)

dcopf_solver() - Solves a DC optimal power flow.

[RESULTS, SUCCESS, RAW] = DCOPF_SOLVER(OM, MPOPT)

Inputs are an OPF model object and a MATPOWER options struct.

Outputs are a RESULTS struct, SUCCESS flag and RAW output struct.

RESULTS is a MATPOWER case struct (mpc) with the usual baseMVA, bus
branch, gen, gencost fields, along with the following additional
fields:
    .order      see 'help ext2int' for details of this field
    .x          final value of optimization variables (internal order)
    .f          final objective function value
    .mu         shadow prices on ...
        .var
            .l  lower bounds on variables
            .u  upper bounds on variables
        .lin
            .l  lower bounds on linear constraints
            .u  upper bounds on linear constraints

SUCCESS     1 if solver converged successfully, 0 otherwise

RAW         raw output in form returned by MINOS
    .xr     final value of optimization variables
    .pimul  constraint multipliers
    .info   solver specific termination code
    .output solver specific output information

See also opf(), opt_model.solve().