Looks like this is because you are generating a set of elements that does not contain the first ‘0’. So apparently the superset is ‘000’ to ‘140’ while the subset is ‘01-99’; so there is a leading ‘0’ missing.
Depending on what you want to achieve in the model (which is not quite clear to me), there are a number of ways that are in my opinion more efficient:
- use Calendars for your model (so you do not need sets as weeks and hours
- define this subset of timehour using the definition {index_timehour | ord(index_timehour)<=100}
- assure the timehour set is a subset of integers and then define this subset of timehour using the definition {index_timehour | index_timehour<=100}
Hi @jeromeee
Did Gertjan’s answer help you with your question?