Skip to content

Night set-back timestep-wise checked  #4

@sonercandas

Description

@sonercandas

If I understand correctly, whether a building has a night set-back temperature for space heating is checked on a timestep-basis (per iii), not building-basis:

	`# Night set-back
	# From 23:00 to 6:00 temperature is lowered to 18degC
	# check if building has night set-back
	rand_num = np.random.uniform(0, 1, 1)
	if (rand_num < self._night_set_back):
		
		# check night-set-back hours
		if self.dt_vector[iii].hour >= self.schedule_nsb[0] or self.dt_vector[iii].hour < self.schedule_nsb[1]:
			# set Tset at Tnight_set_back
			self.Tset = self.T_nsb		`

which doesn't make sense, right? If you agree, I can provide a fix that checks the option for each building once.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions