You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Rename Problem Modeling Functions (#700)
* update constraint names
* update variable function names
* update expression function names
update details are documented in issue #701
* update docs for new function names
* minor updates for InfrastructureModels v0.5
* Fix reactive power control in storage systems (#699)
Co-authored-by: Geth, Frederik (Energy, Newcastle) <[email protected]>
Co-authored-by: Carleton Coffrin <[email protected]>
Copy file name to clipboardExpand all lines: docs/src/developer.md
+37-5Lines changed: 37 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,45 @@ scope functions). Underscores are used to separate multi-word function names
9
9
and the words should typically be ordered from general to more specific,
10
10
so that alphabetical sorting clusters similar functions together.
11
11
12
+
Due to model-agnostic design of PowerModels, top level functions are implicitly defined on complex numbers. Specializations of these functions yield different complex coordinates systems and real-valued model parameters.
12
13
13
-
## Variable and Parameter Naming Guidelines
14
+
Top level functions have the following structure,
15
+
```
16
+
<variable|constraint>_<component short name>_<quantity name>(_fr|_to)(_on_off)
17
+
```
18
+
The suffixes have the following meanings,
19
+
-`_fr`: the from-side of a two-terminal component (e.g., branch or switch)
20
+
-`_to`: the to-side of a two-terminal component (e.g., branch or switch)
21
+
-`_on_off`: indicates that the constraint can be added or removed with a discrete 0-1 indicator variable.
22
+
Note that the from-to orientation of two-terminal components is often arbitrary and does not imply a direction of flow.
23
+
24
+
The most common values of `<quantity name>` are `power`, `current` and `voltage`. Compound names like `voltage_product` are also possible.
14
25
15
-
### Suffixes
16
26
17
-
-`_fr`: from-side ('i'-node)
18
-
-`_to`: to-side ('j'-node)
27
+
Lower level functions have the following structure,
28
+
```
29
+
<variable|constraint>_<component short name>_<quantity name>
For details on `AbstractPowerModel`, see the section on [Power Model](@ref).
28
+
For details on `AbstractPowerModel`, see the section on [Power Model](@ref). A more comprehensive list of supported formulation is documented in [Formulation Details](@ref).
29
29
30
30
## User-Defined Abstractions
31
31
32
-
Consider the class of conic Models for power flow models. One way of modelling them in this package is through the following type hierarchy:
32
+
Consider the class of conic Models for power flow models. One way of modeling them in this package is through the following type hierarchy:
0 commit comments