save time solution with Xpress

Problems with syntax of GAMS
Post Reply
serch199
User
User
Posts: 10
Joined: 1 year ago

save time solution with Xpress

Post by serch199 »

Hello to all

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.

Thank you very much to all
User avatar
dirkse
Moderator
Moderator
Posts: 214
Joined: 7 years ago
Location: Fairfax, VA

Re: save time solution with Xpress

Post by dirkse »

Hello,

As a first cut, you could take the solve time from <modelname>.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).

HTH,

-Steve
serch199
User
User
Posts: 10
Joined: 1 year ago

Re: save time solution with Xpress

Post by serch199 »

Hello dirkse

Your comments have helped me a lot.

Thank you very much
Post Reply