SlideShare uma empresa Scribd logo
1 de 12
Simplex
Part 2 of 4
Professor Ed Dansereau
2. Initial Feasible Solution
We take the standard form constraints and objective function and fill in the Tableau
(table).
Basis C Object Function in Std Form Q
Basis Variables Subrate RHS
Z row Z
Net Eval
2. Initial Feasible Solution - O.F.
Begin to fill out table by putting Objective Function in Standard Form across top.
Initial Tableau
250 400 0 0 0
Basis C X1 X2 S1 S2 S3 Q
Basis Variables Subrate RHS
Z row Z
Net Eval
2. Initial Feasible Solution - Basis
Next Fill in Basis
Three rules for basic variables within Basis
1. One variable per constraint in Basis
2. For constraints that have slack, use them - less than or equal to
3. If a constraint has an Artificial variable, use it - greater than or equal to and
equal to
The coefficient of the variable comes from the Objective Function
2. Initial Feasible Solution - Basis
In our example we have three constraints, all constraints are “<=” so we use slack,
and the OF coefficient is zero (slack has zero profit).
Initial
Tableau
250 400 0 0 0
Basis C X1 X2 S1 S2 S3 Q
S1 0
Subrate RHS
S2 0
S3 0
Z row Z
Net Eval
2. Initial Feasible Solution - Subrate
Put the coefficient of left hand side of the constraints (everything to the left of the
<= sign) into the subrate. Align with the variables from the Objective function -
make sure the coefficient for X1 is under the X1 variable.
Initial Tableau
250 400 0 0 0
Basis C X1 X2 S1 S2 S3 Q
S1 0 2.5 3 1 0 0
RHS
S2 0 8 4 0 1 0
S3 0 2 6 0 0 1
Z row Z
Net Eval
2. Initial Feasible Solution - Subrate
Notice that the columns under the slack variables (S1, S2, and S3). The are unit
vector columns. A Unit Vector is a column of zeros and only a single 1 which occurs
at the intersection of that variable’s row (in basis) and column. The zeros in the
substitution rate indicates of each slack variables unit vector indicate that the
constraints are independent of each other. In other words, a change in the one
resource (constraint) has no effect on the other resources.
0
S1
1
0
0
2. Initial Feasible Solution - RHS
In the RHS section, fill the the Right Hand Side of each constraint, everything to the
right of the “<=” sign.
250 400 0 0 0
Basis C X1 X2 S1 S2 S3 Q
S1 0 2.5 3 1 0 0 30
S2 0 8 4 0 1 0 80
S3 0 2 6 0 0 1 48
Z row Z
Net Eval
2. Initial Feasible Solution - Z row
The values in the z row are calculated by multiplying the c (coefficient) values of the
basis by the corresponding value in the sub.rate column and then summing the
results of each row. Z row = ∑(c x sub. rate)
Let us look at just the X1 variable
● (0 * 2.5) + (0 * 8) + (0 * 2) = 0
● All three coefficients for S1, S2, & S3 are zero
● 2.5, 8, & 2 are the corresponding X1 values
Starting at the origin makes this calculation easy.
250
Basis C X1
S1 0 2.5
S2 0 8
S3 0 2
Z row 0
2. Initial Feasible Solution - Z row
Repeat the procedure for all the column variables
250 400 0 0 0
Basis C X1 X2 S1 S2 S3 Q
S1 0 2.5 3 1 0 0 30
S2 0 8 4 0 1 0 80
S3 0 2 6 0 0 1 48
Z row 0 0 0 0 0 Z
Net Eval
2. Initial Feasible Solution - Z
Z represents the profit for a maximum or cost for a minimum at the extreme point.
The formula is Z = ∑(c x Q). Notice we use the Q column instead of sub.rate when
calculating Z.
Z = (0*30) + (0*80) + (0*48) = 0
This makes sense. We are starting at
the origin (0,0) and not producing any products. So we are not making any money.
Basis C Q
S1 0 30
S2 0 80
S3 0 48
0
2. Initial Feasible Solution - Net Evaluation
Finally we calculate the Net Evaluation row subtracting the objective function
coefficient for each variable minus the value in the Z row. Net Eval = C - Zrow
● For X1 the OF coefficient is 250
● The Z row is 0
● Net Eval = 250 - 0 = 2503.
250 400 0 0 0
Basis C X1 X2 S1 S2 S3 Q
S1 0 2.5 3 1 0 0 30
S2 0 8 4 0 1 0 80
S3 0 2 6 0 0 1 48
Z row 0 0 0 0 0 0
Net Eval 250 400 0 0 0

Mais conteúdo relacionado

Mais procurados

2.4 Linear Functions
2.4 Linear Functions2.4 Linear Functions
2.4 Linear Functionssmiller5
 
Quantitative Analysis For Decision Making
Quantitative Analysis For Decision MakingQuantitative Analysis For Decision Making
Quantitative Analysis For Decision Makingaminsand
 
Zero & Negative Exponents
Zero & Negative ExponentsZero & Negative Exponents
Zero & Negative ExponentsBitsy Griffin
 
Simulation - Generating Continuous Random Variables
Simulation - Generating Continuous Random VariablesSimulation - Generating Continuous Random Variables
Simulation - Generating Continuous Random VariablesMartin Kretzer
 
Generate and test random numbers
Generate and test random numbersGenerate and test random numbers
Generate and test random numbersMshari Alabdulkarim
 
Operations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationOperations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationPankaj Kumar
 
6 logistic regression classification algo
6 logistic regression   classification algo6 logistic regression   classification algo
6 logistic regression classification algoTanmayVijay1
 
Rational Functions
Rational FunctionsRational Functions
Rational FunctionsJazz0614
 
Rational functions
Rational functionsRational functions
Rational functionsEricaC3
 
Graphing Quadradic
Graphing QuadradicGraphing Quadradic
Graphing Quadradicguest35706da
 
Graphics of Linear Functions
Graphics of Linear FunctionsGraphics of Linear Functions
Graphics of Linear FunctionsCarley2017
 
Lesson 1
Lesson 1Lesson 1
Lesson 1urenaa
 

Mais procurados (20)

7 regularization
7 regularization7 regularization
7 regularization
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
3
33
3
 
2.4 Linear Functions
2.4 Linear Functions2.4 Linear Functions
2.4 Linear Functions
 
Quantitative Analysis For Decision Making
Quantitative Analysis For Decision MakingQuantitative Analysis For Decision Making
Quantitative Analysis For Decision Making
 
Zero & Negative Exponents
Zero & Negative ExponentsZero & Negative Exponents
Zero & Negative Exponents
 
Calc 2.1
Calc 2.1Calc 2.1
Calc 2.1
 
Simulation - Generating Continuous Random Variables
Simulation - Generating Continuous Random VariablesSimulation - Generating Continuous Random Variables
Simulation - Generating Continuous Random Variables
 
Generate and test random numbers
Generate and test random numbersGenerate and test random numbers
Generate and test random numbers
 
Operations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationOperations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentation
 
Selection sort
Selection sortSelection sort
Selection sort
 
6 logistic regression classification algo
6 logistic regression   classification algo6 logistic regression   classification algo
6 logistic regression classification algo
 
FEMAP TUTORIAL AE410
FEMAP TUTORIAL AE410FEMAP TUTORIAL AE410
FEMAP TUTORIAL AE410
 
MATRICES
MATRICESMATRICES
MATRICES
 
Rational Functions
Rational FunctionsRational Functions
Rational Functions
 
Qa 2
Qa 2Qa 2
Qa 2
 
Rational functions
Rational functionsRational functions
Rational functions
 
Graphing Quadradic
Graphing QuadradicGraphing Quadradic
Graphing Quadradic
 
Graphics of Linear Functions
Graphics of Linear FunctionsGraphics of Linear Functions
Graphics of Linear Functions
 
Lesson 1
Lesson 1Lesson 1
Lesson 1
 

Destaque

Leo jundi-gracas-senhor
Leo jundi-gracas-senhorLeo jundi-gracas-senhor
Leo jundi-gracas-senhorAndydevas
 
Condo house launches singapore
Condo house launches singaporeCondo house launches singapore
Condo house launches singaporeecnewlaunch07
 
Animaciones de tres casos
Animaciones de tres casosAnimaciones de tres casos
Animaciones de tres casosdiegoblog
 
Estudios derecho-de-salud-marisa-aizenberg
Estudios derecho-de-salud-marisa-aizenbergEstudios derecho-de-salud-marisa-aizenberg
Estudios derecho-de-salud-marisa-aizenbergJuan Mijana
 
Ensamble y Mantenimiento Profesional de Computadoras
Ensamble y Mantenimiento Profesional de Computadoras Ensamble y Mantenimiento Profesional de Computadoras
Ensamble y Mantenimiento Profesional de Computadoras Gabriel Celaya
 
Présentation. "Je suis comme ça" 1º C
Présentation. "Je suis comme ça" 1º CPrésentation. "Je suis comme ça" 1º C
Présentation. "Je suis comme ça" 1º CSchool
 
XTIのtrrにおける不具合点(PSpice)
XTIのtrrにおける不具合点(PSpice)XTIのtrrにおける不具合点(PSpice)
XTIのtrrにおける不具合点(PSpice)Tsuyoshi Horigome
 

Destaque (12)

Nba
NbaNba
Nba
 
Leo jundi-gracas-senhor
Leo jundi-gracas-senhorLeo jundi-gracas-senhor
Leo jundi-gracas-senhor
 
Condo house launches singapore
Condo house launches singaporeCondo house launches singapore
Condo house launches singapore
 
Animaciones de tres casos
Animaciones de tres casosAnimaciones de tres casos
Animaciones de tres casos
 
Estudios derecho-de-salud-marisa-aizenberg
Estudios derecho-de-salud-marisa-aizenbergEstudios derecho-de-salud-marisa-aizenberg
Estudios derecho-de-salud-marisa-aizenberg
 
Los Perifericos
Los PerifericosLos Perifericos
Los Perifericos
 
Ensamble y Mantenimiento Profesional de Computadoras
Ensamble y Mantenimiento Profesional de Computadoras Ensamble y Mantenimiento Profesional de Computadoras
Ensamble y Mantenimiento Profesional de Computadoras
 
Présentation. "Je suis comme ça" 1º C
Présentation. "Je suis comme ça" 1º CPrésentation. "Je suis comme ça" 1º C
Présentation. "Je suis comme ça" 1º C
 
The Case Against Education
The Case Against EducationThe Case Against Education
The Case Against Education
 
XTIのtrrにおける不具合点(PSpice)
XTIのtrrにおける不具合点(PSpice)XTIのtrrにおける不具合点(PSpice)
XTIのtrrにおける不具合点(PSpice)
 
Custom dev o365
Custom dev   o365Custom dev   o365
Custom dev o365
 
Tecnologia 11 2
Tecnologia 11 2Tecnologia 11 2
Tecnologia 11 2
 

Semelhante a Simplex part 2 of 4

Semelhante a Simplex part 2 of 4 (20)

simplex method
simplex methodsimplex method
simplex method
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Simplextabular
SimplextabularSimplextabular
Simplextabular
 
Regression.pptx
Regression.pptxRegression.pptx
Regression.pptx
 
Regression.pptx
Regression.pptxRegression.pptx
Regression.pptx
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Simplex method
Simplex methodSimplex method
Simplex method
 
simplex method for operation research .pdf
simplex method for operation research .pdfsimplex method for operation research .pdf
simplex method for operation research .pdf
 
4-The Simplex Method.ppt
4-The Simplex Method.ppt4-The Simplex Method.ppt
4-The Simplex Method.ppt
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
 
Simplex two phase
Simplex two phaseSimplex two phase
Simplex two phase
 
Design of sampled data control systems part 2. 6th lecture
Design of sampled data control systems part 2.  6th lectureDesign of sampled data control systems part 2.  6th lecture
Design of sampled data control systems part 2. 6th lecture
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Simplex Method.pptx
Simplex Method.pptxSimplex Method.pptx
Simplex Method.pptx
 
Simplex method - Maximisation Case
Simplex method - Maximisation CaseSimplex method - Maximisation Case
Simplex method - Maximisation Case
 
Use s parameters-determining_inductance_capacitance
Use s parameters-determining_inductance_capacitanceUse s parameters-determining_inductance_capacitance
Use s parameters-determining_inductance_capacitance
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Simplex method maximisation
Simplex method maximisationSimplex method maximisation
Simplex method maximisation
 

Mais de Ed Dansereau

Social media in job search
Social media in job searchSocial media in job search
Social media in job searchEd Dansereau
 
Social media use in job search
Social media use in job searchSocial media use in job search
Social media use in job searchEd Dansereau
 
Marketing management orientation philosophies
Marketing management orientation philosophiesMarketing management orientation philosophies
Marketing management orientation philosophiesEd Dansereau
 
Basic Business Forecasting
Basic Business ForecastingBasic Business Forecasting
Basic Business ForecastingEd Dansereau
 
Simplex part 1 of 4
Simplex part 1 of 4Simplex part 1 of 4
Simplex part 1 of 4Ed Dansereau
 
Linear Programming Quiz Solution
Linear Programming Quiz SolutionLinear Programming Quiz Solution
Linear Programming Quiz SolutionEd Dansereau
 
Break even and outsource analysis
Break even and outsource analysisBreak even and outsource analysis
Break even and outsource analysisEd Dansereau
 
How to set up a Graphical Method Linear Programming Problem - Introduction
How to set up a Graphical Method Linear Programming Problem - IntroductionHow to set up a Graphical Method Linear Programming Problem - Introduction
How to set up a Graphical Method Linear Programming Problem - IntroductionEd Dansereau
 
Integrating Social Media into the Classroom, VSC Presentation
Integrating Social Media into the Classroom, VSC PresentationIntegrating Social Media into the Classroom, VSC Presentation
Integrating Social Media into the Classroom, VSC PresentationEd Dansereau
 
Students' expectations of the use of social media in the classroom
Students' expectations of the use of social media in the classroomStudents' expectations of the use of social media in the classroom
Students' expectations of the use of social media in the classroomEd Dansereau
 
The influence of permission marketing final version
The influence of permission marketing final versionThe influence of permission marketing final version
The influence of permission marketing final versionEd Dansereau
 

Mais de Ed Dansereau (11)

Social media in job search
Social media in job searchSocial media in job search
Social media in job search
 
Social media use in job search
Social media use in job searchSocial media use in job search
Social media use in job search
 
Marketing management orientation philosophies
Marketing management orientation philosophiesMarketing management orientation philosophies
Marketing management orientation philosophies
 
Basic Business Forecasting
Basic Business ForecastingBasic Business Forecasting
Basic Business Forecasting
 
Simplex part 1 of 4
Simplex part 1 of 4Simplex part 1 of 4
Simplex part 1 of 4
 
Linear Programming Quiz Solution
Linear Programming Quiz SolutionLinear Programming Quiz Solution
Linear Programming Quiz Solution
 
Break even and outsource analysis
Break even and outsource analysisBreak even and outsource analysis
Break even and outsource analysis
 
How to set up a Graphical Method Linear Programming Problem - Introduction
How to set up a Graphical Method Linear Programming Problem - IntroductionHow to set up a Graphical Method Linear Programming Problem - Introduction
How to set up a Graphical Method Linear Programming Problem - Introduction
 
Integrating Social Media into the Classroom, VSC Presentation
Integrating Social Media into the Classroom, VSC PresentationIntegrating Social Media into the Classroom, VSC Presentation
Integrating Social Media into the Classroom, VSC Presentation
 
Students' expectations of the use of social media in the classroom
Students' expectations of the use of social media in the classroomStudents' expectations of the use of social media in the classroom
Students' expectations of the use of social media in the classroom
 
The influence of permission marketing final version
The influence of permission marketing final versionThe influence of permission marketing final version
The influence of permission marketing final version
 

Último

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Último (20)

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

Simplex part 2 of 4

  • 1. Simplex Part 2 of 4 Professor Ed Dansereau
  • 2. 2. Initial Feasible Solution We take the standard form constraints and objective function and fill in the Tableau (table). Basis C Object Function in Std Form Q Basis Variables Subrate RHS Z row Z Net Eval
  • 3. 2. Initial Feasible Solution - O.F. Begin to fill out table by putting Objective Function in Standard Form across top. Initial Tableau 250 400 0 0 0 Basis C X1 X2 S1 S2 S3 Q Basis Variables Subrate RHS Z row Z Net Eval
  • 4. 2. Initial Feasible Solution - Basis Next Fill in Basis Three rules for basic variables within Basis 1. One variable per constraint in Basis 2. For constraints that have slack, use them - less than or equal to 3. If a constraint has an Artificial variable, use it - greater than or equal to and equal to The coefficient of the variable comes from the Objective Function
  • 5. 2. Initial Feasible Solution - Basis In our example we have three constraints, all constraints are “<=” so we use slack, and the OF coefficient is zero (slack has zero profit). Initial Tableau 250 400 0 0 0 Basis C X1 X2 S1 S2 S3 Q S1 0 Subrate RHS S2 0 S3 0 Z row Z Net Eval
  • 6. 2. Initial Feasible Solution - Subrate Put the coefficient of left hand side of the constraints (everything to the left of the <= sign) into the subrate. Align with the variables from the Objective function - make sure the coefficient for X1 is under the X1 variable. Initial Tableau 250 400 0 0 0 Basis C X1 X2 S1 S2 S3 Q S1 0 2.5 3 1 0 0 RHS S2 0 8 4 0 1 0 S3 0 2 6 0 0 1 Z row Z Net Eval
  • 7. 2. Initial Feasible Solution - Subrate Notice that the columns under the slack variables (S1, S2, and S3). The are unit vector columns. A Unit Vector is a column of zeros and only a single 1 which occurs at the intersection of that variable’s row (in basis) and column. The zeros in the substitution rate indicates of each slack variables unit vector indicate that the constraints are independent of each other. In other words, a change in the one resource (constraint) has no effect on the other resources. 0 S1 1 0 0
  • 8. 2. Initial Feasible Solution - RHS In the RHS section, fill the the Right Hand Side of each constraint, everything to the right of the “<=” sign. 250 400 0 0 0 Basis C X1 X2 S1 S2 S3 Q S1 0 2.5 3 1 0 0 30 S2 0 8 4 0 1 0 80 S3 0 2 6 0 0 1 48 Z row Z Net Eval
  • 9. 2. Initial Feasible Solution - Z row The values in the z row are calculated by multiplying the c (coefficient) values of the basis by the corresponding value in the sub.rate column and then summing the results of each row. Z row = ∑(c x sub. rate) Let us look at just the X1 variable ● (0 * 2.5) + (0 * 8) + (0 * 2) = 0 ● All three coefficients for S1, S2, & S3 are zero ● 2.5, 8, & 2 are the corresponding X1 values Starting at the origin makes this calculation easy. 250 Basis C X1 S1 0 2.5 S2 0 8 S3 0 2 Z row 0
  • 10. 2. Initial Feasible Solution - Z row Repeat the procedure for all the column variables 250 400 0 0 0 Basis C X1 X2 S1 S2 S3 Q S1 0 2.5 3 1 0 0 30 S2 0 8 4 0 1 0 80 S3 0 2 6 0 0 1 48 Z row 0 0 0 0 0 Z Net Eval
  • 11. 2. Initial Feasible Solution - Z Z represents the profit for a maximum or cost for a minimum at the extreme point. The formula is Z = ∑(c x Q). Notice we use the Q column instead of sub.rate when calculating Z. Z = (0*30) + (0*80) + (0*48) = 0 This makes sense. We are starting at the origin (0,0) and not producing any products. So we are not making any money. Basis C Q S1 0 30 S2 0 80 S3 0 48 0
  • 12. 2. Initial Feasible Solution - Net Evaluation Finally we calculate the Net Evaluation row subtracting the objective function coefficient for each variable minus the value in the Z row. Net Eval = C - Zrow ● For X1 the OF coefficient is 250 ● The Z row is 0 ● Net Eval = 250 - 0 = 2503. 250 400 0 0 0 Basis C X1 X2 S1 S2 S3 Q S1 0 2.5 3 1 0 0 30 S2 0 8 4 0 1 0 80 S3 0 2 6 0 0 1 48 Z row 0 0 0 0 0 0 Net Eval 250 400 0 0 0