Skip to content

Commit

Permalink
Implement the five-zone model with plant side; and example testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
terrancelu92 committed Dec 10, 2021
1 parent ade4acf commit a5f9c76
Show file tree
Hide file tree
Showing 67 changed files with 33,718 additions and 68 deletions.
4 changes: 3 additions & 1 deletion testcases/gym-environments/five-zones/README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +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 for connecting with tianshou DRL library
- `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
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@
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
)
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from gym_fivezone_jmodelica.envs import five_zone_env_v1

# continuous action space
#from gym_fivezone_jmodelica.envs import five_zone_env_v2
from gym_fivezone_jmodelica.envs import five_zone_env_v2
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def step(self, action):
"""

action = np.array(action)
action = [12+6*action/float(self.nActions-1)]
action = [273.15+12+6*action/float(self.nActions-1)]
return super(FiveZoneEnv,self).step(action)

def _reward_policy(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def step(self, action):
"""

action = np.array(action)
action = [12+6*action/float(self.nActions-1)]
action = [273.15+12+6*action/float(self.nActions-1)]
return super(FiveZoneEnv,self).step(action)

def _reward_policy(self):
Expand Down
Loading

0 comments on commit a5f9c76

Please sign in to comment.