I have an overall time frame, and I want to introduce several variables to be optimized along that time frame, but they are active in different time intervals. Let's say I have:
Overall time frame: m.time = np.linspace(0,100,101)
Variable 1 time frame: m.time = np.linspace(20,50,31)
Variable 2 time frame: m.time = np.linspace(40,80,41)
How can I use both variables in the same optimization and communicate that they should start and end at specific intervals in the overall time frame? In the end, I want to be able to optimize the sum of the variables in each time step.
Is there any option in GEKKO that can tell a variable in which time intervals it can be modified by the optimizer? For example, Variable 1 above should not be possible to change in the time intervals 0-19 and 51-100.
