Linear Programming with Bounds

Similar documents
NCSS Statistical Software

Solving linear programming

Lesson 11: Duality in linear programming

D-Optimal Designs. Chapter 888. Introduction. D-Optimal Design Overview

5. DUAL LP, SOLUTION INTERPRETATION, AND POST-OPTIMALITY

Minimum Spanning Tree

Box-Cox Transformation

Optimization Methods in Management Science

Linear Programming. L.W. Dasanayake Department of Economics University of Kelaniya

Robust Linear Regression (Passing- Bablok Median-Slope)

Box-Cox Transformation for Simple Linear Regression

Error-Bar Charts from Summary Data

NCSS Statistical Software

Binary Diagnostic Tests Clustered Samples

EuroSymphony Solver. The Simplex Algorithm

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

Two-Stage Least Squares

A Computer Oriented Method for Solving Transportation Problem

Some Advanced Topics in Linear Programming

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016

Back-to-Back Stem-and-Leaf Plots

Linear Programming. Linear programming provides methods for allocating limited resources among competing activities in an optimal way.

CSE 40/60236 Sam Bailey

Finite Math Linear Programming 1 May / 7

Real life Problem. Review

Combo Charts. Chapter 145. Introduction. Data Structure. Procedure Options

Linear Programming Problems

Unit.9 Integer Programming

Civil Engineering Systems Analysis Lecture XIV. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics

22/10/16. Data Coding in SPSS. Data Coding in SPSS. Data Coding in SPSS. Data Coding in SPSS

Lesson 08 Linear Programming

lpsymphony - Integer Linear Programming in R

NCSS Statistical Software. Design Generator

Generalized Network Flow Programming

NOTATION AND TERMINOLOGY

Solutions for Operations Research Final Exam

Introduction. Linear because it requires linear functions. Programming as synonymous of planning.

Zero-Inflated Poisson Regression

Graphing Linear Inequalities in Two Variables.

Optimization of Design. Lecturer:Dung-An Wang Lecture 8

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Introduction to Mathematical Programming IE496. Final Review. Dr. Ted Ralphs

Part 4. Decomposition Algorithms Dantzig-Wolf Decomposition Algorithm

Concept of Curve Fitting Difference with Interpolation

NCSS Statistical Software

Linear Optimization. Andongwisye John. November 17, Linkoping University. Andongwisye John (Linkoping University) November 17, / 25

NCSS Statistical Software

Linear Programming and its Applications

EXCEL 98 TUTORIAL Chemistry C2407 fall 1998 Andy Eng, Columbia University 1998

Graphical Analysis. Figure 1. Copyright c 1997 by Awi Federgruen. All rights reserved.

Using Basic Formulas 4

How to Solve a Standard Maximization Problem Using the Simplex Method and the Rowops Program

Getting Started with Excel

Lecture 9: Linear Programming

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D.

Using Excel This is only a brief overview that highlights some of the useful points in a spreadsheet program.

Introduction to Microsoft Access

Department of Mathematics Oleg Burdakov of 30 October Consider the following linear programming problem (LP):

Uploading Journal Entries from Excel

Sage Financial Reporter User's Guide. May 2017

Advanced Operations Research Techniques IE316. Quiz 1 Review. Dr. Ted Ralphs

Finite Math - J-term Homework. Section Inverse of a Square Matrix

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010

Linear Programming Problems: Geometric Solutions

Describe the Squirt Studio

Civil Engineering Systems Analysis Lecture XV. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics

Transform Extreme Point Multi-Objective Linear Programming Problem to Extreme Point Single Objective Linear Programming Problem by Using Harmonic Mean

Excel 2010: Getting Started with Excel

Engineering Methods in Microsoft Excel. Part 1:

4.1 The original problem and the optimal tableau

Excel Primer CH141 Fall, 2017

Econ 172A - Slides from Lecture 9

Beginning Excel for Windows

OPERATIONS RESEARCH. Linear Programming Problem

Bulgarian Math Olympiads with a Challenge Twist

Wits Maths Connect Secondary Project Card-sorting Activities

Microsoft Excel 2010 Handout

UNIT 2 LINEAR PROGRAMMING PROBLEMS

Exploring extreme weather with Excel - The basics

Creating an Excel resource

Marketing to Customers

Process Optimization

Open Excel by following the directions listed below: Click on Start, select Programs, and the click on Microsoft Excel.

3 INTEGER LINEAR PROGRAMMING

Tuesday, April 10. The Network Simplex Method for Solving the Minimum Cost Flow Problem

SUBSTITUTING GOMORY CUTTING PLANE METHOD TOWARDS BALAS ALGORITHM FOR SOLVING BINARY LINEAR PROGRAMMING

INFORMATION SHEET 24002/1: AN EXCEL PRIMER

MODULE III: NAVIGATING AND FORMULAS

Outline. Column Generation: Cutting Stock A very applied method. Introduction to Column Generation. Given an LP problem

Frequency Tables. Chapter 500. Introduction. Frequency Tables. Types of Categorical Variables. Data Structure. Missing Values

Column Generation: Cutting Stock

COLUMN GENERATION IN LINEAR PROGRAMMING

Linear Programming: Basic Concepts. Chapter 2: Hillier and Hillier

Section Notes 4. Duality, Sensitivity, and the Dual Simplex Algorithm. Applied Math / Engineering Sciences 121. Week of October 8, 2018

1. Carlos A. Felippa, Introduction to Finite Element Methods,

Chapter 13-1 Notes Page 1

Microsoft Excel Microsoft Excel

Jump Right In! Essential Computer Skills Using Microsoft 2013 By Andrews, Dark, and West

Marketing to Customers

Transcription:

Chapter 481 Linear Programming with Bounds Introduction Linear programming maximizes (or minimizes) a linear objective function subject to one or more constraints. The technique finds broad use in operations research and is occasionally of use in statistical work. The mathematical representation of the linear programming (LP) problem is Maximize (or minimize) subject to where zz = CCCC AX b, X 0 XX = (xx 1, xx 2,, xx nn ) CC = (cc 1, cc 2,, cc nn ) bb = (bb 1, bb 2,, bb mm ) aa 11 aa 1nn AA = aa mm1 aa mmmm The x i s are the decision variables (the unknowns), the first equation is called the objective function and the m inequalities (and equalities) are called constraints. The constraint bounds, the b i s, are often called right-hand sides (RHS). NCSS solves a particular linear program using a revised dual simplex method available in the Extreme Optimization mathematical subroutine package. 481-1

Example We will solve the following problem using NCSS: Maximize zz = xx 1 + xx 2 + 2xx 3 2xx 4 subject to xx 1 + 2xx 3 700 2xx 2 8xx 3 0 xx 2 2xx 3 +xx 4 1 xx 1 + xx 2 + xx 3 + xx 4 = 10 0 xx 1 10 0 xx 2 10 0 xx 3 10 0 xx 4 10 The solution (see Example 1 below) is x 1 = 9, x 2 = 0.8, x 3 = 0, and x4 = 0.2 which results in z = 9.4. Data Structure This technique requires a special data format which will be discussed under the Specifications tab. Here is the way the above example would be entered. It is stored in the dataset LP 1. LP 1 dataset Type Logic RHS X1 X2 X3 X4 O 1 1 2-2 C < 700 1 2 C < 0 2-8 C > 1 1-2 1 C = 10 1 1 1 1 L 0 0 0 0 U 10 10 10 10 481-2

Procedure Options This section describes the options available in this procedure. Specifications Tab Set the specifications for the analysis. Optimum Type Type of Optimum Specify whether to find the minimum or the maximum of the objective function in the constrained region. Coefficients of the Objective Function, Constraints, and Bounds Row Type Column The constrained minimization problem is specified on the spreadsheet. In this column, you indicate the type of information (objective function, constraint, upper bound, or lower bound) that is on each row by entering one of the four letters: O, C, U, or L. Note that the order of the rows does not matter. The possible cell entries in this column are O This row contains the objective function defined by the coefficients (costs). C This row contains a constraint defined by logic (<, >, or =), the RHS, and the coefficients. L This row contains the optional lower bound for each variable. U This row contains the optional upper bound for each variable. Variables Columns Specify the columns containing the coefficients of the variables. Each column corresponds to a variable in the constraints and objective function. Each row represents an individual constraint, the objective function, or upper or lower bounds. The program interprets the rows according to the corresponding values of the Row Type column. The coefficients can be either positive or negative. Note that blanks are treated as zeros. If you to enter upper bounds or lower bounds, enter them as rows: one for the upper bounds and another for the lower bounds. 481-3

For example, consider a problem to minimize the weighted sum of two variables X and Y subject to several constraints. Here is the generic formulation. Minimize: X + 2Y s.t. X - Y 3 X + 2Y 6 3X - 4Y = 10 with bounds 4 X 20 2 Y 22 This is entered in five columns on the spreadsheet as follows. C1 C2 C3 C4 C5 O 1 2 C < 3 1-1 C > 6 1 2 C = 10 3-4 L 4 2 U 20 22 Labels of Constraints Column Specify a column containing a label for each constraint (Row Type = 'C'). These labels are used to make the output of this procedure easier to interpret. Labels in non-constraint rows are ignored. Logic and Constraint Bounds (RHS) Logic Column Specify the column containing the logic values for the constraints. Note that the cells in this column are only used for constraints (rows whose Row Type is "C"). Possible Logic Values < For less than or equal. You can also use "LE" or "<=". Example: X1 + X2 6. > For greater than or equal. You can also use "GE" or ">=". Example: X1 + X2 4. = For equal. You can also use "EQ". Example: X1 + X2 = 3. 481-4

Constraint Bounds (RHS) Column Specify the bound (RHS = right-hand-side) of each of the constraints, one per row. See the Example in the Variables Columns help. Reports Tab Select Reports Objective Function and Solution Values of Constraints Indicate which reports you want to view. Report Options Variable Names This option lets you select whether to display only variable names, variable labels, or both. Precision Specify the precision of numbers in the report. Single precision will display seven-place accuracy, while double precision will display thirteen-place accuracy. Report Options Decimal Places Input Coefficients Calculated Values These options let you designate the number of decimal places to be displayed for each type of variable. 481-5

Example 1 This section presents an example of how to run the data presented in the example given above. The data are contained in the LP 1 database. Here is the specification of the problem. Maximize subject to zz = xx 1 + xx 2 + 2xx 3 2xx 4 xx 1 + 2xx 3 700 2xx 2 8xx 3 0 xx 2 2xx 3 +xx 4 1 xx 1 + xx 2 + xx 3 + xx 4 = 10 0 xx 1 10 0 xx 2 10 0 xx 3 10 0 xx 4 10 You may follow along here by making the appropriate entries or load the completed template Example 1 by clicking on Open Example Template from the File menu of the window. 1 Open the LP 1 dataset. From the File menu of the NCSS Data window, select Open Example Data. Click on the file LP 1.NCSS. Click Open. 2 Open the window. Using the Analysis menu or the Procedure Navigator, find and select the Linear Programming with Bounds procedure. On the menus, select File, then New Template. This will fill the procedure with the default template. 3 Specify the problem. On the window, select the Specifications tab. Set Type of Optimum to Maximum. Double-click in the Row Type Column text box. This will bring up the column selection window. Select Type from the list of columns and then click Ok. Type will appear in this box. Double-click in the Variables Columns text box. This will bring up the column selection window. Select X1-X4 from the list of columns and then click Ok. X1-X4 will appear in this box. Double-click in the Labels of Constraints Column text box. This will bring up the column selection window. Select CLabel from the list of columns and then click Ok. CLabel will appear in this box. Double-click in the Logic Column text box. This will bring up the column selection window. Select Logic from the list of columns and then click Ok. Logic will appear in this box. Double-click in the Constraint Bounds (RHS) Column text box. This will bring up the variable selection window. Select RHS from the list of columns and then click Ok. RHS will appear in this box. 4 Run the procedure. From the Run menu, select Run Procedure. Alternatively, just click the green Run button. 481-6

Objective Function and Solution for Maximum Objective Function and Solution for Maximum Objective Value Function at Variable Coefficient Maximum X1 1.0 9.000 X2 1.0 0.800 X3 2.0 0.000 X4-2.0 0.200 Maximum of Objective Function 9.400 Solution Status: The optimization model is optimal. This report lists the linear portion of the objective function coefficients and the values of the variables at the maximum (that is, the solution). It also shows the value of the objective function at the solution as well as the status of the algorithm when it terminated. Constraints Constraints Label, Logic X1 X2 X3 X4 RHS Con1, 1.0 0.0 2.0 0.0 700.0 Con2, 0.0 2.0 0.0-8.0 0.0 Con3, 0.0 1.0-2.0 1.0 1.0 Con4, = 1.0 1.0 1.0 1.0 10.0 This report presents the coefficients of the constraints as they were input. Values of Constraints at Solution for Maximum and Dual Values Values of Constraints at Solution for Maximum and Dual Values RHS at Dual Row, Logic RHS Solution Value 2, 700.0 9.000 0.000 3, 0.0 0.000-0.300 4, 1.0 1.000 0.600 5, = 10.0 10.000-1.000 This report presents the right hand side of each constraint along with its value at the optimal values of the variables. 481-7