3 Components for a Spreadsheet Optimization Problem  There is one cell which can be identified as the Target or Set Cell, the single objective of the.

Slides:



Advertisements
Similar presentations
Geometry and Theory of LP Standard (Inequality) Primal Problem: Dual Problem:
Advertisements

Solving LP Models Improving Search Special Form of Improving Search
Linear Programming Problem
Lesson 08 Linear Programming
CCMIII U2D4 Warmup This graph of a linear programming model consists of polygon ABCD and its interior. Under these constraints, at which point does the.
Sensitivity Analysis Sensitivity analysis examines how the optimal solution will be impacted by changes in the model coefficients due to uncertainty, error.
BA 452 Lesson A.2 Solving Linear Programs 1 1ReadingsReadings Chapter 2 An Introduction to Linear Programming.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan/ Department of Mathematics and CS/ Linear Programming in two dimensions:
Operations Management Linear Programming Module B - Part 2
1 Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 3 Introduction to Linear Programming to accompany Introduction to Mathematical.
Chapter 2: Introduction to Linear Programming
An Introduction to Linear Programming : Graphical and Computer Methods
6s-1Linear Programming CHAPTER 6s Linear Programming.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Solver & Optimization Problems n An optimization problem is a problem in which we wish to determine the best values for decision variables that will maximize.
Linear-Programming Applications
Chapter 3 An Introduction to Linear Programming
3 Components for a Spreadsheet Linear Programming Problem There is one cell which can be identified as the Target or Set Cell, the single objective of.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
1 1 Slides by John Loucks St. Edward’s University Modifications by A. Asef-Vaziri.
Readings Readings Chapter 2 An Introduction to Linear Programming.
Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.
FORMULATION AND GRAPHIC METHOD
Graphical Solutions Plot all constraints including nonnegativity ones
1 1 Slide LINEAR PROGRAMMING: THE GRAPHICAL METHOD n Linear Programming Problem n Properties of LPs n LP Solutions n Graphical Solution n Introduction.
© Copyright 2004, Alan Marshall 1 Lecture 1 Linear Programming.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Chapter 3 Introduction to Optimization Modeling
START EXCEL BUILD OR RETRIEVE YOUR OPTIMIZATION MODEL SAVE YOUR WORKBOOK!! CHOOSE “Solver…” IN THE “Tools” MENU SPECIFY IN SOLVER DIALOG BOX: 1.CELL TO.
Solver & Optimization Problems n An optimization problem is a problem in which we wish to determine the best values for decision variables that will maximize.
Chapter 19 Linear Programming McGraw-Hill/Irwin
Linear Programming Chapter 13 Supplement.
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS ST. EDWARD’S UNIVERSITY.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. 6S Linear Programming.
1 DSCI 3023 Linear Programming Developed by Dantzig in the late 1940’s A mathematical method of allocating scarce resources to achieve a single objective.
1 1 Slide Linear Programming (LP) Problem n A mathematical programming problem is one that seeks to maximize an objective function subject to constraints.
MATH 527 Deterministic OR Graphical Solution Method for Linear Programs.
Chapter 7 Introduction to Linear Programming
1 1 Slide © 2005 Thomson/South-Western Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
LP: Summary thus far Requirements Graphical solutions Excel Sensitivity Analysis.
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
 Minimization Problem  First Approach  Introduce the basis variable  To solve minimization problem we simple reverse the rule that is we select the.
3 Characteristics of an Optimization Problem General descriptionKPiller Illustration Decisions that must be made; represented by decision variables How.
Sensitivity analysis continued… BSAD 30 Dave Novak Source: Anderson et al., 2013 Quantitative Methods for Business 12 th edition – some slides are directly.
Math Programming Concept of Optimization (L.O. a ) Linear Programming Managerial Value of Information (L.O. d) Theory (L.O. b) Example Applications (L.O.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming Chapter 2.
Linear Programming. George Dantzig 1947 NarendraKarmarkar Pioneers of LP.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Operations Research By: Saeed Yaghoubi 1 Graphical Analysis 2.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
1 Introduction to Linear Programming Linear Programming Problem Linear Programming Problem Problem Formulation Problem Formulation A Simple Maximization.
1 1 Slide Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an.
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
Chapter 2 Linear Programming Models: Graphical and Computer Methods
An Introduction to Linear Programming
Decision Support Systems
An Introduction to Linear Programming Pertemuan 4
Chapter 2 An Introduction to Linear Programming
Linear Programming – Introduction
Solver & Optimization Problems
Linear Programming Dr. T. T. Kachwala.
Linear Programming Problem
Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an equation.
Linear Programming.
Presentation transcript:

3 Components for a Spreadsheet Optimization Problem  There is one cell which can be identified as the Target or Set Cell, the single objective of the problem that is to be maximized or minimized.  There is at least one Changing or Variable Cell (decision variable). The set of changing cells must influence the target cell and all of the constraint cells. The changing cells should not have formulas entered in the cells.  There is at least one cell that is limited to assume values over specified ranges. These cells are referred to as the Constraint Cells of the problem.

Linear Programming (LP) A mathematical programming problem is one that seeks to maximize or minimize an objective function subject to constraints. If both the objective function and the constraints are linear, the problem is referred to as a linear programming problem.

Linearity Linear functions are functions in which each variable appears in a separate term raised to the first power and is multiplied by a constant (which could be 0). Linear constraints are linear functions that are restricted to be "less than or equal to", "equal to", or "greater than or equal to" a constant.

CPCC Algebraic Formulation Maximize 900 X X2 Subject to 2 X1 + X2 <= 20,000 drives 4 X1 + X2 <= 32,000 hours 2 X1 + 7 X2 <= 88,000 tests X1 >= 0, X2 >= 0 Where X1 = # desktops to produce X2 = # laptops to produce

Linear Programming Applications Production Planning: – several products – multiperiod demand – limited period resources – want minimal production costs or maximum profitability Blending Problems: – different ingredients – product requirements – want minimal production costs

Linear Programming Applications Investment Planning: – several investment alternatives – risk and capital restrictions – want maximum expected return Labor Scheduling: – full-time and part-time workforce – multi-period staffing requirements – workforce staffing restrictions – want minimum total labor cost

The maximization or minimization of some quantity is the objective in all linear programming problems. A feasible solution is an assignment of values to the decision variables that satisfies all the problem's constraints. An optimal solution is a feasible solution that results in the largest possible objective function value, z, when maximizing or smallest z when minimizing. A graphical solution method can be used to solve a linear program with two variables. LP Terminology

Graphical Solutions Plot all constraints including nonnegativity ones Determine the feasible region. (The feasible region is the set of feasible solution points) Identify the optimal solution using either –the isoprofit or isocost line method –the extreme point method

The feasible region for a two-variable linear programming problem can be nonexistent, a single point, a line, a polygon, or an unbounded area. Assuming that a feasible region exists, an optimal solution will always occur at one or more of the extreme points, where an extreme point is a corner point of the feasible region. The constraints that determine that extreme point are binding constraints. 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. Properties of LP Solutions

Binding Constraints The slack of a resource constraint is the amount of the corresponding resource that will not be used if the optimal solution is implemented. The surplus of a minimum requirement constraint is the amount by which the requirement will be exceeded if the optimal solution is implemented. A binding constraint implies that the corresponding resource or requirement is restricting the optimal solution and objective value. A binding constraint has slack or surplus of zero. A nonbinding constraint is one in which there is positive slack or surplus when evaluated at the optimal solution.

Any linear program falls in one of three categories: –has a unique optimal solution or alternate optimal solutions –is infeasible: the LP is overconstrained so that no point satisfies all the constraints –has an objective function that can be increased without bound Types of LP Solutions

Solver Result Messages Solver found a solution. All constraints and optimality conditions are satisfied: Solver has correctly identified an optimal solution for the problem you have formulated. Note that there may be alternative optimal solutions possible however. Solver has converged to the current solution. All constraints are satisfied: You have not selected the Assume Linear Model option or Simplex LP solving method in the Solver options. Thus nonlinear programming is being performed and this is the best solution Solver has found so far. It is not guaranteed to be the optimal one however.

Example: Infeasible Problem Solve graphically for the optimal solution: Max z = 2x 1 + 6x 2 s.t. 4x 1 + 3x 2 < 12 2x 1 + x 2 > 8 x 1, x 2 > 0

Example: Infeasible Problem There are no points that satisfy both constraints, hence this problem has no feasible region, and no optimal solution. x2x2x2x2 x1x1x1x1 4x 1 + 3x 2 < 12 2x 1 + x 2 >

Solver Infeasible Problem Message Solver could not find a feasible solution: You may have too many constraints, one of the constraints may be entered wrong (e.g. the inequality sign might be going the wrong way), a cell formula in the spreadsheet may be missing or you may not have enough changing cells.

Example: Unbounded Problem Solve graphically for the optimal solution: Max z = 3x 1 + 4x 2 s.t. x 1 + x 2 > 5 3x 1 + x 2 > 8 x 1, x 2 > 0

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. x2x2x2x2 x1x1x1x1 3x 1 + x 2 > 8 x 1 + x 2 > 5 Max 3x 1 + 4x

Solver Unbounded Result Message Set Cell values do not converge: Your model as formulated is unbounded. One or more constraints are missing from the problem or entered wrong. Often times the modeler has forgotten to check the Assume Nonnegativity option in Solver.

Solver Result Messages The conditions for Assume Linear Model are not satisfied: Solver’s preliminary tests indicate that your model is not linear. This may be the case. However sometimes the test fails not due to nonlinearity, but due to poor scaling (e.g. some #s are in % and others in millions). Use the option in Solver called Use Automatic Scaling. Solver will attempt to rescale your data. If that doesn’t solve the problem, you can try rescaling the data yourself.