Modules
Second-Pass TOU Scheduling Decision Model for HPWHs in OCHRE
This module implements the heuristic-based decision model for consumer response to time-of-use (TOU) electricity rates in residential building simulations.
evaluate_value_learning_decision(controller, default_monthly_bill, tou_monthly_bill, default_monthly_unmet_demand, tou_monthly_unmet_demand)
¶
Evaluate value learning decisions for each month.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
controller
|
ValueLearningController
|
ValueLearningController instance |
required |
default_monthly_bill
|
list[float]
|
List of default monthly bills |
required |
tou_monthly_bill
|
list[float]
|
List of TOU monthly bills |
required |
default_monthly_unmet_demand
|
list[float]
|
List of default monthly unmet demand in kWh |
required |
tou_monthly_unmet_demand
|
list[float]
|
List of TOU monthly unmet demand in kWh |
required |
Returns:
Type | Description |
---|---|
list[str]
|
Tuple of (monthly_decisions, states, learning_metrics_history) |
list[str]
|
|
list[dict]
|
|
tuple[list[str], list[str], list[dict]]
|
|
Source code in rate_design_platform/second_pass.py
run_value_learning_simulation(TOU_params, house_args, building_xml_path=None)
¶
Run complete value learning TOU HPWH simulation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
TOU_params
|
TOUParameters
|
TOU parameters |
required |
house_args
|
dict
|
Base house arguments dictionary |
required |
building_xml_path
|
Optional[str]
|
Path to building XML file (for building characteristics) |
None
|
Returns:
Type | Description |
---|---|
tuple[list, dict[str, float], list[dict]]
|
Tuple of (monthly_results, annual_metrics, learning_metrics_history) |
Source code in rate_design_platform/second_pass.py
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 |
|
simulate_full_cycle(simulation_type, TOU_params, house_args)
¶
Simulate complete annual cycle to get bills and unmet demand for prior initialization
Parameters:
Name | Type | Description | Default |
---|---|---|---|
simulation_type
|
str
|
Type of simulation to run ("default" or "tou") |
required |
TOU_params
|
TOUParameters
|
TOU parameters (uses default if None) |
required |
house_args
|
dict
|
Base house arguments dictionary |
required |
Returns:
Type | Description |
---|---|
list[MonthlyMetrics]
|
Tuple of (monthly_bills, monthly_unmet_demand_totals) |
list[float]
|
|
tuple[list[MonthlyMetrics], list[float]]
|
|
Source code in rate_design_platform/second_pass.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
|