Top Banner

of 20

LinearProg1

Apr 07, 2018

Download

Documents

Devesh Singh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/4/2019 LinearProg1

    1/20

    1DSCI 3023

    Linear Programming

    Developed by Dantzig in the late 1940s

    A mathematical method of allocating scarce resources

    to achieve a single objective

    The objective may be profit, cost, return on investment,

    sales, market share, space, time

    LP is used for production planning, capital budgeting,

    manpower scheduling, gasoline blending

    By companies such as AMD, New York Life, Chevron,

    Ford

  • 8/4/2019 LinearProg1

    2/20

    2DSCI 3023

    Linear Programming

    Decision Variables

    symbols used to represent an item that can take onany value (e.g., x1=labor hours, x2=# of workers)

    Parametersknown constant values that are defined for each

    problem (e.g., price of a unit, production capacity)

    Decision Variables and Parameters will bedefined for each unique problem

  • 8/4/2019 LinearProg1

    3/20

    3DSCI 3023

    Linear Programming

    A method for solving linear mathematical models

    Linear Functions

    f(x) = 5x + 1g(x1, x2) = x1 + x2

    Non-linear functions

    f(x) = 5x2 + 1

    g(x1, x2) = x1x2 + x2

  • 8/4/2019 LinearProg1

    4/20

    4DSCI 3023

    Formulating an LP

    Define the decision variables

    identifying the key variables whose values we wish

    to determine

    Determine the objective function

    determine what we are trying to do

    Maximize profit, Minimize total cost

    Formulate the constraintsdetermine the limitations of the decision variables

  • 8/4/2019 LinearProg1

    5/20

    5DSCI 3023

    3 Parts of a Linear Program

    Objective Function

    Constraints

    Non-negativity assumptions

  • 8/4/2019 LinearProg1

    6/20

    6DSCI 3023

    3 Parts of a Linear Program

    Objective Function

    linear relationships of decision variables describing

    the problems objectivealways consists of maximizing or minimizing some

    value

    e.g., maximize Z = profit, minimize Z = cost

  • 8/4/2019 LinearProg1

    7/20

    7DSCI 3023

    3 Parts of a Linear Program

    Constraints

    linear relationships of decision variables

    representing restrictions or rules

    e.g., limited resources like labor or capital

    Non-negativity assumptions

    restricts decision variables to values greater than or

    equal to zero

  • 8/4/2019 LinearProg1

    8/20

    8DSCI 3023

    Objective Function

    Always a Max or Min statement

    Maximize Profit

    Minimize Cost A linear function of decision variables

    Maximize Profit = Z = 3x1 + 5x2

    Minimize Cost = Z = 6x1 - 15x2

  • 8/4/2019 LinearProg1

    9/20

    9DSCI 3023

    Constraints

    Constraints are restrictions on the problem

    total labor hours must be less than 50

    x1 must use less than 20 gallons of additive Defined as linear relationships

    total labor hours must be less than 50

    x1 + x2 < 50

    x1 must use less than 20 gallons of additive

    x1 < 20

  • 8/4/2019 LinearProg1

    10/20

    10DSCI 3023

    Non-negativity Assumptions

    Negative decision variables are inconceivable in

    most LP problems

    Minus 10 units of production or a negativeconsumption make no sense

    The assumptions are written as follows

    x1, x2 > 0

  • 8/4/2019 LinearProg1

    11/20

    11DSCI 3023

    LP Standard Form

    Each LP must contain the three parts

    A standard form for a LP is as follows:

    Maximize Z = c1x1 + c2x2 + ... + cnxnsubject to a11x1 + a12x2 + ... + a1nxn < b1

    .

    am1x1 + am2x2 + ... + amnxn < bm

    x1, x2, xn > 0

  • 8/4/2019 LinearProg1

    12/20

    12DSCI 3023

    Methods of Solving LP Problems

    Two basic solution approaches of linear

    programming exist

    The graphical Methodsimple, but limited to two decision variables

    The simplex method

    more complex, but solves multiple decision variable

    problems

  • 8/4/2019 LinearProg1

    13/20

    13DSCI 3023

    Graphical Method

    1. Construct an x-y coordinate plane/graph

    2. Plot all constraints on the plane/graph

    3. Identify the feasible region dictated by the constraints

    4. Identify the optimum solution by plotting a series of

    objective functions over the feasible region

    5. Determine the exact solution values of the decision

    variables and the objective function at the optimumsolution

  • 8/4/2019 LinearProg1

    14/20

    14DSCI 3023

    Production Planning: Given several products with varying

    production requirements and cost structures, determine howmuch of each product to produce in order to maximize profits.

    Scheduling: Given a staff of people, determine an optimalwork schedule that maximizes worker preferences while

    adhering to scheduling rules.Portfolio Management: Determine bond portfolios thatmaximize expected return subject to constraints on risk levelsand diversification.

    And an incredible number more.

    Some Applications of LPs + IPs

  • 8/4/2019 LinearProg1

    15/20

  • 8/4/2019 LinearProg1

    16/20

    16DSCI 3023

    Graphing 2-Dimensional LPs

    Example 2:

    FeasibleRegion

    x0 y

    0

    -2 x + 2 y 4x 3

    Subject to:

    Minimize ** x - y

    MultipleOptimal

    Solutions!4

    1

    x31 2

    y

    0

    2

    0

    3

    1/3 x + y 4

  • 8/4/2019 LinearProg1

    17/20

    17DSCI 3023

    Graphing 2-Dimensional LPs

    Example 3:

    FeasibleRegion

    x

    0 y

    0

    x + y 20

    x 5-2 x + 5 y 150

    Subject to:

    Minimize x + 1/3 y

    OptimalSolution

    x

    3010 20

    y

    0

    10

    20

    40

    0

    30

    40

  • 8/4/2019 LinearProg1

    18/20

    y

    x0

    1

    2

    3

    4

    0 1 2

    3

    x3010 20

    y

    0

    10

    20

    40

    0

    30

    40

    Do We Notice Anything From These3 Examples?

    x

    y

    0

    1

    2

    3

    4

    0 1 2

    3

  • 8/4/2019 LinearProg1

    19/20

    19DSCI 3023

    A Fundamental Point

    If an optimal solution exists, there is always acorner point optimal solution!

    y

    x0

    1

    2

    3

    4

    0 1 2

    3

    x3010 20

    y

    0

    10

    20

    40

    0

    30

    40x

    y

    0

    1

    2

    3

    4

    0 1 2

    3

  • 8/4/2019 LinearProg1

    20/20

    20DSCI 3023

    Graphing 2-Dimensional LPs

    Example 1:

    x30 1 2

    y

    0

    1

    2

    4

    3

    FeasibleRegion

    x

    0 y

    0

    x + 2 y 2

    y 4x 3

    Subject to:

    Maximize x + y

    OptimalSolution

    Initial Cornerpt.

    SecondCorner pt.