Your idea of loops is correct. However, you should read all your different data sets before you start the loop.
Say, you have three sets you loop over a set of three different inputs. InputA, InputB, InputC. You would then define a set s /A,B,C/; and read the data from these include files and assign them to a parameter over s.
Code: Select all
s /A,B,C/;
* Read the include files with parameter inputA, inputB, inputC.
* Add a parameter and assign the values:
parameter input(S,...);
inputS("A",...) = inputA(...);
inputS("B",...) = inputB(...);
inputS("C",...) = inputC(...);
* Loop over the set S and solve your model
loop(S,
modelinput(S,...) = inputS(S,...);
solve
);
Hope this helps
Cheers
Renger