SlideShare a Scribd company logo
1 of 33
LPP USING VARIOUS
SOFTWARE
SOLVING LPP
USING EXCEL
• Using Solver
• Using Graph
USING R
• Using”lpSolve”
USING EXCEL SOLVER
Activate Solver
• In The Excel Open Add-Ins
• Ensure Solver Add-in is Checked and proceed .
Open Solver
• In The DATA Ribbon Find Analysis Group
• Click on the icon representing Solver.
Enter The
Objective
• Enter Objective ,Add-> Subject to Constraints
• Select Solving Method: ie Simplex LP and click SOLVE
X1 X2 X3 X4
USING EXCEL GRAPH
Objective
• We Need To write the Objective, Subjective in a certain Format (Appear In The Next Page)
Equation For The Graph
• If X=0 Y=?
• &Y=0 X=?
• X=1 Y=?
• What ever necessary(Create a Table)Inserting Lines
• Insert->Charts->Scatter Diagram
• Select (Select Data) to Add more lines to your graph and modify it
Showing Feasible Region
• Insert->Shapes->Freeform
Finding Out (x,y)
• Using Matrix Formula MMULT and MINVERSE We can find out X1 and X2(Without Measuring the Graph)
• Then Value of Z for each points, (whether Maximum or Minimum )
=MMULT(MINVERSE(arrray 2X2),array 2X1)=(4 x X1 + 3 x X2)
Transportation problem :
Row/Column Minimal North West Corner Vogel Approximation
D E F G
A 6 4 1 5 14
B 8 9 2 7 16
C 4 3 6 2 5
6 10 15 4
0 0 14 0
6 4 1 5
6 9 1 0
8 9 2 7
1 0 4
4 3 6 2
A
B
C
D E F G
14
16
5
6 10 15 4
ROW MINIMAL
1X3
6X8 9X9
14X1
1X2
4X2
156
6 8 0 0
6 4 1 5
2 14 0
8 9 2 7
0 1 4
4 3 6 2
A
B
C
D E F G
14
16
5
6 10 15 4
NORTH WEST CORNER
6X6 8X4
2X9 14X2
1X6 4X2
128
4 10 0 0
6 4 1 5
1 0 15 0
8 9 2 7
1 0 0 4
4 3 6 2
5
6 10 15 4
E F G
14
16
A
B
C
D
1x4
1x8
4x6 10x4
15x2
4x2
114
USING R PROGRAMMING
lpSolve direction objective.in const.mat const.dir const.rhs Solution
install.packages("lpSolve")Install Package “lpSolver”
library(lpSolve)
Open Library
obj.fun <- c(…………)
Objective Function
constr <- matrix(c(……….),ncol = …,byrow = TRUE)
Constraints
constr.dir <- c("<=","<=",">=“…….)
Constraints’ Direction
rhs <- c(……..)
RHS Value
prod.sol <- lp(direction = "min",objective.in =
obj.fun,constr,constr.dir,rhs,compute.sens = TRUE)
Solve
Transportation Problem
obj_fun <- c(6,4,1,5,8,9,2,7,4,3,6,2)
m<-3
n<-4
t_constr<- matrix(0, n+m ,n*m ) for (i in 1:m) {for (j in 1:n) { t_constr[i,n*(i-1) + j]<-1 t_constr[m+j,n*(i-1) + j]<-1 }}
constr_dir<-c("=","=","=","<=","<=","<=","<=")
rhs <- c(14,16,5,6,10,15,4)
prod.tra <- lp(direction = "min",objective.in = obj_fun,const.mat = t_constr,const.dir = constr_dir, const.rhs = rhs,compute.sens = TRUE)
prod.tra$objval
sol <- matrix(prod.tra$solution,m,n,byrow = T)

More Related Content

What's hot

STACK ( LIFO STRUCTURE) - Data Structure
STACK ( LIFO STRUCTURE) - Data StructureSTACK ( LIFO STRUCTURE) - Data Structure
STACK ( LIFO STRUCTURE) - Data StructureYaksh Jethva
 
Gopher conbr golang e data science - oficial
Gopher conbr   golang e data science - oficialGopher conbr   golang e data science - oficial
Gopher conbr golang e data science - oficialRodrigo Pinheiro
 
Stack operation algorithms with example
Stack operation algorithms with exampleStack operation algorithms with example
Stack operation algorithms with exampleNamanKikani
 
IGraph a tool to analyze your network
IGraph a tool to analyze your networkIGraph a tool to analyze your network
IGraph a tool to analyze your networkPushpendra Tiwari
 
Tools for research plotting
Tools for research plottingTools for research plotting
Tools for research plottingNimrita Koul
 
Data Structure and Algorithms Stacks
Data Structure and Algorithms StacksData Structure and Algorithms Stacks
Data Structure and Algorithms StacksManishPrajapati78
 
Stacks overview with its applications
Stacks overview with its applicationsStacks overview with its applications
Stacks overview with its applicationsSaqib Saeed
 
Data Structure and Algorithms Queues
Data Structure and Algorithms QueuesData Structure and Algorithms Queues
Data Structure and Algorithms QueuesManishPrajapati78
 
Self Evaluation Test
Self Evaluation Test Self Evaluation Test
Self Evaluation Test Berk Soysal
 
On the Convex Layers of a Planer Dynamic Set of Points [Short Version]
On the Convex Layers of a Planer Dynamic Set of Points [Short Version]On the Convex Layers of a Planer Dynamic Set of Points [Short Version]
On the Convex Layers of a Planer Dynamic Set of Points [Short Version]Kasun Ranga Wijeweera
 
Introduction to stack
Introduction to stackIntroduction to stack
Introduction to stackvaibhav2910
 
stack and queue array implementation in java.
stack and queue array implementation in java.stack and queue array implementation in java.
stack and queue array implementation in java.CIIT Atd.
 
What is Stack, Its Operations, Queue, Circular Queue, Priority Queue
What is Stack, Its Operations, Queue, Circular Queue, Priority QueueWhat is Stack, Its Operations, Queue, Circular Queue, Priority Queue
What is Stack, Its Operations, Queue, Circular Queue, Priority QueueBalwant Gorad
 
Using olap
Using olapUsing olap
Using olapAnne Lee
 

What's hot (19)

STACK ( LIFO STRUCTURE) - Data Structure
STACK ( LIFO STRUCTURE) - Data StructureSTACK ( LIFO STRUCTURE) - Data Structure
STACK ( LIFO STRUCTURE) - Data Structure
 
Gopher conbr golang e data science - oficial
Gopher conbr   golang e data science - oficialGopher conbr   golang e data science - oficial
Gopher conbr golang e data science - oficial
 
Stack operation algorithms with example
Stack operation algorithms with exampleStack operation algorithms with example
Stack operation algorithms with example
 
IGraph a tool to analyze your network
IGraph a tool to analyze your networkIGraph a tool to analyze your network
IGraph a tool to analyze your network
 
Tools for research plotting
Tools for research plottingTools for research plotting
Tools for research plotting
 
Stack - Data Structure
Stack - Data StructureStack - Data Structure
Stack - Data Structure
 
Data Structure and Algorithms Stacks
Data Structure and Algorithms StacksData Structure and Algorithms Stacks
Data Structure and Algorithms Stacks
 
Stacks overview with its applications
Stacks overview with its applicationsStacks overview with its applications
Stacks overview with its applications
 
Data Structure and Algorithms Queues
Data Structure and Algorithms QueuesData Structure and Algorithms Queues
Data Structure and Algorithms Queues
 
Self Evaluation Test
Self Evaluation Test Self Evaluation Test
Self Evaluation Test
 
Algorithms - "heap sort"
Algorithms - "heap sort"Algorithms - "heap sort"
Algorithms - "heap sort"
 
Algorithms - "quicksort"
Algorithms - "quicksort"Algorithms - "quicksort"
Algorithms - "quicksort"
 
Stack of Data structure
Stack of Data structureStack of Data structure
Stack of Data structure
 
On the Convex Layers of a Planer Dynamic Set of Points [Short Version]
On the Convex Layers of a Planer Dynamic Set of Points [Short Version]On the Convex Layers of a Planer Dynamic Set of Points [Short Version]
On the Convex Layers of a Planer Dynamic Set of Points [Short Version]
 
Introduction to stack
Introduction to stackIntroduction to stack
Introduction to stack
 
stack and queue array implementation in java.
stack and queue array implementation in java.stack and queue array implementation in java.
stack and queue array implementation in java.
 
Matlab Nn Intro
Matlab Nn IntroMatlab Nn Intro
Matlab Nn Intro
 
What is Stack, Its Operations, Queue, Circular Queue, Priority Queue
What is Stack, Its Operations, Queue, Circular Queue, Priority QueueWhat is Stack, Its Operations, Queue, Circular Queue, Priority Queue
What is Stack, Its Operations, Queue, Circular Queue, Priority Queue
 
Using olap
Using olapUsing olap
Using olap
 

Similar to Lpp using Excel Solver

graphical-copy-130308123000-phpapp02.pptx
graphical-copy-130308123000-phpapp02.pptxgraphical-copy-130308123000-phpapp02.pptx
graphical-copy-130308123000-phpapp02.pptxABHIJEETKUMAR992494
 
INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxDevaraj Chilakala
 
Matlab 1
Matlab 1Matlab 1
Matlab 1asguna
 
maxbox starter60 machine learning
maxbox starter60 machine learningmaxbox starter60 machine learning
maxbox starter60 machine learningMax Kleiner
 
Project seminar ppt_steelcasting
Project seminar ppt_steelcastingProject seminar ppt_steelcasting
Project seminar ppt_steelcastingRudra Narayan Paul
 
IntroductionToMathematica.pptx
IntroductionToMathematica.pptxIntroductionToMathematica.pptx
IntroductionToMathematica.pptxMuhammadImran1347
 
Lab 3 Set Working Directory, Scatterplots and Introduction to.docx
Lab 3 Set Working Directory, Scatterplots and Introduction to.docxLab 3 Set Working Directory, Scatterplots and Introduction to.docx
Lab 3 Set Working Directory, Scatterplots and Introduction to.docxDIPESH30
 
Octave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning AlgorithmsOctave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning AlgorithmsCraig Trim
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in spaceFaizan Shabbir
 
Introduction to MatLab programming
Introduction to MatLab programmingIntroduction to MatLab programming
Introduction to MatLab programmingDamian T. Gordon
 
AutoDesk
AutoDeskAutoDesk
AutoDeskSE3D
 
4. linear programming using excel solver
4. linear programming using excel solver4. linear programming using excel solver
4. linear programming using excel solverHakeem-Ur- Rehman
 
A hybrid sine cosine optimization algorithm for solving global optimization p...
A hybrid sine cosine optimization algorithm for solving global optimization p...A hybrid sine cosine optimization algorithm for solving global optimization p...
A hybrid sine cosine optimization algorithm for solving global optimization p...Aboul Ella Hassanien
 

Similar to Lpp using Excel Solver (20)

graphical-copy-130308123000-phpapp02.pptx
graphical-copy-130308123000-phpapp02.pptxgraphical-copy-130308123000-phpapp02.pptx
graphical-copy-130308123000-phpapp02.pptx
 
Matlab1
Matlab1Matlab1
Matlab1
 
An Introduction to MATLAB with Worked Examples
An Introduction to MATLAB with Worked ExamplesAn Introduction to MATLAB with Worked Examples
An Introduction to MATLAB with Worked Examples
 
INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptx
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
Matlab 1
Matlab 1Matlab 1
Matlab 1
 
maxbox starter60 machine learning
maxbox starter60 machine learningmaxbox starter60 machine learning
maxbox starter60 machine learning
 
Mit6 094 iap10_lec03
Mit6 094 iap10_lec03Mit6 094 iap10_lec03
Mit6 094 iap10_lec03
 
Project seminar ppt_steelcasting
Project seminar ppt_steelcastingProject seminar ppt_steelcasting
Project seminar ppt_steelcasting
 
IntroductionToMathematica.pptx
IntroductionToMathematica.pptxIntroductionToMathematica.pptx
IntroductionToMathematica.pptx
 
Lab 3 Set Working Directory, Scatterplots and Introduction to.docx
Lab 3 Set Working Directory, Scatterplots and Introduction to.docxLab 3 Set Working Directory, Scatterplots and Introduction to.docx
Lab 3 Set Working Directory, Scatterplots and Introduction to.docx
 
presentation.pptx
presentation.pptxpresentation.pptx
presentation.pptx
 
Octave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning AlgorithmsOctave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning Algorithms
 
Learn Matlab
Learn MatlabLearn Matlab
Learn Matlab
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in space
 
Introduction to MatLab programming
Introduction to MatLab programmingIntroduction to MatLab programming
Introduction to MatLab programming
 
AutoDesk
AutoDeskAutoDesk
AutoDesk
 
4. linear programming using excel solver
4. linear programming using excel solver4. linear programming using excel solver
4. linear programming using excel solver
 
Scheme 核心概念(一)
Scheme 核心概念(一)Scheme 核心概念(一)
Scheme 核心概念(一)
 
A hybrid sine cosine optimization algorithm for solving global optimization p...
A hybrid sine cosine optimization algorithm for solving global optimization p...A hybrid sine cosine optimization algorithm for solving global optimization p...
A hybrid sine cosine optimization algorithm for solving global optimization p...
 

Recently uploaded

Data Analysis Project Presentation : NYC Shooting Cluster Analysis
Data Analysis Project Presentation : NYC Shooting Cluster AnalysisData Analysis Project Presentation : NYC Shooting Cluster Analysis
Data Analysis Project Presentation : NYC Shooting Cluster AnalysisBoston Institute of Analytics
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxStephen266013
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunksgmuir1066
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...yulianti213969
 
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...ThinkInnovation
 
Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesBoston Institute of Analytics
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeBoston Institute of Analytics
 
Sensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
Sensing the Future: Anomaly Detection and Event Prediction in Sensor NetworksSensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
Sensing the Future: Anomaly Detection and Event Prediction in Sensor NetworksBoston Institute of Analytics
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...yulianti213969
 
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...ssuserf63bd7
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证pwgnohujw
 
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...BabaJohn3
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证dq9vz1isj
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchersdarmandersingh4580
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token PredictionNABLAS株式会社
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...ThinkInnovation
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives23050636
 
Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024patrickdtherriault
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样jk0tkvfv
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshareraiaryan448
 

Recently uploaded (20)

Data Analysis Project Presentation : NYC Shooting Cluster Analysis
Data Analysis Project Presentation : NYC Shooting Cluster AnalysisData Analysis Project Presentation : NYC Shooting Cluster Analysis
Data Analysis Project Presentation : NYC Shooting Cluster Analysis
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
 
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
 
Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting Techniques
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
 
Sensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
Sensing the Future: Anomaly Detection and Event Prediction in Sensor NetworksSensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
Sensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
 
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchers
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
 
Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 

Lpp using Excel Solver

  • 2. SOLVING LPP USING EXCEL • Using Solver • Using Graph USING R • Using”lpSolve”
  • 3. USING EXCEL SOLVER Activate Solver • In The Excel Open Add-Ins • Ensure Solver Add-in is Checked and proceed . Open Solver • In The DATA Ribbon Find Analysis Group • Click on the icon representing Solver. Enter The Objective • Enter Objective ,Add-> Subject to Constraints • Select Solving Method: ie Simplex LP and click SOLVE
  • 4.
  • 5.
  • 6.
  • 7.
  • 8. X1 X2 X3 X4
  • 9.
  • 10.
  • 11.
  • 12. USING EXCEL GRAPH Objective • We Need To write the Objective, Subjective in a certain Format (Appear In The Next Page) Equation For The Graph • If X=0 Y=? • &Y=0 X=? • X=1 Y=? • What ever necessary(Create a Table)Inserting Lines • Insert->Charts->Scatter Diagram • Select (Select Data) to Add more lines to your graph and modify it Showing Feasible Region • Insert->Shapes->Freeform Finding Out (x,y) • Using Matrix Formula MMULT and MINVERSE We can find out X1 and X2(Without Measuring the Graph) • Then Value of Z for each points, (whether Maximum or Minimum )
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 23. Transportation problem : Row/Column Minimal North West Corner Vogel Approximation
  • 24. D E F G A 6 4 1 5 14 B 8 9 2 7 16 C 4 3 6 2 5 6 10 15 4
  • 25. 0 0 14 0 6 4 1 5 6 9 1 0 8 9 2 7 1 0 4 4 3 6 2 A B C D E F G 14 16 5 6 10 15 4 ROW MINIMAL 1X3 6X8 9X9 14X1 1X2 4X2 156
  • 26. 6 8 0 0 6 4 1 5 2 14 0 8 9 2 7 0 1 4 4 3 6 2 A B C D E F G 14 16 5 6 10 15 4 NORTH WEST CORNER 6X6 8X4 2X9 14X2 1X6 4X2 128
  • 27.
  • 28.
  • 29.
  • 30. 4 10 0 0 6 4 1 5 1 0 15 0 8 9 2 7 1 0 0 4 4 3 6 2 5 6 10 15 4 E F G 14 16 A B C D 1x4 1x8 4x6 10x4 15x2 4x2 114
  • 31. USING R PROGRAMMING lpSolve direction objective.in const.mat const.dir const.rhs Solution
  • 32. install.packages("lpSolve")Install Package “lpSolver” library(lpSolve) Open Library obj.fun <- c(…………) Objective Function constr <- matrix(c(……….),ncol = …,byrow = TRUE) Constraints constr.dir <- c("<=","<=",">=“…….) Constraints’ Direction rhs <- c(……..) RHS Value prod.sol <- lp(direction = "min",objective.in = obj.fun,constr,constr.dir,rhs,compute.sens = TRUE) Solve
  • 33. Transportation Problem obj_fun <- c(6,4,1,5,8,9,2,7,4,3,6,2) m<-3 n<-4 t_constr<- matrix(0, n+m ,n*m ) for (i in 1:m) {for (j in 1:n) { t_constr[i,n*(i-1) + j]<-1 t_constr[m+j,n*(i-1) + j]<-1 }} constr_dir<-c("=","=","=","<=","<=","<=","<=") rhs <- c(14,16,5,6,10,15,4) prod.tra <- lp(direction = "min",objective.in = obj_fun,const.mat = t_constr,const.dir = constr_dir, const.rhs = rhs,compute.sens = TRUE) prod.tra$objval sol <- matrix(prod.tra$solution,m,n,byrow = T)