I am considering if GAMS can store codes to one callable function like Matlab and C then use the function in another gms. file. Like the sample use of:

Code: Select all

```
Loop(iter,
if(ord(iter)<=1,
s(i) = m.l(i);
call:function.gms;
...
);
if(ord(iter)>1,
call:function.gms;
...
);
);
```

Thanks!

Gabriel