Callbacks
The Optimizer callbacks are accessed using the .NET event / delegate mechanism.
For example, to install a method
OptimizerMsg of the current class as a callback to receive Optimizer messages, you must to create a
MessageCallback delegate object from the function and add it to the
MessageCallbacks event field of the problem:
prob.MessageCallbacks += new MessageCallback(this.OptimizerMsg);
To remove a callback you must still create a delegate object, but use the
-= operator to remove it from the event field:
prob.MessageCallbacks -= new MessageCallback(this.OptimizerMsg);