Models in I.E. Lecture 21 - PowerPoint PPT Presentation

About This Presentation
Title:

Models in I.E. Lecture 21

Description:

... cost from i to j: cost of buying a car at time i, using it, ... Auto use: shortest path. 0. 4. 1. 3. 2. Buy at time 0, keep. 2 years, sell at time 2. Buy at 1, ... – PowerPoint PPT presentation

Number of Views:43
Avg rating:3.0/5.0
Slides: 31
Provided by: craiga8
Category:
Tags: lecture | models

less

Transcript and Presenter's Notes

Title: Models in I.E. Lecture 21


1
Models in I.E.Lecture 21
  • Introduction to Optimization Models Shortest
    Paths

2
Shortest Paths Outline
  • Shortest Path Examples
  • Distances
  • Times
  • Definitions
  • More Examples
  • Costs
  • Reliability
  • Optimization Models

3
Example DistancesShortest Auto Travel Routes
180
a
c
20
200
100
t
S
40
100
150
70
b
d
80
distances are in miles
4
Example DistancesShortest Auto Travel Routes
180
a
c
20
200
100
t
S
40
100
150
70
b
d
80
Optimal solution to this case has length 270
miles. Note it does not use edge sa
5
Example DistancesShortest Auto Travel Routes
180
a
c
20
200
100
t
S
40
100
150
70
b
d
80
Algorithm actually finds a tree giving
shortest paths from s to every node in graph
6
Example TimesRouting packets on the internet
a
1.0
.2
c
.6
S
t
1.1
.8
.1
.5
.5
d
b
.3
Costs are in milliseconds
7
Shortest Path Definitions
  • Graph G (V,E)
  • V vertex set, contains special vertices s and t
  • E edge set
  • Costs Cij on edges (i,j) in E
  • Cij gt 0 The model we are studying
  • no cycles with negative total cost
  • arbitrary costs (rarely used too hard to solve)
  • Cost of a path sum of edge costs
  • Objective find min cost path from s to t

8
Shortest Path
  • Shortest Path is a particular kind of math
    problem, as is finding the roots of a quadratic
    polynomial or maximizing a differentiable
    function in one variable.
  • Shortest Path is an Optimization Problem. It has
  • A set of possible solutions (paths from s to t)
  • An objective function (minimize the sum of edge
    costs)

9
Shortest path as an optimization problem
  • Shortest path has something else, which makes it
    useful...
  • An algorithm that correctly and quickly solves
    cases of the shortest path problem, provided that
  • the instances satisfy Cij gt 0
  • the instances are not too huge

10
Shortest pathMore examples
Shortest path is a math problem. It
doesnt matter if the edge costs are distances,
times, money, etc. It only matters that the goal
is to minimize the sum of costs on the path.
11
Goal have use of a car for 4 years at minimum
cost
12
Auto use example
  • Vertices of graph need not represent physical
    locations
  • V 0,1,2,3,4
  • time 0, 1,...,4 in years
  • Seek least expensive path from 0 to 4
  • Edge cost from i to j cost of buying a car at
    time i, using it, and selling it at time j
  • for each edge, pick cheapest alternative (new or
    used)

13
Auto use shortest path
4
0
1
3
2
Our s is 0 our t is 4.
14
Auto use shortest path
4
0
1
3
2
Buy at 1, sell at 2
Buy at 0 sell at 1
Buy at time 0, keep 2 years, sell at time 2
15
calculating edge costs
Keep new car 1 year 15000 1000 - 11000
5000 Keep used car 1 year 5000 2000 -
4000 3000 Keep new car 2 years 15000
2000 - 9000 8000 Keep used car 2 years 5000
5000 - 3000 7000 edge cost is
the cheaper of the two alternatives
16
Auto use shortest path
4
0
1
3
2
3000
3000
7000
17
Auto use shortest path
4
0
1
3
2
3000
3000
etc.
7000
Note in this case, edges are actually
directed. You cant get from 2 to 1 at cost
3000. The shortest path model permits directed
edges.
18
Example Reliability
  • Send a packet on a network from s to t
  • Transmission fails if any arc on path fails
  • Arc ij successfully transmits a packet with
    probability Pij. Probabilities are independent.
  • Problem what path on the network has the
    highest probability of successful transmission
    from s to t?

19
Reliable Paths
  • Reliability of a path product of Pij for edges
    ij on path
  • Maximizing a product instead of minimizing a sum
    -- doesnt seem to fit shortest path model
  • Method (trick used more than once)
  • set Cij - log Pij

20
How we use optimization models
Data
Math Problem (Optimization Model)
Real problem
Algorithm
Solution to Math Problem
21
How we use optimization models
Data
Real problem
Math Problem (Optimization Model)
Conceptual Model
Algorithm
Solution to Math Problem
22
To use a model successfullyWe need TWO things
  • The model must fit the real problem
  • We must be able to solve the model

Realism or Generality
Solvability or Tractability
23
To use a model successfullyWe need TWO things
T E N S I O N
  • The model must fit the real problem
  • We must be able to solve the model

24
Spectrum of Optimization Models
Less General
More general Applies to more problems but harder
to solve, especially to solve large cases
Easier to solve Can solve larger cases and/or
can solve cases more quickly
25
Modeling
  • Modeling is almost always a tradeoff between
    realism and solvability
  • Good modelers know
  • computational limits of different models
  • how to make a model fit a wider range of real
    problems
  • how to make a real problem fit into a model
  • Advanced modelers know
  • how to solve a wider range of models
  • how to extend the range of cases that can be
    solved with software tools

26
How to make a model fit a wider range of real
problems
  • I. Mathematical agility
  • example taking logs to convert max product to
    min sum
  • example robot cleanup, minimax assignment
  • II. Conceptual agility
  • example Shortest path model for automobile use
    . Realizing that nodes on a graph need not
    represent physical locations or objects.
  • example Shortest path model for stocking paper
    rolls at a cardboard box manufacturer

27
How to make a real problem fit into a model
  • JUDGEMENT (how to teach???)
  • Cutting corners
  • Approximating
  • if your data are inexact....
  • Aggregating
  • Simplifying
  • Example in automobile problem, we could decide
    to sell and purchase at any time, not just at
    start of year. But a continuous time decision
    model is more complex.

28
modeling
  • When you have a choice between two models, both
    of which capture the same information about the
    problem, use the model that is easier to solve

29
Spectrum of Optimization Models
Networks Networks LP Convex QP IP
NLP
portfolio optimization
Shortest Path Min Span Tree Max Flow
Assignment Transportation Min Cost Flow
logistics scheduling
blending planning
chemical processes materials design
production/distribution flow of materials
30
Preparation for Next Class
  • We will concentrate on LP (linear programming)
    formulation
  • Read the problems posted before class. We will
    not have time to read them during lecture.
Write a Comment
User Comments (0)
About PowerShow.com