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

Definition of constants of different types

Description
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

myconstants.zip[download all files]

Source Files

Data Files





myconstants.mos

(!******************************************
  Mosel Examples
  ==============

  File myconstants.mos
  ````````````````````
  Example package defining 
    constants
  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
 end-declarations

end-package

Back to examples browserNext example