I am going to call a function (an external GAMS code) to my main GAMS code. In MATLAB, it is really convenient to call an m-file as a function (an external m-file code I mean) to the main program. Is it possible to implement in GAMS the same as what we can do in MATLAB?
I would be grateful if you could elaborate it by giving an example.