Initializing help system before first use

Defining Custom Execution Modes

Custom execution modes are defined using annotations in the model. They should be declared after importing the mminsight package.
When defining custom execution modes, or when modifying the characteristics of the standard execution modes, the following attributes are available:
  • threads: (integer) The maximum number of threads that the model should consume when running in this mode. Defaults to unlimited.
  • preferredservice: (string) The execution service to try and map this execution mode to when importing the app. If an execution service of this name does not exist on the server when importing the app then the app will still be imported but no mapping will automatically be made to an execution service. If not specified the execution mode will try to use the server’s default service unless later mapped.
  • clearinput: (boolean) Flags whether the scenario input data should be populated after model execution. Defaults to false.
  • descr: (string) A description of the execution mode to help a systems administrator determine the purpose or requirements of the execution mode. Defaults to empty description.

The built-in execution mode LOAD has the clearinput attribute set to true, while RUN as clearinput set to false.