Page 1 of 1

How to make communication of C to Gams?

Posted: Tue Feb 28, 2017 6:16 pm
by Maria
Hello, I want to send parameters of an array to Gams from C, how can I make that communication?

Re: How to make communication of C to Gams?

Posted: Thu Mar 02, 2017 3:07 pm
by Clemens
Maria,
you might want to have a look at "apifiles/C" in your GAMS installation directory. The examples "xp_example1.c" shows how to read and write GDX files. The example "xp_example2.c" shows how to call a GAMS model programmatically from within your C program.

Best,
Clemens