PROCESS MANAGEMENT. Selected Exact Managerial Methods. Study supports

Size: px
Start display at page:

Download "PROCESS MANAGEMENT. Selected Exact Managerial Methods. Study supports"

Transcription

1 PROCESS MANAGEMENT Selected Exact Managerial Methods Study supports Darja Noskievičová FMME VŠB-TUO Ostrava 2016

2 Language review: Mark Landry Title:, Selected Exact Managerial Methods Author: Prof. Ing. Darja Noskievičová, CSc. Edition: First, 2016 No. of pages: 76 Study materials for the study support of, the Faculty of Metallurgy and Materials Engineering. Completion: VŠB Technical University of Ostrava Prof. Ing. Darja Noskievičová, CSc. VŠB Technical University of Ostrava 2

3 STUDY INSTRUCTIONS You have received study support for the combined study containing selected topics covered by the course of taught in the 3rd semester of the follow-up master's degree of the study programme Quality Management study field at the Faculty of Metallurgy and Materials Engineering. Course objective and learning outputs The main course objective is to offer students a complex overview of the aspects of the process management including various exact managerial approaches covering also linear programming. Knowledge outputs: - a student will be knowledgeable in the problems of process planning and controlling; - a student will understand and learn the algorithms of various methods for process planning and controlling. Skills outputs: - a student will be able to orient him/herself in the problems of the planning and controlling of manufacturing, and auxiliary and service processes in practice; - a student will be able to apply in practice the selected methods of operations research. Who the course is intended for This course is included in the follow-up master's study of the field of study of Quality Management, but it can be studied by an applicant from any other field of study, provided that he/she meets the required prerequisites. This study support is divided into chapters, which logically divide up the studied matter, but are not equally comprehensive. The estimated study time of the chapters may vary considerably, which is why large chapters are further divided into numbered sub-chapters and they correspond to the structure described below. Method of communication with the teacher This matter is presented to students within the frame of their lectures and practical exercises, where they practically learn the topics discussed during the theoretical lectures. But the selected topics suppose self-learning and the elaboration of written seminar work discussed with the lecturer during consultations and via the internet. 3

4 STRUCTURE OF THE CHAPTERS Study time The time necessary to study the subject matter is given at the beginning of every chapter. The time is approximate and can serve as a rough guide for the study layout of the entire subject. The time may seem too long to some people or, on the contrary, too short to others. There are students who have never encountered this issue and, on the other hand, those who already have extensive experience in this field. Objective There are defined objectives given for you to achieve after reading the chapter and studying the topics - specific skills and knowledge. Lecture This part is the actual presentation of the studied subject matter, the introduction of new terms, their definitions and the explanation of the principles of the studied subject matter. Everything is accompanied by pictures, tables and solved examples. Examples There are solved examples to better understand the discussed subject matter. Summary of terms The main terms you should learn are repeated at the end of the chapter. If you still do not understand any of the terms, go back to them again. Questions There are several questions to verify that you have fully and well mastered the subject matter of the chapter. Key to solution You will find the solution key to the examples at the end of every chapter. 4

5 References There is a list of the used reference sources, from which you can draw additional information on an issue in question, at the very end of every chapter. The author of this educational material wishes you a successful and pleasant study using this textbook. Prof. Ing. Darja Noskievičová, CSc. 5

6 CONTENTS STUDY INSTRUCTIONS 3 STRUCTURE OF THE CHAPTERS 4 CONTENTS 6 1. BASIS OF LINEAR PROGRAMMING 9 Time to study 9 Goal 9 Lecture Introduction Requirements of a linear programming problem Introductory example (Optimal production planning) Forms of LP models General form of an LPP model Standard and canonical form of an LP model Summarization of additional and artificial variables Assumptions of linear programming Types of solutions of LPP General model formulation a typical LPP Optimal production plan problem Optimal mix problem Optimal rod cutting problem Techniques of solving LP problems 27 Examples 27 Summary of terms 29 Questions 30 Key to solution 30 References GRAPHICAL SOLUTION OF A LINEAR PROGRAMMING PROBLEM 33 Study time 33 Objective 33 Lecture Introduction Steps of the graphical solution 33 6

7 2.2.1 Creation of a general LPP model Construction of a feasible region Finding the optimal solution 36 Examples 38 Summary of terms 38 Questions 38 Key to solution 39 References SIMPLEX METHOD 41 Study time 41 Objective 41 Lecture Steps of the simplex method Formulating the problem in terms of a general LPP model Transformation of a general model into the canonical form Setting up the initial table and calculation of the zj and c j -z j quantities Verification of the optimality of the solution Determination of the entering variable Determination of the exiting (leaving) variable Creation of a new table Verification of the optimality of the solution Repeating the simplex algorithm Solved example 49 Examples 52 Summary of terms 52 Questions 53 Key to solution 53 References TRANSPORTATION PROBLEM 57 Study time 57 Objective 57 Lecture Principle of the transportation problem solution 57 7

8 4.2 Steps of the transportation problem Preparation of the transportation table Generating the initial feasible solution Developing the optimal solution MODI method Selection of the initial solution Setting the dual variables u i and v j Computation of (u i + v j c ij ) for unoccupied cells Selection of the cell with maximal positive (u i + v j c ij ) Creation of the closed loop (path, cycle) Recalculation of the last table Repetition of the algorithm from Step 2 69 Examples 71 Summary of terms 73 Questions 73 Key to solution 74 References 76 8

9 1. BASIS OF LINEAR PROGRAMMING PROBLEMS Study time 600 min Objective After studying this chapter you should be able to describe the type of problem that could be solved using linear programming; formulate a general linear programming model from a description of the problem; convert the general model into a standard and canonical form. set an initial feasible solution. Lecture 1.1 Introduction In 1947, George Danzig proposed using linear algebra for determining the optimal solutions of problems involving restrictions (constraints). For instance, the goal is to determine the optimal amount of several products to produce a given product s profit per unit, respecting such constraints as working machine capacity, labour hours, raw materials needed to make the planned products. This application has been called linear programming (LP) which is a part of a wider class of mathematical methods called mathematical programming. Linear programming has been widely used for solving constrained optimization problems. LP consists of a sequence of steps that will lead to an optimal solution if it exists. [3] The most common type of LP application involves the general problem of allocating limited sources among competing activities in the best possible (i.e. optimal) way. More precisely, an LP problem involves selecting the level of certain activities that compete for scarce resources that are necessary to perform those activities. The choice of activity levels then dictates how much of each resource will be consumed by each activity. LP involves the planning of activities to obtain an optimal result, i.e. the result that reaches the specified best 9

10 outcome among all feasible alternatives. LP models are used to help managers make decisions in many different areas where it is necessary to allocate scarce resources among competing demands (resource allocation problems) (see Tab. 1.1). Tab. 1.1 Examples of LPP practical applications Source: [4] Problem type Production planning Distribution Inventory planning Location planning Process control Product planning Scheduling Description Production: finding the minimum-cost production operational plan (schedule) for a given work-force plan, taking into account inventory carrying subcontracting costs. Production and work-force: finding the minimum-cost production operational plan taking into account hiring and layoff costs as well as carrying inventory, overtime, subcontracting costs, and subject to various capacity and policy constraints. Staffing: founding the optimal staffing plan for various categories of workers, subject to various demand and policy constraints. Shipping plans: finding optimal shipping assignments from factories to distribution centres or from warehouses to retailers. Stock control: Determination of the optimal mix of products to hold in inventory in a warehouse. Supplier selection: finding the optimal combination of suppliers to minimize the amount of unwanted inventory. Plants or warehouses: determination of the optimal location of a plant or warehouse with respect to total transportation costs between various alternative locations and existing supply and demand sources. Stock cutting: Given the dimensions of a roll or sheet of raw material finding the cutting pattern that minimized the amount of scrap material Mixes: Finding the optimal production of various ingredients such as gasoline, alloys, paints, foods subject to certain minimal requirements. Determination of the minimum-cost assignment of workers to shifts, subject to varying demand. Vehicles: Assignment of m vehicles to n products or jobs and determination of the number of trips to make, subject to vehicle size, vehicle availability, and demand constraints. Routing: Finding the optimal routing of a product through a number of sequential processes, each with their own capacities and characteristics. 1.2 Requirements of a linear programming problem All LP problems (LPP) have four properties in common [2]: 1. LPP seek to maximize or minimize some quantity (usually profit or cost). We refer to this property as the objective function of an LP problem. The major objective of a typical firm is to maximize profits in the long run. In the case of a trucking or airline distribution system, the objective might be to minimize shipping costs. 10

11 2. The presence of restrictions or constraints limits the degree to which we can pursue our objective. For example, deciding how many units of each product in a firm s product line to manufacture is restricted by the available labour and machinery. We want, therefore, to maximize or minimize a quantity (the objective function) subject to limited resources (the constraints). 3. There must be alternative courses of action to choose from. For example, if a company produces three different products, management may use LP to decide how to allocate its limited production resources (of labour, machinery, and so on) among them. If there were no alternatives to select from, we would not need LP. 1.3 Introductory example (Optimal production planning) In a plant with 3 workshops five product types (P1 P5) are planned to be produced. The requirements of the particular products for the working capacity of each workshop and the whole available working capacity of each workshop can be found in Tab Tab. 1.2 Data for the example Workshop Capacity requirement / 1 piece of product (hours) P1 P2 P3 P4 P Profit/1 unit of product The whole available capacity of the workshop (hours/year) Task: Plan what products and in which amount (x 1, x 2, x 3, x 4, x 5 ) to produce in order to achieve maximal profit. Solution: We are seeking such vector as x T = (x 1, x 2,, x 5 ), that enables achieving maximal profit (the optimal solution). 11

12 Formulation of the LP model for this example is as follows: Z = 10x x x 3 + 8x x 5 MAX 2x 1 + 4x 2 + 2x 3 + 8x 4 + 1x x 1 + 1x 2 + 3x 3 + 1x 4 + 5x x 1 + 3x 2 + 5x 3 + 2x 4 + 4x x j 0 (j = 1, 2,..., 5) The key terms are resources and activities: m denotes the number of resources; n denotes the number of activities. Applying to the previous introductory example, m = 3 workshops with their capacity, n = 5 products. 1.4 Forms of LP models In this subchapter we will discuss general, standard and canonical forms of the LP model General form of LP For the introductory example the above model can be generalized as follows: a) Objective function Z = c 1 x 1 + c 2 x c n x n EXT (MAX or MIN) b) Main (functional) constraints a 11 x 1 + a 12 x a 1n x n b 1 i = 1,2,, m a 21 x 1 + a 22 x a 2n x n b 2 j = 1,2,, n. a m1 x 1 + a m2 x a mn x n b m c) Non-negativity constraints x j 0 (for j = 1, 2,..., n) where x j...are model (decision) variables (outputs) = level of activity j; Z...is the value of the overall measure of performance (the value of objective function); a ij are coefficients of the consumption of the i-th resource for each unit of the j-th activity constants of main constraints; 12

13 b i are the right hand sides - the whole available amount of the i-th resource that is available for allocation to activities (constants in a system of the main constraints); c j...are objective function coefficients (sometimes called cost coefficients) - contribution of j- the decision variable to objective function Z, i.e. an increase in Z that would result from each unit increase in the level of activity j. As summarized in Tab. 1.3 the values of a ij, b i and c j (for i = 1, 2,..., m and for j = 1, 2,..., n) are model input constants. They are also referred to as the model parameters. Tab. 1.3 Input constants needed for a linear programming model Resource usage per unit of activity Activity Amount of resource Resource 1 2 n available 1 a 11 a 12 a 1n b 1 2 a 21 a 22 a 2n b m a m1 a m2 a mn b m c 1 c 2 c n Contribution to Z per unit of activity As we can see, some of constraints in the general model could be written as greater than or equal to ( ) or equal to (=), depending on the problem statement. PL problems can be used to minimize or maximize the value of the objective function (for instance waste). In general the LPP model has 3 parts: a) the objective function where we seek its extreme (maximum or minimum) b) main constraints (m) c) non-negativity constraints and n decision variables Standard and canonical form of the LP model Using the simplex method (see later in detail) we need to have a LP model in a socalled standard form. The standard form of the LP model must have the following three characteristics: 1. The objective function should be of a maximization type (but in the literature it can be found that it is requested to be of a minimization type). 2. All the constraints should of an equality type. 13

14 3. All the decision variables should be non-negative. 4. All right-hand side values b i should be non-negative. The procedure to transform a general form of a LP model to its standard form is discussed below. Let us consider the following example: Z = 3x 1 5x 2 MAX 2x 1-3x 2 15 x 1 + x 2 3 4x 1 + x 2 2 x j 0 for j = 1, 2 The above LPP is violating the following criterion of the standard form: - the constraints are not equations. However, a standard form for this LPP can be obtained by transforming it as follows: Z = 3x 1 +5x 2 + 0u 1 + 0u 2 + 0u 3 MAX 2x 1-3x 2 + 1u 1 = 15 x 1 + x 2 + 1u 2 = 3 4x 1 + x 2 + 1u 3 = 2 x 1,2 0, u 1,2, 3 0 Variables u i are called additional variables (notice that c j for u j in the objective function is equal to 0 and a ij of these additional variables are equal to +1). Their goal is to transform inequations into equations to have left-hand sides equal to the right-hand sides. For that reason u i are added to the left-hand side. Additional variables u i that are added to the left-hand side are called slack variables (slack variables have physical meaning in problem formulation, for instance it can be the idle capacity of the workplace). The former model is in the standard form after the described modifications. It also has a canonical form because - all decision variables are constrained to be non-negative, - all constraints, except the non-negativity constraints, are stated as equalities, - right-hand side coefficients are all non-negative, 14

15 - one decision variable is isolated in each constraint with +1 coefficient (u 1 in the first main constraint, u 2 in the second constraint and u 3 in the third constraint). The variable isolated in a given constraint does not appear in any other constraint, and appears with a zero coefficient in the objective function. Having a canonical form of the model enables us to set the initial basic feasible solution through setting the variable isolated in constraint j, called the j-th basic variable, equal to the right-hand side of the j -th constraint and by setting the remaining variables, called non-basic variables, all to zero. Collectively the basic variables are termed a basis. In the example above, the initial basic feasible solution is as follows: x 1, x 2 = 0, u 1 = 15, u 2 = 3, u 3 = 2 and the value of the objective function Z = 0. It means that variables x 1 and x 2 are non-basic variables and u 1, u 2 and u 3 are basic variables in this initial basic feasible solution. For now let us consider the following different example: Z = -3x 1-5x 2 MIN 2x 1-3x 2 15 x 1 + x 2 3 4x 1 + x 2 2 x 1 0 x 2 unrestricted The above LPP is violating the following criteria of the standard form: 1. The objective function is of a minimization type. 2. The constraints are not equations. 3. Decision variable x 2 is unrestricted, i.e. it can be also negative, thus it is violating the non-negativity criterion. A standard form for this LPP can be obtained by transforming it as follows: Z = -Z = 3x 1 +5x 2 + 0u 1 + 0u 2 + 0s 3 MAX 2x 1-3x 2 +1u 1 = 15 x 1 + x 2 + 1u 2 = 3 4x 1 + x 2-1s 3 = 2 x 1 0, u 1,2 0, s 3 0 x 2 unrestricted. 15

16 The first two main constraints ( ) were transformed into equations by adding the slack variables u 1, u 2 to the left-hand sides as in the former example. But in the third constraint (inequality ) the additional variable s 3 called the surplus variable had to be subtracted from the left-hand side to transform it into the equation. For now the problem with unrestricted variable x 2 must be solved. It is solved using the simple substitution x 2 = y 1 - y 2 where y 1 and y 2 are new non-negative variables. The final standard model for our example is as follows: Z = -Z = 3x 1 +5(y 2 y 1 )+ 0u 1 + 0u 2 + 0s 3 MAX 2x 1-3(y 2 y 1 ) +1u 1 = 15 x 1 + ( y2 y1 ) + 1u 2 = 3 4x 1 + (y 2 y 1 ) - 1s 3 = 2 x 1 0, u 1, 2 0, s 3 0, y 1,2 0. Because in the previous model it is not true that one decision variable is isolated in each constraint with +1 coefficient (there is -1s 3, not +1s 3 in the third constraint) the standard model is not in the canonical form and it is not possible to set the initial basic feasible solution. This situation can be solved using so-called artificial variables A i. These variables are fictitious and cannot have any physical meaning. They are merely a mathematical convenience useful for initiating the simplex algorithm. The artificial variable technique is a device to get the initial basic feasible solution, so that the simplex procedure may be adopted as usual until the optimal solution is obtained. These artificial variables would not be part of any optimal solution, if it exists. To solve such a LPP there are two methods: the Big M method (the "Big M" refers to a large number associated with the artificial variable, represented by the letter M) or the Method of penalties and the Two-phase simplex method. Using the first method means that we assign a very large penalty ' M ' to the artificial variable in the objective function for the maximization of the objective function (in detail see for instance [1], [5]). For our last example the final transformation leading to the canonical form is as follows: 16

17 Z = -Z = 3x 1 +5(y 2 y 1 )+ 0.u u s 3 M.A 3 MAX 2x 1-3(y 2 y 1 ) +1u 1 = 15 x 1 + (y 2 y 1 ) + 1u 2 = 3 4x 1 + (y 2 y 1 ) - 1s 3 +1A 3 = 2 x 1 0, u 1, 2 0, s 3 0, y 1,2 0, A 3 0 The initial basic feasible solution for this model is as follows: x 1 = 0, x 2 = 0, s 3 = 0 (non-basic variables); u 1 = 15, u 2 = 3, A 3 = 2 ( basic variables). For now it will be shown how to deal with a situation when in the general model some main constraint in the form of equation exists. Let s have the following general LPP model: Z = 3x 1 5x 2 MAX 2x 1-3x 2 15 x 1 + x 2 3 4x 1 + x 2 = 2 x j 0 for j = 1, 2 The standard form of this model is as follows: Z = 3x 1 +5x u u 2 MAX 2x 1-3x 2 + 1u 1 = 15 x 1 + x 2 + 1u 2 = 3 4x 1 + x 2 = 2 x 1,2 0, u 1,2 0 Because in this model it is not true that one decision variable is isolated in each constraint with +1 coefficient (there is no such variable in the third constraint) the standard model is not in the canonical form and it is not possible to set the initial basic feasible solution. This situation can be solved using again artificial variables A i : 17

18 Z = 3x 1 +5x u u 2 M.A 3 MAX 2x 1-3x 2 + 1u 1 = 15 x 1 + x 2 + 1u 2 = 3 4x 1 + x 2 + 1A 3 = 2 x 1,2 0, u 1,2 0, A 3 0 and the initial basic feasible solution is the following one: x 1 = 0, x 2 = 0 (non-basic variables); u 1 = 15, u 2 = 3, A 3 = 2 (basic variables = base) Summarization of additional and artificial variables Slack variables: Slack variable u i represents an unused quaintly of resources; it is added to less than or equal (<) type constraints in order to get an equality constraint. Surplus variables: Surplus variable s i represents the amount by which the solution values exceed a resource. These variables are also called negative slack variables. Surplus variables like slack variables carry a zero coefficient in the objective function. It is added to greater than or equal to (>) type constraints in order to get an equality constraint. Artificial variable: Artificial variables A i are added to constraints with equality (=) and greater than or equal to (>) type. An artificial variable is added to the constraint to get an initial solution to an LP problem in these cases. Artificial variables have no meaning in a physical sense and are not only used as a tool for generating an initial solution to an LP problem. Brief information about slack, surplus and artificial variables is given in the following table [6]: Tab. 1.4 Relation between additive and artificial variables and the types of inequality of constraints Inequality type Variable that appears - surplus + artificial = + artificial + slack 18

19 A more detailed comparison of additional (slack and surplus variables) and artificial variables can be found in the following table: Tab. 1.5 Properties and functions of additional and artificial variables ([6]) Particulars Slack Variable Surplus Variable Artificial Variable Meaning Unused resources of the idle resources. Excess amount of resources utilized. No physical or economic meaning. It is fictitious. When used? With < constraints With > constraints With > and = constraints Coefficient Coefficient in the Z ( objective function) As Initial basic variable In Optimal Table 0 0 -M for maximization (+M for minimization) Used as a starting point Used to help for interpreting idle & key resources Can t be used since the unit matrix condition is not satisfied It is initially used but later on eliminated. It indicates the infeasible solution 1.5 Assumptions of linear programming 1. Linearity (proportionality) The objective and constraints in linear programming problems must be expressed in terms of linear equations or inequalities. The contribution of each product (activity) to the value of the objective function Z is proportional to the value of decision variable x j. Also the contribution of each activity (product) to the left-hand side of each main constraint is proportional to the value of x j. [5] When this assumption cannot be met there must be used more complex non-linear programming or mixed integer programming. 2. Divisibility Noninteger values of decision variables are acceptable.in certain practical situations some or all decision variables must be restricted to an integer value. In that case integer programming models can be applied. [5] 19

20 1. Certaininty The values of the model parameters a ij, c j, b i are known and constant. Sometimes the degree of uncertainty is very large and the decision variables must be treated as random variables. For such situations stochastic programming was developed. [5] 4. Aditivity Every function in an LP model (in the objective function, on the left-hand side of the main constraint) is the sum of the individual contributions of the respective activities (products). [5] 5. Non-negativity Negative values of decision variable x j are unacceptable. [5] 1.6 Types of solutions of LPP When solving LP problems we work with various types of solutions. A solution is the setting of decision variables x j, i.e. any specification of values for the decision variables x j. A feasible solution is a solution for which all the constraints are satisfied simultaneously, including the non-negativity constraints. The feasible region is the collection of all feasible solutions (see Fig. 1.1, the hatched area). The way how to construct it see subchapter 2.2. In Fig. 1.1 we can also see feasible solutions (for instance points [0, 0] - initial solution, [100, 600] or [300, 0]) and others. Fig. 1.1 Feasible region 20

21 It is possible to have no feasible solutions (see Fig. 1.2). A linear program is infeasible if it has no feasible solutions, i.e. the feasible region is empty. Fig. 1.2 No feasible solution When a feasible region exists, LP tries to find the best feasible solution - a solution which gives the maximal value of the objective function when it is to be maximized or the minimal value of the objective function when it is to be minimized. It is called the optimal solution (in general it is a feasible solution that has the most favourable value of the objective function). An LP problem can have 1) only one single solution (see Fig. 1.3) or 2) multiple optimal solutions each with the same optimal value of the objective function (see Fig. 1.4). Objective function Fig. 1.3 Single optimal solution 21

22 Every point of this red line represents an optimal solution with the same Z Objective function Fig 1.4 Multiple optimal solutions There can be also the situation when a problem has no optimal solution. This occurs when it has no feasible solution (see Fig. 1.2) or the constraints do not prevent improving the value of the objective function indefinitely in the favorable direction (positive or negative). It means that for or any choice of x j, there is a larger x j that gives a better objective function value. This linear program is unbounded see Fig Fig. 1.5 Unbounded LPP A corner-point feasible (CPF) solution is a solution that lies at a corner of the feasible region (see Fig. 1.6). 22

23 (x 1 = 100; x 2 = 600) (x 1 = 600; x 2 = 0) (x 1 = 300; x 2 = 280) (x 1 = 0; x 2 = 0) (x 1 = 300; x 2 = 0) Fig. 1.6 Corner point feasible solutions These solutions have useful properties including the following relationship with optimal solutions. Any LPP with feasible solutions and a bounded feasible region - must posses CPF solutions and at least one optimal solution. - the best CPF solution must be an optimal solution. - if an LPP has exactly one optimal solution there must be a CPF solution. - if an LPP has multiple solutions at least two must be CPF solutions. Basic solution is a solution with at most m non-zero values if there are n variables and m constraints. Basic variables: m non-zero variables. Non-basic variables: n m of the zero valued variables. Conclusions: Any LPP that is not infeasible or unbounded has an optimal solution that is basic. Basic feasible solutions correspond to the CPF points of the feasible region. 1.7 General model formulation typical LPP In this subchapter we can find general models for some typical LPP. 23

24 1.7.1 Optimal production plan problem A store has requested a manufacturer to produce pants and sports jackets. For materials, the manufacturer has 750 m 2 of cotton textile and 1000 m 2 of polyester. Every pair of pants (1 unit) needs 1 m 2 of cotton and 2 m 2 of polyester. Every jacket needs 1,5 m 2 of cotton and 1 m 2 of polyester (see Tab. 1.6). Tab. 1.6 Summarization of LPP data pants jackets available cotton polyester The price of the pants is fixed at 50 $ and the jacket at 40 $. What is the number of pants and jackets that the manufacturer must give to the stores so that these items obtain a maximum sale? General model formulation: Decision variables x 1...number of pants x 2...number of jackets Objective function Z= 50x1 + 40x2 MAX System of main constraints x 1 + 3x x 1 + x Non-negativity constraints x j 0 for j = 1, Optimal mix problem This problem involves specifying an alloy ingredient combination that will satisfy the stated element content requirements at a minimum cost level. 24

25 The alloy must contain maximally 80% of Fe and minimally 4% of Ni. It is produced from 3 raw materials with its own content of Fe and Ni (see Tab. 1.7). The prices of the raw materials are in money units per 100 kg. The goal is to produce the alloy with the requested properties and with minimal cost. Tab. 1.7 Input data Component Content of elements in raw material (%) Raw material 1 Raw material 2 Raw material 3 Fe Ni Remaining Price per 100 kg General model formulation: Decision variables x j (j = 1, 2, 3)...portion of j-th raw material Objective function Z= 60x x x 3 MIN System of main constraints 70x x x x 1 + 2x 2 + 7x 3 4 x1 + x 2 + x 3 = 4 Non-negativity constraints x j 0 for j = 1, 2, Optimal rod cutting problem The problem is to cut rods of standard lengths to the planned amount of rods of specific lengths with a minimum of waste. 25

26 It is necessary to cut atypical semi-finished products A (its length is 570 mm), B (its length is 820 mm) and C (its length is 1010 mm) up from the standard 2000 mm steel rods. It is planned to produce 50 final products each consisting of 4 pieces of semi-finished products A and B and 5 pieces of semi-finished product C. We need to set the amount of the original standard 2000 mm rods cut according to the j-th cutting pattern to have minimal waste. The cutting pattern 1 means that we cut one 2000 mm rod into 3 semi-finished products A with 290 mm of waste (see Fig 1.7). Fig. 1.7 Example of the cutting pattern Another cutting pattern: 2 semi-finished products A and 1 semi-finished product B and 40 mm of waste. All possible patterns are defined in Tab Tab.1.8 Summary of the problem depiction Cutting pattern Semi-finished products (the number of pieces per one original 2000 mm rod) A (570 mm) B (820 mm) C (1010 mm) Waste (mm) General model formulation: Decision variables x j (j = 1, 2, 3, 4, 5)... number of original 2000 mm rods cut according to the j-th cutting pattern. 26

27 Objective function Z= 290x x x x x 5 MIN System of main constraints 3x 1 + 2x 2 + 1x 3 = 200 (200 = 50. 4) 1x 2 + 2x 4 + 1x 5 = 200 (200 = 50. 4) + 1x 3 + 1x 5 = 250 (250 = 50. 5) Non-negativity constraints x j 0 for j = 1, 2, 3, 4, Techniques of solving LP problems There are various different LP techniques for finding the optimal solution when it exists, some of them are of special purpose (transportation method) and others are more general in scope. The main general-purpose solution techniques are as follows: graphical linear programming and the simplex method. Graphical LP provides a visual representation of many important concepts of LP. On the other hand it is limited to problems involving only two variables. The simplex method is a mathematical approach enabling the handling of more than two variables. For that reason it is much more useful for solving real problems. Examples Example 1.1 Convert the following general model into a standard form. Z= x 1-6x 2 + 2x 3 MAX -2x 1 + 3x 2 x 3-6 x 1-2x 2 + 3x 3 1 x 1,2 0, x 3-2, 6 27

28 Example 1.2 Convert the following general model into a form where the initial LP solution can be set. Z= 4x 1 + x 2 MIN 3x 1 + x 2 = 3 4x 1 + 3x 2 8 x 1 + 2x 2 4 x j 0 Example 1.3 Create a general model for the following situation [2]: Then convert this model into a standard and canonical form and set the initial feasible solution. The Shader Electronics Company produces two products: (1) the Shader Walkman, a portable CD/DVD player, and (2) the Shader Watch-TV, a wristwatch-size internet-connected colour television. The production process for each product is similar in that both require a certain number of hours of electronic work and a certain number of labour-hours in the assembly department. Each Walkman takes 4 hours of electronic work and 2 hours in the assembly shop. Each Watch-TV requires 3 hours in electronics and 1 hour in assembly. During the current production period, 240 hours of electronic time are available, and 100 hours of assembly department time are available. Each Walkman sold yields a profit of $7; each Watch-TV produced may be sold for a $5 profit (this problem description is summarized in Tab Shader s problem is to determine the best possible combination of Walkmans and Watch-TVs to manufacture to reach a maximum profit. This product-mix situation can be formulated as a linear programming problem. Tab. 1.9 Summary of the LPP data Hours required to produce 1 unit Department Walkman Watch-TV Electronic Assembly Profit per unit (in money units) 7 5 Available hours this week 28

29 Summary of terms linear programing problem general model standard form canonical form objective function main constraint non-negative constraint decision variable coefficients of the consumption right-hand side cost coefficient slack variable artificial variable method of penalties big M surplus additional variable feasible solution initial solution feasible region optimal solution corner-point feasible solution basic solution basic variable non-basic variable 29

30 Questions For which decision environment is linear programming most suited? What is the structure of the typical LPP model? What are differences between the general and standard form of an LP model? What are the differences between a standard and canonical model? What are the assumptions for an LPP application? What types of LP solutions do you know? Define each type and their differences and similarities. What is the relation between optimal and CPF solutions? What is the feasible region and what determines such a region? Define the various results of LPP and try to describe them graphically. What is the difference between additional and artificial variables? What is their function in the LP model? What is the difference between slack and surplus? What is the cost coefficient for additional and artificial variables? What mix of surplus, slack and artificial variables is used in each of the following constraints? a) b) = c) Key to solution Example 1.1 solution Substitution: x 3 = y 1 - y 2 Z = x 1-6x 2 + 2(y 1 - y 2 )+0.u 1 +0.u u u 4 MAX 2x 1-3x 2 + y 1 - y 2 + u 1 = 6 x 1-2x 2 + 3(y 1 - y 2 ) u 2 = 1 -(y 1 - y 2 ) + u 3 = 2 y 1 - y 2 + u 4 = 6 x 1,2 0; y 1,2 0 u 1,2,3,4 0 30

31 Example 1.2 solution -Z = -4x 1 - x s u 3 M.A 1 M.A 2 MAX 3x 1 + x 2 + M.A 1 = 3 4x 1 + 3x 2-1s 2 + M.A 2 = 8 x 1 + 2x 2 + 1u 3 = 4 x j 0; u 3 0; s 2 ; A 1,2 0 Initial feasible solution: x 1 = 0, x 2 = 0, s 2 = 0, u 3 = 4, A 1 =3, A 2 = 8 Example 1.3 solution Decision variables x 1... amount of walkmans; x 2...amount of watch TV General model Z= 7x 1 + 5x 2 MAX 4x 1 + 3x x 1 + 1x x j 0 Standard = canonical form Z= 7x 1 + 5x 2 +0.u u 2 MAX 4x 1 + 3x 2 + u 1 = 240 2x 1 + 1x 2 + u 2 = 100 x j 0, u i 0 Initial feasible solution x 1 = 0, x 2 = 0, u 1 = 240, u 2 = 100, Z = 0 31

32 References [1] Eiselt, H. A. Sandblom, C. L.: Linear Programming and its Applications. Springer, Berlín, [2] Heiser, J. Render, B.: Operations Management. 10 th ed. Pearson, Harlow, England, [3] Hillier, F. S. Lieberman, G. J.: Introduction to Operations Research. 7 th ed. McGraw- Hill Ed., New York, [4] Krajewski, L. J. Malhotra, M. K. Ritzman, L. P.: Operations Management. Process and Supply Chains. 11 th ed. Pearson, Harlow, England, [5] Stewenson, W. J.: Operations Management. 12 th ed. McGraw-Hill Ed., New York, [6] 32

33 2. GRAPHICAL SOLUTION OF A LINEAR PROGRAMMING PROBLEM Study time 480 min Objective After studying this chapter you will know when and how to apply the graphical method, you will better understand the principles of linear programming, you will be able to construct a feasible region, you will be able to solve simple linear programming problems using the graphical method and interpret the obtained results. Lecture 2.1 Introduction The easiest way to solve a small LP problem is the graphical solution approach [1], [2]. The graphical procedure can be used only when there are two decision variables (x 1, x 2 ). When there are more than two variables, we must apply a more complex approach described as the simplex method (see Chapter 3). 2.2 Steps of the graphical solution The steps of the graphical method of the LPP solution can be defined as follows: 1. the creation of a general LPP model 2. the construction of a feasible region 3. finding the optimal solution (solutions) where it exits 33

34 2.2.1 Creation of the general LPP model In solving an LPP graphically, at first we must form the general LPP model. Let s have the following one: Z = 5x 1 + 8x 2 MAX 3x 1 + 3x (Constraint 1) x 1 + 2x (Constraint 2) x j Construction of the feasible region To find the optimal solution of the LPP, we must firstly identify a region of feasible solutions (feasible region). It means that we must plot every constraint on a graph (the variable x 1 is plotted as the horizontal axis x of the graph, and the variable x 2 is plotted as the vertical axis y). In doing it we start by converting each constraint inequality into equations. [1] For our example it is as follows: 3x 1 + 3x 2 = 1800 (constraint 1) x 1 + 2x 2 = 1000 (constraint 2) The equation for constraint 1 is plotted in Figure 2.1 and for constraint 2 in Figure 2.2. To plot the line in Figure 2.1, we need to find the points at which the line 3x 1 + 3x 2 = 1800 intersects the x 1 and x 2 axes. When x 1 = 0 (the location where the line touches the x 2 axis), it implies that 3x 2 = 1800 and that x 2 = 600. Likewise, when x 2 = 0, we can see that 3x 1 = 1800 and that x 1 = 600. Thus, constraint 1 is bounded by the line running from (x 1 = 0, x 2 = 600) to (x 1 = 600, x 2 = 0). The hatched area represents all points that satisfy the original inequality (constraint 1). Fig. 2.1 Constraint 1 34

35 Constraint 2 is illustrated similarly in Fig When x 1 = 0, then x 2 = 500 and when x 2 = 0 then x 1 = Constraint 2, then, is bounded by the line between (x 1 = 0, x 2 = 500) and (x 1 = 1000, x 2 = 0). The hatched area represents the original inequality (constraint 2). Fig. 2.2 Constraint 2 Fig. 2.3 shows both constraints together. The crosshatched region is the area that satisfies both main restrictions and non-negative constraints, too. This area is called the area of feasible solutions, or simply the feasible region (see Chapter 1). This region must satisfy all conditions specified by the programme s constraints and is thus the region where all constraints overlap. Any point in the region would be a feasible solution to the LPP. Any point outside the crosshatched area would represent an infeasible solution. Fig. 2.3 Feasible region 35

36 2.2.3 Finding the optimal solution Now when the feasible region has been graphed, we can proceed to find the optimal solution to the problem. The optimal solution is the point lying in the feasible region that produces the highest profit. The corner-point solution method [1] can be applied in looking for an optimal solution. This technique involves computing the profit at every corner point of the feasible region (see Fig. 2.4). Fig. 2.4 Feasible region with the corner points The mathematical theory behind linear programming states that an optimal solution to any problem (that is, the values of x 1, x 2 that yield the maximum profit in our example) will lie at a corner point, or extreme point, of the feasible region.[1] So, it is necessary to find only the values of the variables x 1 and x 2 at each corner; the maximum profit or optimal solution will lie at one (or more) of them. Once again we can see (in Figure 2.4) that the feasible region for our example is a four-sided polygon with four corner or extreme, points. These points are marked with A, B, C and D on the graph. To find the [x 1, x 2 ] values producing the maximum profit, we find out what the coordinates of each corner point are and then we determine and compare their profit levels: Point A: (x 1 = 0, x 2 = 0); profit = 0 (money units) Point B: (x 1 = 0, x 2 = 500); profit = 4000 (money units) Point D: (x 1 = 600, x 2 = 0); profit = 3000 (money units) 36

37 We skipped corner point C momentarily because to find its coordinates accurately, we will have to solve for the intersection of the two constraint lines. As you may recall from algebra, we can apply the method of simultaneous equations to these two constraint equations: 3x 1 + 3x 2 = 1800 x 1 + 2x 2 = 1000 To solve these equations simultaneously, we multiply the second equation by -3-3(x 1 + 2x 2 = 1000) = -3x 1 6x 2 = and then add it to the first equation: 3x 1 + 3x 2 = x 1-6x 2 = x 2 = Hence x 2 = 400. Doing this has enabled us to eliminate one variable, x 1, and to solve for x 2. We can now substitute 400 for x 2 in either of the original equations and solve for x 1. Let us use the first equation. When x 2 = 400, then 3x = x 1 = 600, hence x 1 = 200 Thus, point C has the coordinates (x 1 = 200, x 2 = 400). We can compute its profit level to complete the analysis: Point C: (x 1 = 200, x 2 = 400); profit = = 4200 (money units) Because point C produces the highest profit of any corner point, x 1 = 200, x 2 = 400 is the optimal solution to our LPP. This solution will yield a profit of 4200 per production period. 37

38 Examples Example 2.1 Let s have the following general LPP model: Z = 34x x 2 MAX 4x 1 + 6x x 1 + 2x x 1 + 1x 2 16 x j 0 for j = 1, 2 a) Is it possible to solve this LPP graphically? If it is possible, why? b) If it is possible to find the optimal solution for this LPP do it using the graphical method. Summary of terms feasible region feasible solution optimal solution objective function corner point corner point solution simultaneous equations Questions When is it suitable to solve the LPP graphically? What are the steps of the graphical method of the LPP solution? What depicts the feasible region? How to construct the feasible region? 38

39 What is the principle of the corner point solution method? What is the relation between the corner point and the optimal solution? How do we find out that the LPP has only one optimal solution? How do we find out that the LPP has no feasible solution? How do we find out that the LPP has multiple optimal solutions? What does an unbounded LPP mean? Key to solution Example 2.1 Ad a) It is possible because we have only two decision variables. Ad b) Optimal solution: x 1 = 3; x 2 = 6 Optimal solution 39

40 Conclusions: Optimal solution: x 1 = 3, x 2 = 6, Z = 342. It is also possible to compute the values of the additive (slack) variables u 1, u 2, u 3 from the main constraint equations: u 1 = 0, u 2 = 2, u 3 = 4 For instance: 4x 1 + 6x 2 + u 1 = 48 u 1 = 0 and so on. References [1] Heiser, J. Render, B.: Operations Management. 10 th ed. Pearson, Harlow, England, [2] Stewenson, W. J.: Operations Management. 12 th ed. McGraw-Hill Ed., New York,

41 3. SIMPLEX METHOD Study time 600 min Objective After studying this chapter you will know when and how to apply the simplex method, you will be able to solve an LPP using the simplex method, you will be able to interpret the obtained results. Lecture 3.1 Steps of the simplex method The simplex method is an iterative algebraic procedure for solving an LPP. After starting with an initial solution, the procedure systematically evaluates CPF (see Chapter 2) in such a way that the objective function improves (or at worst stays the same) at each iteration. The simplex algorithm can be applied through the following steps [1]: 1. Formulating the problem in terms of the general LPP model. 2. Transformation of the general model into the canonical form. 3. Setting up the initial table and calculating the z j and (c j z j ) quantities, ((c j z j ) is the criterion of optimality. 4. The verification of the optimality of the solution using the criterion of optimality. If all (c j z j ) are zero or negative the optimal solution has been found (in maximization problem). If these conditions do not hold, steps 5 7 must be implemented. 5. The determination of the entering variable (in the key column) with the largest (c j z j ) value (in maximizing problems). 6. The determination the exiting variable (the key row) by finding the ratio of the value in the quantity column to the corresponding substitution rate in the entering variable column for each row and selecting the smallest positive ratio. 41

42 7. The creation of the new table through the calculation of the new row for entering a variable by dividing the old row for an exiting variable by the pivot element (it is the intersection of the key column and key row) and placing it in the new table. Using Gaussian elimination to transform the values in the remaining rows and placing them in the new array. The calculation of the new z j and (c j z j ) values for the new table. 8. The verification of solution optimality. If all (c j z j ) are zero or negative the optimal solution (criterion of optimality) has been found (in maximization problem). If these conditions do not hold, steps 5 7 must be repeated. For practical applications computers are applied but to demonstrate the logic of the simplex method we will solve it manually step by step. We will consider the same LP problem as in the chapter with the graphical solution Formulating the problem in terms of the general LPP model Z = 5x 1 + 8x 2 MAX 3x 1 + 3x x 1 + 2x x j Transformation of the general model into the canonical form The general model must be modified for it to be possible to set the initial basic feasible solution (for more detail see Chapter 1). For our example the standard form is equal to the canonical one. Z = 5x 1 + 8x 2 + 0u 1 + 0u 2 MAX 3x 1 + 3x 2 + 1u 1 = 1800 x 1 + 2x 2 + 1u 2 = 1000 x j 0, u i Setting up the initial table and the calculation of the z j and (c j z j) quantities The most convenient way for applying the simplex method is to use tables. Each table corresponds to one basic feasible solution. In this step the initial table for the initial basic feasible solution is created (see Tab. 3.1). Most of it merely duplicates a ij, c j and b i constants and variables from the canonical model. 42

43 Tab. 3.1 Initial table (table1) In the first row there are the objective function (cost) coefficients c j for each variable from the canonical model, i. e. including slack variables u i (see the second row). The basic non-zero variables are listed under Basis (the second column). In the initial table for our example the slack variables u 1 and u 2 are chosen for the initial solution to the problem. In the first column there are cost coefficients for the basic variables (we know that these coefficients for the slack variables are equal to zero). In our example we have two main constraints. The column called Quantity shows the current value of the basic variables. In the initial table these values are merely the quantities on the right-hand side of the constraint equations in the canonical model b i, i. e and By convention the variables that are not in the current basic solution (non-basic variables) have the values of zero. Thus in the initial solution x 1 = 0 and x 2 = 0. This solution corresponds to the origin (0, 0) in the graph of the feasible regions in Chapter 2. All the variables in the canonical model are listed to the right of the Quantity column (there are variable x 1, x 2, u 1, u 2 ) for our example. In the initial table the coefficients a ij of the canonical model are listed under the variable name. These coefficients in the initial and all subsequent tables have a special meaning. They indicate the substitution rate for a particular non-basic variable relative to the basic variables. For example, the 3 and 2 in the x 2 column tell us that for each unit of x 2 introduced into the solution, u 1 will be reduced by 3 units and u 2 will be reduced by 2 units. In subsequent tables these substitution rates will change. This information will be useful in determining how to improve the current solution at any iteration. The last two rows of the table provide summary information about the trade-offs in introducing a variable into the solution. The z j row shows the profit forgone by introducing 1 unit of variable j into the solution. To calculate z j we use the substitution rates for variable j (in the column for variable j) and the cost coefficients for the basic variables (the first column). 43

44 Consider variable x 1 : when introducing 1 unit of variable x 1 into the solution it must be given up 3 units of u 1 and 1 unit of u 2. As slack variables provide no contribution to profit (c j = 0) the total profit forgone is by introducing 1 unit of x 1, i. e. z 1 = = 0 (see Tab. 3.2). All it is doing is giving up slack resources at this stage of the solution process. Similarly, z 2 = = 0. Tab. 3.2 Table 1 - cont. 1 Similarly, z 2 = = 0; z 3 = = 0 and z 4 = = 0 and Z = = 0. Z in the Quantity column shows the current value of the objective function. The (c j - z j ) row contains the net contribution effect of introducing 1 unit of a variable into the solution. It is the difference between objective function coefficients c j and the profit forgone z j by the introducing 1 unit of variable j. For x 2 we have c 2 z 2 = 8 0 = Verification of the optimality of the solution There can be read from the initial table that no resources are being used in the production because only slack variables are in the solution (in the basis). In addition it also shows that the current solution is not optimal as the (c j z j ) are not all zero or negative. It means that this current solution can be improved. For now there must be set a new better basic feasible solution that will lead to a better value of the objective function. To set such a solution we must set the so-called entering and exiting variables Determination of the entering variable In linear programming we select one variable to enter the solution and one variable to leave the solution at each iteration until we reach the optimal solution when it exists. The values (c j - z j ) tells us whether an improvement of the solution is possible. In our problem there is a positive net contribution of 5 money units per unit of x 1 and 8 money units per unit of x 2. As we are interested in maximizing the objective function it would make sense to select 44

45 the variable with the largest net contribution (c j z j ) as a new basic to enter into the new basic solution. This is variable x 2 in our example (see Tab. 3.3 and the column in the red frame which is called the key column). Tab. 3.3 Table 1 cont. 2 The general rule for the setting the entering variable can be defined as follows: Select a variable with the largest value of (c j z j ) to introduce it into the next solution (in maximizing a problem) Determination of the exiting (leaving) variable In this step we must select the exiting variable that will be removed from the base of the next solution and will be replaced by the entering variable set in the previous step. For such a solution we must compute value h i which is the ratio of the value in the quantity column to the corresponding substitution rate in the key column for each constraint (the last column in Tab. 3.4). For our example h 1 = 1800/3 = 600 and h 2 = 1000/2 = 500. Tab. 3.4 Table 1- cont. 3 45

46 The exiting (leaving) variable is determined by the smallest positive h i. In our example it is variable u 2 (see the row in the red frame in Tab. 3.4 this row is called the key row) as h 2 = 500 (it is less then h 2 = 600). The general rule for the setting the exiting variable can be defined as follows: Compute h i which is the ratio of the value in the quantity column to the corresponding substitution rate in the key column for each constraint. Consider only positive values for the substitution rates and select the row with the lowest ratio h i (the key row). After steps 4 and 5 we can create the new table relating to the next basic feasible solution Creation of the new table In the new basic feasible solution (new table 2) there will be in the basis an entering variable instead of an exiting one. For our example it means that there will be variable x 2 instead of variable u 2 (see Tab. 3.5). For that reason c j in the first column in the row for x 2 will be changed into 8. Tab. 3.5 Table 2 As we mentioned earlier, we use the simplex method for the systematic evaluation of CPF of a feasible region. Because the corners CPF are formed by the intersection of lines representing linear equations we need to solve a system of linear equations. For that reason we will apply a method called Gaussian elimination to transform the previous table to reflect a new solution to our LPP. Commonly in every tableau the coefficients in the column of a basic variable consist of a number 1 in the row associated with that variable and zeros in the rest of rows. For u 2, the exiting variable in our example, we have 0, 1 in a column (see Tab. 3.4). The values in the column for x 2, the entering variable in our example, are 3, 2 (see again Tab. 3.4). Using the Gaussian elimination method we will transform the column for x 2 into 0, 1. It reflects the fact that x 2 was entered into the new basic feasible solution and replaced u 2. 46

47 These transformations will be done by performing various mathematical operations on the rows of the table. At first we must calculate the new row for the entering variable. It is done as follows: at the intersection of the key column and the key row there is a value called the pivot element. We replace the old key row with the new row of the entering variable (see the pink row in Tab. 3.5) having a value of 1 for the pivot element (the red value in the Tab. 3.5). So, we will divide the values in the old key row in the previous table by the pivot element to create a new entering variable row for the new table. In our example the pivot element is equal to 2 (see the yellow box in Tab. 3.4). With this value we will divide all elements in the old key row for the variable u 2 in the previous table 1 and so we will have the new row for the x 2 variable in new table 2 (see Tab. 3.5). After transforming the old key row we proceed with the transformation of the other rows. Each other row is transformed according the following scheme new row = old row (the coefficient from the key column in the old row) x (new entering variable row) element by element, to the recomputed row in order that we have a 0 in the new entering variable column. In our example we must re-compute only one row, i.e. the row for the variable u 1. The computations of the elements for the new row for the variable u 1 are contained in the following table, the last column in the red frame. Tab. 3.6 Re-computation of the elements in the u 1 row The new row for variable u 1 will be transferred into table 2 (Tab. 3.7) and z j and (c j z j ) can be computed in the same way as in the previous table (see Tab. 3.7). 47

48 Tab. 3.7 Table 2 cont Verification of the optimality of the solution From this table we can read that the current basic solution is: x 1 = 0, x 2 = 500, u 1 = 300, u 2 = 0 and the value of the objective function Z = As there is one value which if positive means that this solution is not optimal and it can be improved (we can find the solution with the higher value of the objective function). It means that we must create a third table repeating the simplex algorithm from step Repeating the simplex algorithm Looking at Tab. 3.7 we can find out that only variable x 1 has a positive (c j z j ) and for that reason it will be the variable entering into the basis of the next solution. It will substitute for variable u 1, because u 1 has the smallest positive value (h 1 = 200). Now we can start to create the third table see Tab Tab. 3.8 Table 3 The re-computed values in the row for x 2 were set as it is in the following table, the last column in the red frame. 48

49 Tab. 3.9 Re-computation of the elements in the x 2 row These recomputed values were inserted into the third table and z j and (c j z j ) were computed (see Tab. 3.8). Tab. 3.8 contains the following basic feasible solution: x 1 = 200, x 2 = 400, u 1 = 0, u 2 = 0 with the value of the objective function Z = money units. As there is no positive value (c j z j ), this solution is also optimal. As the slack values are equal to 0, it means that the both resources were wholly utilized. 3.2 A solved example A company produces plastic pipes with big flexibility. The necessary information can be found in Tab All data are expressed in units per 100 feet of pipe. Tab Input data Pipe type Resource 1 2 Resource availability Extrusion 4 hr 6 hr 48 hr Packaging 2 hr 2 hr 18 hr Additive mix 2 lb 1 lb 16 lb Price per 100 feet 34 money units 40 money units Set what amount of pipe type 1 and what amount of pipe type 2 could be produced to obtain a maximal profit. Solve this LPP using the simplex method. 1. Definition of the variables and creation of the general model X 1.. amount of the pipe of type I X 2.. amount of the pipe of type II 49

50 Z = 34x x 2 MAX 4x 1 + 6x x 1 + 2x x 1 + 1x2 16 x j 0 for j = 1, 2 2. Transformation of the model into canonical form Z = 34x x 2 + 0u 1 + 0u 2 + 0u 3 MAX 4x 1 + 6x 2 + 1u 1 = 48 2x 1 + 2x 2 + 1u 2 = 18 2x 1 + 1x 2 + 1u3 = 16 x 1,2 0, u 1,2, Creation of the table for the initial solution, testing the optimality of the initial solution, setting the entering and exciting variables (see Tab. 3.11) Tab Table 1 (initial solution) Initial basic solution x 1 = 0, x 2 = 0, u 1 = 48, u 2 = 18, u 3 = 16, Z = 0 4. Creation of the recomputed table (the second basic solution), testing the optimality of the second solution, setting the entering and exciting variables see Tab

51 Tab Table 2 (the second basic solution) Actual basic feasible solution: x 1 = 0, x 2 = 8, u 1 = 0, u 2 = 2, u 3 = 8, Z = 320. It is a better solution than the first one but it is not the optimal solution. 5. Creation of the recomputed tableau (the third basic solution), testing the optimality of the third solution, setting the entering and exciting variables see Tab Tab Table 3 (the third basic solution) As no value of (c j z j ) is positive, it is the optimal solution: x 1 = 3, x 2 = 6, u 1 = 0, u 2 = 2, u 3 = 4, Z = 342 Conclusion: The plant could produce 300 feet of type 1 pipe and 600 feet of type 2 pipe to reach a profit of 432 money units. 4 units of additive mix would not be utilized. 51

52 Examples Example 3.1 Two products A and B can be produced on a certain machine. There are 12 hours of machine time available to produce these products. Product A requires 1 hour per unit, product B requires 3 hours per unit. Both products require one row material: product A uses 4 kg of raw material per one unit and product B uses 3 kg. There are 24 kg of this raw material available for these products. The goal is to maximize the profit from these products and unit profit for the product A is 4 money units and 5 money units for product B. What quantity of each should be produced? This information is summarized in the following table. Solve it using the graphical method and verify the result using the simplex method. Tab Input data Product Resource A B Resource availability Machine time 1 hr 3 hr 12 hr Raw material 4 kg 3 kg 24 kg Profit per 1 product 4 money units 5 money units Summary of terms exciting variable entering variable criterion of optimality substitution rate pivot element net contribution Gaussian elimination key row key column base 52

53 profit forgone Questions When is it suitable to solve the LPP using the simplex method? What are the steps of the simplex method? How to construct the simplex table? What is the optimality criterion? How to set the variable that will be removed from the next solution? How to set the variable that will be inserted into the next solution? How to re-compute the actual solution to obtain the an even better basic solution? What is the function of the value (c j z j )? What is the function of the value h i? How to interpret the simplex table? What can be read from it in each iteration? Key to solution Example 3.1 Graphical solution Definition of the variables: x 1.. amount of the product A x 2.. amount of the product B Creation of the general model: Z = 4x 1 + 5x 2 MAX x 1 + 3x x 1 + 3x 2 24 xj 0 for j = 1, 2 53

54 Conclusion: to maximize profit it is necessary to produce 4 units of product A and 2.67 units of the product B. It ensures a maximal profit of money units. Example 3.1 Solution using the simplex method Creation of the general model: 54

55 Z = 4x 1 + 5x 2 MAX x 1 + 3x x 1 + 3x 2 24 x j 0 for j = 1, 2 Transformation into the canonical model: Z = 4x 1 + 5x 2 MAX x 1 + 3x 2 + 1u x 1 + 3x 2 + 1u 2 24 x 1,2 0, u 1,2 0 The table for the initial solution (see Tab. 3.15) Tab Table 1 (initial solution) c j h i Basis Quantity x 1 x 2 u 1 u 2 0 u u z j Z = c j z j Initial basic solution: x 1 = 0, x 2 = 0, u 1 = 12, u 2 = 24, Z = 0 55

56 Optimal solution (see Tab. 3.16) Tab The last table with an optimal solution c j h i Basis Quantity x 1 x 2 u 1 u 2 5 x 2 8/3 (2,67) 0 1 4/9-1/9 4 x /3 1/3 z j Z = 88/ /9 7/9 (29,34) c j z j 0 0-8/9-7/9 Optimal solution: x 1 = 4, x 2 = 2.67, u 1 = 0, u 2 = 0, Z = Conclusion: Using the simplex method we have obtained the same solution as using the graphical method. References [1] Krajewski, L. J. Malhotra, M. K. Ritzman, L. P.: Operations Management. Process and Supply Chains. 11 th ed. Pearson, Harlow, England,

57 4. TRANSPORTATION PROBLEM Study time 600 min Objective After studying this chapter you will know what is a transportation problem you will be able to solve a transportation problem you will be able to apply approximate methods you will be able to find the optimal solution you will be able to interpret the results Lecture 4.1 The principle of a transportation problem Suppose a company has m warehouses (suppliers) and n retail outlets. A single homogenous product is to be shipped from the warehouses (suppliers) to the outlets (customers). Each warehouse (supplier) has a given level of supply (capacity) and each outlet (customer) has a given level of demand. We are also given the transportation costs between every pair of warehouse and outlet, and these costs are assumed to be linear. More explicitly, the assumptions are: The total supply of the product from supplier i is a i, where i = 1, 2,..., m. The total demand for the product at a customer j is b j, where j = 1, 2,..., n. The cost of sending one unit of the product from supplier i to customer j is equal to c ij, where i = 1, 2,..., m and j = 1, 2,..., n. The total cost of a shipment is linear in the size of the shipment. The problem of interest is to determine the optimal transportation scheme between suppliers and customers, subject to specified supply and demand constraints. 57

58 Graphically, a transportation problem can be depicted as follows: Suppliers Customers Fig. 4.1 Graphical description the transportation model where is x ij (decision variables) - the size of the shipment from supplier i to customer j, where i = 1, 2,..., m and j = 1, 2,..., n (x ij 0); c ij x ij - total cost of the shipment from i-th supplier to j-th customer. The objective function is the overall transportation cost for all supplier-customer combinations: m n i=1 j=1. minimize c ij x ij Such a problem leads to a very complex model using a general LP model. For that reason a more efficient algorithm (of the transportation model) for solving such problem was defined. It consists of three steps: the preparation of the transport table, generating an initial feasible solution and developing the optimal solution [1], [2], [3]. 4.2 Steps of the transportation problem solution In this chapter the steps in solving the transportation problem are described in detail using an example Preparation of the transportation table The second and third steps are implemented using so-called transportation tables where supply availability a i at each source is shown in the far right column and the customer 58

59 requirements b j are shown in the bottom row. Each cell represents one route. The unit shipping cost c ij is shown in the upper right corner of each cell, the amount of shipped material (decision variable x ij ) is shown in the centre of each cell (see Tab. 4.1). Tab. 4.1 Transportation table for a balanced transportation model where is m number of sources (suppliers) n...number of destinations (customers) a i capacity of i-th supplier (in tons, pounds, litres, etc.) b j demand of j-th customer (in tons, pounds, litres, etc.) customer (in money units or as a distance in kilometres, miles, etc.) x ij amount of material shipped between i-th supplier and j-th customer (in tons, pounds, litres etc.) The green parameters are input parameters, the red ones are output parameters. 59

60 4.2.2 Generating the initial feasible solution At the beginning of the second step of the transportation problem solution the initial table must be prepared (see Tab. 4.2) at the beginning it does not contain the values of x ij. Tab. 4.2 Initial table It is important at this step to make sure that the total supply availabilities a i and total demand requirements b are equal (the transportation problem must be balanced it is the j standard model). Often there is an excess supply or demand. In such situations, for the transportation method to work, a dummy customer or supplier must be added. This involves inserting an extra row (for an additional supplier) or an extra column (for an ad customer). The amount of supply or demand required by the dummy fictional supplier or customer equals the difference between the row and column totals a b or b a i j j i. This procedure converts an unbalanced transportation model into a balanced one. The following solution of such a transportation problem can be found in Tab. 4.3 and Tab

61 Tab. 4.3 The initial table for an unbalanced problem a b - adding fictive customer C 5 with demand b 5 = = 350 and c ij = 0: i j unbalanced model. Tab. 4.4 Balancing the unbalanced transportation problem using the fictive customer ( a b ) i j As in the simplex method in searching for the optimal solution we must start with setting the initial feasible solution applying the initial table see the previous step. The feasible solution means that the sum of x ij in the row equals the capacity of that row a i and the sum of x ij in the column equals the demands for that column b j. These two sets of constraints are called rim conditions. To set such an initial solution it is necessary to allocate quantities x ij to cells in the initial table (see Fig. 4.4) so that the rim conditions will be met. There are many various methods to do so, called approximate methods but we will present two approaches: the north-west-corner approach and the least-cost method. 61

62 A. North-west corner approach The steps of this approximate method are as follows: 1. Starting from the north-west corner (cell (1, 1)) of the transportation table, allocate as much quantity as possible to cell (1, 1) within the supply constraint of capacity 1 and the demand constraint of customer The first allocation will satisfy either the supply capacity of supplier 1 or the customer requirement of customer 1. a) If the demand requirement of customer 1 is satisfied but the supply capacity of supplier 1 is not exhausted, move on to cell (1, 2) for the next allocation. b) If the demand requirement of customer 1 is not satisfied but the supply capacity of supplier 1 is exhausted, move to cell (2, 1) c) If the demand requirement of customer 1 is satisfied and the supply capacity of supplier 1 is also exhausted, move on to cell (2, 2). 3. Continue the allocation in the same manner toward the southeast corner of the transportation table until the supply capacities of all suppliers are exhausted and the demands of all customers are satisfied. An initial table developed using the north-west corner method is in Tab. 4.5 (see that fictional customer C 5 was applied in order to have the balanced model). Tab. 4.5 Transportation table North-west corner method Like the first variable x 11 = b 1 = 600 was assigned to the cell S 1 -C 1 because it is the north-west corner (NVC) of the table and the value 600 is min (a 1 ; b 1 ). Then the first column C 1 was removed and the reduced table has NVC in the cell (S 1 -C 2 ). The rest of x ij were assigned in the same way (the order of filling the cells expresses the red number on the left in the adequate 62

63 cell.) To check the feasibility of the obtained solution we must verify if Σx ij = a i in the rows or Σx ij = b j in the columns. When it is valid we have the feasible initial basic solution with objective function Z = ΣΣc ij x ij, i. e. for example: Z = = As it can be seen this algorithm of generating the initial feasible solution does not consider c ij coefficients when assigning x ij. For that reason this very simple method is not as efficient as the next approach that commonly leads to the solution that is closer to the optimal solution or sometimes it leads to the optimal solution. B. Least-cost method It is another method used to obtain the initial feasible solution for the transportation problem. Here, the allocation begins with the cell which has the minimum cost c ij. The lower cost cells are chosen over the higher-cost cell with the objective to have the least cost of transportation. This method usually provides a better initial basic feasible solution than the north-west corner method since it takes into account the cost variables c ij in the problem. The steps of this method are as follows: 1. Determine the cell with the least positive cost c ij among all the rows of the transportation table. 2. Identify the row and allocate the maximum feasible quantity in the cell corresponding to the least cost in the row. Then eliminate that row (column) when an allocation is made. The cells with c ij = 0 (corresponding to the fictional supplier of fictional customer) are filled in as the last ones. 3. Repeat steps 1 and 2 for the reduced transportation table until all the available quantities are distributed to the required places. If the minimum cost is not unique, the tie can be broken arbitrarily (for instance fill in preferentially the cell with the lowest i and j). The initial table developed using the least cost method is in Tab. 4.6 (see that fictive customer C 5 was applied to have the balanced model). 63

64 Tab. 4.6 Transportation table - Least cost method example In this table we can find the initial feasible solution obtained using the least-cost method. (The order of filling in the cells is expressed by the red number on the left in the appropriate cell.) This basic feasible solution leads to the objective function value Z = = This is less than the value Z obtained using the north-west method where Z = It means that the solution obtained using the least-cost method is better. For now we must verify if this solution is optimal and when it is not true we must find the optimal solution Developing the optimal solution The methods commonly lead to the optimal solution coming out of some basic initial solution obtained in the previous step using some approximate method. To develop an optimal solution involves evaluating each unused cell to determine whether a shift into it is advantageous from a total-cost stand point. If it is, the shift is made, and the process is repeated. When all cells have been evaluated and appropriate shifts made, the problem is solved. It means that we iteratively improve the initial solution and after a finite number of iterations we reach the optimal solution (one or more). One such method is called MODI. 4.3 MODI method The algorithm of this method could be described using the following steps [1], [2], [3]: 1. The determination of the initial basic feasible solution (see Chapter 4.2.2). 2. Setting dual Variable u i, for each row and variable v j for each column as follows: a) u 1 = 0. b) the remaining u i s and v j s for occupied cells ((where x ij 0) are calculated by solving the relationship c ij = u i + v j. 64

Chapter 7. Linear Programming Models: Graphical and Computer Methods

Chapter 7. Linear Programming Models: Graphical and Computer Methods Chapter 7 Linear Programming Models: Graphical and Computer Methods To accompany Quantitative Analysis for Management, Eleventh Edition, by Render, Stair, and Hanna Power Point slides created by Brian

More information

Lesson 08 Linear Programming

Lesson 08 Linear Programming Lesson 08 Linear Programming A mathematical approach to determine optimal (maximum or minimum) solutions to problems which involve restrictions on the variables involved. 08 - Linear Programming Applications

More information

Linear programming II João Carlos Lourenço

Linear programming II João Carlos Lourenço Decision Support Models Linear programming II João Carlos Lourenço joao.lourenco@ist.utl.pt Academic year 2012/2013 Readings: Hillier, F.S., Lieberman, G.J., 2010. Introduction to Operations Research,

More information

UNIT 2 LINEAR PROGRAMMING PROBLEMS

UNIT 2 LINEAR PROGRAMMING PROBLEMS UNIT 2 LINEAR PROGRAMMING PROBLEMS Structure 2.1 Introduction Objectives 2.2 Linear Programming Problem (LPP) 2.3 Mathematical Formulation of LPP 2.4 Graphical Solution of Linear Programming Problems 2.5

More information

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

Introduction. Linear because it requires linear functions. Programming as synonymous of planning. LINEAR PROGRAMMING Introduction Development of linear programming was among the most important scientific advances of mid-20th cent. Most common type of applications: allocate limited resources to competing

More information

Quantitative Technique

Quantitative Technique Quantitative Technique Subject Course Code Number : MMAS 521 : Optimization Techniques for Managerial Decisions Instructor : Dr. Umesh Rajopadhyaya Credit Hours : 2 Main Objective : The objective of the

More information

Lecture notes on Transportation and Assignment Problem (BBE (H) QTM paper of Delhi University)

Lecture notes on Transportation and Assignment Problem (BBE (H) QTM paper of Delhi University) Transportation and Assignment Problems The transportation model is a special class of linear programs. It received this name because many of its applications involve determining how to optimally transport

More information

II. Linear Programming

II. Linear Programming II. Linear Programming A Quick Example Suppose we own and manage a small manufacturing facility that produced television sets. - What would be our organization s immediate goal? - On what would our relative

More information

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

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D. Linear Programming Module Outline Introduction The Linear Programming Model Examples of Linear Programming Problems Developing Linear Programming Models Graphical Solution to LP Problems The Simplex Method

More information

Chapter 4. Linear Programming

Chapter 4. Linear Programming Chapter 4 Linear Programming For All Practical Purposes: Effective Teaching Occasionally during the semester remind students about your office hours. Some students can perceive that they are bothering

More information

OPERATIONS RESEARCH. Linear Programming Problem

OPERATIONS RESEARCH. Linear Programming Problem OPERATIONS RESEARCH Chapter 1 Linear Programming Problem Prof. Bibhas C. Giri Department of Mathematics Jadavpur University Kolkata, India Email: bcgiri.jumath@gmail.com 1.0 Introduction Linear programming

More information

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

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016 Simulation Lecture O Optimization: Linear Programming Saeed Bastani April 06 Outline of the course Linear Programming ( lecture) Integer Programming ( lecture) Heuristics and Metaheursitics (3 lectures)

More information

Linear Programming. Meaning of Linear Programming. Basic Terminology

Linear Programming. Meaning of Linear Programming. Basic Terminology Linear Programming Linear Programming (LP) is a versatile technique for assigning a fixed amount of resources among competing factors, in such a way that some objective is optimized and other defined conditions

More information

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

Linear Programming. Linear programming provides methods for allocating limited resources among competing activities in an optimal way. University of Southern California Viterbi School of Engineering Daniel J. Epstein Department of Industrial and Systems Engineering ISE 330: Introduction to Operations Research - Deterministic Models Fall

More information

Unit.9 Integer Programming

Unit.9 Integer Programming Unit.9 Integer Programming Xiaoxi Li EMS & IAS, Wuhan University Dec. 22-29, 2016 (revised) Operations Research (Li, X.) Unit.9 Integer Programming Dec. 22-29, 2016 (revised) 1 / 58 Organization of this

More information

Chapter 4 Linear Programming

Chapter 4 Linear Programming Chapter Objectives Check off these skills when you feel that you have mastered them. From its associated chart, write the constraints of a linear programming problem as linear inequalities. List two implied

More information

Chapter 2 - An Introduction to Linear Programming

Chapter 2 - An Introduction to Linear Programming True / False 1. Increasing the right-hand side of a nonbinding constraint will not cause a change in the optimal solution. TOPICS: Introduction 2. In a linear programming problem, the objective function

More information

Chapter II. Linear Programming

Chapter II. Linear Programming 1 Chapter II Linear Programming 1. Introduction 2. Simplex Method 3. Duality Theory 4. Optimality Conditions 5. Applications (QP & SLP) 6. Sensitivity Analysis 7. Interior Point Methods 1 INTRODUCTION

More information

LINEAR PROGRAMMING INTRODUCTION 12.1 LINEAR PROGRAMMING. Three Classical Linear Programming Problems (L.P.P.)

LINEAR PROGRAMMING INTRODUCTION 12.1 LINEAR PROGRAMMING. Three Classical Linear Programming Problems (L.P.P.) LINEAR PROGRAMMING 12 INTRODUCTION ou are familiar with linear equations and linear inequations in one and two variables. They can be solved algebraically or graphically (by drawing a line diagram in case

More information

Some Advanced Topics in Linear Programming

Some Advanced Topics in Linear Programming Some Advanced Topics in Linear Programming Matthew J. Saltzman July 2, 995 Connections with Algebra and Geometry In this section, we will explore how some of the ideas in linear programming, duality theory,

More information

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

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology Madras. Fundamentals of Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology Madras Lecture No # 06 Simplex Algorithm Initialization and Iteration (Refer Slide

More information

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

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Module 03 Simplex Algorithm Lecture - 03 Tabular form (Minimization) In this

More information

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

Linear Programming. L.W. Dasanayake Department of Economics University of Kelaniya Linear Programming L.W. Dasanayake Department of Economics University of Kelaniya Linear programming (LP) LP is one of Management Science techniques that can be used to solve resource allocation problem

More information

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

5. DUAL LP, SOLUTION INTERPRETATION, AND POST-OPTIMALITY 5. DUAL LP, SOLUTION INTERPRETATION, AND POST-OPTIMALITY 5.1 DUALITY Associated with every linear programming problem (the primal) is another linear programming problem called its dual. If the primal involves

More information

Chapter 2 An Introduction to Linear Programming

Chapter 2 An Introduction to Linear Programming Chapter 2 An Introduction to Linear Programming MULTIPLE CHOICE 1. The maximization or minimization of a quantity is the a. goal of management science. b. decision for decision analysis. c. constraint

More information

Chapter 2--An Introduction to Linear Programming

Chapter 2--An Introduction to Linear Programming Chapter 2--An Introduction to Linear Programming 1. The maximization or minimization of a quantity is the A. goal of management science. B. decision for decision analysis. C. constraint of operations research.

More information

Chapter 15 Introduction to Linear Programming

Chapter 15 Introduction to Linear Programming Chapter 15 Introduction to Linear Programming An Introduction to Optimization Spring, 2015 Wei-Ta Chu 1 Brief History of Linear Programming The goal of linear programming is to determine the values of

More information

Application of Cutting Stock Problem in Minimizing The Waste of Al-Quran Cover

Application of Cutting Stock Problem in Minimizing The Waste of Al-Quran Cover Kaunia, Vol.XII, Num., April 206, pp. 7~22 Available online at http://ejournal.uin-suka.ac.id/saintek/kaunia Application of Cutting Stock Problem in Minimizing The Waste of Al-Quran Cover Noor Saif Muhammad

More information

CDG2A/CDZ4A/CDC4A/ MBT4A ELEMENTS OF OPERATIONS RESEARCH. Unit : I - V

CDG2A/CDZ4A/CDC4A/ MBT4A ELEMENTS OF OPERATIONS RESEARCH. Unit : I - V CDG2A/CDZ4A/CDC4A/ MBT4A ELEMENTS OF OPERATIONS RESEARCH Unit : I - V UNIT I Introduction Operations Research Meaning and definition. Origin and History Characteristics and Scope Techniques in Operations

More information

Solutions for Operations Research Final Exam

Solutions for Operations Research Final Exam Solutions for Operations Research Final Exam. (a) The buffer stock is B = i a i = a + a + a + a + a + a 6 + a 7 = + + + + + + =. And the transportation tableau corresponding to the transshipment problem

More information

4. Linear Programming

4. Linear Programming /9/08 Systems Analysis in Construction CB Construction & Building Engineering Department- AASTMT by A h m e d E l h a k e e m & M o h a m e d S a i e d. Linear Programming Optimization Network Models -

More information

Linear Programming Terminology

Linear Programming Terminology Linear Programming Terminology The carpenter problem is an example of a linear program. T and B (the number of tables and bookcases to produce weekly) are decision variables. The profit function is an

More information

MLR Institute of Technology

MLR Institute of Technology Course Name : Engineering Optimization Course Code : 56021 Class : III Year Branch : Aeronautical Engineering Year : 2014-15 Course Faculty : Mr Vamsi Krishna Chowduru, Assistant Professor Course Objective

More information

Module 1 Lecture Notes 2. Optimization Problem and Model Formulation

Module 1 Lecture Notes 2. Optimization Problem and Model Formulation Optimization Methods: Introduction and Basic concepts 1 Module 1 Lecture Notes 2 Optimization Problem and Model Formulation Introduction In the previous lecture we studied the evolution of optimization

More information

Graphical Methods in Linear Programming

Graphical Methods in Linear Programming Appendix 2 Graphical Methods in Linear Programming We can use graphical methods to solve linear optimization problems involving two variables. When there are two variables in the problem, we can refer

More information

CHAPTER 12: LINEAR PROGRAMMING

CHAPTER 12: LINEAR PROGRAMMING CHAPTER 12: LINEAR PROGRAMMING Previous Years Board Exam (Important Questions & Answers) MARKS WEIGHTAGE 06 marks 1. A cottage industry manufactures pedestal lamps and wooden shades, each requiring the

More information

Section Notes 5. Review of Linear Programming. Applied Math / Engineering Sciences 121. Week of October 15, 2017

Section Notes 5. Review of Linear Programming. Applied Math / Engineering Sciences 121. Week of October 15, 2017 Section Notes 5 Review of Linear Programming Applied Math / Engineering Sciences 121 Week of October 15, 2017 The following list of topics is an overview of the material that was covered in the lectures

More information

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood PERFORMANCE EXCELLENCE IN THE WOOD PRODUCTS INDUSTRY EM 8720-E October 1998 $3.00 Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood A key problem faced

More information

Using the Graphical Method to Solve Linear Programs J. Reeb and S. Leavengood

Using the Graphical Method to Solve Linear Programs J. Reeb and S. Leavengood PERFORMANCE EXCELLENCE IN THE WOOD PRODUCTS INDUSTRY EM 8719-E October 1998 $2.50 Using the Graphical Method to Solve Linear Programs J. Reeb and S. Leavengood A key problem faced by managers is how to

More information

4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1

4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1 4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1 Mathematical programming (optimization) problem: min f (x) s.t. x X R n set of feasible solutions with linear objective function

More information

The Islamic University of Gaza Faculty of Commerce Quantitative Analysis - Dr. Samir Safi Midterm #2-28/4/2014

The Islamic University of Gaza Faculty of Commerce Quantitative Analysis - Dr. Samir Safi Midterm #2-28/4/2014 The Islamic University of Gaza Faculty of Commerce Quantitative Analysis - Dr. Samir Safi Midterm #2-28/4/2014 Name TRUE/FALSE. Write 'T' if the statement is true and 'F' if the statement is false. 1)

More information

TRANSPORTATION AND ASSIGNMENT PROBLEMS

TRANSPORTATION AND ASSIGNMENT PROBLEMS TRANSPORTATION AND ASSIGNMENT PROBLEMS Transportation problem Example P&T Company produces canned peas. Peas are prepared at three canneries (Bellingham, Eugene and Albert Lea). Shipped by truck to four

More information

IV. Special Linear Programming Models

IV. Special Linear Programming Models IV. Special Linear Programming Models Some types of LP problems have a special structure and occur so frequently that we consider them separately. A. The Transportation Problem - Transportation Model -

More information

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

Graphical Analysis. Figure 1. Copyright c 1997 by Awi Federgruen. All rights reserved. Graphical Analysis For problems with 2 variables, we can represent each solution as a point in the plane. The Shelby Shelving model (see the readings book or pp.68-69 of the text) is repeated below for

More information

LINEAR PROGRAMMING. Chapter Overview

LINEAR PROGRAMMING. Chapter Overview Chapter 12 LINEAR PROGRAMMING 12.1 Overview 12.1.1 An Optimisation Problem A problem which seeks to maximise or minimise a function is called an optimisation problem. An optimisation problem may involve

More information

Part 4. Decomposition Algorithms Dantzig-Wolf Decomposition Algorithm

Part 4. Decomposition Algorithms Dantzig-Wolf Decomposition Algorithm In the name of God Part 4. 4.1. Dantzig-Wolf Decomposition Algorithm Spring 2010 Instructor: Dr. Masoud Yaghini Introduction Introduction Real world linear programs having thousands of rows and columns.

More information

Operations Research. Unit-I. Course Description:

Operations Research. Unit-I. Course Description: Operations Research Course Description: Operations Research is a very important area of study, which tracks its roots to business applications. It combines the three broad disciplines of Mathematics, Computer

More information

These notes are in two parts: this part has topics 1-3 above.

These notes are in two parts: this part has topics 1-3 above. IEEM 0: Linear Programming and Its Applications Outline of this series of lectures:. How can we model a problem so that it can be solved to give the required solution 2. Motivation: eamples of typical

More information

Transportation Problems

Transportation Problems Transportation Problems Transportation is considered as a special case of LP Reasons? it can be formulated using LP technique so is its solution 1 (to p2) Here, we attempt to firstly define what are them

More information

Introduction to Linear Programming. Chapter 3: Hillier and Lieberman Chapter 3: Decision Tools for Agribusiness Dr. Hurley s AGB 328 Course

Introduction to Linear Programming. Chapter 3: Hillier and Lieberman Chapter 3: Decision Tools for Agribusiness Dr. Hurley s AGB 328 Course Introduction to Linear Programming Chapter 3: Hillier and Lieberman Chapter 3: Decision Tools for Agribusiness Dr Hurley s AGB 328 Course Terms to Know Simplex Method, Feasible Region, Slope- Intercept

More information

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

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Module - 05 Lecture - 24 Solving LPs with mixed type of constraints In the

More information

Introduction to Linear Programing Problems

Introduction to Linear Programing Problems Paper: Linear Programming and Theory of Games Lesson: Introduction to Linear Programing Problems Lesson Developers: DR. MANOJ KUMAR VARSHNEY, College/Department: Department of Statistics, Hindu College,

More information

AMATH 383 Lecture Notes Linear Programming

AMATH 383 Lecture Notes Linear Programming AMATH 8 Lecture Notes Linear Programming Jakob Kotas (jkotas@uw.edu) University of Washington February 4, 014 Based on lecture notes for IND E 51 by Zelda Zabinsky, available from http://courses.washington.edu/inde51/notesindex.htm.

More information

DM545 Linear and Integer Programming. Lecture 2. The Simplex Method. Marco Chiarandini

DM545 Linear and Integer Programming. Lecture 2. The Simplex Method. Marco Chiarandini DM545 Linear and Integer Programming Lecture 2 The Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark Outline 1. 2. 3. 4. Standard Form Basic Feasible Solutions

More information

OPERATIONS RESEARCH. Dr. Mohd Vaseem Ismail. Assistant Professor. Faculty of Pharmacy Jamia Hamdard New Delhi

OPERATIONS RESEARCH. Dr. Mohd Vaseem Ismail. Assistant Professor. Faculty of Pharmacy Jamia Hamdard New Delhi OPERATIONS RESEARCH OPERATIONS RESEARCH By Dr. Qazi Shoeb Ahmad Professor Department of Mathematics Integral University Lucknow Dr. Shakeel Javed Assistant Professor Department of Statistics & O.R. AMU,

More information

Linear Programming: Introduction

Linear Programming: Introduction CSC 373 - Algorithm Design, Analysis, and Complexity Summer 2016 Lalla Mouatadid Linear Programming: Introduction A bit of a historical background about linear programming, that I stole from Jeff Erickson

More information

Linear Programming: Model Formulation and Graphical Solution

Linear Programming: Model Formulation and Graphical Solution Linear Programming: Model Formulation and Graphical Solution Chapter 2 Chapter Topics Model Formulation A Maximization Model Example Graphical Solutions of Linear Programming Models A Minimization Model

More information

Excel Forecasting Tools Review

Excel Forecasting Tools Review Excel Forecasting Tools Review Duke MBA Computer Preparation Excel Forecasting Tools Review Focus The focus of this assignment is on four Excel 2003 forecasting tools: The Data Table, the Scenario Manager,

More information

Read: H&L chapters 1-6

Read: H&L chapters 1-6 Viterbi School of Engineering Daniel J. Epstein Department of Industrial and Systems Engineering ISE 330: Introduction to Operations Research Fall 2006 (Oct 16): Midterm Review http://www-scf.usc.edu/~ise330

More information

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

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture - 35 Quadratic Programming In this lecture, we continue our discussion on

More information

Graphing Linear Inequalities in Two Variables.

Graphing Linear Inequalities in Two Variables. Many applications of mathematics involve systems of inequalities rather than systems of equations. We will discuss solving (graphing) a single linear inequality in two variables and a system of linear

More information

Discrete Optimization. Lecture Notes 2

Discrete Optimization. Lecture Notes 2 Discrete Optimization. Lecture Notes 2 Disjunctive Constraints Defining variables and formulating linear constraints can be straightforward or more sophisticated, depending on the problem structure. The

More information

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

Optimization of Design. Lecturer:Dung-An Wang Lecture 8 Optimization of Design Lecturer:Dung-An Wang Lecture 8 Lecture outline Reading: Ch8 of text Today s lecture 2 8.1 LINEAR FUNCTIONS Cost Function Constraints 3 8.2 The standard LP problem Only equality

More information

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology, Madras. Lecture No.

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology, Madras. Lecture No. Fundamentals of Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture No. # 13 Transportation Problem, Methods for Initial Basic Feasible

More information

5 The Theory of the Simplex Method

5 The Theory of the Simplex Method 5 The Theory of the Simplex Method Chapter 4 introduced the basic mechanics of the simplex method. Now we shall delve a little more deeply into this algorithm by examining some of its underlying theory.

More information

Linear Programming: Model Formulation and Graphical Solution

Linear Programming: Model Formulation and Graphical Solution Linear Programming: Model Formulation and Graphical Solution Chapter 2 2-1 Chapter Topics Model Formulation A Maximization Model Example Graphical Solutions of Linear Programming Models A Minimization

More information

Setup and graphical solution of Linear Programming Problems [2-variables] Mathematical Programming Characteristics

Setup and graphical solution of Linear Programming Problems [2-variables] Mathematical Programming Characteristics Setup and graphical solution of Linear Programming Problems [2-variables] Mathematical Programming Characteristics Decisions must be made on the levels of a two or more activities. The levels are represented

More information

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

Advanced Operations Research Techniques IE316. Quiz 1 Review. Dr. Ted Ralphs Advanced Operations Research Techniques IE316 Quiz 1 Review Dr. Ted Ralphs IE316 Quiz 1 Review 1 Reading for The Quiz Material covered in detail in lecture. 1.1, 1.4, 2.1-2.6, 3.1-3.3, 3.5 Background material

More information

Mathematics. Linear Programming

Mathematics. Linear Programming Mathematics Linear Programming Table of Content 1. Linear inequations. 2. Terms of Linear Programming. 3. Mathematical formulation of a linear programming problem. 4. Graphical solution of two variable

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Combinatorial Optimization G. Guérard Department of Nouvelles Energies Ecole Supérieur d Ingénieurs Léonard de Vinci Lecture 1 GG A.I. 1/34 Outline 1 Motivation 2 Geometric resolution

More information

Design and Analysis of Algorithms (V)

Design and Analysis of Algorithms (V) Design and Analysis of Algorithms (V) An Introduction to Linear Programming Guoqiang Li School of Software, Shanghai Jiao Tong University Homework Assignment 2 is announced! (deadline Apr. 10) Linear Programming

More information

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

Civil Engineering Systems Analysis Lecture XIV. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics Civil Engineering Systems Analysis Lecture XIV Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics Today s Learning Objectives Dual 2 Linear Programming Dual Problem 3

More information

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

Civil Engineering Systems Analysis Lecture XV. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics Civil Engineering Systems Analysis Lecture XV Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics Today s Learning Objectives Sensitivity Analysis Dual Simplex Method 2

More information

Ahigh school curriculum in Algebra 2 contains both solving systems of linear equations,

Ahigh school curriculum in Algebra 2 contains both solving systems of linear equations, The Simplex Method for Systems of Linear Inequalities Todd O. Moyer, Towson University Abstract: This article details the application of the Simplex Method for an Algebra 2 class. Students typically learn

More information

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

Linear Programming: Basic Concepts. Chapter 2: Hillier and Hillier Linear Programming: Basic Concepts Chapter 2: Hillier and Hillier Agenda Define Linear Programming The Case of the Wyndor Glass Co. A Maximization Problem Developing a Mathematical Representation of Wyndor

More information

a) Alternative Optima, b) Infeasible(or non existing) solution, c) unbounded solution.

a) Alternative Optima, b) Infeasible(or non existing) solution, c) unbounded solution. Unit 1 Lesson 5. : Special cases of LPP Learning Outcomes Special cases of linear programming problems Alternative Optima Infeasible Solution Unboundedness In the previous lecture we have discussed some

More information

Problem Set 2 Geometry, Algebra, Reality

Problem Set 2 Geometry, Algebra, Reality Problem Set 2 Geometry, Algebra, Reality Applied Mathematics 121 Spring 2011 Due 5:00 PM, Friday, February 11, 2011 Announcements The assignment is due by 5:00 PM, Friday, February 11, 2011. Readings:

More information

Math 414 Lecture 30. The greedy algorithm provides the initial transportation matrix.

Math 414 Lecture 30. The greedy algorithm provides the initial transportation matrix. Math Lecture The greedy algorithm provides the initial transportation matrix. matrix P P Demand W ª «2 ª2 «W ª «W ª «ª «ª «Supply The circled x ij s are the initial basic variables. Erase all other values

More information

Lecture notes on the simplex method September We will present an algorithm to solve linear programs of the form. maximize.

Lecture notes on the simplex method September We will present an algorithm to solve linear programs of the form. maximize. Cornell University, Fall 2017 CS 6820: Algorithms Lecture notes on the simplex method September 2017 1 The Simplex Method We will present an algorithm to solve linear programs of the form maximize subject

More information

MULTIMEDIA UNIVERSITY FACULTY OF ENGINEERING PEM2046 ENGINEERING MATHEMATICS IV TUTORIAL

MULTIMEDIA UNIVERSITY FACULTY OF ENGINEERING PEM2046 ENGINEERING MATHEMATICS IV TUTORIAL A. Linear Programming (LP) MULTIMEDIA UNIVERSITY FACULTY OF ENGINEERING PEM046 ENGINEERING MATHEMATICS IV TUTORIAL. Identify the optimal solution and value: (a) Maximize f = 0x + 0 x (b) Minimize f = 45x

More information

Prepared By. Handaru Jati, Ph.D. Universitas Negeri Yogyakarta.

Prepared By. Handaru Jati, Ph.D. Universitas Negeri Yogyakarta. Prepared By Handaru Jati, Ph.D Universitas Negeri Yogyakarta handaru@uny.ac.id Chapter 8 Using The Excel Solver To Solve Mathematical Programs Chapter Overview 8.1 Introduction 8.2 Formulating Mathematical

More information

Operations Research. Lecture Notes By Prof A K Saxena Professor and Head Dept of CSIT G G Vishwavidyalaya, Bilaspur-India

Operations Research. Lecture Notes By Prof A K Saxena Professor and Head Dept of CSIT G G Vishwavidyalaya, Bilaspur-India Lecture Notes By Prof A K Saxena Professor and Head Dept of CSIT G G Vishwavidyalaya, Bilaspur-India Some important tips before start of course material to students Mostly we followed Book by S D Sharma,

More information

Econ 172A - Slides from Lecture 8

Econ 172A - Slides from Lecture 8 1 Econ 172A - Slides from Lecture 8 Joel Sobel October 23, 2012 2 Announcements Important: Midterm seating assignments. Posted tonight. Corrected Answers to Quiz 1 posted. Quiz 2 on Thursday at end of

More information

SUGGESTED SOLUTION CA FINAL MAY 2017 EXAM

SUGGESTED SOLUTION CA FINAL MAY 2017 EXAM SUGGESTED SOLUTION CA FINAL MAY 2017 EXAM ADVANCED MANAGEMENT ACCOUNTING Test Code - F M J 4 0 1 6 BRANCH - (MULTIPLE) (Date : 11.02.2017) Head Office : Shraddha, 3 rd Floor, Near Chinai College, Andheri

More information

TIM 206 Lecture Notes Integer Programming

TIM 206 Lecture Notes Integer Programming TIM 206 Lecture Notes Integer Programming Instructor: Kevin Ross Scribe: Fengji Xu October 25, 2011 1 Defining Integer Programming Problems We will deal with linear constraints. The abbreviation MIP stands

More information

Optimization. A first course on mathematics for economists Problem set 6: Linear programming

Optimization. A first course on mathematics for economists Problem set 6: Linear programming Optimization. A first course on mathematics for economists Problem set 6: Linear programming Xavier Martinez-Giralt Academic Year 2015-2016 6.1 A company produces two goods x and y. The production technology

More information

Linear Programming. them such that they

Linear Programming. them such that they Linear Programming l Another "Sledgehammer" in our toolkit l Many problems fit into the Linear Programming approach l These are optimization tasks where both the constraints and the objective are linear

More information

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

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture 18 All-Integer Dual Algorithm We continue the discussion on the all integer

More information

CHAPTER 3 LINEAR PROGRAMMING: SIMPLEX METHOD

CHAPTER 3 LINEAR PROGRAMMING: SIMPLEX METHOD CHAPTER 3 LINEAR PROGRAMMING: SIMPLEX METHOD Linear programming is optimization problem where the objective function is linear and all equality and inequality constraints are linear. This problem was first

More information

GRAPHING LINEAR INEQUALITIES AND FEASIBLE REGIONS

GRAPHING LINEAR INEQUALITIES AND FEASIBLE REGIONS SECTION 3.1: GRAPHING LINEAR INEQUALITIES AND FEASIBLE REGIONS We start with a reminder of the smart way to graph a Linear Equation for the typical example we see in this course, namely using BOTH X- and

More information

Outline. CS38 Introduction to Algorithms. Linear programming 5/21/2014. Linear programming. Lecture 15 May 20, 2014

Outline. CS38 Introduction to Algorithms. Linear programming 5/21/2014. Linear programming. Lecture 15 May 20, 2014 5/2/24 Outline CS38 Introduction to Algorithms Lecture 5 May 2, 24 Linear programming simplex algorithm LP duality ellipsoid algorithm * slides from Kevin Wayne May 2, 24 CS38 Lecture 5 May 2, 24 CS38

More information

Intro to Linear Programming. The problem that we desire to address in this course is loosely stated below.

Intro to Linear Programming. The problem that we desire to address in this course is loosely stated below. . Introduction Intro to Linear Programming The problem that we desire to address in this course is loosely stated below. Given a number of generators make price-quantity offers to sell (each provides their

More information

4 Linear Programming (LP) E. Amaldi -- Foundations of Operations Research -- Politecnico di Milano 1

4 Linear Programming (LP) E. Amaldi -- Foundations of Operations Research -- Politecnico di Milano 1 4 Linear Programming (LP) E. Amaldi -- Foundations of Operations Research -- Politecnico di Milano 1 Definition: A Linear Programming (LP) problem is an optimization problem: where min f () s.t. X n the

More information

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

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture 16 Cutting Plane Algorithm We shall continue the discussion on integer programming,

More information

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

Advanced Operations Research Techniques IE316. Quiz 2 Review. Dr. Ted Ralphs Advanced Operations Research Techniques IE316 Quiz 2 Review Dr. Ted Ralphs IE316 Quiz 2 Review 1 Reading for The Quiz Material covered in detail in lecture Bertsimas 4.1-4.5, 4.8, 5.1-5.5, 6.1-6.3 Material

More information

The Simplex Algorithm

The Simplex Algorithm The Simplex Algorithm Uri Feige November 2011 1 The simplex algorithm The simplex algorithm was designed by Danzig in 1947. This write-up presents the main ideas involved. It is a slight update (mostly

More information

Linear Programming Problems

Linear Programming Problems Linear Programming Problems Two common formulations of linear programming (LP) problems are: min Subject to: 1,,, 1,2,,;, max Subject to: 1,,, 1,2,,;, Linear Programming Problems The standard LP problem

More information

George B. Dantzig Mukund N. Thapa. Linear Programming. 1: Introduction. With 87 Illustrations. Springer

George B. Dantzig Mukund N. Thapa. Linear Programming. 1: Introduction. With 87 Illustrations. Springer George B. Dantzig Mukund N. Thapa Linear Programming 1: Introduction With 87 Illustrations Springer Contents FOREWORD PREFACE DEFINITION OF SYMBOLS xxi xxxiii xxxvii 1 THE LINEAR PROGRAMMING PROBLEM 1

More information

Review for Mastery Using Graphs and Tables to Solve Linear Systems

Review for Mastery Using Graphs and Tables to Solve Linear Systems 3-1 Using Graphs and Tables to Solve Linear Systems A linear system of equations is a set of two or more linear equations. To solve a linear system, find all the ordered pairs (x, y) that make both equations

More information

ISE203 Optimization 1 Linear Models. Dr. Arslan Örnek Chapter 4 Solving LP problems: The Simplex Method SIMPLEX

ISE203 Optimization 1 Linear Models. Dr. Arslan Örnek Chapter 4 Solving LP problems: The Simplex Method SIMPLEX ISE203 Optimization 1 Linear Models Dr. Arslan Örnek Chapter 4 Solving LP problems: The Simplex Method SIMPLEX Simplex method is an algebraic procedure However, its underlying concepts are geometric Understanding

More information