FICO
FICO Xpress Optimization Examples Repository
FICO Optimization Community FICO Xpress Optimization Home
Back to examples browserPrevious exampleNext example

Folio - example from 'Getting started' executed in MATLAB

Description
MATLAB interfacing with a Mosel portfolio optimization problem:
  • foliomat.m: MATLAB script to execute the model
  • foliomat.mos: corresponding Mosel model
  • foliomat2.m: extended version with chart display
  • foliomat2.mos: corresponding Mosel model


Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
foliomat.m[download]
foliomat.mos[download]
foliomat2.m[download]
foliomat2.mos[download]





foliomat.m

%*******************************************************
%  Mosel Matlab Example Problems
%  =============================
%
%  file foliomat.m
%  `````````````````````
%  Modeling a small LP problem
%  to perform portfolio optimization.
%
% (c) 2014 Fair Isaac Corporation
%     author: L.Bertacco, Apr. 2014
%*******************************************************

RET  = [5 17 26 12 8 9 7 6 31 21];
RISK = [2 3 4 9 10];
NA   = [1 2 3 4];
[r,e]=moselexec('foliomat.mos');
objval
frac'
Back to examples browserPrevious exampleNext example