How to make communication of C to Gams?

Questions on using the GAMS APIs (Python, .NET, etc.)
Maria
User
User
Posts: 2
Joined: 4 months ago

How to make communication of C to Gams?

Postby Maria » 4 months ago

Hello, I want to send parameters of an array to Gams from C, how can I make that communication?

Clemens
Posts: 6
Joined: 9 months ago

Re: How to make communication of C to Gams?

Postby Clemens » 4 months ago

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


Return to “API”

Who is online

Users browsing this forum: No registered users and 1 guest