An Introduction to Linear Programming : Graphical and Computer Methods
Published byModified over 6 years ago
Presentation on theme: "An Introduction to Linear Programming : Graphical and Computer Methods"— Presentation transcript:
1 An Introduction to Linear Programming : Graphical and Computer Methods Chapter 2An Introduction to Linear Programming : Graphical and Computer MethodsProfessor Ahmadi
2 Learning ObjectivesUnderstand basic assumptions and properties of linear programming (LP)General LP notationLP formulation of the modelA Maximization ProblemGraphical solutionA Minimization ProblemSpecial CasesFormulating a Spreadsheet Model
3 IntroductionManagement decisions in many organizations involve trying to make most effective use of resources.Include machinery, labor, money, time, warehouse space, and raw materials.May be used to produce products - such as computers, automobiles, or clothing orProvide services - such as package delivery, health services, or investment decisions.
4 Mathematical Programming Mathematical programming is used for resource allocation problems.Linear programming (LP) is the most common type of mathematical programming.One assumes that all the relevant input data and parameters are known with certainty in models (deterministic models).Computers play an important role in the advancement and use of LP.
5 Development of a LP Model LP has been applied extensively to various problems areas -medical, transportation, operations, petroleumfinancial, marketing, accounting,human resources, agriculture, and othersDevelopment of all LP models can be examined in a three step process:(1) formulation(2) solution and(3) interpretation.
6 Properties of a LP Model All problems seek to maximize or minimize some quantity, usually profit or cost (called the objective function).LP models usually include restrictions, or constraints, that limit the degree to which one can pursue the objective.There must be alternative courses of action from which one can choose.The objective and constraints in LP problems must be expressed in terms of linear equations or inequalities.
7 Three Steps of Developing LP Problem Formulation.Process of translating problem scenario into a simple LP model framework with a set of mathematical relationships.Solution.Mathematical relationships resulting from the formulation process are solved to identify an optimal solution.Interpretation and What-if Analysis.Problem solver or analyst works with manager toInterpret results and implications of problem solution.Investigate changes in input parameters and model variables and impact on problem solution results.
8 Basic Assumptions of a LP Model Conditions of certainty exist.Proportionality in the objective function and constraints (1 unit – 3 hours, 3 units 9 hours).Additivity (the total of all activities equals the sum of the individual activities).Divisibility assumption that solutions need not necessarily be in whole numbers (integers).
9 Linear Equations and Inequalities This is a linear equation: 2X1 + 15X2 = 10This equation is not linear: 5X+4X2 + 15X3 = 100LP uses, in many cases, inequalities like: X1 + X2 C or X1 + X2 C
10 LP SolutionsThe maximization or minimization of some quantity is the objective in all linear programming problems.A feasible solution satisfies all the problem's constraints.Changes to the objective function coefficients do not affect the feasibility of the problem.An optimal solution is a feasible solution that results in the largest possible objective function value, z, when maximizing or smallest z when minimizing.
11 LP SolutionsA feasible region may be unbounded and yet there may be optimal solutions. This is common in minimization problems and is possible in maximization problems.The feasible region for a two-variable linear programming problem can be a single point, a line, a polygon, or an unbounded area.Any linear program falls in one of three categories:is infeasiblehas a unique optimal solution or alternate optimal solutionshas an objective function that can be increased without bound (Unbounded)
12 LP SolutionsA graphical solution method can be used to solve a linear program with two variables.If a linear program possesses an optimal solution, then an extreme point will be optimal.If a constraint can be removed without affecting the shape of the feasible region, the constraint is said to be redundant.A non-binding constraint is one in which there is positive slack or surplus when evaluated at the optimal solution.A linear program which is over-constrained so that no point satisfies all the constraints is said to be infeasible.
13 Guidelines for Model Formulation Understand the problem thoroughly.Write a verbal statement of the objective function and each constraint.Define the decision variables.Write the objective function in terms of the decision variables.Write the constraints in terms of the decision variables.
14 A Simple Maximization Problem Olympic Bike is introducing two new lightweight bicycle frames, the Deluxe and the Professional, to be made from special aluminum and steel alloys. The anticipated unit profits are $10 for the Deluxe and $15 for the Professional.The number of pounds of each alloy needed per frame is summarized below. A supplier delivers 100 pounds of the aluminum alloy and 80 pounds of the steel alloy weekly. How many Deluxe and Professional frames should Olympic produce each week?Aluminum Alloy Steel AlloyDeluxeProfessional
15 Max. Example: Olympic Bike Co. Model FormulationVerbal Statement of the Objective FunctionMaximize total weekly profit.Verbal Statement of the ConstraintsTotal weekly usage of aluminum alloy < 100 pounds.Total weekly usage of steel alloy < 80 pounds.Definition of the Decision Variablesx1 = number of Deluxe frames produced weekly.x2 = number of Professional frames produced weekly.
16 Max. Example: Olympic Bike Co. Model Formulation (Continued)Max 10x1 + 15x2 (Total Weekly Profit)s.t x x2 < (Aluminum Available)3x x2 < (Steel Available)x1, x2 > (Non-negativity)
18 Slack and Surplus Variables A linear program in which all the variables are non-negative and all the constraints are equalities is said to be in standard form.Standard form is attained by adding slack variables to "less than or equal to" constraints, and by subtracting surplus variables from "greater than or equal to" constraints.Slack and surplus variables represent the difference between the left and right sides of the constraints.Slack and surplus variables have objective function coefficients equal to 0.
19 A Simple Minimization Problem Solve graphically for the optimal solution:Min z = 5x1 + 15x2s.t x1 + x2 > 500x1 < 400x2 > 200x1, x2 > 0
20 Special Cases Alternative Optimal Solutions Infeasible Solutions Unbounded Problem
21 Alternative Optimal Solutions In the graphical method, if the objective function line is parallel to a boundary constraint in the direction of optimization, there are alternate optimal solutions, with all points on this line segment being optimal.Example:Max z = 8x1 + 6x2s.t x x2 < 129x x2 < 36x1, x2 > 0
22 Example: Alternative Optimal Solutions There are numerous optimal points. The objective function (8x1 + 6x2) is parallel to the first constraint.x24x1 + 3x2 < 1249x x2 < 363Objective functionx134
23 Example: Infeasible Problem Solve graphically for the optimal solution:Max z = 2x1 + 6x2s.t x1 + 3x2 < 122x1 + x2 > 8x1, x2 > 0
24 Example: Infeasible Problem There are no points that satisfy both constraints, hence this problem has no feasible region, and no optimal solution.x284x1 + 3x2 < 122x1 + x2 > 84x134
25 Example: Unbounded Problem Solve graphically for the optimal solution:Max z = 3x1 + 4x2s.t x1 + x2 > 53x1 + x2 > 8x1, x2 > 0
26 Example: Unbounded Problem The feasible region is unbounded and the objective function line can be moved parallel to itself without bound so that z can be increased infinitely.x23x1 + x2 > 88x1 + x2 > 55Max 3x1 + 4x2x12.675
27 Using Excel for solving LP problems Use “Solver” in Excel and solve the LP problems given previously.Tools/SolverEnd of chapter 2