fscanf gams

Archive of Gamsworld Google Group
Post Reply
Archiver
User
User
Posts: 7876
Joined: 2 years ago

fscanf gams

Post by Archiver » 2 years ago


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.

Archiver
User
User
Posts: 7876
Joined: 2 years ago

Re: fscanf gams

Post by Archiver » 2 years ago


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.

Post Reply