Loop and summation upper limit
Posted: Sat Sep 17, 2022 10:23 am
Hello everyone!
I have an MILP model, which I have coded on GAMS. However, there is an equation, which I was not able to code, and would appreciate any help and insight from you guys. I attached the equation I am struggling with as well as the extract related to this equation from the GAMS code.
I am unable to set the upper limit for the summation, and I think I need to add a loop for GAMS to find the optimal value of t' (which is called tp in the code). t and tp both have the same domain. t is the planning time horizon however tp is the time at which a decision is made within the model. Therefore, at any point in time, t is greater than tp.
Thanks a lot in advance!
I have an MILP model, which I have coded on GAMS. However, there is an equation, which I was not able to code, and would appreciate any help and insight from you guys. I attached the equation I am struggling with as well as the extract related to this equation from the GAMS code.
I am unable to set the upper limit for the summation, and I think I need to add a loop for GAMS to find the optimal value of t' (which is called tp in the code). t and tp both have the same domain. t is the planning time horizon however tp is the time at which a decision is made within the model. Therefore, at any point in time, t is greater than tp.
Thanks a lot in advance!