AMPL_OUTPUTHANDLER#
- group AMPL_OUTPUTHANDLER
Typedefs
-
typedef void (*AMPL_OutputHandlerCb)(AMPL_OUTPUTKIND kind, const char *text, void *user)#
Callback type for handling AMPL output messages.
This callback is invoked by the AMPL runtime to deliver output generated during model execution, such as solver output, display statements, or informational messages.
- Param kind:
The kind of output being produced (see AMPL_OUTPUTKIND)
- Param text:
Null-terminated output text
- Param user:
User-defined context pointer supplied when the handler was registered
-
typedef void (*AMPL_OutputHandlerCb)(AMPL_OUTPUTKIND kind, const char *text, void *user)#
-
enum AMPL_OUTPUTKIND#
Represents the type of the output coming from the interpreter.
Values:
-
enumerator AMPL_OUTPUT_WAITING#
Output
prompt2, returned when incomplete statements are interpreted.
-
enumerator AMPL_OUTPUT_BREAK#
Output
break, displayed when an operation is interrupted with SIGINT.
-
enumerator AMPL_OUTPUT_CD#
Output
cd, returned by thecdfunction.
-
enumerator AMPL_OUTPUT_DISPLAY#
Output
display, returned by thedisplayfunction.
-
enumerator AMPL_OUTPUT_EXIT#
Output
exit, returned as last message from AMPL before exiting the interpreter.
-
enumerator AMPL_OUTPUT_EXPAND#
Output
expand, returned by theexpandfunction.
-
enumerator AMPL_OUTPUT_LOAD#
Output
load, returned by theloadfunction when loading a library.
-
enumerator AMPL_OUTPUT_OPTION#
Output
option, returned by theoptionfunction when getting the value of an option.
-
enumerator AMPL_OUTPUT_PRINT#
Output
print, returned by theprintfunction when printing values from AMPL command line.
-
enumerator AMPL_OUTPUT_PROMPT#
Output
prompt1, normal AMPL prompt.
-
enumerator AMPL_OUTPUT_SOLUTION#
Output
solution, returned when loading a solution with the commandsolution, contains the solver message.
-
enumerator AMPL_OUTPUT_SOLVE#
Output
solve, returned by thesolvefunction, contains the solver message.
-
enumerator AMPL_OUTPUT_SHOW#
Output
show, returned by theshowfunction.
-
enumerator AMPL_OUTPUT_XREF#
Output
xref, returned by thexreffunction.
-
enumerator AMPL_OUTPUT_SHELL_OUTPUT#
Output of the AMPL command
shell.
-
enumerator AMPL_OUTPUT_SHELL_MESSAGE#
Messages from the command
shell.
-
enumerator AMPL_OUTPUT_MISC#
Output
misc.
-
enumerator AMPL_OUTPUT_WRITE_TABLE#
Messages from the command
write table.
-
enumerator AMPL_OUTPUT_READ_TABLE#
Messages from the command
read table.
-
enumerator AMPL_OUTPUT_READTABLE#
Internal messages from the command
read table.
-
enumerator AMPL_OUTPUT_WRITETABLE#
Internal messages from the command
write table.
-
enumerator AMPL_OUTPUT_BREAKPOINT#
Breakpoint hit.
-
enumerator AMPL_OUTPUT_CALL#
Output of a script
call.
-
enumerator AMPL_OUTPUT_CHECK#
Output of a
checkoperation.
-
enumerator AMPL_OUTPUT_CLOSE#
Output of a
closecommand for output redirection.
-
enumerator AMPL_OUTPUT_COMMANDS#
Output of a
commandscall into another file.
-
enumerator AMPL_OUTPUT_CONTINUE#
Issued when
continueis encountered.
-
enumerator AMPL_OUTPUT_DATA#
Output of a
datacommand.
-
enumerator AMPL_OUTPUT_DELETECMD#
Output of a
deletecommand.
-
enumerator AMPL_OUTPUT_DROP#
Output of a
dropcommand.
-
enumerator AMPL_OUTPUT_DROP_OR_RESTORE_ALL#
Internal.
-
enumerator AMPL_OUTPUT_ELSE#
Else block.
-
enumerator AMPL_OUTPUT_ELSE_CHECK#
Internal.
-
enumerator AMPL_OUTPUT_ENDIF#
End of if block.
-
enumerator AMPL_OUTPUT_ENVIRON#
Output of a
environcommand.
-
enumerator AMPL_OUTPUT_FIX#
Output of a
fixcommand.
-
enumerator AMPL_OUTPUT_FOR#
Output of a
forcommand.
-
enumerator AMPL_OUTPUT_IF#
Output of an
ifcommand.
-
enumerator AMPL_OUTPUT_LET#
Output of a
letcommand.
-
enumerator AMPL_OUTPUT_LOOPEND#
End of loop.
-
enumerator AMPL_OUTPUT_OBJECTIVE#
Output of an
objectivecommand.
-
enumerator AMPL_OUTPUT_OPTION_RESET#
Occurs when resetting option values.
-
enumerator AMPL_OUTPUT_PRINTF#
Output of a
printfcommand.
-
enumerator AMPL_OUTPUT_PROBLEM#
Output of a
problemcommand.
-
enumerator AMPL_OUTPUT_PURGE#
Output of a
purgecommand.
-
enumerator AMPL_OUTPUT_RBRACE#
Occurs when a right brace is encountered.
-
enumerator AMPL_OUTPUT_READ#
Output of a
readcommand.
-
enumerator AMPL_OUTPUT_RELOAD#
Output of a
reloadcommand.
-
enumerator AMPL_OUTPUT_REMOVE#
Output of a
removecommand.
-
enumerator AMPL_OUTPUT_REPEAT#
Beginning of a repeat loop.
-
enumerator AMPL_OUTPUT_REPEAT_END#
End of a repeat loop.
-
enumerator AMPL_OUTPUT_RESET#
Output of a
resetcommand.
-
enumerator AMPL_OUTPUT_RESTORE#
Output of a
restorecommand.
-
enumerator AMPL_OUTPUT_RUN_ARGS#
Internal.
-
enumerator AMPL_OUTPUT_SEMICOLON#
Internal.
-
enumerator AMPL_OUTPUT_SSTEP#
Internal.
-
enumerator AMPL_OUTPUT_THEN#
Beginning of the
thenpart of an if statement.
-
enumerator AMPL_OUTPUT_UNFIX#
Output of an
unfixcommand.
-
enumerator AMPL_OUTPUT_UNLOAD#
Output of an
unloadcommand.
-
enumerator AMPL_OUTPUT_UPDATE#
Output of an
updatecommand.
-
enumerator AMPL_OUTPUT_WRITE#
Output of a
writecommand.
-
enumerator AMPL_OUTPUT_WAITING#