Lucas
Bellow are some answers:
2012/6/10 Lucas Ianni
Hi everybody,
I am trying to write a GDX file, but it’s hard to link the .java with
my gams model. I don’t understand how to add the java API to my
Netbeans project, because there isnt a .jar file in the gams folders.
The java gdx api uses JNI (Java Native Interface) where part of the code is in java and part is in C. I’ve never work with java-gdx but I used JNI in the past and know that you’ll have to compile tha .C code and generate your own .jar.
I suggest you to use other I/O system for your model rather than .gdx, such as text file, excel, Odbc, and others it will be easier.
I have some experience with java/gams using odbc/jodbc, If you want I can give you some consulting.
So, anyone could tell me exactly what to, and how to, add to my
netbeans project ? I have a bunch of ,java, .c and .dll in
apifiles\java\api in my GAMS folder, but without a .jar file I dont
know how to use them!!
And one more question, does anyone here know how to store my model
formulation, and command the .gms file to read it ?
Your model and solve statements are in the .gms file and you can trigger gams using the command line from java, take a look at:
http://interfaces.gams-software.com/doku.php?id=env:spawning_gams_from_java
I dont want to
write my model in the GAMS environment, just want to use GAMS to solve
the model cause he has the solvers!
Thanks for the help, I appreciate it!
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.