Page 1 of 1

Adjusting the Table/parameter

Posted: Sat Jan 16, 2021 10:40 am
by sadiksha123
Hi

I am trying to copy data from the excel sheet with dimension of (40*48) but while copying the data are not align ..How can i align for the large table like this ...
Screenshot 2021-01-16 163854.png

Re: Adjusting the Table/parameter

Posted: Sat Jan 16, 2021 10:47 am
by Renger
Hi
It is never a good idea to copy-paste stuff. If you change your table, you have to do it again, and again.
I would suggest that you use gdxxrw to read the table in your code directly.
If that is not an option, you can save your table from excel into a csv-file and read it with csv2gdx.
Cheers
Renger

Re: Adjusting the Table/parameter

Posted: Sat Jan 16, 2021 10:59 am
by sadiksha123
Thank you Renger

I am new so can i know how to read from excel to GAMS .I try doing my self stdy but i confused with so many ideas ....which to follow ...I am attaching my excel file where there are the data's so could you please guide with the most standard method to copy it to GAMS
To Gams .xlsx
(20.58 KiB) Downloaded 773 times

Re: Adjusting the Table/parameter

Posted: Sat Jan 16, 2021 1:25 pm
by sadiksha123
EvToGams.xlsx
(20.58 KiB) Downloaded 760 times

This is my excel sheet ..How can i copy to the GAMS . I am going through the GDXRW but so many options are given i am getting confused which is best suited to my data as i have data for 40 EVS along rows and 48 time interval in column and i have to copy the parameters also .

I am attaching my excel file ..if somebody can help ..it would be greatful ..

Re: Adjusting the Table/parameter

Posted: Sun Jan 17, 2021 9:50 am
by Renger
Hi
Your tables are all two-dimensional tables, so not many options needed. Work through the examples in the GDXXR documentation (unfortunately, it starts with all options. It is better to start with the examples and if you encounter more difficult tables/problem, you can look through the settings).
Cheers
Renger

Re: Adjusting the Table/parameter

Posted: Sun Jan 17, 2021 12:45 pm
by sadiksha123
Renger wrote: 3 years ago Hi
Your tables are all two-dimensional tables, so not many options needed. Work through the examples in the GDXXR documentation (unfortunately, it starts with all options. It is better to start with the examples and if you encounter more difficult tables/problem, you can look through the settings).
Cheers
Renger
GDXXR ??

Re: Adjusting the Table/parameter

Posted: Mon Jan 18, 2021 5:56 am
by Renger
gdxxrw