getparam
function getparam(name:string):integer|string|real|boolean
|
name
|
Name of the control parameter whose value is to be returned (case insensitive).
|
r:=0.123456789
setparam("realfmt", "%.5f")
writeln("r=", r) ! Output: r=0.12346
writeln("Model ", getparam("modelname"), " version:", getparam("model_version"))
| autofinal | whether initialisation from blocks are finalizing sets |
| bimprefix | list of bim file prefixes |
| ioctrl | whether the interpreter ignores I/O errors |
| iostatus | status of the last I/O operation |
| lang | current language |
| localedir | directory where message catalogs are stored |
| mathctrl | whether the interpreter ignores maths errors |
| modelname | internal unique name of the model being executed |
| modelnumber | order number of the model being executed |
| nbread | number of items recognized by the last read or 'initializations from' |
| readcnt | generate per label counting when executing `initializations from' blocks |
| realfmt | default C printing format for real numbers |
| restrict | active restrictions |
| recloc | activate automatic recording of source location of constraint definitions |
| runparams | parameter string used for the current execution |
| sharingstatus | sharing status of the model |
| tmpdir | the Mosel temporary directory |
| 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 | the current working directory of the model |
| zerotol | zero tolerance in comparisons between reals |
| model_version | version of the model as given by the version directive |
| parser_date | current local date |
| parser_file | current source file name |
| parser_line | number of the line being parsed |
| parser_time | current local time |
| parser_UTCdate | current UTC date |
| parser_UTCtime | current UTC time |
| parser_version | Mosel version |
© 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.
