NEOS XML-RPC API to submit GAMS/GDX files

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
absolved
User
User
Posts: 2
Joined: 4 years ago

NEOS XML-RPC API to submit GAMS/GDX files

Post by absolved »

Hi all,

I am trying to figure out how to use the XML-RPC API to submit my gams job to the NEOS-SERVER. I have retrieved the required XML template, but I am unsure what data format is required within the XML file. Specifically for the Model fields and the GDX file fields. I am assuming I can put my entire model as a string within the model fields, but I don't know what to put for the value within the GDX file field, as GDX files are stored as some strange format. The pieces of the XML template I am referring to have been pasted below.

Code: Select all

<model><![CDATA[
...Insert Value Here...
]]></model>


<gdx><![CDATA[
...Insert Value Here...
]]></gdx>
Does anyone have experience with this?
absolved
User
User
Posts: 2
Joined: 4 years ago

Re: NEOS XML-RPC API to submit GAMS/GDX files

Post by absolved »

I figured this out by using the "Dry Run" option on the NEOS server to see the structure of the XML document. The GDX file needs to be converted to a base 64 string, then pasted into the XML template.
Post Reply