ams.routines.dcopf.DCOPF#
- class ams.routines.dcopf.DCOPF(system, config)[source]#
DC optimal power flow (DCOPF).
Notes
The nodal price is calculated as
piinpic.Devices online status of
StaticGen,StaticLoad, andShuntare considered in the connectivity matricesCft,Cg,Cl, andCsh.
References
R. D. Zimmerman, C. E. Murillo-Sanchez, and R. J. Thomas, “MATPOWER: Steady-State Operations, Planning, and Analysis Tools for Power Systems Research and Education,” IEEE Trans. Power Syst., vol. 26, no. 1, pp. 12-19, Feb. 2011
- __init__(system, config)[source]#
Initialize the routine.
- Parameters:
- systemOptional[Type]
The system object associated with the routine.
- configOptional[dict]
Configuration dictionary for the routine.
Methods
addConstrs(name, e_str[, info, is_eq])Add Constraint to the routine.
addRParam(name[, tex_name, info, src, unit, ...])Add RParam to the routine.
addService(name, value[, tex_name, unit, ...])Add ValueService to the routine.
addVars(name[, model, shape, tex_name, ...])Add a variable to the routine.
dc2ac([kloss])Convert the results using ACOPF.
disable(name)Disable a constraint by name.
doc([max_width, export])Retrieve routine documentation as a string.
enable(name)Enable a constraint by name.
export_csv([path])Export scheduling results to a csv file.
get(src, idx[, attr, horizon])Get the value of a variable or parameter.
init(**kwargs)Initialize the routine.
run(**kwargs)Run the routine.
set(src, idx[, attr, value])Set the value of an attribute of a routine parameter.
solve(**kwargs)Solve the routine optimization model.
summary(**kwargs)Summary interface
unpack(**kwargs)Unpack the results from CVXPY model.
update([params, build_mats])Update the values of Parameters in the optimization model.
Attributes