Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51eec61

Browse files
committed
line_flow pfnet documentation ready
1 parent 93f6985 commit 51eec61

6 files changed

Lines changed: 27 additions & 12 deletions

File tree

docs/index.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ PFNET is released under the BSD 2-clause license.
1818

1919
**Wrappers**
2020

21-
* `Python <http://pfnet-python.readthedocs.io/>`_
22-
* Matlab (getting started)
21+
* `Python <https://github.com/ttinoco/PFNET/tree/line_flow_lib/python>`_
22+
23+
* `Tutorial and Documentation <http://pfnet-python.readthedocs.io/>`_
24+
25+
* `Matlab <https://github.com/ttinoco/PFNET/tree/line_flow_lib/matlab>`_
26+
27+
* just started, help needed
2328

2429
**Documentation Contents**
2530

docs/start.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Dependencies
1111

1212
The PFNET C library has the following optional dependencies:
1313

14-
* `Graphviz`_ (libgvc >= 2.38)
15-
* Raw parser (libraw_parser >= 1.2.3)
14+
* `Graphviz`_ (libgvc >= 2.38): for creating network layouts and visualizing networks.
15+
* Raw Parser (libraw_parser >= 1.2.3) : for parsing PSSE raw files.
16+
* Line Flow (libline_flow): for constructing linear conservative AC branch flow limits.
1617

1718
.. _start_download:
1819

@@ -34,7 +35,7 @@ Installing PFNET requires typing the following commands in the root directory of
3435
make check
3536
sudo make install
3637

37-
If raw parser is available, the library should be placed in the ``lib`` directory.
38+
If ``Raw Parser`` is available, the library should be placed in the ``lib`` directory of PFNET. If ``Line Flow`` is available, the environment variable ``LINE_FLOW`` should be defined so that the library can be located in the directory ``$LINE_FLOW/lib``.
3839

3940
.. _start_docs:
4041

python/docs/problems.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,14 @@ for each branch :math:`(k,m)`, where :math:`b_{km}` are branch susceptances, :ma
339339
AC branch flow limits
340340
---------------------
341341

342-
This constraint is associated with the string ``"AC branch flow limits"``. It enforces branch "AC" power flow limits due to thermal ratings using current magnitudes. This constraint utilizes auxiliary variables, which are also supported in PFNET and will be documented soon.
342+
This constraint is associated with the string ``"AC branch flow limits"``. It enforces branch "AC" power flow limits due to thermal ratings based on current magnitudes. It utilizes auxiliary variables (slacks).
343+
344+
.. _prob_constr_AC_LIN_FLOW_LIM:
345+
346+
Linearized AC branch flow limits
347+
--------------------------------
348+
349+
This constraint is associated with the string ``"linearized AC branch flow limits"``. It enforces branch "AC" power flow limits due to thermal ratings based on current magnitudes using conservative linear constraints constructed with the external library ``Line Flow`` [DS2017]_. This external library is used with its default parameters.
343350

344351
.. _prob_constr_FIX:
345352

python/docs/reference.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ Constraint Names
495495
``"voltage regulation by shunts"``
496496
``"AC branch flow limits"``
497497
``"DC branch flow limits"``
498+
``"linearized AC branch flow limits"``
498499
``"battery dynamics"``
499500
``"load constant power factor"``
500501
============================================ =======
@@ -525,10 +526,11 @@ Problem Class
525526
:members:
526527
:exclude-members: add_heuristic, apply_heuristics
527528

528-
.. _ref_references:
529+
.. _ref_papers:
529530

530-
References
531-
==========
531+
Papers
532+
======
532533

533-
.. [TTR2015] T\. Tinoco De Rubira, *Numerical Optimization and Modeling Techniques for Power System Operations and Planning*. PhD thesis, Stanford University, March 2015.
534+
.. [DS2017] D\. Shchetinin, T\. Tinoco De Rubira, G\. Hug, *Conservative Linear Line Flow Constraints for AC Optimal Power Flow*, IEEE PES Powertech Conference, June 2017.
534535
536+
.. [TTR2015] T\. Tinoco De Rubira, *Numerical Optimization and Modeling Techniques for Power System Operations and Planning*. PhD thesis, Stanford University, March 2015.

python/docs/start.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The availability of optional features of PFNET can be checked using::
4444

4545
>>> import pfnet
4646
>>> pfnet.info
47-
{'raw parser': False, 'graphviz': True}
47+
{'line_flow': True, 'raw_parser': True, 'graphviz': True}
4848

4949
.. _start_example:
5050

python/pfnet/cprob.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cdef class Problem:
3333
3434
Parameters
3535
----------
36-
net : :class:`Network <pfnet.Network>'
36+
net : :class:`Network <pfnet.Network>`
3737
"""
3838

3939
pass

0 commit comments

Comments
 (0)