Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

**In development**

* [PR106](https://github.com/RoseauTechnologies/Roseau_Load_Flow/pull/106) Improvements for non-euclidean projections.
* [PR104](https://github.com/RoseauTechnologies/Roseau_Load_Flow/pull/104) Remove `roseau.load_flow.utils.BranchType`
* [GH99](https://github.com/RoseauTechnologies/Roseau_Load_Flow/issues/99) Add `Line.res_series_currents`
and `Line.res_shunt_currents` properties to get the currents in the series and shunt components
Expand Down
4 changes: 2 additions & 2 deletions roseau/load_flow/models/loads/flexible_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class Projection(JsonMixin):
"""

DEFAULT_ALPHA: float = 1000.0
DEFAULT_EPSILON: float = 0.01
DEFAULT_EPSILON: float = 1e-8

def __init__(self, type: ProjectionType, alpha: float = DEFAULT_ALPHA, epsilon: float = DEFAULT_EPSILON) -> None:
"""Projection constructor.
Expand All @@ -357,7 +357,7 @@ def __init__(self, type: ProjectionType, alpha: float = DEFAULT_ALPHA, epsilon:
This value is used to make soft sign function and to build a soft projection function.

epsilon:
This value is used to make a smooth sqrt function. It is only used in the Euclidean projection.
This value is used to make a smooth sqrt function.
"""
self.type = type
self._alpha = alpha
Expand Down