Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

suppress bailing out and force the solver to continue

846 views
Skip to first unread message

Ziming Guan

unread,
Mar 17, 2011, 12:44:06 AM3/17/11
to am...@googlegroups.com
Hi,

I understand that ampl/cplex discards the values of parameters if they
are outside of the subscript ranges of the parameters, and return a
warning message, and stops if there are more than 10 warnings, such as
presented below.

Error at _cmdno 125 executing "solve" command
(file Main.run, line 334, offset 17958):
error processing param p:
66 invalid subscripts discarded:
p[9]
and 63 more.

Bailing out after 10 warnings.

However, I want the solver to continue instead of stop. After searching
in the AMPL googlegroups, I found two suggestions, "option
presolve_warnings xxx;" with xxx set to a large number, and "option
eerror -20 ;" (or maybe "option error -20;"?). But bailing out still
occurs with these options. I wonder how to suppress the bailing out and
force the solver to continue? Thank you very much.

Regards,
Ziming

Robert Fourer

unread,
Mar 20, 2011, 7:21:57 PM3/20/11
to am...@googlegroups.com
Have you tried "option eexit -xxx" where -xxx is a large negative number?
This causes the current statement to bail out only after xxx errors or
warnings. (A positive value works the same, except that it would terminate
the whole AMPL session after xxx errors or warnings.)

Bob Fourer
4...@ampl.com

Ziming Guan

unread,
Mar 20, 2011, 8:06:13 PM3/20/11
to am...@googlegroups.com
Hi Bob,

It is working. Thank you.

Regards,
Ziming Guan

Reply all
Reply to author
Forward
0 new messages