Hey, I have a problem where I need to solve a model for each row of an Excel file. The model for row 1 is as follows:
Sets
i sample number /1*1817/
j criterion /1*17/;
alias(i, k);
Table a(k,j)
$call=xls2gms r=a1:r1818 i=calculations.xls o=parc.inc
$include parc.inc
;
Variables
w(i,j)
z objective;
Positive Variable
w(i,j);
Equations
constraint1
objective;
objective..z=e=sum(j,w("1",j)*a("1",j));
constraint1(k)..sum(j,w("1",j)*a(k,j))=l=1;
Do you know if there is a shorter way to solve this model for each of the alternatives? Because it could save me huuuge amount of time. I checked the guide but couldn’t find anything related. Would be so glad if you could help.
All the best.