AN INDEPENDENT UNIVERSITY STUDY GUIDE
Financial Optimization
and Portfolio
Management
From Linear Programming to Mean–Variance Portfolios
Linear, integer, network and quadratic optimization models
for finance and asset management
Theory, models, proofs, original worked examples, oral exam questions with model answers,
practice exercises with full solutions, formulary and English–Italian glossary.
Personal study material for exam preparation. This guide is an independent work: it is not an official
publication of any university, course or instructor. Sources consulted are listed in the bibliography.
ii
Contents
How to use this guide viii
1 Optimization and Mathematical Modelling 1
1.1 Deciding with scarce resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Models and mathematical programs . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Analytical optimization models and their classification . . . . . . . . . . . . . . . . . 3
1.4 Where optimization is used in finance . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.5 The formal modelling approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.6 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.7 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.8 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.9 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.10 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2 Linear Programming: Formulation, Assumptions and Reference Forms 10
2.1 From a decision problem to a linear program . . . . . . . . . . . . . . . . . . . . . . 10
2.2 A first financial example: return-based asset selection . . . . . . . . . . . . . . . . . 10
2.3 The axioms of linear programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.4 Linear functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.5 The general linear program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.6 Feasible and optimal solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.7 Reference forms of linear programming . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.8 Arbitrary form and equivalence with the reference forms . . . . . . . . . . . . . . . . 15
2.9 Worked transformations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.10 Strengths and limits of linear programming . . . . . . . . . . . . . . . . . . . . . . . 18
2.11 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.12 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.13 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.14 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.15 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3 Production Planning and Blending Models 24
3.1 Production planning: allocating scarce resources . . . . . . . . . . . . . . . . . . . . 24
3.2 Concurrent versus alternative resources . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.3 The general basic production model . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.4 Blending models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.5 Classes of LP models and reference forms . . . . . . . . . . . . . . . . . . . . . . . . 31
3.6 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.7 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.8 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
iii
CONTENTS
3.9 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.10 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4 Financial LP Models: Asset Allocation and Cash-Flow Management 36
4.1 Allocating a budget among mutual funds . . . . . . . . . . . . . . . . . . . . . . . . . 36
4.2 Bond allocation: a two-variable model . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.3 Cash-flow management: short-term financing . . . . . . . . . . . . . . . . . . . . . . 40
4.4 Cash-flow matching and asset–liability management . . . . . . . . . . . . . . . . . . 42
4.5 The dedicated bond portfolio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.6 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.7 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.8 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
4.9 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.10 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
5 The Geometry of Linear Programming 48
5.1 Points, vectors and directions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5.2 The linear objective: gradient, level lines and improving directions . . . . . . . . . . 49
5.3 The graphical method for two-variable LPs . . . . . . . . . . . . . . . . . . . . . . . 50
5.4 The four possible outcomes of an LP . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5.5 Half-spaces, hyperplanes and polyhedra . . . . . . . . . . . . . . . . . . . . . . . . . 53
5.6 Convex sets and the convexity of the feasible region . . . . . . . . . . . . . . . . . . 54
5.7 Vertices, edges and adjacency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
5.8 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
5.9 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 57
5.10 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
5.11 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
5.12 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
6 Standard Form, Fundamental Theorem and the Simplex Method 61
6.1 Equivalent transformations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
6.2 The Standard Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
6.3 Optimization problems, local optima and local search . . . . . . . . . . . . . . . . . 65
6.4 Basic solutions and the Fundamental Theorem . . . . . . . . . . . . . . . . . . . . . 65
6.5 The simplex method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
6.6 Simplex versus interior point methods . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6.7 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6.8 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 70
6.9 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
6.10 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
6.11 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
7 Duality Theory 74
7.1 Primal–dual pairs in the reference forms . . . . . . . . . . . . . . . . . . . . . . . . . 74
7.2 Where the dual comes from: the idea of bounds . . . . . . . . . . . . . . . . . . . . . 75
iv CONTENTS
7.3 Economic interpretation: pricing the resources . . . . . . . . . . . . . . . . . . . . . 77
7.4 Correspondence rules and the dual of an LP in arbitrary form . . . . . . . . . . . . . 77
7.5 The dual of the dual is the primal . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7.6 Weak duality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7.7 Strong duality and the possible outcomes . . . . . . . . . . . . . . . . . . . . . . . . 80
7.8 Complementary slackness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
7.9 Linear programming and linear systems . . . . . . . . . . . . . . . . . . . . . . . . . 83
7.10 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7.11 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 84
7.12 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
7.13 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
7.14 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
8 Sensitivity Analysis and Shadow Prices 89
8.1 Why post-optimality analysis? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
8.2 A running example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
8.3 Shadow prices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
8.4 Computing the shadow prices of the example . . . . . . . . . . . . . . . . . . . . . . 91
8.5 Validity range of a shadow price . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
8.6 The perturbation function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
8.7 Shadow prices are optimal dual variables . . . . . . . . . . . . . . . . . . . . . . . . . 95
8.8 Shadow prices in a financial planning model . . . . . . . . . . . . . . . . . . . . . . . 95
8.9 Ranging the objective coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8.10 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
8.11 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 97
8.12 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
8.13 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.14 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
9 Integer and Mixed-Integer Linear Programming 101
9.1 When divisibility fails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
9.2 The geometry of an ILP and the LP relaxation . . . . . . . . . . . . . . . . . . . . . 102
9.3 Solution methods in brief . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
9.4 The knapsack model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
9.5 Capital budgeting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
9.6 Multi-period project financing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
9.7 Fixed costs, all-or-nothing quantities and minimum lots . . . . . . . . . . . . . . . . 110
9.8 A MILP blending model: producing a tin brass alloy . . . . . . . . . . . . . . . . . . 112
9.9 Modelling logical conditions with binary variables . . . . . . . . . . . . . . . . . . . . 113
9.10 The modelling toolbox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
9.11 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
9.12 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 116
9.13 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
9.14 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
9.15 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
v
CONTENTS
10 Network Optimization and Asset–Liability Management 120
10.1 The language of graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
10.2 The transportation problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
10.3 The minimum cost flow problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
10.4 Generalized network flows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
10.5 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
10.6 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 132
10.7 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
10.8 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
10.9 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
11 Nonlinear and Quadratic Programming 137
11.1 From linear to nonlinear programming . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.2 Local and global optima . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
11.3 Convex sets and convex functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
11.4 Convex optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
11.5 Quadratic programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
11.6 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
11.7 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 144
11.8 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
11.9 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
11.10Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
12 Risk, Return and Mean–Variance Portfolio Selection 147
12.1 Portfolio selection as a decision problem . . . . . . . . . . . . . . . . . . . . . . . . . 147
12.2 Returns as random variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
12.3 Portfolios: weights, expected return and variance . . . . . . . . . . . . . . . . . . . . 150
12.4 Two risky assets: the role of correlation . . . . . . . . . . . . . . . . . . . . . . . . . 151
12.5 Diversification and the number of assets . . . . . . . . . . . . . . . . . . . . . . . . . 153
12.6 Bicriteria analysis and the efficient frontier . . . . . . . . . . . . . . . . . . . . . . . 154
12.7 The Markowitz models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
12.8 A worked market with four risky assets . . . . . . . . . . . . . . . . . . . . . . . . . . 158
12.9 Additional practical constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
12.10Alternative risk measures: scenario-based LP models . . . . . . . . . . . . . . . . . . 162
12.11Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
12.12Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 164
12.13Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
12.14Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
12.15Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
13 The Riskless Asset, Sharpe Ratio and Index Tracking 168
13.1 The riskless asset and the capital allocation line . . . . . . . . . . . . . . . . . . . . . 168
13.2 The tangency portfolio and one-fund separation . . . . . . . . . . . . . . . . . . . . . 169
13.3 The Sharpe ratio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
13.4 Index tracking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
vi CONTENTS
13.5 Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
13.6 Oral exam questions with model answers . . . . . . . . . . . . . . . . . . . . . . . . . 176
13.7 Practice exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
13.8 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
13.9 Essential terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
A Formulary 179
B English–Italian Glossary 187
C Bibliography 194
vii
How to use this guide
This guide is written for students preparing the oral examination of a master-level course in financial
optimization and asset management. It starts from the basic language of mathematical modelling
and Linear Programming and arrives at mean–variance portfolio selection, the riskless asset, the
Sharpe ratio and index tracking. Every topic is explained from first principles, so the text can be
studied on its own.
The structure of each chapter
Each chapter opens with its learning objectives and then develops the theory in a textbook style: the
intuition behind an idea comes first, the formal definition or model follows, and the interpretation –
geometric, economic or financial – closes the argument. Original worked examples, with numbers
that were all checked numerically, accompany every important procedure. Coloured boxes help
orientation:
Box Content
precise definitions that must be stated correctly at the exam
Definition results with hypotheses; proofs follow in the text
Theorem / Proposition complete mathematical models (variables, objective, constraints)
Model original numerical examples, solved step by step
Worked example the message to remember from a section
Key idea frequent errors in formulation, notation or interpretation
Common mistake
At the end of every chapter you will find a summary, a set of oral exam questions with model
answers, practice exercises with detailed solutions and the essential English–Italian terminology.
The appendices contain a formulary that collects the main models and formulas, a complete
English–Italian glossary and the bibliography.
How the oral exam is usually organised
The exam of this kind of course is typically oral and made of three or more questions. A frequent
pattern is the following: one question asks to present, illustrate and discuss one of the optimization
models of the course and its practical applications; another asks for definition
Scarica il documento per vederlo tutto.
Scarica il documento per vederlo tutto.
Scarica il documento per vederlo tutto.
Scarica il documento per vederlo tutto.
Scarica il documento per vederlo tutto.
Scarica il documento per vederlo tutto.
Scarica il documento per vederlo tutto.
Scarica il documento per vederlo tutto.