public final class GlpkCallback
extends java.lang.Object
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
.
Modifier and Type | Method and Description |
---|---|
static void |
addListener(GlpkCallbackListener listener)
Adds a listener for callbacks.
|
static void |
callback(long cPtr)
Callback method called by native library.
|
static void |
removeListener(GlpkCallbackListener listener)
Removes a listener for callbacks.
|
public static void callback(long cPtr)
cPtr
- pointer to search treepublic static void addListener(GlpkCallbackListener listener)
listener
- listener for callbackspublic static void removeListener(GlpkCallbackListener listener)
listener
- listener for callbacks