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

Dynamic package loading

Description
This example shows how to work with dynamic package loading in order to allow endusers to modify the definition of an optimization problem without disclosing the actual model source:
  1. Compile the package template in usrpkgtempl.mos into usrpkg.bim
  2. Compile the main model in foliomipusrpkg.mos
  3. Share the BIM files and the source of usrpkgtempl.mos with end users
  4. Compile the completed package in usrpkg.mos
  5. Run the compiled model (without recompilation) in foliomipusrpkg.bim with the new version of the package in usrpkg.bim


Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
foliomipusrpkg.mos[download]
usrpkg.mos[download]
usrpkgtempl.mos[download]

Data Files





folio.dat

! Data file for `folio*.mos'

RET: [("treasury") 5 ("hardware") 17 ("theater") 26 ("telecom") 12     
      ("brewery") 8 ("highways") 9 ("cars") 7 ("bank") 6
      ("software") 31 ("electronics") 21 ]

DEV: [("treasury") 0.1 ("hardware") 19 ("theater") 28 ("telecom") 22
      ("brewery") 4 ("highways") 3.5 ("cars") 5 ("bank") 0.5 
      ("software") 25 ("electronics") 16 ]

NAMES:  ["treasury" "hardware" "theater" "telecom" "brewery" "highways" "cars" "bank" "software" "electronics"]

COUNTRY: ["Canada" "USA" "USA" "USA" "UK" "France" "Germany" "Luxemburg" "India" "Japan"]

RISK: ["hardware" "theater" "telecom" "software" "electronics"]

NA: ["treasury" "hardware" "theater" "telecom"]

Back to examples browserNext example