FE501 – 1005

Syllabus

Topics:

For each in x where x belongs to:

For each of the x:

  1. formulation of x models
  2. solution of x models
  3. applications in finance and economics

Outline (week by week)

  1. Introduction

  2. LP

    1. Formulation
    2. Graphical Solution Procedure
    3. Simplex Method
    4. Exel-Solver
    5. GAMS Optimization Package
  3. LP: Applications to Finance and Economics

  4. Duality and Sensitivity

  5. ILP

    1. Formulation
    2. Branch-and Bound method
  6. ILP: Applications to Finance and Economics

  7. Nonlinear Optimization

    1. Formulation
    2. Unconstrained and constrained NLP models
    3. Solution methods
    4. KKT conditions
  8. Continue 7

  9. Quadratic Programming and Portfolio Optimization

  10. Thechniques for Calculating the Efficient Frontier

  11. DP

    1. Formulation
    2. Solution
  12. DP: Applications to Finance and Economics

  13. Summary

Introduction

Typiclly optimization problems have the goal of allocating limited resources to alternative activitites in order to maximize the total benifit obtained from those activities.

Optimization is now being used as an effective management and decision-support tool.

 

Classes of optimization problems:

What is optimization?

Optimization is the process of finding the best way of making decisions that satisfy a set of constraints.

minxf(x)s.t.xX

What is linear programming?

Linear Programming (LP) is also called linear optimization.

 

Example:

maximize 3x+4ysubject to 5x+8y24x,y0

A feasible solution satisfies all of the constraints. x = 1, y = 1 is feasible [1] ; x = 1, y = 3 is infeasible.

An optimal solution is the best feasible solution. The optimal solution for above problem is x=4.8,y=0

CleanShot 2022-10-18 at 12.01.08

CleanShot 2022-10-18 at 12.16.52

 

Google Sheets Gile

What is decision variables? objective functions ?constraints ?

img

 

Example Problem Soling

Turing machine and NP-Hard (just hard…)

The Imitation Game (Original Motion Picture Soundtrack) - Album by  Alexandre Desplat

Knapsack Probelm

Knapsack problem - Wikipedia

Q: Given a set of items, each with a weight and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to a given limit and the total value is as large as possible.

Items12345
Weight (Kg)42516
Utility510152025
Capacity7 Kg

Target: Maximize the Total Utility

Possible solutions are called feasible solutions

To solve such a problem If the number of possible solutions are small then we can use:

 

Problem Definition:

 Decision variables xi={1if itemi is taken0otherwiseObjective functionMaximize 5x1+10x2+15x3+20x4+25x5Constraintss.t.4x1+2x2+5x3+1x4+6x57xi{0,1}

The model above (3) called integer linear model.

Generally A standard linear program will be:

 Maximize z=cTx subject to: Ax=bx>=0. where b>=0, and c=(c1cn),b=(b1bn),x=(x1xn)

Using Excel

CleanShot 2022-10-21 at 00.02.39

Using Optimator

CleanShot 2022-10-21 at 00.03.05

Fund allocation problem

image-20221021000338914

CleanShot 2022-10-21 at 00.04.24

Decision variables xi:money allocated for fund iObjective function: Maximize z=0.1x1+0.15x2+0.16x3+0.08x4
subject to: 0.5x1+0.30x2+0.25x3+0.60x40.35×800.3x1+0.10x2+0.4x3+0.2x40.30×800.2x1+0.60x2+0.35x3+0.20x40.15×80
i=14xi=80,x[1,4]

Using optimator

CleanShot 2022-10-21 at 00.28.11

CleanShot 2022-10-21 at 00.28.28

Using Excel

CleanShot 2022-10-23 at 13.28.00

Link to Excel File

Possible results from Excel Solver can be:

Graphical method

Maximizez=x+ysubject to: x+y2x0,y0

CleanShot 2022-10-23 at 14.10.03

"The Objective Cell values do not converge" means there is no limit to the objective function value.

x+y2draw y=2+x

download

image-20221023194723402

Result: to maximize x+y either x or y can be infinite . So this problem dose not have a feasible solution.

MSR Marketing example

image-20221023172213875

Decision variables :

Objective function

*Minimize z=500xT+200xR+250xM+125xN

Constraints

  1. 50xT+25xR+20xM+15xN1500
  2. xT20
  3. xR15
  4. xM10
  5. xN15
  6. xT,xR,xM,xN0

CleanShot 2022-10-23 at 18.09.20

Excel File

Scipy for Calculating the LineProg

 

Extra

  1. MIT 18.310
  2. MIT 15.053
  3. 3
  4. 4
  5. https://web.mit.edu/15.053/www/