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

Folio - Embedding examples from 'Getting started'

Simple embedding tasks for a portfolio optimization problem:
  • loading and running a BIM file (
  • executing a Mosel model (
  • parameterized model execution (
  • exporting a matrix (
  • accessing model results (
  • data exchange in memory (,,
  • retrieving solution output from Optimizer callbacks in foliocbio.mos during optimization ([download all files]

Source Files

Data Files

  Mosel Library Example Problems

  Loading and running a BIM file.

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

import com.dashoptimization.*;

public class foliorun
 public static void main(String[] args) throws Exception
  XPRM mosel;
  XPRMModel mod;

  mosel = new XPRM();                        // Initialize Mosel

  mod = mosel.loadModel("foliodata.bim");    // Load compiled model;
  System.out.println("`foliodata' returned: " + mod.getResult());

Back to examples browserNext example