CSV2gdx

Problems with syntax of GAMS
Post Reply
TheBebbo
User
User
Posts: 16
Joined: 2 years ago

CSV2gdx

Post by TheBebbo »

Hi! Because I use Gams with a Macbook I need to use csv2gdx instead of GDXXRW. But I have no clue about the code I have to use. Every code I found didn't work. So maybe one of you can help me for the easy example with only 5 values which is attached to this message.

Thanks to everyone!
Attachments
CSV_Test.csv
(16 Bytes) Downloaded 134 times
Fred
Posts: 373
Joined: 7 years ago

Re: CSV2gdx

Post by Fred »

Here is the documentation of csv2gdx that comes with many examples.

You do not say what you would like to do with your example csv file. Should those numbers be elements of a one-dimensional set? If so, use

Code: Select all

csv2gdx CSV_Test.csv id=myset index=1 colcount=1
I hope this helps.

Fred
towkins
User
User
Posts: 8
Joined: 2 years ago

Re: CSV2gdx

Post by towkins »

Thank you !
Fred wrote: 2 years ago Here is the documentation of csv2gdx that comes with many examples.

You do not say what you would like to do with your example csv file. Should those numbers be elements of a one-dimensional set? If so, use

Code: Select all

csv2gdx CSV_Test.csv id=myset index=1 colcount=1
I hope this helps.

Fred
Post Reply