I have a doubt, which is perhaps very simple. I want to save the time it takes to solve a model, and then I want to send it to matlab. My doubt is how to do that?
P.S: I use Xpress as a solver, I don’t know if this is relevant.
As a first cut, you could take the solve time from .resusd, save it as a scalar in GAMS, write this scalar to GDX, and read the GDX to Matlab via GAMS Transfer Matlab (i.e. GTM).