I am working on one optimization problem.
the model with two states, the transition between the two states based on one threshold value (L = 5, which L< 5 -> Normal state, L== 5 -> Restart state.). Currently, L is one integer variable, I can get the updated value of L. When the L == 5, restart state works one time step. then I need to force the integer variable L =0 and re-start the whole system with a Normal state.
the L value is one internal result of the decision variable, I need to simulate the transition automatically in this optimization problem. Do you know how to create one model for the whole system?