msmobility / silo

SILO Model Java Code
GNU General Public License v2.0
18 stars 26 forks source link

Update of dwelling qualities #235

Closed moeckel closed 4 years ago

moeckel commented 4 years ago

In the Kagawa implementation, all dwelling quality levels were set to 1. When updating quality levels in future years, SILO attempts to maintain the distribution of quality levels from the base year. It seems like that SILO crashed because it could not handle a share of 0% for quality levels 2, 3 and 4. A quick fix was implemented in RenovationModelImpl.java in the method handleEvent() to catch dwelling qualities to be between 1 and the maximum level (here set to 4). This method should be rewritten to handle the case where there are no dwellings in a certain quality level.