2

How many Rules Ruleset Schedules can have

I wonder what is the limit on rules number in one ruleset schedule and where can I find such limits in the documents?

Avi's avatar
4.3k
Avi
asked 2017-11-22 02:46:55 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-12-15 13:20:48 -0500
edit flag offensive 0 remove flag close merge delete

Comments

FYI, I removed the "closed" tag. I know you did the right thing, and selected "right answer was accepted", but there is no need to close, the fact that you accepted the answer shows that it was solved.

When I see a "[closed]" tag in a question title, I automatically think there was something wrong with it (duplicated, bad question, spam), and I'm quite sure it's the same for everyone.

Julien Marrec's avatar Julien Marrec (2017-11-24 03:39:48 -0500) edit
1

@Julien Marrec Thank you

Avi's avatar Avi (2017-11-24 09:42:33 -0500) edit
add a comment see more comments

1 Answer

2

There is no limit, aside from what's practical... If you planned on using one rule for every hour of year, I'd strongly advise to not do that and use Schedule:FixedInterval or Schedule:VariableInterval (or Schedule:File once it gets implemented). See Can you load Schedule:File in OpenStudio?

In OS, the ScheduleRule is the one that references the ScheduleRuleset, so there's no limitation possible anyways.

If you want to convince yourself, use the ruby bindings in a terminal, type the following code, and go make yourself a coffee while it finishes (it should take like 10 minutes I think... I just did it for 1000 times while writing this).

m = OpenStudio::Model::Model.new
s = OpenStudio::Model::ScheduleRuleset.new(m)
10000.times.each do |i|
    puts i
    s_rule = OpenStudio::Model::ScheduleRule.new(s)
end
Julien Marrec's avatar
29.7k
Julien Marrec
answered 2017-11-23 08:28:49 -0500, updated 2017-11-23 08:30:19 -0500
edit flag offensive 0 remove flag delete link

Comments

@Julien Marrec I am Convinced

Avi's avatar Avi (2017-11-23 12:05:56 -0500) edit
add a comment see more comments