FICO Xpress Optimization Examples Repository
FICO Optimization Community FICO Xpress Optimization Home
Back to examples browserNext example

Definition of constants of different types

Language extensions provided by this module:
  • constants: integer, real, string, boolean
This functionality can also be implemented by a package.

Further explanation of this example: 'Mosel Native Interface User Guide', Chapter 1 Defining constants; package version: 'Mosel User Guide', Section 16.1 Definition of constants[download all files]

Source Files

Data Files


  Mosel Examples

  File myconstants.mos
  Example package defining 
  of different types.

  (c) 2008 Fair Isaac Corporation
      author: S. Heipcke, 2005

package myconstants

 public declarations
  MYCST_BIGM = 10000          ! A large integer value
  MYCST_TOL = 0.00001         ! A tolerance value
  MYCST_LINE =                ! String constant
  MYCST_FLAG = true           ! Constant with value true
  MYCST_NOFLAG = false        ! Constant with value false


Back to examples browserNext example