how to model resource in the case of cyclic planning horizon

**ex1) planning horizon = 1 day (24hours), schedule repeats every day, a interval variable represents 36 hours more than 1 day.**

how to model that interval variable that must add sometime 1 pulse and sometime 2 pulse?

**IloCumulFunctionExpr res(env);**

**IloIntervalVar act = IloIntervalVar(env, 36);**

**res += IloPulse(act,1); â€‹â€‹**

**ex2) how to model a case that a interval variable has 4 hours. and result say it starts at 22:00 and end at 2:00 in the 1 day repeating time horizon?**