CPLEX message-handling utilities give users complete control over messages sent to the screen and to files. They also provide support for the creation of user-defined messages.
Note: Names of classes, methods, and symbolic constants in the .NET API correspond very closely to those in the Java API with these systematic exceptions:
Ilo
, whereas in .NET they do not.
addCols
,
whereas in the .NET API, the names of methods conventionally
begin with an uppercase (that is, capital) letter, for example,
AddCols
according to Microsoft practice.
Purpose |
Java API |
C++ API |
C API |
---|---|---|---|
Accesses CPLEX default channels |
IloCplex::out, IloCplex::warning. IloCplex derives from IloAlgorithm and thus inherits its methods. |
||
Accesses logfile for pre-defined channels |
IloCplex.output |
IloAlgorithm::out |
|
Designates logfile for pre-defined channels |
IloCplex.setOut |
IloAlgorithm::setOut |
|
Flushes all message destinations for a channel |
Use java.io.OutputStream.flush on result of IloCplex.output |
Use ostream::flush on result of IloCplex::out |
|
Causes CPLEX default channels to be flushed |
Use java.io.OutputStream.flush on result of IloCplex.output |
Use ostream::flush on result of IloCplex::out |
|
Flushes and clears destination list for a channel |
IloCplex.setOut(null) |
IloAlgorithm::setOut(env.getNullStream) |
|
Flushes, clears, and frees memory for a channel |
---- |
---- |
|
Adds destination files for a channel |
IloCplex.setOut, |
IloAlgorithm::setOut or IloAlgorithm::setWarning |
|
Deletes destination files for a channel |
IloCplex.setOut(null), or IloCplex.setWarning |
IloAlgorithm::setOut(env.getNullStream), also IloAlgorithm::setWarning |
|
Creates a new channel |
---- |
---- |
|
Sends a message into a channel |
Send output to result of IloCplex.output |
Send output to result of IloCplex::out |
|
Adds destination functions for a channel |
---- |
---- |
|
Deletes destination functions for a channel |
---- |
---- |
|
Obtains the string that corresponds to an error code |
IloException.toString |
Output operator of IloCplex::Exception |