An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.

Slides:



Advertisements
Similar presentations
February 14, 2002 Putting Linear Programs into standard form
Advertisements

Hillier and Lieberman Chapter 4.
Chapter 5: Linear Programming: The Simplex Method
Lecture 3 Linear Programming: Tutorial Simplex Method
Operation Research Chapter 3 Simplex Method.
Linear Programming – Simplex Method
SIMPLEX METHOD FOR LP LP Model.
Dr. Sana’a Wafa Al-Sayegh
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 9-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 9 Linear.
LINEAR PROGRAMMING SIMPLEX METHOD
Linear Programming Fundamentals Convexity Definition: Line segment joining any 2 pts lies inside shape convex NOT convex.
Linear Inequalities and Linear Programming Chapter 5
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
The Simplex Method: Standard Maximization Problems
Introduction to the Simplex Algorithm Active Learning – Module 3
Operation Research Chapter 3 Simplex Method.
Solving Linear Programs: The Simplex Method
Linear Programming (LP)
The Simplex Method.
5.6 Maximization and Minimization with Mixed Problem Constraints
D Nagesh Kumar, IIScOptimization Methods: M3L4 1 Linear Programming Simplex method - II.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 25, 2013.
LINEAR PROGRAMMING SIMPLEX METHOD.
Chapter 6 Linear Programming: The Simplex Method
The Two-Phase Simplex Method LI Xiao-lei. Preview When a basic feasible solution is not readily available, the two-phase simplex method may be used as.
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
Simplex method (algebraic interpretation)
Chapter 6 Linear Programming: The Simplex Method Section 2 The Simplex Method: Maximization with Problem Constraints of the Form ≤
ECE 556 Linear Programming Ting-Yuan Wang Electrical and Computer Engineering University of Wisconsin-Madison March
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.4 The student will be able to set up and solve linear programming problems.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming: The Simplex Method Chapter 5.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Public Policy Modeling Simplex Method Tuesday, October 13, 2015 Hun Myoung Park, Ph.D. Public Management & Policy Analysis Program Graduate School of International.
1© 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Linear Programming: The Simplex Method.
Solving Linear Programming Problems: The Simplex Method
Business Mathematics MTH-367 Lecture 15. Chapter 11 The Simplex and Computer Solutions Methods continued.
Mechanical Engineering Department 1 سورة النحل (78)
1 1 Slide © 2005 Thomson/South-Western Linear Programming: The Simplex Method n An Overview of the Simplex Method n Standard Form n Tableau Form n Setting.
Chapter 4 Linear Programming: The Simplex Method
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
1 Chapter 4 The Simplex Algorithm PART 2 Prof. Dr. M. Arslan ÖRNEK.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
OR  Now, we look for other basic feasible solutions which gives better objective values than the current solution. Such solutions can be examined.
Foundations-1 The Theory of the Simplex Method. Foundations-2 The Essence Simplex method is an algebraic procedure However, its underlying concepts are.
1 Simplex algorithm. 2 The Aim of Linear Programming A Linear Programming model seeks to maximize or minimize a linear function, subject to a set of linear.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
(iii) Simplex method - I D Nagesh Kumar, IISc Water Resources Planning and Management: M3L3 Linear Programming and Applications.
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Solving Linear Program by Simplex Method The Concept
Department of Management Information systems
Perturbation method, lexicographic method
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
Chapter 4 Linear Programming: The Simplex Method
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Solving Linear Programming Problems: Asst. Prof. Dr. Nergiz Kasımbeyli
Well, just how many basic
Simplex method (algebraic interpretation)
Presentation transcript:

An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications MIS: Prepared by Mr.Maher Abubaker Fall 2015/2016 Resources Daniel J. Epstein Department of Industrial and Systems Engineering University of Southern California Andrew and Erna Viterbi School of Engineering Operations Research: An Introduction, 9/EHamdy A. Taha, University of ArkansasISBN-10: X ISBN-13: ©2011 Prentice Hall Cloth, 832 ppPublished 08/29/ Introduction/ page#downlaoddiv ™ INFORMS – ™ ORMS - ™ Science of Better -

Chapter 3 Simplex Method and Sensitivity Analysis

Simplex Method

 Start from the origin (0,0)  While Solution is not Optimal  Move to the next corner point  Loop

Simplex Method  Corner Point Feasible Solutions CPF

Simplex Method  Find the Best ( Optimal ) Solution

LP Terminology Feasible solution - solution in which all the constraints are satisfied. Optimal solution - feasible solution having the most favorable objective function value Boundary equation - the resulting equation after dropping the on a constraint Corner point solution - a feasible solution that does not lie on any line segment connecting two other feasible solutions (extreme point). The intersection of two or more boundary equations.

Properties of Corner Point Solutions If there is exactly one optimal solution, then it must be a corner point solution. If there are multiple solutions then at least two must be adjacent corner point solutions. There are only a finite (although often large) number of corner point solutions. If a corner point solution is better than all of its adjacent corner point solutions, then it is better than all other feasible corner points. That is - it is optimal!

Solve the following LPP Using Simplex Method x 1 >= 0; x 2 >= 0 Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1 -2x 2 <= 6 x 2 <= 8 Simplex Method Example

Convert Inequalities to Equations Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 + S1 = 12 x 1 -2x 2 + S2 = 6 x 2 + S3 = 8 x 1 >= 0; x 2 >= 0 S 1 >= 0, S 2 >=0, S 3 >= 0

Convert Inequalities to Equations Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 + S 1 = 12 x 1 -2x 2 + S 2 = 6 x 2 + S 3 = 8 x 1 >= 0; x 2 >= 0 S 1 >= 0, S 2 >=0, S 3 >= 0 slack variables must be non-negative

Basic Solutions Augmented solution - solution to the problem after slack variables have been added. Basic solution - augmented corner point solution obtained by setting n variables to zero and solving for the remaining. Basic feasible solution (BFS) - feasible basic solution. Basic variables - variables that were solved for in the basic solution. Non-basic variables - variables set equal to zero in the basic solution.

Well, just how many basic solutions are there?!!! Let n = the number of variables m = the number of constraints After adding slack variables, there are n + m variables. Since a basic solution requires setting n variables to zero and solving uniquely for the remaining variables, there are (n+m)! / n!m! ways to select the n variables to set equal to zero or equivalently the m basic variables. If n = 20 and m = 10 (a trivially small problem), then 30!/(20! 10!) = 30,045,015. (not all are feasible)

Basic Solutions Again! Augmented solution - solution to the problem after slack variables have been added. Basic solution - augmented corner point solution obtained by setting n variables to zero and solving for the remaining. Basic feasible solution (BFS) - feasible basic solution. Basic variables - variables that were solved for in the basic solution. Non-basic variables - variables set equal to zero in the basic solution.

Outline of the Simplex Algorithm Start at a basic feasible solution (BFS) – (often the origin) Move to a better basic feasible solution – the objective function improves Stop when the basic feasible solution is better than all adjacent basic feasible solutions. – Solution is optimal

Now - Presenting the Simplex Algorithm! Be the first in your neighborhood to master this exciting and wonderful numerical, recursive process for solving linear programs. Two students discussing the high points of the simplex algorithm.

Simplex Method For Maximization and <= Constraints LPP Step1 Original Form : the Mathematical Model of the LPP Step2 Augmented Form : the Mathematical Model with equations and Slack Variables Step3 Standard Form : Prepare the model with objective function to Simlex tableau form Step 4 Tableau Form: The initial Simplex tableau with the initial basic solution

Example Max z = 4x 1 + x 2 Subj. to: x 1 + x 2 <= 6 x 1 <= 5 x 2 <=4 x 1 >= 0; x 2 >= 0 Convert the Model to Standard Form (SF) By Changing <= Constraints into equations by adding Slack Variables.

Convert Inequalities to Equations Max z = 4x 1 + x 2 Subj. to: x 1 + x 2 + s1 = 6 x 1 + s2 = 5 x 2 + s3 = 4 x 1 >= 0; x 2 >= 0 s1 >= 0, s2 >=0, s3 >= 0 slack variables must be non-negative

The Simplex Tableau-1 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS Standard Form ( SF ) Max z - 4x 1 - x 2 = 0 Subj. to: x 1 + x 2 + s 1 = 6 x 1 - 2x 2 + s 2 = 5 x 2 + s 3 = 4

The Simplex Tableau-2 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z Max z - 4x 1 - x 2 = 0 Subj. to: x 1 + x 2 + s 1 = 6 x 1 - 2x 2 + s 2 = 5 x 2 + s 3 = 4

The Simplex Tableau-3 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s Max z - 4x 1 - x 2 = 0 Subj. to: x 1 + x 2 + s 1 = 6 x 1 - 2x 2 + s 2 = 5 x 2 + s 3 = 4

The Simplex Tableau-4 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s s Max z - 4x 1 - x 2 = 0 Subj. to: x 1 + x 2 + s 1 = 6 x 1 - 2x 2 + s 2 = 5 x 2 + s 3 = 4

The Simplex Tableau-5 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s s s s Max z - 4x 1 - x 2 = 0 Subj. to: x 1 + x 2 + s 1 = 6 x 1 - 2x 2 + s 2 = 5 x 2 + s 3 = 4

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s The Simplex Algorithm-1 Step 1: Select a new variable to enter the basis.

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s The Simplex Algorithm-2 Step 1: Select a new variable to enter the basis. Entering Var Pick the non-basic variable having the greatest negative value. z = 4x 1 + x 2 Basic Solution Values for the Basic Solution

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s Step 2a: Select a basic variable to leave the basis.

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s Step 2b: Select a basic variable to leave the basis. Pick the basic variable having the smallest ratio of the RHS divided by the corresponding positive coefficient from the incoming variable. M.R.T 6/1 5/1

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s Step 2c: Select a basic variable to leave the basis. Pick the basic variable having the smallest ratio of the RHS divided by the corresponding positive coefficient from the incoming variable. Ratio 6/1 5/1 pivot point

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z 1s 1 2x 1 3s 3 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s Step 3a: Use Gauss-Jordan row operations to find the new basic solution. Gauss-Jordan row operations 1.Pivot row  Replace the leaving variable in the Basic column with the entering variable.  New pivot row = Current pivot row ÷ Pivot element 2.All other rows, including Z  New row = ( Current row ) – ( Its pivot coefficient) X ( New pivot row )

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z 1s 1 2x 1 3s 3 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s Step 3a: Use Gauss-Jordan row operations to find the new basic solution.

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z 1s 1 2x 1 3s 3 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s Step 3b: Use row operations to find the new basic solution

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z 1s 1 2x 1 3s 3 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s Step 3c: Use row operations to find the new basic solution

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z 1s 1 2x 1 3s 3 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s Step 3d: Use row operations to find the new basic solution

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z 1s 1 2x 1 3s 3 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s s s Step 3e: Use row operations to find the new basic solution / / entering Leaving

Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z 1x 2 2x 1 3s 3 Basic Eq Varzx 1 x 2 s 1 s 2 s 3 RHS 0z s x s Step 3e: Use row operations to find the new basic solution entering Leaving

From the tableau we can test the optimality by looking to the Z-row. The Solution become optimal when all coff. in the Z-row are non-negative

From the final tableau we have the final optimal solution such as ( x1,x2,s1,s2,s3) = (5,1,0,0,3) X2 = 1 that means according to the X2 <=4 constraint I have 4 unit from resource ( S3 ), used just 1 unit and the remaining is slack = 3 This is clear from the sol. X2 =1 and S3 = 3

The Simplex Algorithm A Second Example

The problem Max z = 2 x 1 + x x 3 Subj to: x 1 + x 2 + x 3  x x x 3  x x 3  90 x 1, x 2, x 3  0

The augmented problem Max z = 2 x 1 + x x 3 Subj to: x 1 + x 2 + x 3 + s 1 = x x x 3 + s 2 = x x 3 + s 3 = 90 x 1, x 2, x 3, s 1, s 2, s 3  0

The Standard Form Max z - 2 x 1 - x x 3 = 0 Subj to: x 1 + x 2 + x 3 + s 1 = x x x 3 + s 2 = x x 3 + s 3 = 90 x 1, x 2, x 3, s 1, s 2, s 3  0

The Initial Tableau Basic Eq Varzx 1 x 2 x 3 s 1 s 2 s 3 RHS 0z s s s

Begin First Iteration Basic Eq Varz x 1 x 2 x 3 s 1 s 2 s 3 RHS 0z s s s entering variable ratio 120/1 150/3 90/2

Start new solution – pivot row Basic Eq Varz x 1 x 2 x 3 s 1 s 2 s 3 RHS 0z s s x /2 45

New solution – Eq. 2 Basic Eq Varz x 1 x 2 x 3 s 1 s 2 s 3 RHS 0z s s /2 15 3x /2 45

New solution – Eq. 1 Basic Eq Varz x 1 x 2 x 3 s 1 s 2 s 3 RHS 0z s /2 75 2s /2 15 3x /2 45

New solution – Eq. 0 Basic Eq Varz x 1 x 2 x 3 s 1 s 2 s 3 RHS 0z / s /2 75 2s /2 15 3x /2 45

New iteration Basic Eq Varz x 1 x 2 x 3 s 1 s 2 s 3 RHS 0z / s /2 75 2s /2 15 3x /2 45 entering variable ratio 75/1 15/3

Pivot row operation Basic Eq Varz x 1 x 2 x 3 s 1 s 2 s 3 RHS 0z / s /2 75 2x / /3 -1/2 5 3x /2 45

Next solution Basic Eq Varz x 1 x 2 x 3 s 1 s 2 s 3 RHS 0z1 8/ / s 1 0 1/ / x / /3 -1/2 5 3x /2 45 Optimal! Solution (x1=0,x2=5,x3=45,s1=70,s2=0,s3= 0, z=140)

After the Simplex What can go wrong? Equality and >= Constraints ( Big-M method ) Minimization rather than maximization Unbounded solutions Alternate solutions No feasible solution Big-M Method

LP With E quality and/or >= Constraints Big-M method The only serious problem introduced by the other forms for functional constraints( =, >= forms ) lies in identifying an Initial BF solution. The standard approach that is used for all these cases is the artificial-variable technique. This technique constructs a more convenient artificial problem by introducing a dummy variable ( called an artificial variable ) into each constraint that needs one.

LP With Equality or >= Constraints Big-M method Equality constraints: a i1 X 1 + a i2 X 2 + …. + a in X n = b i actually is equivalent to a pair of inequality constraints : ai1 X1 + ai2 X2 + …. + a in X n >= bi ai1 X1 + ai2 X2 + …. + a in X n <= bi But rather than making this substitution and thereby increasing the number of constraints, it is more convenient to use the Artificial-variable technique.

Example Max z = 3x 1 + 5x 2 subject to: x 1 <=4 2x 2 <= 12 3x 1 + 2x 2 = 18 x 1, x 2 >=0 Max z - 3x 1 - 5x 2 = 0 subject to: x 1 + s 1 = 4 2x 2 + s 2 = 12 3x 1 + 2x 2 = 18 x 1, x 2 >=0 Augmented Form

Example continue 1.Apply the artificial Variable Technique by introducing a nonnegative artificial variable 3x 1 + 2x 2 + R1 = Assign an overwhelming penalty to have R1 > 0 by changing the objective function to Z = 3x1 + 5x2 – M R1 Where M represent a huge positive number. ( this method of forcing R1 to be R1 = 0 in the optimal solution is called the Big M method. )

Example continue Now find the optimal solution for the real problem by applying the simplex method to the artificial problem, starting with the following final initial BF solution: Non basic variables : x1 = 0, x2 = 0 Basic Variables : S1 = 4, S2 = 12, R1 = 18. The Artificial problem : Max Z = 3x1 + 5x2 – M R1 subject to: x1 <= 4 2x2 <= 12 3x1 + 2x2 + R1 = 18

Example continue Now Max Z = 3x1 + 5x2 – M R1 Max Z – 3x1 – 5x2 + M R1 = 0 3x1 + 2x2 + R1 = 18 R1 = 18 – 3x1 – 2x2 Substitute R1 in Z we have Z – 3x1 – 5x2 + M ( 18 – 3x1 – 2x2 ) = 0 Z – 3x1 – 5x2 + 18M – 3M x1- 2M x2 = 0 Z – ( 3M + 3 ) x1 – ( 2M + 5 ) x2 = -18M

The Initial Tableau Basic Eq Varzx 1 x 2 s 1 s 2 R1 RHS 0z1 -3M -3 -2M – M 1s s R Max Z – ( 3M + 3 ) x1 – ( 2M + 5 ) x2 = -18M subject to: x 1 + s 1 = 4 2x 2 + s 2 = 12 3x 1 + 2x 2 + R1 = 18 x 1, x 2 >=0

LP Minimization – The Problem Min z = 12x 1 + 5x x 3 subject to: x 1 - x 3 >= 30 x 1 + 2x 2 >= 20 x 2 + 4x 3 = 40 x 1, x 2, x 3 >=0

LP Minimization Min z = 12x 1 + 5x x 3 subject to: x 1 - x 3 = 30 x 1 + 2x 2 = 20 x 2 + 4x 3 = 40 x 1, x 2, x 3 >=0 - S1 -s2 Subtract surplus variables x 4, x 5 >= 0 +R1 +R2 +R3 + MR1 + MR2 + MR3 x 4, x 5, x 6, x 7, x 8 >= 0 Add artificial variables Augmented Problem Animated

Basis VarZ x 1 x 2 x 3 s1 s2 R1 R2 R3 RHS z M -M -M0 R R R Z new M -5+3M -10+3M -M -M M Animated

Step 1: ( the Optimality test for Minimization Problems ) Optimal when all values in Z-Row are non-positive Entering Variable: Select the non-basic variable having the largest positive coefficient in the objective function row to enter the basis.. Leaving variable : the same as before Animated

Unbounded solutions Alternate solutions No feasible solution Degeneracy Special Cases in LPP

Unbounded Solutions Max 2x 1 + 4x 2 Subj. to: x 1 + x 2 >= 10 x 1 – x 2 <= 20 x 1, x 2 >= x feasible region Animated

Basis VarZ x 1 x 2 x 3 x 4 x 5 RHS z M 0 x x z new 1 -2+M –4+M –M M More of Unbounded Solutions x 3 enters basis -x 3 + x 5 = 10 Unbounded Solution: no variable qualifies to be the leaving basic variable! Animated

Degeneracy Example max z = 3 x1 + 9 x2 Sto: X1 + 4 x2 <= 8 X1 + 2 x2 <= 4 X1,x2 >= 0 Cycling or circling

Alternate Solutions Max 3x 1 + x 2 Subj. to: x 1 + x 2 <= 20 3x 1 + x 2 <= 30 x 1, x 2 >= Animated

Basis Var Z x 1 x 2 s 1 S 2 RHS z s S More of Alternate Solutions x 1 enters basis Animated s 2 leaves

Basis VarZ x 1 x 2 S 1 S 2 RHS z x /3 1 -1/3 10 x /3 0 1/3 10 More of Alternate Solutions optimal; however x 2 can enter basis Animated S 1 leaves

Basis VarZ x 1 x 2 x 3 x 4 RHS z x /2 -1/2 15 x /2 1/2 5 More of Alternate Solutions Animated

No Feasible Solution Min 2x 1 + 4x 2 Subj. to: x 1 + x 2 <= 10 x 1 + x 2 >= 20 x 1, x 2 >= Animated Min 2x 1 + 4x 2 Subj. to: x 1 + x 2 +s1 = 10 x 1 + x 2 - S1 + R1 = 20 x 1, x 2 >= 0

Basis VarZ x 1 x 2 s1 S1 R1 RHS z M -M s R More of No Feasible Solution z new 1 -2+M –4+M 0 -M 0 20M x 1 enters basis Animated S 1 leaves

Basis VarZ x 1 x 2 x 3 x 4 x 5 RHS z M -M M x R More of No Feasible Solution No feasible solution: If unable to drive all the artificial variables from the basis, by the time the optimality conditions are encountered, then there is no feasible solution. Animated

Summary If all values in the pivotal column are zeros or negative then the solution is unbounded If all RHS negative then the solution is infeasible.

IF a slack variable take a positive value, this mean that there is a resource that not used totally. Unit Worth ( Shadow Price ) of a resource is measured in terms of the units of the objective and it measures the improvement of the objective, as a result of increasing the resource by 1 unit.( It is the shadow price of the resource or the dual price ). Any resource that is not fully consumed is called Abundant resource and its shadow price =0. Any resource that is fully consumed by the activity is called Scarce resource. Unit worth or shadow price is determined using the coefficient of the slack variables in the final Z-Row.