Setting Interpreter Parameters
The set-opt command is used to change the default value of an interpreter parameter.
Syntax:
set-opt <parameter name> <parameter value>.
max-time-ahead
One settable parameter is currently max-time-ahead parameter, which tells the interpreter what is the max search tree depth it is allowed to explore before timing out.
The default value for max-time-ahead is 3
This means if current time is t = 0 and we ask an object to satisfy its goal, the interpreter will look ahead in the future possible worlds up to time t = 3 to see if the goal is satisfied or not.
The same time out is used when a Goal-oriented action run? is requested. The time out time will dedicate the range of possible worlds within which any heuristic will be tested on to pick the best action.
set-opt max-time-out 4.
two-player-game
If the microworld being described is a two player game?, the search algorithm needs to run in minimax mode, which is not the default. The two-player-game? option, tells the interpreter to go into this mode. The value for this parameter should be the list of the player objects.
For example in the Chess example, this option is set to:
set-opt two-player-game [ White, Black ].
debug
Another parameter is debug? which is set to 1 by default,
which the parsed commands are printed in the interpreter before the results.
To set debug off:
set-opt debug no.
To get extra debug information, one can set the debug level? to higher numbers.
set-opt debug 2.