insightupdate
insightupdate |
Purpose
Sends a progress update notification for a single metric from the model to the Xpress Insight system.
Synopsis
procedure insightupdate(type:integer, value:real)
Argument
type
|
The type of metric to update.
|
Example
insightupdate(INSIGHT_OBJVAL,51.9)
Notify Insight that the current best solution value is 51.9
Further information
1. This function allows the model to report back progress to the system where it is accessible by a client for display.
2. The Xpress Insight event mechanism does not use the mmjobs send function.
3. By default, mminsight registers the
insightupdateprogress function provided by the mminsight package as the callback function for the gapnotify callback. The
insightupdateprogress function calls insightupdate for any metric that has changed. It is expected that the developer will only need to call insightupdate directly if the gapnotify callback is registered against a function provided by the developer.
Related topics