Page 1 of 1

NEOS XML-RPC API to submit GAMS/GDX files

Posted: Sat Apr 27, 2019 9:19 pm
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?

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

Posted: Tue Apr 30, 2019 11:00 pm
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.