OutputHandler¶
-
class
OutputHandler¶ Implement this interface to handle the outputs from the calls to any function that causes the underlying AMPL interpreter to display a message.
Note that errors and warnings are not passed through this interface, see ampl::ErrorHandler for more information.
-
enum
ampl::output::Kind¶ Represents the type of the output coming from the interpreter
Values:
-
WAITING¶ Output
prompt2, returned when incomplete statements are interpreted.
-
BREAK¶ Output
break, displayed when an operation is interrupted with SIGINT.
-
CD¶ Output
cd, returned by thecdfunction.
-
DISPLAY¶ Output
display, returned by thedisplayfunction.
-
EXIT¶ Output
exit, returned as last message from AMPL before exiting the interpreter.
-
EXPAND¶ Output
expand, returned by theexpandfunction.
-
LOAD¶ Output
load, returned by theloadfunction when loading a library.
-
OPTION¶ Output
option, returned by theoptionfunction when getting the value of an option.
-
PRINT¶ Output
print, returned by theprintfunction when printing values from AMPL command line.
-
PROMPT¶ Output
prompt1, normal AMPL prompt.
-
SOLUTION¶ Output
solution, returned when loading a solution with the commandsolution, contains the solver message.
-
SOLVE¶ Output
solve, returned by thesolvefunction, contains the solver message.
-
SHOW¶ Output
show, returned by theshowfunction.
-
XREF¶ Output
xref, returned by thexreffunction.
-
SHELL_OUTPUT¶ Output of the AMPL command
shell
-
SHELL_MESSAGE¶ Messages from the command
shell
-
MISC¶ Output
misc
-
WRITE_TABLE¶ Messages from the command
write table
-
READ_TABLE¶ Messages from the command
read table
-
_READTABLE¶ Internal messages from the command
read table
-
_WRITETABLE¶ Internal messages from the command
write table
-
BREAKPOINT¶ Breakpoint hit.
-
CALL¶ Output of a script
call
-
CHECK¶ Output of a
checkoperation.
-
CLOSE¶ Output of a
closecommand for output redirection.
-
COMMANDS¶ Output of a
commandscall into another file.
-
CONTINUE¶ Issued when
continueis encountered.
-
DATA¶ Output of a
datacommand.
-
DELETECMD¶ Output of a
deletecommand.
-
DROP¶ Output of a
dropcommand.
-
DROP_OR_RESTORE_ALL¶ Internal.
-
ELSE¶ Else block.
-
ELSE_CHECK¶ Internal.
-
ENDIF¶ End of if block.
-
ENVIRON¶ Output of a
environcommand.
-
FIX¶ Output of a
fixcommand.
-
FOR¶ Output of a
forcommand.
-
IF¶ Output of an
ifcommand.
-
LET¶ Output of a
letcommand.
-
LOOPEND¶ End of loop.
-
OBJECTIVE¶ Output of an
objectivecommand.
-
OPTION_RESET¶ Occurs when resetting option values.
-
PRINTF¶ Output of a
printfcommand.
-
PROBLEM¶ Output of a
problemcommand.
-
PURGE¶ Output of a
purgecommand.
-
RBRACE¶ Occurs when a right brace is encountered.
-
READ¶ Output of a
readcommand.
-
RELOAD¶ Output of a
reloadcommand.
-
REMOVE¶ Output of a
removecommand.
-
REPEAT¶ Beginning of a repeat loop.
-
REPEAT_END¶ End of a repeat loop.
-
RESET¶ Output of a
resetcommand.
-
RESTORE¶ Output of a
restorecommand.
-
RUN_ARGS¶ Internal.
-
SEMICOLON¶ Internal.
-
SSTEP¶ Internal.
-
THEN¶ Beginning of the
thenpart of an if statement.
-
UNFIX¶ Output of an
unfixcommand.
-
UNLOAD¶ Output of an
unloadcommand.
-
UPDATE¶ Output of an
updatecommand.
-
WRITE¶ Output of a
writecommand.
-