Description
Provides the user with a way of changing important GME system variables that control the behaviour of GME. The available parameters are:
- "interpretonly". If TRUE, the GME interface will interpret command text but will not run the commands. Instead, the interpreted commands are written to the output window. This is useful for testing scripts that use any of the strategic commands, functions and clauses.
- "maxattempts". The default number of maximum attempts to complete an algorithm is 1000000. For computationally intensive algorithms this means you can wait a long time for a mis-parameterized algorithm to fail. If you reduce this value it is recommended that you do not reduce it below 10000. This settings may be particularly useful when generating random points while enforcing a minimum distance between points (this can lead to a problem with no solution).
- "debug". If TRUE, you will activate my debugging message system, which provides slightly a slightly more detailed stack trace. This is useful for providing detailed information on a problem you have encountered.
Syntax
setparameter([interpretonly], [maxattempts], [debug]);
| [interpretonly] | (TRUE/FALSE) if TRUE, the GME interface interprets command text but does not execute the commands (default=FALSE) | |
| [maxattempts] | an integer that controls the maximum number of attempts an algorithm will make to solve a problem | |
| [debug] | (TRUE/FALSE) if TRUE, the debugging message system is activated (default=FALSE) |
Example
setparameter(interpretonly=TRUE);
setparameter(interpretonly=FALSE);
setparameter(maxattempts=10000);