setparam


Purpose
Set the value of a control parameter.
Synopsis
procedure setparam(name:string,val:integer|string|real|boolean)
Arguments
name 
Name of a control parameter (case insensitive).
val 
New value for the control parameter
Example
See example of function getparam.
Further information
1. Control parameters include the settings of Mosel as well as those of any loaded module. The module may be specified by prefixing the parameter name with the name of the module (e.g. mmxprs.XPRS_verbose). The type of the value must correspond to the type expected by the parameter.
2. This procedure can be applied only to control parameters the value of which can be modified.
3. The name argument must be a constant string: a model parameter, variable or string expression cannot be used as a control parameter name.
4. The following control parameters, supported by Mosel, can be altered with this procedure:
realfmt 
Default C printing format for real numbers (string, default: "%g")
zerotol 
zero tolerance in comparisons between reals (real, default: 1.0e-13)
ioctrl 
the interpreter ignores IO errors (Boolean, default: false)
readcnt 
generate per label counting when executing `initializations from' blocks (Boolean, default: false)
UTC 
indicate whether the time functions return time expressed in local (false) or UTC (true) time (Boolean, default: false)
autofinal 
indicate whether initialisation blocks are finalizing sets (Boolean, default: true or false if compiler option noautofinal is used)
workdir 
specify the current working directory of the model (string, initialised with the current working directory of the Mosel instance). The provided value can be a relative path (e.g. "../somedir")

Related topics
getparam.


If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.