350 likes | 478 Views
Tools and components for optimisation and risk analysis. Professor Gautam Mitra Presented to Clarifi, New York. Outline. Solvers (FortMP / FortSP) Linear / Mixed Integer (LP / IP) Quadratic / Mixed (QP / QMIP) Stochastic optimization (SP) FortMP-MEX Matlab add-on
E N D
Tools and components for optimisation and risk analysis Professor Gautam Mitra Presented to Clarifi, New York.
Outline • Solvers (FortMP / FortSP) • Linear / Mixed Integer (LP / IP) • Quadratic / Mixed (QP / QMIP) • Stochastic optimization (SP) • FortMP-MEX Matlab add-on • Portfolio Optimisation model and engine • Modelling Systems (AMPL Suite) • AMPL Studio • AMPL COM • AMPL SPInE • Liability Determined Investment (LDI) / Asset and Liability Management ALM
Solvers – FortMP • FortMP is a large scale optimiser • Rich functionality • Robust solution algorithm [Math Programming Article] • Solves medium to large models • Not suitable for very large hyper sparse model • Available in stand-alone and library versions
Solvers - FortMP • Barrier and sparse simplex algorithms • Solves variable separable programming including special ordered sets of Type 1 and Type 2 (SOS1 and SOS2) problems • Extends LP to process MIP problems • Branch and bound • Cutting planes • Pre processing techniques
Solvers – FortMP/QP/QMIP • FortMP processes quadratic programs (QP) and quadratic mixed integer programs (QMIP) using • Branch and bound • Branch and relax
Solvers - FortSP • Processes stochastic programming problems with recourse using • Benders decomposition (nested) • Stochastic decomposition • In contrast to deterministic equivalent, these algorithms scale up
Solvers – FortMP MEX • Matlab environment add-in • Permits the use of FortMP’s rich and robust optimising functionalities directly from Matlab • Ideal for rapid application prototyping and for using in research environment
Portfolio Optimisation Model • An optimum asset allocation strategy explores a return and risk (pareto) efficient frontier and in this respect is a two objective (linear return and quadratic risk) constrained optimisation problem. • The Mean-Variance model is the basic portfolio optimisation model which • linear part is E[Rx] • risk measure is cov(Ri,Rj)
Mean Variance model • It can be expressed as a quadratic program (QP): max • Can be refined adding more restriction on the choice of the assets
Other restrictions • Factor model subject to • Index tracking model • where bj are normalized coefficients of the chosen benchmark portfolio
Other restrictions • Rebalancing model • Threshold constraints where δj are binary decision variables
Other restrictions • Cardinality constraints • at most C assets are held • The last two constraints transforms the QP problem in QMIP • Non linear transaction cost Segment 3 Segment 1 Segment 1: Steep initial cost or set up cost. Segment 2: Nearly linear incremental cost over a range. Segment 3: Steep increase in cost of the asset for large volumes of transaction. Segment 2
Benchmarks • Results obtained using FortMP’s • accelerated heuristic functionality
AMPL Overview • AMPL: comprehensive and powerful algebraic modelling language for linear and non-linear optimisation problems • Optimal for rapid prototyping and model development • Extended to express stochastic optimisation models (SAMPL)
Data AMPL Models AMPL Interactive AMPL COM Object C# / C++ / VB / VBA Application AMPL Studio SAMPL/SPInE AMPL Products Offer
AMPL Studio • Integrated modelling system based on AMPL language. • Benefits: • Rich and user-friendly graphical interface • Compact and easy database connection • Workspace management • Model (set / variables) explorer • Seamless integration through memory interaction with various solvers
AMPL Studio Menu Bar Editing Area Workspace and Model Explorer Multifunctional Output Console
AMPL-COM Object • Object Oriented Component Library, based on Microsoft COM software technologies • Rationale: • Utilise the features of a programming language and AMPL individually as well as in combination • Benefits: • Enable to build powerful DSS applications • Hide Models from End Users • Accessible the full AMPL features within any major development environments
Command AMPL Models Solvers Model Solution SolTime Variables Constraints Objectives Options Objective Variable Constraint AMPL-COM Object
AMPL Studio-SPInE Time Index Scenario Tree Structure Scenario Probabilities Scenario Index Probabilistic Constraints Stages Aggregations Random Parameters • Seamlessly integrated into AMPL studio environment • Extends AMPL language with constructs specific for modelling SP problems and interprets them Parameters Indices Variables Constraints Objectives
Liability Determined Investment (LDI)Asset and Liability Management (ALM)
Scope and Purpose of LDI Modelling System • Balance cash in-flow streams of asset returns and asset sales with cash out-flow streams of liability obligation as well as asset purchases • Objective: maximise surplus wealth or terminal wealth at the end of the planning period: Surpluswealth=assets – PV(liabilities) – PV(goals)
LDI Tool Description • Cash flow matching over a long planning horizon: up to 50 years or more • Portfolio mix: mainly fixed income, derivatives (swaps) and if necessary equities
LDI Tool Description • Multi-Objective: • Minimise PV01 Deviations (Deterministic) • Minimise Net PV Deviations (Stochastic) • Maximise Surplus Wealth • Minimise Initial Injected Cash • Minimise Member Contributions
Solving the Decision Model • The decision problem can be formulated and processed as: • LP/IP • SP with recourse • Chance Constrained Programming • Robust Optimisation
Stochastic Features • Scenario generation (User supplied): • Asset prices • Liabilities • Ex-ante asset decisions • Ex-post evaluation (Simulation)
Information • RISKWATCH + Customer Data Builder RISKWATCH + Data Builder DataSources Market Data POPULATE DATA DATA MART#.TAB MODEL DATA Consolidator+Diagnostic Optimisers - FortMP - CPLEX AMPL Modelling Environment[AMPL Com Object + LDI Model File + #.DAT File + #.RUN File] Simulation and visualization to RISKWATCH RESULTS LDI Information Flow
Information • RISKWATCH + Customer Data Builder RISKWATCH + Data Builder DataSources Market Data POPULATE DATA DATA MART#.TAB MODEL DATA Consolidator+Diagnostic Optimisers - FortMP - CPLEX AMPL Modelling Environment[AMPL Com Object + LDI Model File + #.DAT File + #.RUN File] Simulation and visualization to RISKWATCH RESULTS LDI Information Flow
Information • RISKWATCH + Customer Data Builder RISKWATCH + Data Builder DataSources Market Data POPULATE DATA DATA MART#.TAB MODEL DATA Consolidator+Diagnostic Optimisers - FortMP - CPLEX AMPL Modelling Environment[AMPL Com Object + LDI Model File + #.DAT File + #.RUN File] Simulation and visualization to RISKWATCH RESULTS LDI Information Flow