Page 1 of 1

fscanf gams

Posted: Mon Apr 18, 2016 9:11 pm
by Archiver

hello all!

Do you know if gams can read data from, for example, a text file, like other languages read using something like "fscanf"?

Thanks in advance!

Fede

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Re: fscanf gams

Posted: Tue Apr 19, 2016 7:32 am
by Archiver

Fede,

GAMS has strict requirements about the data format it processes. The only variant is using $ondelim (http://www.gams.com/help/topic/gams.doc ... onoffdelim). The Windows version of GAMS ships with a couple of Unix utilities (http://www.gams.com/help/topic/gams.doc ... index.html) that help to write platform independent code. You find a few examples of AWK usage to process standard problem formats (that are not conform with GAMS input data format) in the model library: https://www.gams.com/modlib/libhtml/awkqap.htm, https://www.gams.com/modlib/libhtml/awktsp.htm.

Hope this helps,
Michael Bussieck - GAMSWorld Coordinator

On Monday, April 18, 2016 at 11:09:48 PM UTC-4, fedperea wrote:

hello all!

Do you know if gams can read data from, for example, a text file, like other languages read using something like "fscanf"?

Thanks in advance!

Fede

--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.