Baixe Linear programming and network flows, Bazaraa (1) e outras Notas de estudo em PDF para Estatística, somente na Docsity!
Board of Advisors, Engineering A. H-S, Ang University of Illinois Donold S. Berry Northwestern University James Gere Stanford University J. Stuart Hunter Princeton University T. William Lambe RV. Whitman Massachusetts Institute of Technology Perry L. McCarty Stanford University Don T. Phillips Texas À & M University Dale Rudd University of Wisconsin Robert F. Steidel Jr. University of California— Berkeley RN. White Cornell University Civil Engineering— Systems and Probability Transportation Engineering Civil Engineering and Applied Mechanies Engineering Statistics Civil Engineering — Soil Mechanics Environmental Engineering Industrial Engineering Chemical Engineering Mechanical Engineering Civil Engineering—Structures LINEAR PROGRAMMING AND NETWORK FLOWS Mokhtar S. Bazaraa John J. Jarvis School of Industrial and Systems Enginsering Georgia Institute of Technology, Atlanta, Georgia John Wiley & Sons New York Santa Barbara London Sydney Toronto PREFACE Linear Programming deals with the problem of minimizing or maximizing a jinear function in the presence of linear inequalities. Since the development of the simplex method by George B. Dantzig in 1947, linear programming has been extensively used in the military, industrial, governmental, and urban planning fields, among others. The popularity of linear programming can be attributed to many factors including its ability to model large and complex problems, and the ability of the users to solve large problems in a reasonabie amount of time by the use of the simplex method and computers. During and after World War II it became evident that planning and coordi- nation among various projects and the efficient utilization of scarce resources were essential. Intensive work by the U. S. Air Force team SCOOP (Scientific Computation of Optimum Programs) began in June 1947. As a result, the simplex method was developed by George B. Dantzig by the end of summer 1947. Interest in linear programming spread quickly among economists, mathematicians, statisticians, and government institutions. In the summer of 1949 a conference on linear programming was held under the sponsorship of the Cowles Commission for Research in Economics. The papers presented at that conference were later collected in 1951 by T. €. Koopmans into the book Activity Anabysis of Production and Allocation. Since the development of the simplex method many people have contributed to the growth of linear programming by developing its mathematical theory, devising efficient computational methods and codes, exploring new applications, and by their use of linear programming as an aiding tool for solving more complex problems, for instance, discrete programs, nonlinear programs, combi- natorial problems, stochastic programming problems, and problems of optimal control, This book addresses the subjects of linear programming and network flows. The simplex method represents the backbone of most of the techniques pre- sented in the book. Whenever possible, the simplex method is specialized to take advantage of problem structure, Throughout we have attempted first to present the techniques, to illustrate them by numerical examples, and then to provide detailed mathematical analysis and an argument showing convergence to an optimal solution. Rigorous proofs of the results are given without the theorem- proof format. Even though this may bother some readers, we believe that the format and mathematical level adopted in this book will provide an adequate and smooth study for those who wish to learn the techniques and the know-how io use them, and for those who wish to study the algorithms at a more rigorous level. The book can be used both as a reference and as a texibook for advanced undergraduate students and first-year graduate students in the fields of in- dustrial engineering, management, operations research, computer science, mathematics, and other engineering disciplines that deal with the subjects of linear programming and network flows. Even though the book's material re- quires some mathematical maturity, the only prerequisite is linear algebra. For v vi PREFACE convenience of the reader, pertinent results from linear algebra and convex analysis are summarized in Chapter two. In a few places in the book, the notion of differentiation would be helpful. These, however, can be omitted without loss of understanding or continuity. This book can be used in several ways. It can be used in a two-course sequence on linear programming and network flows, in which case all of its material could be easily covered. The book can also be utilized in a one-semester course on linear programming and network flows. The instructor may have to omit some topics at his discretion. The book can also be used as a text for a course on either linear programming or network flows. Following the introductory first chapter and the second chapter on linear algebra and convex analysis, the book is organized into two parts: linear programming and networks flows, The linear programming part consists of Chapters three to seven. In Chapter three the simplex method is developed in detail, and in Chapter four the initiation of the simplex method by the use of artificial variables and the problem of degeneracy are discussed. Chapter five deals with some specializations of the simplex method and the development of optimality criteria in linear programming. In Chapter six we consider the dual problem, develop several computational procedures based on duality, and dis- cuss sensitivity and parametric analysis. Chapter seven introduces the reader to the decomposition principle and to large-scale programming. The part on network flows consists of Chapters eight to eleven. Many of the procedures in this part are presented as a direct simplification of the simplex method, In Chapter eight the transportation problem and the assignment problem are both examined. Chapter nine considers the minimal cost network flow problem from the simplex method point of view. In Chapter ten we present the out-of-kilter algorithm for solving the same problem. Finally, Chapter eleven covers the special topics of the maximal flow problem, the shortest path problem, and the multicommodity minimal cost flow problem. We thank the graduate students at the School of Industrial and Systems Engineering at the Georgia Institute of Technology who suffered through two earlier drafts of this manuscript and who offered many constructive criticisms. We express our appreciation to Gene Ramsay, Dr. Jeff Kennington, Dr. Michael Todd, and Dr. Ron Rardin for their many fine suggestions. We are especially grateful to Súleyman Tiúfekgi for preparing the solutions manual and to Carl H. Wohlers for preparing the bibliography. We also thank Dr. Robert N. Lehrer, director of the School of Industrial and Systems Engineering at the Georgia Institute of Technology, for his support during all phases of the preparation of the manuscript. Special thanks are due to Mrs. Alice Jarvis, who typed the first and third drafts of the manuscript; and to Mrs. Carolyn Piersma, Mrs. Amelia Williams, and Miss Kaye Watkins, who typed portions of the second draft. Mokhtar S. Bazaraa John J. Jarvis viii 4.5 4.6 Degeneracy and Cycling Lexicographic Validation of Cycling Prevention Exercises Notes and References CONTENTS 165 170 174 187 5 SPECIAL SIMPLEX FORMS AND OPTIMALITY CONDITIONS 5.1 5.2 The Revised Simplex Method The Simplex Method for Bounded Variables 188 201 5.3 The Kuhn-Tucker Conditions and the Simplex Method 212 Exercises Notes and References 6. DUALITY AND SENSITIVITY 6.1 6.2 6.3 64 4.5 6.6 6.7 6.8 Formulation of the Dual Problem Primal-Dual Relationships Economic Interpretation of the Dual The Dual Simplex Method The Primal-Dual Method Finding an Initial Dual Feasible Solution: The Artificial Constraint Technique Sensitivity Analysis Parametric Analysis Exercises Notes and References 7. THE DECOMPOSITION PRINCIPLE 71 7.2 7.3 7.4 7.5 The Decomposition Algorithm Numerical Example Getting Started The Case of Unbounded Region X Block Diagonal Structure Exercises Notes and References 8. THE TRANSPORTATION AND ASSIGNMENT PROBLEMS 8.1 8.2 8.3 Definition of the Transportation Problem Properties of the A Matrix Representation of a Nonbasic Vector in Terms 220 234 236 242 248 250 257 265 267 277 286 304 306 su 320 321 328 338 351 353 356 CONTENTS 8.4 8.5 8.6 8.7 8.8 8.9 of the Basic Vectors The Simplex Method for Transportation Problems An Example of the Transportation Algorithm Degeneracy in the Transportation Problem The Simplex Tableau Associated with a Transportation Tableau The Assignment Problem The Transshipment Problem Exercises Notes and References 9. MINIMAL COST NETWORK FLOWS 92.1 9.2 9.3 9.4 9.5 9.6 92.7 9.8 The Minimal Cost Network Flow Problem Properties of the À Matrix Representation of a Nonbasic Vector in Terms of the Basic Vectors The Simplex Method for Network Flow Problems An Example of the Network Simplex Method Finding an Initial Basic Feasible Solution Network Flows with Lower and Upper Bounds The Simplex Tableau Associated with a Network Flow Problem Exercises Notes and References 10. THE OUT-OF-KILTER ALGORITHM 10.1 The Out-of-Kilter Formulation of a Minimal Cost Network Flow Problem 10.2 Strategy of the Out-of-Kilter Algorithm 10.3 Summary of the Out-of-Kilter Algorithm 10.4 An Example of the Out-of-Kilter Algorithm Exercises Notes and References MAXIMAL FLOW, SHORTEST PATH, AND MULTICOMMODITY FLOW PROBLEMS 11.1 The Maximal Flow Problem 11.2 The Shortest Path Problem . 365 367 373 378 382 383 391 392 403 404 407 an 413 418 419 420 425 426 439 441 446 458 460 463 472 474 481 ONE: INTRODUCTION In 1949 George B. Dantzig published the “simplex method” for solving linear programs. Since that time a number of individuals have contributed to the field of linear programming in many different ways including theoretical develop- ment, computational aspects, and exploration of new applications of the subject. The simplex method of linear programming enjoys wide acceptance because of (1) its ability to model important and complex management decision problems and (2) its capability for producing solutions in a reasonable amount of time. In subsequent chapters of this text we shall consider the simplex method and its variants, with emphasis on the understanding of the methods. Tn this chapter the linear programming problem is introduced. The following topics are discussed: basic definitions in linear programming, assumptions leading to linear models, manipulation of the problem, examples of linear Problerns, and geometric solution in the feasible region space and the require- ment space. This chapter is elementary and may be skipped if the reader has previous knowledge of linear programming. 2 INTRODUCTION 1.1 THE LINEAR PROGRAMMING PROBLEM A linear programming problem is a problem of minimizing or maximizing a linear function in the presence of linear constraints of the inequality and/or the equality type. In this section the linear programming problem is formulated. Basic Definitions Consider the following linear programming problem. Minimize cxt ento + ex, Subectto axtapmt: cc +ax,> Db Xp +ax, > dy Gm FA o Han Om XX us x,> 0 Herec;x, + Cx, +...., + cx, is the objective function (or criterion function) to be minimized and will be denoted by z. The coefficients c,, c,,. .., c, are the (known) cost coefficients and xy, x», ..., x, are the decision variables (variables, or activity levels) to be determined. The inequality X;.,2,x, > b; denotes the ith constraint (or restriction). The coefficients a, for [=1,2,...,mj= L2...,n are called the technological coefficients. These technological coefficients form the constraint matrix A given below. Sn Ma Co Gm dm mn Gon A=|. . Im Im The column vector whose ith component is b, which is referred to as the right-hand-side vector, represents the minimal requirements to be satisfied. The constraints x, Xp ..., X, > O are the nonnegativity constraints. A set of vari- ables x,,..., x, satisfying all the constraints is called a feasible point or a feasible vector. The set of all such points constitutes the feasíble region ot the feasible space. Using the foregoing terminology, the linear programming problem can be 4 INTRODUCTION x = 10, then the cost of this activity is 10c,. If x, = 20, then the cost is 20c,, and so on. This means that no savings (or extra costs) are realized by using more of activity ;. Also no setup cost for starting the activity is realized. 2. Additivity. This assumption guarantees that the total cost is the sum of the individual costs, and that the total contribution to the ith restriction is the sum of the individual contributions of the individual activities. 3. Divisibiligy. This assumption ensures that the decision variables can be divided into any fractional levels so that noninteger values for the decision variables are permitted. To summarize, an optimization problem can be cast as a linear program only if the aforementioned assumptions hoid. This precludes situations where econo- mies of scale exist; for example, when the unit cost decreases as the amount produced is increased, In these situations one must resort to nonlinear programs. Tt should also be noted that the parameters Cj Cj and b, must be known or estimated. Problem Manipulotion Recali that a linear program is a problem of minimizing or maxirmizing a linear function in the presence of linear inequality and/or equality constraints. By simple manipulations the problem can be transformed from one form to another equivalent form. These manipulations are most useful in linear programming, as will be seen throughout the text. INEQUALITIES AND EQUATIONS An inequality can be easily transformed into an equation, To illustrate, consider the constraint given by 27. ,a,x, > &, This constraint can be put in an equation form by subtracting the nonnegative siack variable x, ,; (sometimes denoted by s,) leading to Xi.,a,x; — x, =b and x,,, > 0. Similarly the constraint Dj=10%; < b; is equivalent to Xi.ja,x, + X,,, = b, and x,,, > 0. Also an equation of the form X5.. ,4;x, = b; can be transformed into the two inequalities Djmi0yx; < band oa, > Db, NONNEGATIVITY OF THE VARIABLES For most practical problems the variables represent physical quantities and hence must be nonnegative. The simplex method is designed to solve linear programs where the variables are nonnegative. If a variable x, is unrestricted in sign, then it can be replaced by x; — x; where x; > 0 and x” >0. If x, > 4, then the new variable x, = x, — 1 is automatically nonnegative. Also if a 1.1 THE LINEAR PROGRAMMING PROBLEM 5 variable x, is restricted such that x, < u where u < 0, then the substitution x; = 4; — x, produçes a nonnegative variable x;. MINIMIZATION AND MAXIMIZATION PROBLEMS Another problem manipulation is to convert a maximization problem into a minimization problem and conversely. Note that over any region Ms » Maximum 2 cx;= —minimum io 4 TS So a maximization (minimization) problem can be converted into a minimiza- tion (maximization) problem by multiplying the coefficients of the objective function by — 1. After the optimization of the new problem is completed, the objective of the old problem is —1 times the optimal objective of the new problem. Standard and Canonical Formats From the foregoing discussion we see that a given linear program can be put in different equivalent forms by suitable manipulations. Two forms in particular will be useful. These are the standard and the canonical forms. A linear program às said to be in standard format if all restrictions are equalities and all variables are nonnegative. The simplex method is designed to be applied only after the problem is put in the standard form. The canonical form is also useful especially in exploiting duality relationships. A minimization problem is in canonical form if all variables are nonnegative and ali the constraints are of the > type. A maximization problem is in canonical format if all the variables are nonnegative and all the constraints are of the < type. The standard and canonical forms are sumymarized in Table 1.1. Linegr Programming in Matrix Notation A linear programming problem can be stated in a more convenient form using matrix notation, To illustrate, consider the following problem. " Minimize Docx Subjectto Sax=b i=1,2...,m 1.2 EXAMPLES OF LINEAR PROBLEMS 7 Denote the row vector (c,, cy...» €,) by €, and consider the following column vectors x and b, and the m x n matrix A. * db an A Cn * b Do dg dom x= b= A=| A by | dm ma o Am Then the above problem can be written as follows. Minimize cx Subjectto Ax=b x>0 The problem can also be conveniently represented via the columns of A. Denoting A by [a a,...,a,] where a, is the jth column of A, the problem can be formuiated as follows. Ms Mimimize Cx; 1 u j Subjectto 3 a,x=b = 1.2 EXAMPLES OF LINEAR PROBLEMS Tn this section we describe several problems that can be formulated as linear programs. The purpose is to show the varieties of problems that can be recognized and expressed in precise mathematical terms as linear programs. Feed Mix Problem An agricultural mil! manufactures feed for chickens. This is done by mixing several ingredients, such as corn, limestone, or alfalfa. The mixing is to be done in such a way that the feed meets certain levels for different types of nutrients, such as protein, calcium, carbohydrates, and vitamins. To be more specific, suppose that n ingredients/ = 1,2,...,n and m nutrientsi=1,2,...,mare considered. Let the unit cost of ingredient ; be c, and let the amount of 8 INTRODUCTION ingredient ; to be used be x,. The cost is therefore Din gxp Tf the amount of the final product needed is », then we must have 3º. ,x, = b Further suppose that a; is the amount of nutrient i present in a unit of ingredient , and that the acceptable lower and upper limits of nutrient i in a unit of the chicken feed are 1! and u; respectively. Therefore we must have the constraints //b < Xi. 4;x, < ub fori=1,2,...,m. Finally, because of shortages, suppose that the mill cannot acquire more than u, units of ingredient ;. The problem of mixing the ingredients such that the cost is minimized and the above restrictions are met, can be formulated as follows. Minimize CMT CG + CX Subject to Mto ox +o x=b bi
O is known. Also suppose that the production cost is proportional to the rate of production. and so is given by c,fgx(1) dt. Then the total costis (ic, y(t) + cox(8)] dt. Also note that the inventory at any time is given according to the relationship ng =20+[ [eo stld cefo7] 10 INTRODUCTION The jth cutting pattern is characterized by the column vector a, where the ith component of a, namely a,, is à nonnegative integer denoting the number of sheets of length 4 in the jth pattern. For instance, suppose that the standard sheets have length / = 10 meters and that sheets of lengths 1.5, 2.5, 3.0, and 4.0 meters are needed. The following are typical cutting patterns: a = ' a = , a = 3 o o 2 4 o 0 o 3 [o 0 o o Note that the vector a, represents a cutting pattern if and only if Z5.,a;i, < 1 and each a, is a nonnegative integer. The number of cutting patterns n is finite. If we let x, be the number of standard rolls cut according to the jth pattern, the problem can be formulated as follows. n Minimize 5 x, j=1 Subjectto 3 ax >; i=12...,m E x,>0 j=1,2,...,n x, integer j=1L2...,n If the integrality requirement on the x;s is dropped, the abovementioned problem is a linear program. Of course the difficulty of this problem is that the number of possible cutting patterns n is very large, and also it is not computa- tionally feasible to enumerate each cutting pattern and its columh a, beforehand. The decomposition algorithm of Chapter 7 is particularly suited to solve the preceding problem where a new cuíting pattern is generated at each iteration (see also Exercise 7.25). In Section 6.7 we suggest a method for handling the integrality requirements. The Transportation Problem The Brazilian coffee company processes coffee beans into coffee at m plants. The coffee is then shipped every week to n warehouses in major cities for retail, distribution, and exporting. Suppose that the unit shipping cost from plant i to warehouse j is c;. Further suppose that the production capacity at plant i is a, and that the demand at warehouse j is 4, It is desired to find the production- shipping pattern that minimizes the overall shipping cost. This is the weil-known transportation problem. The essential elements of the problem are shown in the 1.2 EXAMPLES OF LINEAR PROBLEMS n Piants Warehouses Figure 1.2. The transportation problem. network of Figure 1,2. The transportation problem discussed above can be Formulated as the following linear program. ma Minimize 5, 5 cx; i=1j=1 Subjectto D x;