Skip to content

Commit

Permalink
force_modernize for qScope modernization
Browse files Browse the repository at this point in the history
MFH wurden nicht saniert; `force_modernize` passt das für die am qScope gewählten Gebäude an.

quarree100#98
  • Loading branch information
lwinkeler committed Nov 7, 2022
1 parent 857ecbc commit 4aeda38
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion q100/models/qscope_ABM.gaml
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,18 @@ species building {
self.spec_heat_consumption <- self.spec_heat_consumption * (energy_saving_rate);
}
}

action force_modernize(bool connect_q100) {
if (self.mod_status = "u") {
self.mod_status <- "s";
if connect_q100 {
self.energy_source <- "q100";

}
refurbished_buildings_year <- refurbished_buildings_year + 1;
self.spec_heat_consumption <- self.spec_heat_consumption * (energy_saving_rate);
}
}


reflex investment_costs { // When self.invest_counter is set to a value > 0, the tenants of the building will be charged with the costs of the home refurbishment.
Expand All @@ -1104,7 +1116,7 @@ species building {

reflex refurbish {
if current_date.year = refurb_year {
do modernize(false);
do force_modernize(false);
}
}

Expand Down

0 comments on commit 4aeda38

Please sign in to comment.