Using GAMS on MAC

Problems with syntax of GAMS
Post Reply
scsaxena
User
User
Posts: 18
Joined: 1 year ago

Using GAMS on MAC

Post by scsaxena » 3 months ago

I have installed GAMS on my MacBook Air.

While trying to run my code I got a series of errors all pointing to the GAMS environment.
I have used Excel for input/output of my data and thus use GDX files which I learnt are meant for Windows OS.
What is the work around for the GDX file if I want to use GAMS on my MacBook ? Is there any other way ?

thanks in advance for your help.

Regards,

User avatar
Renger
Posts: 406
Joined: 3 years ago

Re: Using GAMS on MAC

Post by Renger » 3 months ago

Hi
Please read the guidelines: Your question is too general: be more specific and attach code that generates the errors.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist

scsaxena
User
User
Posts: 18
Joined: 1 year ago

Re: Using GAMS on MAC

Post by scsaxena » 3 months ago

Thanks Renger for your response.

My problem is as follows:

I have a GAMS code for Economic Despatch of Generation (Power Generation) which is perfectly working on a Windows environment. The input data is placed in an Excel file and I have used GDXXRW function for input and output which creates the ".gdx" files. When I used the same perfectly working code on my MacBook Air, it does not create the GDX files and is unable to read/write the data and hence, getting a series of errors.

Based on above, I have a feeling that this could be an issue related to the Mac OS environment settings. Further, someone also told me that GDX files are not available for the Mac OS environment. I do not know which is true and what is solution in terms of changing either the environment or the code. But I do believe, that even on Mac OS environment there must be a way to read & write from/to MS Excel. I need to learn how to do this.

I am also attaching the code and the data file for your ready reference.

Thanks once again in advance for your help.

Regards.
POSOCO_Dispatch.gms
(3.14 KiB) Downloaded 16 times
POSOCO_Dispatch.log
(10.09 KiB) Downloaded 9 times

User avatar
Renger
Posts: 406
Joined: 3 years ago

Re: Using GAMS on MAC

Post by Renger » 3 months ago

Hi

You can find an answer to your question right here in the forum. As an alternative you could install Wine/Bottler on your Mac and run Gams as a windows program.
Cheers

Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist

Post Reply