It works now, for the loading of N, when i and j are defined before in the gams code.
Le mercredi 15 janvier 2014 17:29:22 UTC+1, Jacques a écrit :
Yes Renger, I can see N(i,j) in the GAMSIDE. The folder is OK.
Everything works when only reading N(i) from the gdx, i being defined in the code and not being read from the gdx.
Le mercredi 15 janvier 2014 17:21:08 UTC+1, Renger van Nieuwkoop a écrit :
Is N(i,j) in the gdx file? If you use the GAMSIDE and your file is not in the actual project directory, it might not find the gdx-file. Try to add the path to the name.
Cheers
Renger
From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Jacques
Sent: Mittwoch, 15. Januar 2014 17:08
To: gams...@googlegroups.com
Subject: Re: reading the sets of a variable in GDX
24.1
I think it is the most recent ?
Le mercredi 15 janvier 2014 17:04:59 UTC+1, Renger van Nieuwkoop a écrit :
Which gams version do you use?
Sent from my iPhone
Am 15.01.2014 um 16:56 schrieb “Jacques” :
Hello again,
Thank you for your quick answer !
I tried again, then I tried copying your code ; the creation of the gdx works, but the second part still puts me the same errors.
“Symbol not in GDX”
“load types are different”
“362 Values for domain 2 are unknown - no checking possible” for i and j
" Load/unload ident expected"
…
Help ! Why wouldn’t it work on my computer if it works on yours ?? Argh…
Thanks !
Jacques
Le mercredi 15 janvier 2014 16:45:06 UTC+1, Renger van Nieuwkoop a écrit :
Hi Jaques
Here a working example (the first commented lines were used to generate the gdx file).
*set
i identifier /110/
*j carac /E, F/;
*parameters N(i,j) ;
*N(i,j) = uniform(0,1);
*$gdxout myGDX.gdx
*execute_unload “myGDX.gdx”, N;
set
i identifier
j carac;
parameters N(i,j) ;
$Gdxin myGDX.gdx
$load i:
Hello,
I am looking at a GDX file with a two-sets variable : A(i,j)
I want to import i,j and A in GAMS.
I am confused…
$GDXIN mygdx.gdx
$LOAD A
$GDXIN
→ this is OK. Now how can I retrieve i and j ? I tried :
$GDXIN mygdx.gdx
$LOAD i<A, j<=A, A
$GDXIN
but I’m not sure… What do you think ?
Thank you !
–
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.
–
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.
–
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.
–
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.
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.