setparam
| 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:
 
  
   
 
 | 
      realfmt 
      | |
| 
      zerotol 
      | |
| 
      ioctrl 
      | 
      specify whether the interpreter ignores IO errors
      
       (Boolean, default:
      false). When
      ioctrl is enabled it is required to get (and reset) the
      iostatus parameter (see
      getparam) after every IO operation. Not doing so may result in undefined behavior
      | 
| 
      mathctrl 
      | |
| 
      readcnt 
      | |
| 
      UTC 
      | |
| 
      autofinal 
      | |
| 
      workdir 
      | |
| 
      recloc 
      | 
      enable (or disable) automatic recording of source location of constraints definitions (Boolean, default:
      false). This parameter can be set to
      true only if the model has been compiled with option
      -G; it makes it possible the creation of meaningful constraint names when exporting a matrix (see
      exportprob)
      | 
| 
      localedir 
      | |
| 
      bimprefix 
      | 
      list of bim file prefixes (string). This parameter is used to locate packages when compiling a model (
      compile) and loading a bim file (
      load), see Section
      Directive uses.
      | 
  Related topics
 
  
