12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

more calls to the message handling routines of the Callable Library. In other words, thedestination list of each channel is initially empty.Messages from multiple channels may be sent to one destination. All predefined<strong>ILOG</strong> <strong>CPLEX</strong> channels can be directed to a single file by a call to CPXsetlogfile.Similarly, all predefined <strong>ILOG</strong> <strong>CPLEX</strong> channels except cpxlog can be directed to thescreen by the CPX_PARAM_SCRIND parameter. For a finer level of control, or to definedestinations for application-specific messages, use the following message handling routines,all documented in the <strong>ILOG</strong> <strong>CPLEX</strong> Reference <strong>Manual</strong>:◆◆◆◆◆◆◆◆CPXmsg writes a message to a predefined channel;CPXflushchannel flushes a channel to its associated destination;CPXdisconnectchannel flushes a channel and clears its destination list;CPXdelchannel flushes a channel, clears its destination list, frees memory for thatchannel;CPXaddchannel adds a channel;CPXaddfpdest adds a destination file to the list of destinations associated with achannel;CPXdelfpdest deletes a destination from the destination list of a channel;CPXaddfuncdest adds a destination function to a channel;◆ CPXdelfuncdest deletes a destination function to a channel;Once channel destinations are established, messages can be sent to multiple destinations bya single call to a message-handling routine.Figure 6.1User-writtenapplicationCPXaddchannelCPXmsgChannel(s)(CPXdelchannel)CPXaddfpdest(CPXdelfpdest)CPXaddfuncdest(CPXdelfuncdest)Destination File(s)Destination Function(Figure 6.1 <strong>ILOG</strong> <strong>CPLEX</strong> Message Handling RoutinesExample: Callable Library Message ChannelsThis example shows you how to use the <strong>ILOG</strong> <strong>CPLEX</strong> message handler from the CallableLibrary. It captures all messages generated by <strong>ILOG</strong> <strong>CPLEX</strong> and displays them on screen152 <strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!