ams.routines.pflow.PFlow#

class ams.routines.pflow.PFlow(system, config)[source]#

Power flow analysis using ANDES PFlow routine.

More settings can be changed via PFlow2._adsys.config and PFlow2._adsys.PFlow.config.

All generator output powers, bus voltages, and angles are included in the variable definitions. However, not all of these are unknowns; the definitions are provided for easy access.

References

      1. Crow, Computational methods for electric power systems. 2015.

  1. ANDES Documentation - Simulation and Plot. https://docs.andes.app/en/latest/_examples/ex1.html

__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])

Not supported!

addRParam(name[, tex_name, info, src, unit, ...])

Not supported!

addService(name, value[, tex_name, unit, ...])

Not supported!

addVars(name[, model, shape, tex_name, ...])

Not supported!

dc2ac(**kwargs)

Convert the DC-based results with 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 ANDES PFlow routine.

run(**kwargs)

Run the routine.

set(src, idx[, attr, value])

Set the value of an attribute of a routine parameter.

solve(**kwargs)

Placeholder.

summary(**kwargs)

Summary interface

unpack(**kwargs)

Unpack the results from ANDES PFlow routine.

update([params, build_mats])

This method updates the parameters in the optimization model.

Attributes