Skip to content

Commit

Permalink
Merge pull request #487 from gridsingularity/feature/GSYE-663
Browse files Browse the repository at this point in the history
Feature/gsye 663
  • Loading branch information
spyrostz authored Dec 14, 2023
2 parents 0be779f + 8019501 commit 7d1c3d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gsy_framework/constants_limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,13 @@ class SCMSettings:
"""Default settings for the community manager."""
GRID_FEES_REDUCTION = 0.28
MARKET_ALGORITHM = CoefficientAlgorithm.STATIC.value
MARKET_ALGORITHM_LIMIT = RangeLimit(1, 2)
MARKET_ALGORITHM_LIMIT = RangeLimit(1, 3)


def is_no_community_self_consumption() -> bool:
"""Check whether the SCM mode is set to no-community-self-consumption."""
return (ConstSettings.SCMSettings.MARKET_ALGORITHM ==
CoefficientAlgorithm.NO_COMMUNITY_SELF_CONSUMPTION.value)


class GlobalConfig:
Expand Down
1 change: 1 addition & 0 deletions gsy_framework/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class CoefficientAlgorithm(Enum):

STATIC = 1
DYNAMIC = 2
NO_COMMUNITY_SELF_CONSUMPTION = 3


class CloudCoverage(Enum):
Expand Down

0 comments on commit 7d1c3d1

Please sign in to comment.