Initializing help system before first use

AppInterface.exec_mode

AppInterface.exec_mode


Purpose
Property for the execution mode in which Xpress Insight is running the model.
Synopsis
exec_mode
Example
Demonstration of setting the execution mode (test mode only).
>>> insight.exec_mode = 'CALCULATE_STATS'		
Demonstration of getting the execution mode then outputting it.
>>> print('execution mode = ', insight.exec_mode)
execution mode = CALCULATE_STATS		
Further information
1. The exec_mode property can only be set in test mode.
2. In the LOAD execution mode function (or other user-defined execution modes with clear_input=True) your app should initialize its input data. In the RUN execution mode function (or user-defined execution modes with clear_input=False) it should then initialize its result data.
3. Used to mock the execution mode that requested the scenario execution, when testing code outside of an Insight scenario. By default, insight.exec_mode will be initialized automatically if you call an execution mode function. However, if you want to test another function, which is not an execution mode function, then it could make sense to set the exec_mode property manually.
4. Modifying this property when insight.test_mode is False will cause the model to abort with a runtime error.

© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.