SlideShare a Scribd company logo
1 of 31
Topic 4. Optimization
Kashcha Mariya
Contents
• Introduction
• Linear programming
• Constrained optimization
• Quadratic programming
• Kuhn-Tucker condition
• Danzing-Wolfe methods
Introduction
• We are concerned with optimization – in
particular we are concerned with determined the
structure of “optimal portfolios” where optimal
is defined as having a minimum variance for a
given level of return
• We could use calculus to find optimum points;
use Lagrange multipliers to find optimum with
constraints.
Definitions
• The objective function sets out the task which
the optimization process is to achieve.
• For example, a typical objective function for a
portfolio of risky assets would be
• Z – is total risk, W – weightings of the assets in
the portfolio
• Z – is quadratic function.
Constraints
1. Some funds have to be invested in each asset
2. All the funds must be fully invested
3. The minimum risk must be achieved subject
to achieving a minimum level of return
A mathematical programming problem is a
problem in which a function of many variables
(the objective function) is to be optimized
subject to a number of constraints.
A linear programming problem is one in which
objective function and constrains is linear.
A quadratic programming problem is one in
which objective function is a quadratic
function of the variables, i.e. where some of
the variables have squared values. However,
the constrains are linear.
Linear programming
• When we combine assets in a portfolio the
returns of each asset combine in a linear form
and the risk of the portfolio as represented by
the portfolio β is also a linear combination, in
this case a weighted average of the βs of the
individual assets.
Task
Problem to constructing a portfolio with the
objective of achieving maximum expected
return, subject to the constraint that the β of
the portfolio is to be no higher 1,1.
1. Assume that have three assets to chose form: A,
B and C.
2. Their expected returns are 0,11; 0,15 and 0,08.
3. The βs: 1; 1,2; 0,9.
4. Assets are given by Wa, Wb and Wc.
• Objective function:
0,11Wa+0,15Wb+0,08Wc → maximum
• The constraints:
Wa+Wb+Wc ≤ 1,1
0≤Wa≤1
0≤Wb≤1
0≤Wc≤1
Wa+Wb+Wc=1
Graphical solution
Step 1. Eliminate Wc and thus produce a two-
variable problem.
• Wc=1-Wa-Wb
• 0≤Wa,Wb ≤1
• 0 ≤Wa+Wb ≤1
• 0,1Wa+0,3Wb ≤0,2
Z=0,03Wa+0,07Wb+0,08
• Step 2.
Wa
Wb
1
1
2
Wa+3Wb ≤2
Wa ≤1
Wb ≤1
Wa+Wb ≤1
O
Z=0,03Wa+0,07Wb+0,08
K
L
M
L: Wa+Wb=1;
Wa+3Wb=2.
L(0,5;0,5)
The simplex method
Wa Wb S1 S2 RHS
1 1 1 1 0 1
2 0,1 0,3 0 1 0,2
Objective
function
-0,03 -0,07 0 0 0
Z-0,03Wa-0,07Wb+0s1+0s2=0
• Wc=1-Wa-Wb; 0≤Wa,Wb ≤1
• Wa+Wb+s1=1
• 0,1Wa+0,3Wb +s2=0,2
Wa Wb S1 S2 RHS RHS/Wa
1 1 1 1 0 1 1 - min
2 0,1 0,3 0 1 0,2 2
Objective
function
-0,03 -0,07 0 0 0
Wa Wb S1 S2 RHS RHS/Wa
1 1 1 1 0 1 1 - min
2 0,1 0,3 0 1 0,2 2
Objective
function
-0,03 -0,07 0 0 0
Wa Wb S1 S2 RHS
1 1 1 1 0 1
2 0 0,2 -0,1 1 0,1
Objective
function
0 -0,04 -0,03 0 -0,03
Wa Wb S1 S2 RHS RHS/Wb
1 1 1 1 0 1 1
2 0 0,2 -0,1 1 0,1 0.5 - min
Objective
function
0 -0,04 -0,03 0 -0,03
Wa Wb S1 S2 RHS
1 1 1 1 0 1
2 0 1 -0,5 5 0,5
Objective
function
0 -0,04 -0,03 0 -0,03
• Wa+1,5s1-5s2=0,5
• Wb-0,5s1+5s2=0,5
Z=0,01s1+0,2s2+0,05+0,08 → max
• s1=s1=0
• Wa=0,5
• Wb=0,5
Wa Wb S1 S2 RHS
1 1 0 1,5 -5 0,5
2 0 1 -0,5 5 0,5
Objective
function
0 0 0,01 0,2 0,05
The portfolio optimization
• Problem is to determine what proportion of the
portfolio should be allocated to each investment so
that the amount of expected return and the level of
risk optimally meet the investor’s objectives.
• For example, the objective function may be to
minimize risk, but subject to a minimum level to
return. There may also be constraints on the
minimum and maximum proportions which may be
invested in each asset.
Portfolio problem: a three-asset
portfolio
• The expected return:
E(r) = Wara+Wbrb+Wcrc
• The portfolio variance:
Z= Waσ2
a+Wbσ2
b+Wcσ2
c+2WaWbcov(a,b)+
+2WcWacov(a,c)+2WbWccov(b,c) → minimize
Subject to:
Wa+Wb+Wc≤1
WaE(ra)+WbE(rb)+WcE(rc)≥R, where R – is the minimum
acceptable level of return
The application of quadratic programming a
three asset portfolio selection problem – finding
the optimal(minimum variance) portfolio
We have three assets A, B, C with expected returns of
0,11; 0,15; 0,08. The covariance matrix is:
Required return of 11%
Optimization problem is to:
Z= 0,00015Wa+0,00025Wb+0,0001Wc+0,0001WaWb- -
0,00014WcWa-0,00006WbWc → minimize
Subject to:
Wa+Wb+Wc=1
0,11Wa+0,15Wb+0,08Wc=0,11
Optimization under equality
constraints: using Lagrange multipliers
• We construct the Lagrangian:
Kuhn – Taker conditions
• Step 1. To manipulate the inequalities so that the
problem is presented in standard form:
• Step 2. Building Lagrangian + “Kuhn – Taker
conditions”
Dantzig - Wolfe
Our task is to find feasible point as against an optimal
point – this is first step in the simplex algorithm.
Creating solution in which real variables equal 0, and
in which artificial equal right-hand sides.
So, is to take initial part simplex algorithm and add in
the complementary conditions.
1) Wc=0,25;Wb=0,405;Wa=0,436.
Wa+Wb+Wc=0,966 – not all money is used
2) If we want on investing all of our cash, changing
Wa+Wb+Wc=1
• Solving consumer choice problem using Kuhn-Tucker
conditions (part 1).
• Solving consumer choice problem using Kuhn-Tucker
conditions (part 2).
• Solving minimization costs problem using Kuhn-
Tucker conditions (part 1).
• Solving minimization costs problem using Kuhn-
Tucker conditions (part 2).

More Related Content

Similar to Lecture 6.pptx

Introducing Riak
Introducing RiakIntroducing Riak
Introducing Riak
Kevin Smith
 
Introducing Riak
Introducing RiakIntroducing Riak
Introducing Riak
Kevin Smith
 
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptParallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
dakccse
 

Similar to Lecture 6.pptx (20)

Backtracking
BacktrackingBacktracking
Backtracking
 
Support Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the theSupport Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the the
 
Introducing Riak
Introducing RiakIntroducing Riak
Introducing Riak
 
Introducing Riak
Introducing RiakIntroducing Riak
Introducing Riak
 
OscaR.cbls3.0_V7
OscaR.cbls3.0_V7OscaR.cbls3.0_V7
OscaR.cbls3.0_V7
 
Ration-by-Weight of Efficiency and Equity
Ration-by-Weight of Efficiency and Equity Ration-by-Weight of Efficiency and Equity
Ration-by-Weight of Efficiency and Equity
 
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal'sGreedy algorithms -Making change-Knapsack-Prim's-Kruskal's
Greedy algorithms -Making change-Knapsack-Prim's-Kruskal's
 
Introduction to Neural networks (under graduate course) Lecture 4 of 9
Introduction to Neural networks (under graduate course) Lecture 4 of 9Introduction to Neural networks (under graduate course) Lecture 4 of 9
Introduction to Neural networks (under graduate course) Lecture 4 of 9
 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplication
 
super vector machines algorithms using deep
super vector machines algorithms using deepsuper vector machines algorithms using deep
super vector machines algorithms using deep
 
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
 
Knapsack problem using dynamic programming
Knapsack problem using dynamic programmingKnapsack problem using dynamic programming
Knapsack problem using dynamic programming
 
Learning to Project and Binarise for Hashing-based Approximate Nearest Neighb...
Learning to Project and Binarise for Hashing-based Approximate Nearest Neighb...Learning to Project and Binarise for Hashing-based Approximate Nearest Neighb...
Learning to Project and Binarise for Hashing-based Approximate Nearest Neighb...
 
Knapsack problem using fixed tuple
Knapsack problem using fixed tupleKnapsack problem using fixed tuple
Knapsack problem using fixed tuple
 
2013 syscan360 yuki_chen_syscan360_exploit your java native vulnerabilities o...
2013 syscan360 yuki_chen_syscan360_exploit your java native vulnerabilities o...2013 syscan360 yuki_chen_syscan360_exploit your java native vulnerabilities o...
2013 syscan360 yuki_chen_syscan360_exploit your java native vulnerabilities o...
 
TextCategorization support vector_0308.pdf
TextCategorization support vector_0308.pdfTextCategorization support vector_0308.pdf
TextCategorization support vector_0308.pdf
 
Optimization problems
Optimization problemsOptimization problems
Optimization problems
 
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.pptParallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
 
Java script – basic auroskills (2)
Java script – basic   auroskills (2)Java script – basic   auroskills (2)
Java script – basic auroskills (2)
 
Ms(lpgraphicalsoln.)[1]
Ms(lpgraphicalsoln.)[1]Ms(lpgraphicalsoln.)[1]
Ms(lpgraphicalsoln.)[1]
 

More from Mariia Kashcha

More from Mariia Kashcha (7)

ПЕТема 3.pptx
ПЕТема 3.pptxПЕТема 3.pptx
ПЕТема 3.pptx
 
ПЕТема 2.pptx
ПЕТема 2.pptxПЕТема 2.pptx
ПЕТема 2.pptx
 
ПЕТема 1.pptx
ПЕТема 1.pptxПЕТема 1.pptx
ПЕТема 1.pptx
 
Lecture 8.pptx
Lecture 8.pptxLecture 8.pptx
Lecture 8.pptx
 
Lecture 4-5.pptx
Lecture 4-5.pptxLecture 4-5.pptx
Lecture 4-5.pptx
 
Lecture 2-3.pptx
Lecture 2-3.pptxLecture 2-3.pptx
Lecture 2-3.pptx
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

Lecture 6.pptx

  • 2. Contents • Introduction • Linear programming • Constrained optimization • Quadratic programming • Kuhn-Tucker condition • Danzing-Wolfe methods
  • 3. Introduction • We are concerned with optimization – in particular we are concerned with determined the structure of “optimal portfolios” where optimal is defined as having a minimum variance for a given level of return • We could use calculus to find optimum points; use Lagrange multipliers to find optimum with constraints.
  • 4. Definitions • The objective function sets out the task which the optimization process is to achieve. • For example, a typical objective function for a portfolio of risky assets would be • Z – is total risk, W – weightings of the assets in the portfolio • Z – is quadratic function.
  • 5. Constraints 1. Some funds have to be invested in each asset 2. All the funds must be fully invested 3. The minimum risk must be achieved subject to achieving a minimum level of return
  • 6. A mathematical programming problem is a problem in which a function of many variables (the objective function) is to be optimized subject to a number of constraints. A linear programming problem is one in which objective function and constrains is linear. A quadratic programming problem is one in which objective function is a quadratic function of the variables, i.e. where some of the variables have squared values. However, the constrains are linear.
  • 7. Linear programming • When we combine assets in a portfolio the returns of each asset combine in a linear form and the risk of the portfolio as represented by the portfolio β is also a linear combination, in this case a weighted average of the βs of the individual assets.
  • 8. Task Problem to constructing a portfolio with the objective of achieving maximum expected return, subject to the constraint that the β of the portfolio is to be no higher 1,1. 1. Assume that have three assets to chose form: A, B and C. 2. Their expected returns are 0,11; 0,15 and 0,08. 3. The βs: 1; 1,2; 0,9. 4. Assets are given by Wa, Wb and Wc.
  • 9. • Objective function: 0,11Wa+0,15Wb+0,08Wc → maximum • The constraints: Wa+Wb+Wc ≤ 1,1 0≤Wa≤1 0≤Wb≤1 0≤Wc≤1 Wa+Wb+Wc=1
  • 10. Graphical solution Step 1. Eliminate Wc and thus produce a two- variable problem. • Wc=1-Wa-Wb • 0≤Wa,Wb ≤1 • 0 ≤Wa+Wb ≤1 • 0,1Wa+0,3Wb ≤0,2 Z=0,03Wa+0,07Wb+0,08
  • 11. • Step 2. Wa Wb 1 1 2 Wa+3Wb ≤2 Wa ≤1 Wb ≤1 Wa+Wb ≤1 O Z=0,03Wa+0,07Wb+0,08 K L M L: Wa+Wb=1; Wa+3Wb=2. L(0,5;0,5)
  • 12. The simplex method Wa Wb S1 S2 RHS 1 1 1 1 0 1 2 0,1 0,3 0 1 0,2 Objective function -0,03 -0,07 0 0 0 Z-0,03Wa-0,07Wb+0s1+0s2=0 • Wc=1-Wa-Wb; 0≤Wa,Wb ≤1 • Wa+Wb+s1=1 • 0,1Wa+0,3Wb +s2=0,2
  • 13. Wa Wb S1 S2 RHS RHS/Wa 1 1 1 1 0 1 1 - min 2 0,1 0,3 0 1 0,2 2 Objective function -0,03 -0,07 0 0 0
  • 14. Wa Wb S1 S2 RHS RHS/Wa 1 1 1 1 0 1 1 - min 2 0,1 0,3 0 1 0,2 2 Objective function -0,03 -0,07 0 0 0
  • 15. Wa Wb S1 S2 RHS 1 1 1 1 0 1 2 0 0,2 -0,1 1 0,1 Objective function 0 -0,04 -0,03 0 -0,03
  • 16. Wa Wb S1 S2 RHS RHS/Wb 1 1 1 1 0 1 1 2 0 0,2 -0,1 1 0,1 0.5 - min Objective function 0 -0,04 -0,03 0 -0,03
  • 17. Wa Wb S1 S2 RHS 1 1 1 1 0 1 2 0 1 -0,5 5 0,5 Objective function 0 -0,04 -0,03 0 -0,03
  • 18. • Wa+1,5s1-5s2=0,5 • Wb-0,5s1+5s2=0,5 Z=0,01s1+0,2s2+0,05+0,08 → max • s1=s1=0 • Wa=0,5 • Wb=0,5 Wa Wb S1 S2 RHS 1 1 0 1,5 -5 0,5 2 0 1 -0,5 5 0,5 Objective function 0 0 0,01 0,2 0,05
  • 19. The portfolio optimization • Problem is to determine what proportion of the portfolio should be allocated to each investment so that the amount of expected return and the level of risk optimally meet the investor’s objectives. • For example, the objective function may be to minimize risk, but subject to a minimum level to return. There may also be constraints on the minimum and maximum proportions which may be invested in each asset.
  • 20. Portfolio problem: a three-asset portfolio • The expected return: E(r) = Wara+Wbrb+Wcrc • The portfolio variance: Z= Waσ2 a+Wbσ2 b+Wcσ2 c+2WaWbcov(a,b)+ +2WcWacov(a,c)+2WbWccov(b,c) → minimize Subject to: Wa+Wb+Wc≤1 WaE(ra)+WbE(rb)+WcE(rc)≥R, where R – is the minimum acceptable level of return
  • 21. The application of quadratic programming a three asset portfolio selection problem – finding the optimal(minimum variance) portfolio We have three assets A, B, C with expected returns of 0,11; 0,15; 0,08. The covariance matrix is: Required return of 11%
  • 22. Optimization problem is to: Z= 0,00015Wa+0,00025Wb+0,0001Wc+0,0001WaWb- - 0,00014WcWa-0,00006WbWc → minimize Subject to: Wa+Wb+Wc=1 0,11Wa+0,15Wb+0,08Wc=0,11
  • 23. Optimization under equality constraints: using Lagrange multipliers • We construct the Lagrangian:
  • 24.
  • 25.
  • 26. Kuhn – Taker conditions • Step 1. To manipulate the inequalities so that the problem is presented in standard form:
  • 27. • Step 2. Building Lagrangian + “Kuhn – Taker conditions”
  • 28.
  • 29. Dantzig - Wolfe Our task is to find feasible point as against an optimal point – this is first step in the simplex algorithm. Creating solution in which real variables equal 0, and in which artificial equal right-hand sides. So, is to take initial part simplex algorithm and add in the complementary conditions.
  • 30. 1) Wc=0,25;Wb=0,405;Wa=0,436. Wa+Wb+Wc=0,966 – not all money is used 2) If we want on investing all of our cash, changing Wa+Wb+Wc=1
  • 31. • Solving consumer choice problem using Kuhn-Tucker conditions (part 1). • Solving consumer choice problem using Kuhn-Tucker conditions (part 2). • Solving minimization costs problem using Kuhn- Tucker conditions (part 1). • Solving minimization costs problem using Kuhn- Tucker conditions (part 2).