SlideShare a Scribd company logo
1 of 22
OPERATION RESEARCH
Solving Linear Programming Problems:
The Simplex Method
Problem:
The GUJARAT GLASS CO. produces high-quality glass products, including windows and glass doors. It has
three plants. Aluminium frames and hardware are made in Plant 1, wood frames are made in Plant 2, and Plant 3
produces the glass and assembles the products. Because of declining earnings, top management has decided to
revamp the company’s product line. Unprofitable products are being discontinued, releasing production capacity
to launch two new products having large sales potential:
Product 1: An 8-foot glass door with aluminium framing
Product 2: A4 X 6 foot double-hung wood-framing
Product 1 requires some of the production capacity in Plants 1 and 3, but none in Plant 2. Product 2 needs only
Plants 2 and 3. The marketing division has concluded that the company could sell as much of either product as
could be produced by these plants. However, because both products would be competing for the same
production capacity in Plant 3, it is not clear which mix of the two products would be most profitable. Therefore,
an OR team has been formed to study this question. The OR team began by having discussions with upper
management to identify management’s objectives for the study. These discussions led to developing the
following definition of theproblem:
Determine what the production rates should be for the two products in order to maximize their total profit ?
Formulation of Linear Programming Model:
Graphical Method: Constraint Boundaries and
Corner Point Solutions
The Key Solution Geometric Concepts:
 Solution concept 1: The simplex method focuses solely on CPF solutions. For any problem with at least one
optimal solution, finding one requires only finding a best CPF solution.
 Solution concept 2: The simplex method is an iterative algorithm (a systematic solution procedure that
keeps repeating a fixed series of steps, called an iteration, until a desired result has been obtained) with the
following structure:
 Solution concept 3: Whenever possible, the initialization of the simplex method chooses the origin (all
decision variables equal to zero) to be the initial CPF solution. When there are too many decision variables to
find an initial CPF solution graphically, this choice eliminates the need to use algebraic procedures to find
and solve for an initial CPF solution.
The Key Solution Geometric Concepts:
 Solution concept 4: Given a CPF solution, it is much quicker computationally to gather information about
its adjacent CPF solutions than about other CPF solutions. Therefore, each time the simplex method
performs an iteration to move from the current CPF solution to a better one, it always chooses a CPF solution
that is adjacent to the current one. No other CPF solutions are considered. Consequently, the entire path
followed to eventually reach an optimal solution is along the edges of the feasible region.
 Solution concept 5: After the current CPF solution is identified, the simplex method examines each of the
edges of the feasible region that emanate from this CPF solution. Each of these edges leads to an adjacent
CPF solution at the other end, but the simplex method does not even take the time to solve for the adjacent
CPF solution. Instead, it simply identifies the rate of improvement in Z that would be obtained by moving
along the edge. Among the edges with a positive rate of improvement in Z, it then chooses to move along the
one with the largest rate of improvement in Z. The iteration is completed by first solving for the adjacent
CPF solution at the other end of this one edge and then relabeling this adjacent CPF solution as the current
CPF solution for the optimality test and (if needed) the next iteration.
 Solution concept 6: Solution concept 5 describes how the simplex method examine search of the edges of
the feasible region that emanate from the current CPF solution. This examination of an edge leads to quickly
identifying the rate of improvement in Z that would be obtained by moving along the edge toward the
adjacent CPF solution at the other end. A positive rate of improvement in Z implies that the adjacent CPF
solution is better than the current CPF solution, whereas a negative rate of improvement in Z implies that the
adjacent CPF solution is worse. Therefore, the optimality test consists simply of checking whether any of the
edges give a positive rate of improvement in Z. If none do, then the current CPF solution is optimal.
Geometric Interpretation:
Setting up the Simplex Method:
 The preceding section stressed the geometric concepts that underlie the simplex method. However, this
algorithm normally is run on a computer, which can follow only algebraic instructions. Therefore, it is
necessary to translate the conceptually geometric procedure just described into a usable algebraic
procedure.
 The algebraic procedure is based on solving systems of equations. Therefore, the first step in setting up the
simplex method is to convert the functional inequality constraints to equivalent equality constraints. This
conversion is accomplished by introducing slack variables.
To illustrate, Consider the first functional constraint i.e.
x1 <= 4.
The slack variable for this constraint is defined to be
x3 = 4 - x1,
which is the amount of slack in the left-hand side of the inequality. Thus,
x1 + x3 = 4.
Given this equation, x1 <= 4 if and only if 4 - x1 = x3 >= 0. Therefore, the original constraint x1 <= 4
is entirely equivalent to the pair of constraints
x1 + x3 = 4 and x3 >= 0.
Setting up the Simplex Method:
 If a slack variable equals 0 in the current solution, then this solution lies on the constraint
boundary for the corresponding functional constraint.
 A value greater than 0 means that the solution lies on the feasible side of this constraintboundary.
 A value less than 0 means that the solution lies on the infeasible side of this constraint boundary.
 An Augmented solution is a solution for the original variables (the decision variables) that has been
augmented by the corresponding values of the slack variables.
 A basic solution is an augmented corner-point solution.
 A basic feasible (BF) solution is an augmented CPF solution
Setting up the Simplex Method:
 For the augmented form of the example, notice that the system of functional constraints has 5 variables
and 3 equations, So
Number of variables - number of equations = 5 – 3 = 2
 This fact gives us 2 degrees of freedom in solving the system, since any two variables can be chosen to be
set equal to any arbitrary value in order to solve the three equations in terms of the remaining three
variables. The simplex method uses zero for this arbitrary value. Thus, two of the variables (called the
non basic variables) are set equal to zero, and then the simultaneous solution of the three equations for
the other three variables (called the basic variables) is a basic solution.
 A basic solution has the following properties:
1. Each variable is designated as either a non basic variable or a basic variable.
2. The number of basic variables equals the number of functional constraints (now equations). Therefore,
the
number of non basic variables equals the total number of variables minus the number of functional
constraints.
3. The non basic variables are set equal to zero.
4.The values of the basic variables are obtained as the simultaneous solution of the system of equations
(functional constraints in augmented form). (The set of basic variables is often referred to as the basis.)
5. If the basic variables satisfy the non negativity constraints, the basic solution is a BFsolution.
The Algebra of Simplex Method
 Initialization:
 Optimality Test:
The objective function is
Z = 3x1 + 5x2
So, Z = 0 for the initial BF solution. Because none of the basic variables (x3, x4, x5) have a nonzero coefficient in
this objective function, the coefficient of each non basic variable (x1, x2) gives the rate of improvement in Z if
that variable were to be increased from zero (while the values of the basic variables are adjusted to continue
satisfying the system of equations).These rates of improvement (3 and 5) are positive. Therefore, based on
solution concept 6, we conclude that (0, 0, 4, 12, 18) is not optimal.
The Algebra of Simplex Method
 Determining the direction of movement:
 Determining where to stop:
The Algebra of Simplex Method
 Solving for the new BF Solution:
The Algebra of Simplex Method
The Algebra of Simplex Method
 Optimality test for new BF Solution:
 Iteration 2 and Resulting optimal solution:
The Algebra of Simplex Method
The Simplex Method in Tabular Form
 The algebraic form of the simplex method may be the best one for learning the underlying logic of the
algorithm. However, it is not the most convenient form for performing the required calculations. When you
need to solve a problem by hand (or interactively with your OR Courseware), We mainly recommend the
tabular form.
 The tabular form of the simplex method records only the essential information, namely,
(1) the coefficients of the variables
(2) the constants on the right-hand sides of the equations
(3) the basic variable appearing in each equation. This saves writing the symbols for the variables in each of the
equations, but what is even more important is the fact that it permits highlighting the numbers involved in
arithmetic calculations and recording the computations compactly.
 The tabular form of the simplex method uses a simplex tableau to compactly display the system of equations
yielding the current BF solution. For this solution, each variable in the leftmost column equals the
corresponding number in the rightmost column (and variables not listed equal zero). When the optimality test
or an iteration is performed, the only relevant numbers are those to the right of the Z column. The term row
refers to just a row of numbers to the right of the Z column (including the right side number), where row I
corresponds to Eq. (i).
The Simplex Method in Tabular Form
Initial System of Equations
Apply the minimum ratio test to determine the first leaving basic variable
The Simplex Method in Tabular Form
Simplex Tableaux after the first pivot row is divided by first pivot number
First two Simplex Tableaux
The Simplex Method in Tabular Form
Step 1 and Step 2 of Iteration 2
The Simplex Method in Tabular Form
Complete Set of Simplex tableaux
Maximizing Profit with Linear Programming

More Related Content

Similar to Maximizing Profit with Linear Programming

Balaji-opt-lecture5-linear program sp13.ppt
Balaji-opt-lecture5-linear program sp13.pptBalaji-opt-lecture5-linear program sp13.ppt
Balaji-opt-lecture5-linear program sp13.pptgokulkumaraguru8
 
Assignment oprations research luv
Assignment oprations research luvAssignment oprations research luv
Assignment oprations research luvAshok Sharma
 
A brief study on linear programming solving methods
A brief study on linear programming solving methodsA brief study on linear programming solving methods
A brief study on linear programming solving methodsMayurjyotiNeog
 
SIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxSIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxTista3
 
Graphical RepresentationLinear programming
Graphical RepresentationLinear programming Graphical RepresentationLinear programming
Graphical RepresentationLinear programming abhishekkumar4847
 
Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex AlgorithmAizaz Ahmad
 
Operation research - Chapter 03
Operation research - Chapter 03Operation research - Chapter 03
Operation research - Chapter 032013901097
 
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSING
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSINGOPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSING
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSINGcoollife99
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear ProgrammingSukhpalRamanand
 
Linear Programing.pptx
Linear Programing.pptxLinear Programing.pptx
Linear Programing.pptxAdnanHaleem
 

Similar to Maximizing Profit with Linear Programming (20)

Balaji-opt-lecture5-linear program sp13.ppt
Balaji-opt-lecture5-linear program sp13.pptBalaji-opt-lecture5-linear program sp13.ppt
Balaji-opt-lecture5-linear program sp13.ppt
 
final paper1
final paper1final paper1
final paper1
 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
 
Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
Assignment oprations research luv
Assignment oprations research luvAssignment oprations research luv
Assignment oprations research luv
 
A brief study on linear programming solving methods
A brief study on linear programming solving methodsA brief study on linear programming solving methods
A brief study on linear programming solving methods
 
SIMPLEX METHOD.pptx
SIMPLEX METHOD.pptxSIMPLEX METHOD.pptx
SIMPLEX METHOD.pptx
 
01 algebra
01 algebra01 algebra
01 algebra
 
Unit.4.integer programming
Unit.4.integer programmingUnit.4.integer programming
Unit.4.integer programming
 
Graphical RepresentationLinear programming
Graphical RepresentationLinear programming Graphical RepresentationLinear programming
Graphical RepresentationLinear programming
 
5163147.ppt
5163147.ppt5163147.ppt
5163147.ppt
 
35 algorithm-types
35 algorithm-types35 algorithm-types
35 algorithm-types
 
Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
Operation research - Chapter 03
Operation research - Chapter 03Operation research - Chapter 03
Operation research - Chapter 03
 
Operations Research - Simplex Method Principles
Operations Research - Simplex Method PrinciplesOperations Research - Simplex Method Principles
Operations Research - Simplex Method Principles
 
Concept of Duality
Concept of DualityConcept of Duality
Concept of Duality
 
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSING
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSINGOPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSING
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSING
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear Programming
 
Linear Programing.pptx
Linear Programing.pptxLinear Programing.pptx
Linear Programing.pptx
 

Recently uploaded

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 

Recently uploaded (20)

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 

Maximizing Profit with Linear Programming

  • 1. OPERATION RESEARCH Solving Linear Programming Problems: The Simplex Method
  • 2. Problem: The GUJARAT GLASS CO. produces high-quality glass products, including windows and glass doors. It has three plants. Aluminium frames and hardware are made in Plant 1, wood frames are made in Plant 2, and Plant 3 produces the glass and assembles the products. Because of declining earnings, top management has decided to revamp the company’s product line. Unprofitable products are being discontinued, releasing production capacity to launch two new products having large sales potential: Product 1: An 8-foot glass door with aluminium framing Product 2: A4 X 6 foot double-hung wood-framing Product 1 requires some of the production capacity in Plants 1 and 3, but none in Plant 2. Product 2 needs only Plants 2 and 3. The marketing division has concluded that the company could sell as much of either product as could be produced by these plants. However, because both products would be competing for the same production capacity in Plant 3, it is not clear which mix of the two products would be most profitable. Therefore, an OR team has been formed to study this question. The OR team began by having discussions with upper management to identify management’s objectives for the study. These discussions led to developing the following definition of theproblem: Determine what the production rates should be for the two products in order to maximize their total profit ?
  • 3. Formulation of Linear Programming Model:
  • 4. Graphical Method: Constraint Boundaries and Corner Point Solutions
  • 5. The Key Solution Geometric Concepts:  Solution concept 1: The simplex method focuses solely on CPF solutions. For any problem with at least one optimal solution, finding one requires only finding a best CPF solution.  Solution concept 2: The simplex method is an iterative algorithm (a systematic solution procedure that keeps repeating a fixed series of steps, called an iteration, until a desired result has been obtained) with the following structure:  Solution concept 3: Whenever possible, the initialization of the simplex method chooses the origin (all decision variables equal to zero) to be the initial CPF solution. When there are too many decision variables to find an initial CPF solution graphically, this choice eliminates the need to use algebraic procedures to find and solve for an initial CPF solution.
  • 6. The Key Solution Geometric Concepts:  Solution concept 4: Given a CPF solution, it is much quicker computationally to gather information about its adjacent CPF solutions than about other CPF solutions. Therefore, each time the simplex method performs an iteration to move from the current CPF solution to a better one, it always chooses a CPF solution that is adjacent to the current one. No other CPF solutions are considered. Consequently, the entire path followed to eventually reach an optimal solution is along the edges of the feasible region.  Solution concept 5: After the current CPF solution is identified, the simplex method examines each of the edges of the feasible region that emanate from this CPF solution. Each of these edges leads to an adjacent CPF solution at the other end, but the simplex method does not even take the time to solve for the adjacent CPF solution. Instead, it simply identifies the rate of improvement in Z that would be obtained by moving along the edge. Among the edges with a positive rate of improvement in Z, it then chooses to move along the one with the largest rate of improvement in Z. The iteration is completed by first solving for the adjacent CPF solution at the other end of this one edge and then relabeling this adjacent CPF solution as the current CPF solution for the optimality test and (if needed) the next iteration.  Solution concept 6: Solution concept 5 describes how the simplex method examine search of the edges of the feasible region that emanate from the current CPF solution. This examination of an edge leads to quickly identifying the rate of improvement in Z that would be obtained by moving along the edge toward the adjacent CPF solution at the other end. A positive rate of improvement in Z implies that the adjacent CPF solution is better than the current CPF solution, whereas a negative rate of improvement in Z implies that the adjacent CPF solution is worse. Therefore, the optimality test consists simply of checking whether any of the edges give a positive rate of improvement in Z. If none do, then the current CPF solution is optimal.
  • 8. Setting up the Simplex Method:  The preceding section stressed the geometric concepts that underlie the simplex method. However, this algorithm normally is run on a computer, which can follow only algebraic instructions. Therefore, it is necessary to translate the conceptually geometric procedure just described into a usable algebraic procedure.  The algebraic procedure is based on solving systems of equations. Therefore, the first step in setting up the simplex method is to convert the functional inequality constraints to equivalent equality constraints. This conversion is accomplished by introducing slack variables. To illustrate, Consider the first functional constraint i.e. x1 <= 4. The slack variable for this constraint is defined to be x3 = 4 - x1, which is the amount of slack in the left-hand side of the inequality. Thus, x1 + x3 = 4. Given this equation, x1 <= 4 if and only if 4 - x1 = x3 >= 0. Therefore, the original constraint x1 <= 4 is entirely equivalent to the pair of constraints x1 + x3 = 4 and x3 >= 0.
  • 9. Setting up the Simplex Method:  If a slack variable equals 0 in the current solution, then this solution lies on the constraint boundary for the corresponding functional constraint.  A value greater than 0 means that the solution lies on the feasible side of this constraintboundary.  A value less than 0 means that the solution lies on the infeasible side of this constraint boundary.  An Augmented solution is a solution for the original variables (the decision variables) that has been augmented by the corresponding values of the slack variables.  A basic solution is an augmented corner-point solution.  A basic feasible (BF) solution is an augmented CPF solution
  • 10. Setting up the Simplex Method:  For the augmented form of the example, notice that the system of functional constraints has 5 variables and 3 equations, So Number of variables - number of equations = 5 – 3 = 2  This fact gives us 2 degrees of freedom in solving the system, since any two variables can be chosen to be set equal to any arbitrary value in order to solve the three equations in terms of the remaining three variables. The simplex method uses zero for this arbitrary value. Thus, two of the variables (called the non basic variables) are set equal to zero, and then the simultaneous solution of the three equations for the other three variables (called the basic variables) is a basic solution.  A basic solution has the following properties: 1. Each variable is designated as either a non basic variable or a basic variable. 2. The number of basic variables equals the number of functional constraints (now equations). Therefore, the number of non basic variables equals the total number of variables minus the number of functional constraints. 3. The non basic variables are set equal to zero. 4.The values of the basic variables are obtained as the simultaneous solution of the system of equations (functional constraints in augmented form). (The set of basic variables is often referred to as the basis.) 5. If the basic variables satisfy the non negativity constraints, the basic solution is a BFsolution.
  • 11. The Algebra of Simplex Method  Initialization:  Optimality Test: The objective function is Z = 3x1 + 5x2 So, Z = 0 for the initial BF solution. Because none of the basic variables (x3, x4, x5) have a nonzero coefficient in this objective function, the coefficient of each non basic variable (x1, x2) gives the rate of improvement in Z if that variable were to be increased from zero (while the values of the basic variables are adjusted to continue satisfying the system of equations).These rates of improvement (3 and 5) are positive. Therefore, based on solution concept 6, we conclude that (0, 0, 4, 12, 18) is not optimal.
  • 12. The Algebra of Simplex Method  Determining the direction of movement:  Determining where to stop:
  • 13. The Algebra of Simplex Method  Solving for the new BF Solution:
  • 14. The Algebra of Simplex Method
  • 15. The Algebra of Simplex Method  Optimality test for new BF Solution:  Iteration 2 and Resulting optimal solution:
  • 16. The Algebra of Simplex Method
  • 17. The Simplex Method in Tabular Form  The algebraic form of the simplex method may be the best one for learning the underlying logic of the algorithm. However, it is not the most convenient form for performing the required calculations. When you need to solve a problem by hand (or interactively with your OR Courseware), We mainly recommend the tabular form.  The tabular form of the simplex method records only the essential information, namely, (1) the coefficients of the variables (2) the constants on the right-hand sides of the equations (3) the basic variable appearing in each equation. This saves writing the symbols for the variables in each of the equations, but what is even more important is the fact that it permits highlighting the numbers involved in arithmetic calculations and recording the computations compactly.  The tabular form of the simplex method uses a simplex tableau to compactly display the system of equations yielding the current BF solution. For this solution, each variable in the leftmost column equals the corresponding number in the rightmost column (and variables not listed equal zero). When the optimality test or an iteration is performed, the only relevant numbers are those to the right of the Z column. The term row refers to just a row of numbers to the right of the Z column (including the right side number), where row I corresponds to Eq. (i).
  • 18. The Simplex Method in Tabular Form Initial System of Equations Apply the minimum ratio test to determine the first leaving basic variable
  • 19. The Simplex Method in Tabular Form Simplex Tableaux after the first pivot row is divided by first pivot number First two Simplex Tableaux
  • 20. The Simplex Method in Tabular Form Step 1 and Step 2 of Iteration 2
  • 21. The Simplex Method in Tabular Form Complete Set of Simplex tableaux