--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To post to this group, send email to gams...@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
Hi Fedrico
The most simple way is:
* Sets and Parameters definition
SET i ;
* Data importation from Excel
$CALL GDXXRW I=data.xls O=Data.gdx set=i rdim=1 rng=data!A1:a3 par=a rdim=1 rng=data!A1:b3 trace=3
PARAMETER a(i);
$GDXIN data.gdx
$LOAD i,a
$GDXIN
display a,i;
Notice that you have a parameter a(i) with one dimension, so you have to set rdim=1.
Cheers
Renger
Dear all,
I have the same problem.
here is my code:
$CALL GDXXRW.EXE book.xls par=cm rng=C3:G7
Parameter cm(*,*);
$GDXIN book.gdx
$LOAD cm
$GDXIN
I encounter the same errors(ERROR 502 & 510)
On Friday, 22 June 2012 12:00:42 UTC+4:30, fedperea wrote:Hey gams community!
I have trouble importing data from Excel to GAMS. The following code
does not seem to work :(
set i passes /1*3/;
Parameter a(i);
$CALL GDXXRW.EXE data.xls par=a rng=data!A1:B3
$GDXIN data.gdx
$LOAD a
$GDXIN
thanks for you help.
Any ideas on how to solve this? I attach a zip file in case you want
to try it on your own.
Thanks a lot for your help!
Fede
--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "gamsworld" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gamsworld/Lca85EO48-o/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to gamsworld+...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To post to this group, send email to gams...@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
--
You received this message because you are subscribed to a topic in the Google Groups "gamsworld" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gamsworld/Lca85EO48-o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.To post to this group, send email to gams...@googlegroups.com.Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Diego
Chec k your code: you let the first command for gdxxrw start with D5, but this should b e B5. If you change just that, vol is imported correctly.
Same kind of errors for the other imported stuff
Renger
From: gams...@googlegroups.com [mailto:gams...@googlegroups.com]
On Behalf Of Diego Broz
Sent: Friday, November 1, 2013 7:25 PM
To: gams...@googlegroups.com
Subject: Re: excel to gams
Dear Steven.
Thank for contestar my question.
I tried the way you told me, I tried with two EXCEL files, etc.. but not loaded the parameters.
I attached the file (.gms, .xls, .gpr).
Thank for help me.
Hello! I'm working on a group projejct for college and I'm getting around 46-50 errors, and i think most of them have to do with my excel. This is my code and my errors, any ideas, please?
Hey Gams Community,
Hi
Read the guidelines to this google group and repost your question accordingly.
Cheers
Renger
____________________
Modelworks
Gewerbestrasse 15
3600 Thun – Switzerland
--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
gamsworld+...@googlegroups.com.
To post to this group, send email to
gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
i demand points/d1*d232/;
Hello everybody,
Hi Moein
This works fine for me, if the variable has non-zero values (if zero just add EPS)
Perhaps this is the problem, but as you don’t give much more information it is hard to tell.
You can add trace=3 to see if gdxxrw gives you an error.
execute 'gdxxrw.exe outU.gdx var=u.l trace=3'
Cheers
Renger
From: gams...@googlegroups.com [mailto:gams...@googlegroups.com]
On Behalf Of Moein Ch
Sent: Tuesday, November 11, 2014 21:26
To: gams...@googlegroups.com
Subject: Re: excel to gams
Hello everybody,
--
Hello
I work often in Excel and I found this neat Excel-AddIn, which lets you use GAMS out of Excel:
Greetings from Germany
Jörg Schlutter
Portfoliomanagement SchwarmStrom
Energiewirtschaft
LichtBlick SE
Zirkusweg 6
20359 Hamburg
|
Telefon:
|
joerg.s...@lichtblick.de
www.lichtblick.de
www.lichtblickblog.de
www.facebook.de/lichtblick.de

Bitte prüfen Sie der Umwelt zuliebe, ob der Ausdruck dieser E-Mail erforderlich ist.
LichtBlick SE
Geschaeftsfuehrung: Heiko von Tschischwitz (Vorsitzender), Gero Luecking, Mustafa Oezen, Olaf Westermann
Vorsitzender des Verwaltungsrats: Michael Saalfeld
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 126094
Hi Arash
Without the excel file I can’t do much.
Cheers
Renger
From: gams...@googlegroups.com [mailto:gams...@googlegroups.com]
On Behalf Of Arash Beheshtian
Sent: Freitag, 23. Januar 2015 03:51
To: gams...@googlegroups.com
Subject: Re: excel to gams
Hi Renger,
--