MPC = LOAD2DISP(MPC0);
MPC = LOAD2DISP(MPC0, FNAME);
MPC = LOAD2DISP(MPC0, FNAME, IDX);
MPC = LOAD2DISP(MPC0, FNAME, IDX, VOLL);
Takes a MATPOWER case file or struct and converts fixed loads to
dispatchable loads and returns the resulting case struct. Inputs
are as follows:
MPC0 - File name or struct with initial MATPOWER case.
FNAME (optional) - Name to use to save resulting MATPOWER case. If empty,
the case will not be saved to a file.
IDX (optional) - Vector of bus indices of loads to be converted. If empty
or not supplied, it will convert all loads with positive real
power demand.
VOLL (optional) - Scalar or vector specifying the value of lost
load to use as the value for the dispatchable loads. If it is
a scalar it is used for all loads, if a vector, the dimension
must match that of IDX. Default is $5000 per MWh.