Skip to content

Commit

Permalink
Fix LCT-based chiller model aggregation ranges.
Browse files Browse the repository at this point in the history
  • Loading branch information
lymereJ committed Oct 17, 2024
1 parent 61df0f8 commit 83a9391
Showing 1 changed file with 27 additions and 11 deletions.
38 changes: 27 additions & 11 deletions copper/chiller.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,17 +528,33 @@ def get_ranges(self):
"""
norm_val = {"ect_lwt": self.ref_ect, "lct_lwt": self.ref_lct}[self.model]

ranges = {
"eir-f-t": {
"vars_range": [(4, 10), (10.0, 40.0)],
"normalization": (self.ref_lwt, norm_val),
},
"cap-f-t": {
"vars_range": [(4, 10), (10.0, 40.0)],
"normalization": (self.ref_lwt, norm_val),
},
"eir-f-plr": {"vars_range": [(0.0, 1.0)], "normalization": (1.0)},
}
if self.model == "ect_lwt":
ranges = {
"eir-f-t": {
"vars_range": [(4, 10), (10.0, 40.0)],
"normalization": (self.ref_lwt, norm_val),
},
"cap-f-t": {
"vars_range": [(4, 10), (10.0, 40.0)],
"normalization": (self.ref_lwt, norm_val),
},
"eir-f-plr": {"vars_range": [(0.0, 1.0)], "normalization": (1.0)},
}
elif self.model == "lct_lwt":
ranges = {
"eir-f-t": {
"vars_range": [(4, 10), (10.0, 45.0)],
"normalization": (self.ref_lwt, norm_val),
},
"cap-f-t": {
"vars_range": [(4, 10), (10.0, 45.0)],
"normalization": (self.ref_lwt, norm_val),
},
"eir-f-plr": {
"vars_range": [(10, 45.0), (0, 1)],
"normalization": (norm_val, 1.0),
},
}

return ranges

Expand Down

0 comments on commit 83a9391

Please sign in to comment.