Skip to content

Commit

Permalink
Merge branch 'master' into feature/GSYE-650-heatpump-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
spyrostz committed Dec 19, 2023
2 parents 8c729a8 + ae92142 commit 1eaf416
Show file tree
Hide file tree
Showing 3 changed files with 46 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
38 changes: 38 additions & 0 deletions gsy_framework/schema/avro_schemas/simulation_state.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,44 @@
}
]
},
{
"name": "SmartMeterAreaStats",
"type": "record",
"fields": [
{
"name": "current_tick",
"type": [
"null",
"int"
]
},
{
"name": "energy_production_forecast_kWh",
"type": {
"type": "map",
"values": "float"
}
},
{
"name": "available_energy_kWh",
"type": {
"type": "map",
"values": "float"
}
},
{
"name": "desired_energy_Wh",
"type": {
"type": "map",
"values": "float"
}
},
{
"name": "total_energy_demanded_Wh",
"type": "float"
}
]
},
{
"name": "StorageAreaStats",
"type": "record",
Expand Down

0 comments on commit 1eaf416

Please sign in to comment.