How can I pause the running to check some values?

205 views
Skip to first unread message

Allexandre Fortes S. Reis

unread,
Apr 7, 2014, 8:59:08 AM4/7/14
to am...@googlegroups.com
So,

I would like to check some values during the running. In C/C++ I can use system("pause") or getchar(), but, how can I do this in AMPL codes?

Thanks!

victor.z...@gmail.com

unread,
Apr 7, 2014, 12:42:09 PM4/7/14
to am...@googlegroups.com
The shell command in AMPL is equivalent to the system function in C/C++, so the following should work on systems that have the pause shell command:

  shell 'pause';

HTH,
Victor


--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at http://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages