Professional Documents
Culture Documents
Linear Programming: 1 DSCI 3023
Linear Programming: 1 DSCI 3023
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
DSCI 3023 1
Linear Programming
Decision Variables
symbols used to represent an item that can take on any value (e.g., x1=labor hours, x2=# of workers)
Parameters
known constant values that are defined for each problem (e.g., price of a unit, production capacity)
Decision Variables and Parameters will be defined for each unique problem
DSCI 3023 2
Linear Programming
A method for solving linear mathematical models Linear Functions
f(x) = 5x + 1 g(x1, x2) = x1 + x2
Non-linear functions
f(x) = 5x2 + 1 g(x1, x2) = x1x2 + x2
DSCI 3023 3
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 constraints determine the limitations of the decision variables
DSCI 3023 4
DSCI 3023
Non-negativity assumptions
restricts decision variables to values greater than or equal to zero
DSCI 3023 7
Objective Function
Always a Max or Min statement
Maximize Profit Minimize Cost
DSCI 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
Non-negativity Assumptions
Negative decision variables are inconceivable in most LP problems Minus 10 units of production or a negative consumption make no sense The assumptions are written as follows
x1, x2 > 0
DSCI 3023
10
LP Standard Form
Each LP must contain the three parts A standard form for a LP is as follows:
Maximize subject to Z = c1x1 + c2x2 + ... + cnxn a11x1 + a12x2 + ... + a1nxn < b1 . am1x1 + am2x2 + ... + amnxn < bm x1, x2, xn > 0
11
DSCI 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 optimum solution
DSCI 3023 13
y x+y x+2y2 x3 y4 x0 y0
1 3
Optimal Solution
Feasible Region
x
0 1 2 3
15
y x-y
1/3 x + y 4
-2 x + 2 y 4 x3
Feasible Region
x0 y0
DSCI 3023
16
y x + 1/3 y x + y 20
30
-2 x + 5 y 150 x5 x 0 y 0
Optimal Solution
20
Feasible Region
10
x
0 0 10 20 30 40
DSCI 3023
17
y
4 3 2 1 0 0 1 2 3 4 3 2 1
y
40 30 20 10
0 0 1 2 3
0 0 10 20 30 40
A Fundamental Point
y
4 3 2 1 0 0 1
y
4
3 2 1 40 30 20 10
0 0 1 2
0 0 10 20
x
30 40
If an optimal solution exists, there is always a DSCI 3023corner point optimal solution! 19
Optimal Solution
Feasible Region
x
0 1 2 3
DSCI 3023
20