setparam
Purpose
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 or package. The location of the parameter may be specified by prefixing its name with the name of the module or package defining it (
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 (see detailed documentation in Chapter
Control parameters):
| autofinal | whether initialisation from blocks are finalizing sets |
| bimprefix | list of bim file prefixes |
| ioctrl | whether the interpreter ignores I/O errors |
| localedir | directory where message catalogs are stored |
| mathctrl | whether the interpreter ignores maths errors |
| readcnt | generate per label counting when executing `initializations from' blocks |
| realfmt | default C printing format for real numbers |
| recloc | activate automatic recording of source location of constraint definitions |
| txtztol | zero tolerance for converting real values to their textual representation |
| utc | whether the time functions return time expressed in local or UTC time |
| workdir | specify the current working directory of the model |
| zerotol | zero tolerance in comparisons between reals |
Related topics
© 2001-2026 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.
