TMP file

3 views
Skip to first unread message

Saber Jalilzadeh-Galaeh

unread,
Dec 26, 2009, 9:38:03 AM12/26/09
to AMPL Group
Dear All users,
 
I want to write all solution data in a ".tmp" file.
How Could I write it? With which command?
 
 
Thanks in advance.
Saber

Robert Fourer

unread,
Dec 27, 2009, 10:03:23 AM12/27/09
to am...@googlegroups.com, Saber Jalilzadeh-Galaeh

You can direct the output of "display" or "printf" to a file by placing ">" followed by the filename at the end of the command.  For example:

 

   display Buy, Make, demand >xyz.tmp;

 

Use the same filename in several such commands to write all solution data of interest to the same file.

 

Bob Fourer

4...@ampl.com

 

 


From: am...@googlegroups.com [mailto:am...@googlegroups.com]

On Behalf Of Saber Jalilzadeh-Galaeh [sbr_6...@yahoo.com]
Sent: Saturday, December 26, 2009 8:38 AM
To: AMPL Group
Subject: [AMPL 3158] TMP file

--

You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to am...@googlegroups.com.
To unsubscribe from this group, send email to ampl+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ampl?hl=en.

Saber Jalilzadeh-Galaeh

unread,
Dec 27, 2009, 10:31:56 AM12/27/09
to am...@googlegroups.com
Dear Prof. Fourer
 
Thanks a lot for your helps.
 
 
Best
Saber


From: Robert Fourer <4...@ampl.com>
To: am...@googlegroups.com; Saber Jalilzadeh-Galaeh <sbr_6...@yahoo.com>
Sent: Sun, December 27, 2009 6:33:23 PM
Subject: RE: [AMPL 3159] TMP file
Reply all
Reply to author
Forward
0 new messages