opf_setup

opf_setup(mpc, mpopt)

opf_setup() - Constructs an OPF model object from a MATPOWER case struct.

OM = OPF_SETUP(MPC, MPOPT)

Assumes that MPC is a MATPOWER case struct with internal indexing,
all equipment in-service, etc.

See also opf(), ext2int(), opf_execute().