insightpopulate
insightpopulate |
Purpose
In the run mode
INSIGHT_MODE_RUN, this procedure is called to inject the input data from the Xpress Insight scenario into the model's data structures.
Synopsis
procedure insightpopulate
Example
case insightgetmode of INSIGHT_MODE_LOAD: do ! Scenario is being 'loaded' through Xpress Insight ! Call user function to initialize input data and then terminate loaddata exit(0) end-do INSIGHT_MODE_RUN: do ! Scenario is being 'run' through Xpress Insight ! Populate with Insight scenario data and continue model run insightpopulate end-do else ! Model is being run outside of Xpress Insight ! Call user function to initialize input data and continue model run loaddata end-case
Example of the basic flow of an Insight model, calling
loaddata to populate the input data entities when the scenario is loaded or the model is run from outside of Insight, and
insightpopulate to populate them when scenario is run within Insight.
Further information
When the model is in run mode
INSIGHT_MODE_LOAD or
INSIGHT_MODE_NONE, calling
insightpopulate will cause the model to abort with an error.
Related topics