-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from terrancelu92/issue83_fivezonemodel
Issue83 fivezonemodel
- Loading branch information
Showing
184 changed files
with
62,362 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Five Zone Supervisory Control Environment | ||
This DRL environment is to control the setpoints of a five-zone VAV system from the supervisory level for minimizing energy consumption while maintaining comfortable indoor thermal environment. | ||
|
||
- `v0`: this is a version with discrete supply air temperature action space (eleven states) for connecting with tianshou DRL library | ||
- `v1`: this is a version with discrete supply air temperature action space (eight states) for connecting with tianshou DRL library | ||
- `v2`: this is a version with continuous multi-dimensional action space (supply air temperature, supply CHW temperature, supply CHW dp) for connecting with tianshou DRL library |
28 changes: 28 additions & 0 deletions
28
testcases/gym-environments/five-zones/gym_fivezone_jmodelica/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import logging | ||
from gym.envs.registration import register | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
# initial configuration: can be changed when making the environment | ||
config = { | ||
'fmu_result_handling':'memory', | ||
'fmu_result_ncp':100., | ||
'filter_flag':True} | ||
|
||
register( | ||
id='JModelicaCSFiveZoneEnv-v0', | ||
entry_point='gym_fivezone_jmodelica.envs.five_zone_env_v0:JModelicaCSFiveZoneEnv', | ||
kwargs = config | ||
) | ||
|
||
register( | ||
id='JModelicaCSFiveZoneEnv-v1', | ||
entry_point='gym_fivezone_jmodelica.envs.five_zone_env_v1:JModelicaCSFiveZoneEnv', | ||
kwargs = config | ||
) | ||
|
||
register( | ||
id='JModelicaCSFiveZoneEnv-v2', | ||
entry_point='gym_fivezone_jmodelica.envs.five_zone_env_v2:JModelicaCSFiveZoneEnv', | ||
kwargs = config | ||
) |
6 changes: 6 additions & 0 deletions
6
testcases/gym-environments/five-zones/gym_fivezone_jmodelica/envs/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# discrete action space | ||
from gym_fivezone_jmodelica.envs import five_zone_env_v0 | ||
from gym_fivezone_jmodelica.envs import five_zone_env_v1 | ||
|
||
# continuous action space | ||
from gym_fivezone_jmodelica.envs import five_zone_env_v2 |
Oops, something went wrong.