ILOG CPLEX .NET Reference Manual

Cplex.SetWarning Method 

Sets the warning stream of the invoking Cplex object.

public virtual void SetWarning(
   TextWriter s
);

Parameters

s
The new warning output stream.

Remarks

After this call, all warnings will be output via the new stream. Passing null as the new output stream will turn off all warnings.

See Also

Cplex Class | ILOG.CPLEX Namespace