HI,
Can anyone tell me how to pass two dimensional data to the gams model
through java code…
Example :
SETS i plants /plant1plant14/
j markets /market1market10/;
parameter cost(i,j) transportation cost from i plant to j market;
now i need to send the cost details from java code… so can you pleas
any body tell me how can i do that… i am searching for this from last
1 month…
Cheers,
dheer.
\
HI,
Can anyone tell me how to pass two dimensional data to the gams model
through java code…
write your 2D data into a GDX file in Java using the GAMS gdx api for Java.
then load your data from that file in GAMS.
%GAMSInstallDir%\apifiles\Java\example1.java gives an example.
HTH,
Yan
\
Hello
If you want to trigger GAMS from Java you can use something like in this page:
http://interfaces.gams-software.com/doku.php?id=env:spawning_gams_from_java
If your cost data is in a database, you can use sql2gams to transfer it to “.inc” files and then import them to GAMS.
The results can then be published to a databank again or saved to Excel or something like that.
Regards
Edson
2012/5/24 任彦
\
HI,
Can anyone tell me how to pass two dimensional data to the gams model
through java code…
write your 2D data into a GDX file in Java using the GAMS gdx api for Java.
then load your data from that file in GAMS.
%GAMSInstallDir%\apifiles\Java\example1.java gives an example.
HTH,
Yan
Edson Valle
edsoncv@gmail.com
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.