mp.load_dm
- mp.load_dm(d, task_class, mpopt, varargin)
mp.load_dm()- Load a MATPOWER data model.dm = mp.load_dm(d) dm = mp.load_dm(d, task_class) dm = mp.load_dm(d, task_class, mpopt) dm = mp.load_dm(d, task_class, mpopt, ...) [dm, task] = mp.load_dm(...)
Uses a task object to load a MATPOWER data model object, optionally returning the task object as well.
The resulting data model object can later be passed to
run_pf(),run_cpf(),run_opf(), or directly to therun()method of the task object.- Inputs:
d – data source specification, currently assumed to be a MATPOWER case name or case struct (
mpc)task_class (function handle) – (optional) handle to constructor of task class, (default is
mp.task_opf)mpopt (struct) – (optional) MATPOWER options struct
Additional optional inputs can be provided as <name>, <val> pairs, with the following options:
'mpx'- MATPOWER extension or cell array of MATPOWER extensions to apply
- Outputs:
dm (
mp.data_model) – data model objecttask (
mp.task) – task object containing the solved run including the data, network, and mathematical model objects.