I want to use values of a 2D parameter by applying a loop in such a way that for every run of the loop, the values of only one set is changing while the value of other set is constant during a single run and changes with an increment of 1 when the loop starts again. eg. in a [168X99] matrix the model is reading values from every column until 99 runs of the loop which mean my DATA is a [168X99] matrix but for every run the data i want to use is [168Xi] where i=1,2,3,4,.........,99
my code is like>
sets
s /1*80/
t(*) set of time periods (168 elements)
scn /1*99/;
load s,t,scn;
variables
Profit, OF,.......;
Parameters
Time, Econcost(t,scn), Price(s),......;
Equations
Profit_eq, OF_eq;
Profit_eq.. PROFIT =E= TIME*PRICE(s) - TIME*sum(t,PCON(t)*ECONCOST(t,scn));
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
OF_eq.. OF=E=PROFIT*(1-MODE);
please help. how to encode the logic into the program? profit equation is the line where I'm getting the error 149 at the parameter econcost.