This class manages callbacks from the MIP solver. More...
Static Public Member Functions | |
static void | callback (IntPtr cPtr) |
Callback method called by native library. More... | |
static void | addListener (IGlpkCallbackListener listener) |
Adds a listener for callbacks. More... | |
static bool | removeListener (IGlpkCallbackListener listener) |
Removes first occurance of a listener for callbacks. More... | |
This class manages callbacks from the MIP solver.
The GLPK MIP solver calls method callback in the branch-and-cut algorithm. A listener to the callback can be used to influence the sequence in which nodes of the search tree are evaluated, or to supply a heuristic solution. To find out why the callback is issued use method GLPK.glp_ios_reason.
The listener list is stored in thread local storage. Each thread has to register its own listener.
Definition at line 18 of file GlpkCallback.cs.
|
inlinestatic |
Adds a listener for callbacks.
listener | listener for callbacks |
Definition at line 51 of file GlpkCallback.cs.
|
inlinestatic |
Callback method called by native library.
cPtr | pointer to search tree |
Definition at line 39 of file GlpkCallback.cs.
|
inlinestatic |
Removes first occurance of a listener for callbacks.
listener | listener for callbacks |
Definition at line 60 of file GlpkCallback.cs.