SlideShare ist ein Scribd-Unternehmen logo
1 von 11
© 2013 OptiRisk India (P) Ltd, All rights reserved
Bala. Padmakumar
Director & CEO
OptiRisk India
Ph: +91 98406 18472/ +91 44 4501 8472
Web: http://www.optiriskindia.com
Email : optimize@optiriskindia.com
2© 2013 OptiRisk India (P) Ltd, All rights reserved
XYZ Chemical Ltd manufactures three chemicals, namely CH-A, CH-B, and CH-C. All
three chemicals have to go through three processes namely MIXING, CONVERSION,
and BAGGING. Each process has finite daily capacity, which are given in the below
table. Each chemical requires different processing time, which are also given in the below
table.
Process
Production minutes per Kg of
product
Capacity of
production in
minutes per dayCH-A CH-B CH-C
MIXING
CONVERSION
BAGGING
2
3
1
2
1
4
1
1
0
400
450
390
Contribution /Kg Rs. 30 Rs. 55 Rs. 23
The company can sell whatever it produces (there is no constraint on demand). The
company’s management wants to find out how much of each chemical it should produce
to maximize the contribution (profit).
3© 2013 OptiRisk India (P) Ltd, All rights reserved
Decision Variables:
= Number of Kgs of chemical p produced each day. p = 1, …, P
= Number of minutes per day available at process s.
ConstraintsConstraints
px
Constraints:
sC
= Number of minutes required by product p at production stage s. s = 1, …, S
 
= Profit per unit of product p
Parameters:
psa ,
pv
Objective Function:
z = Maximize total daily profit
4© 2013 OptiRisk India (P) Ltd, All rights reserved
∑=
P
p
pp xv
1
∑=
≤
P
p
spps Cxa
1
,
0≥px for p = 1, …, P=Max num of products
for s = 1, …, S=Max num of processes
Subject to:
Maximize z =
Objective function
Maximize total contribution (profit)
Constraint
Process Capacity
Constraints
Non negativity
Constraint
Production quantity
must be non negative
5© 2013 OptiRisk India (P) Ltd, All rights reserved
Subject to:
Maximize z =
Objective function
Maximize total contribution(profit)
Constraint
Process Capacity
Constraints
Non negativity
Constraint
Production quantity
must be non negative
321 22 xxx ++
3213 xxx ++
21 4xx +
0,0,0 321 ≥≥≥ xxx
321 235530 xxx ++
≤ 400
≤ 450
≤ 390
Objective function
Maximize Contribution
6© 2013 OptiRisk India (P) Ltd, All rights reserved
/*********************************************
* OPL 12.5 Model
* Author: OptiRisk
* Creation Date: 27-Aug-2013 at 10:02:32 AM
*********************************************/
// Input - indices
{string} Chemicals = ...;
{string} Processes = ...;
// Input parameters
float Capacity[Processes] = ...;
float ProcessTime[Chemicals][Processes] = ...;
float Contribution[Chemicals] = ...;
// Decision Variable
// Production Quantity of each Chemical
dvar float+ ChemicalQty[Chemicals];
// Objective Function
// Maximize total contribution
maximize
sum( p in Chemicals )
Contribution[p] * ChemicalQty[p];
Input Parameters
Decision Variables
Post Processing
Print Results
Constraint
Capacity Constraint
// Constraints
// 1. Capacity Constraints
subject to {
forall( s in Processes )
ctCapacity:
sum( p in Chemicals )
ProcessTime[p][s] * ChemicalQty[p] <= Capacity[s];
}
// Post processing to print results.
execute {
writeln("Maximum Contribution Possible = Rs. ",
cplex.getObjValue());
writeln("n----- RESULT: Optimal Product Mix---------");
// Print the optimal product quantities.
for( var p in Chemicals){
writeln(p, " ---> ", ChemicalQty[p], " Kgs");
}
writeln("n---- END: Optimal Product Mix-------------");
}
7© 2013 OptiRisk India (P) Ltd, All rights reserved
Input Data
Parameters
Index
/*********************************************
* OPL 12.5 Data
* Author: OptiRisk
* Creation Date: 27-Aug-2013 at 10:02:32 AM
*********************************************/
Chemicals = {"CH-A","CH-B","CH-C"};
Processes = {"MIXING", "CONVERSION", "BAGGING"};
// Capacity in minutes of each process
Capacity = [400, 450, 390];
// Processing time for each chemical, for every process
ProcessTime = [[2,3,1],[2,1,4],[1,1,0]];
// Contribution (profit) for each chemical
Contribution = [30, 55, 23];
8© 2013 OptiRisk India (P) Ltd, All rights reserved
9© 2013 OptiRisk India (P) Ltd, All rights reserved
// solution (optimal) with objective 10077.5
Maximum Contribution Possible = Rs. 10077.5
----------- RESULT: Optimal Product Mix---------
CH-A ---> 0 Kgs
CH-B ---> 97.5 Kgs
CH-C ---> 205 Kgs
----------- END: Optimal Product Mix-------------
// solution (optimal) with objective 10077.5
Maximum Contribution Possible = Rs. 10077.5
----------- RESULT: Optimal Product Mix---------
CH-A ---> 0 Kgs
CH-B ---> 97.5 Kgs
CH-C ---> 205 Kgs
----------- END: Optimal Product Mix-------------
10© 2013 OptiRisk India (P) Ltd, All rights reserved
Model Code
ResultsDebug
Project Explorer
Asia Pacific, Africa, Australia &
Middle East:
Europe & America:
No 12, 25th Cross Street
Thiruvalluvar Nagar ,
Thiruvanmiyur,
Chennai –600041, India
OptiRisk R&D House,
One Oxford, Uxbridge,
Middlesex, UB9 4DA,
United Kingdom
Bala. Padmakumar
Ph: +91 98406 18472 / +91 44 4501 8472
Email: optimize@optiriskindia.com
Web: http://www.optiriskindia.com/
11© 2013 OptiRisk India (P) Ltd, All rights reserved
Development Center: Corporate Head Quarters:
No 1/4 ,
Justice Dwarkanath Road,
Kolkata - 700020,
India.

Weitere ähnliche Inhalte

Andere mochten auch

Conditional interval variables: A powerful concept for modeling and solving c...
Conditional interval variables: A powerful concept for modeling and solving c...Conditional interval variables: A powerful concept for modeling and solving c...
Conditional interval variables: A powerful concept for modeling and solving c...Philippe Laborie
 
Modeling and Solving Resource-Constrained Project Scheduling Problems with IB...
Modeling and Solving Resource-Constrained Project Scheduling Problems with IB...Modeling and Solving Resource-Constrained Project Scheduling Problems with IB...
Modeling and Solving Resource-Constrained Project Scheduling Problems with IB...Philippe Laborie
 
An introduction to CP Optimizer
An introduction to CP OptimizerAn introduction to CP Optimizer
An introduction to CP OptimizerPhilippe Laborie
 
Modeling and Solving Scheduling Problems with CP Optimizer
Modeling and Solving Scheduling Problems with CP OptimizerModeling and Solving Scheduling Problems with CP Optimizer
Modeling and Solving Scheduling Problems with CP OptimizerPhilippe Laborie
 
Solving Large Scale Optimization Problems using CPLEX Optimization Studio
Solving Large Scale Optimization Problems using CPLEX Optimization StudioSolving Large Scale Optimization Problems using CPLEX Optimization Studio
Solving Large Scale Optimization Problems using CPLEX Optimization Studiooptimizatiodirectdirect
 
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
 
Informs 2016 Solving Planning and Scheduling Problems with CPLEX
Informs 2016 Solving Planning and Scheduling Problems with CPLEX Informs 2016 Solving Planning and Scheduling Problems with CPLEX
Informs 2016 Solving Planning and Scheduling Problems with CPLEX Alkis Vazacopoulos
 
Optimization Direct: Introduction and recent case studies
Optimization Direct: Introduction and recent case studiesOptimization Direct: Introduction and recent case studies
Optimization Direct: Introduction and recent case studiesAlkis Vazacopoulos
 

Andere mochten auch (10)

Opl
OplOpl
Opl
 
Conditional interval variables: A powerful concept for modeling and solving c...
Conditional interval variables: A powerful concept for modeling and solving c...Conditional interval variables: A powerful concept for modeling and solving c...
Conditional interval variables: A powerful concept for modeling and solving c...
 
Modeling and Solving Resource-Constrained Project Scheduling Problems with IB...
Modeling and Solving Resource-Constrained Project Scheduling Problems with IB...Modeling and Solving Resource-Constrained Project Scheduling Problems with IB...
Modeling and Solving Resource-Constrained Project Scheduling Problems with IB...
 
An introduction to CP Optimizer
An introduction to CP OptimizerAn introduction to CP Optimizer
An introduction to CP Optimizer
 
Modeling and Solving Scheduling Problems with CP Optimizer
Modeling and Solving Scheduling Problems with CP OptimizerModeling and Solving Scheduling Problems with CP Optimizer
Modeling and Solving Scheduling Problems with CP Optimizer
 
Solving Large Scale Optimization Problems using CPLEX Optimization Studio
Solving Large Scale Optimization Problems using CPLEX Optimization StudioSolving Large Scale Optimization Problems using CPLEX Optimization Studio
Solving Large Scale Optimization Problems using CPLEX Optimization Studio
 
4. linear programming using excel solver
4. linear programming using excel solver4. linear programming using excel solver
4. linear programming using excel solver
 
Informs 2016 Solving Planning and Scheduling Problems with CPLEX
Informs 2016 Solving Planning and Scheduling Problems with CPLEX Informs 2016 Solving Planning and Scheduling Problems with CPLEX
Informs 2016 Solving Planning and Scheduling Problems with CPLEX
 
Optimization Direct: Introduction and recent case studies
Optimization Direct: Introduction and recent case studiesOptimization Direct: Introduction and recent case studies
Optimization Direct: Introduction and recent case studies
 
Présentation Cplex
Présentation CplexPrésentation Cplex
Présentation Cplex
 

Ähnlich wie Product Mix Optimization Case Study - OPL/ CPLEX Code

Planning Optimization and Automation in Manufacturing
Planning Optimization and Automation in ManufacturingPlanning Optimization and Automation in Manufacturing
Planning Optimization and Automation in ManufacturingOptiRisk India
 
Automation Solutions PowerPoint Presentation Slides
Automation Solutions PowerPoint Presentation SlidesAutomation Solutions PowerPoint Presentation Slides
Automation Solutions PowerPoint Presentation SlidesSlideTeam
 
Introducing Automation In Manufacturing Business PowerPoint Presentation Slides
Introducing Automation In Manufacturing Business PowerPoint Presentation SlidesIntroducing Automation In Manufacturing Business PowerPoint Presentation Slides
Introducing Automation In Manufacturing Business PowerPoint Presentation SlidesSlideTeam
 
Planning Automation in Cold Chain
Planning Automation in Cold ChainPlanning Automation in Cold Chain
Planning Automation in Cold ChainOptiRisk India
 
Implementing 5 s methodology as tool for improving efficiency
Implementing 5 s methodology as tool for improving efficiencyImplementing 5 s methodology as tool for improving efficiency
Implementing 5 s methodology as tool for improving efficiencyLaukik Raut
 
Wellington APAC Groundbreakers tour - Upgrading to the 12c Optimizer
Wellington APAC Groundbreakers tour - Upgrading to the 12c OptimizerWellington APAC Groundbreakers tour - Upgrading to the 12c Optimizer
Wellington APAC Groundbreakers tour - Upgrading to the 12c OptimizerConnor McDonald
 
Level Of Automation Powerpoint Presentation Slides
Level Of Automation Powerpoint Presentation SlidesLevel Of Automation Powerpoint Presentation Slides
Level Of Automation Powerpoint Presentation SlidesSlideTeam
 
appendixbnotes_2.ppt
appendixbnotes_2.pptappendixbnotes_2.ppt
appendixbnotes_2.pptEllamae79
 
TenYearsCPOptimizer
TenYearsCPOptimizerTenYearsCPOptimizer
TenYearsCPOptimizerPaulShawIBM
 
An introduction to lean six sigma
An introduction to lean six sigmaAn introduction to lean six sigma
An introduction to lean six sigmaBusiness Beam
 
小さなチームでも高品質なモバイルアプリを作るためのテスト戦略
小さなチームでも高品質なモバイルアプリを作るためのテスト戦略小さなチームでも高品質なモバイルアプリを作るためのテスト戦略
小さなチームでも高品質なモバイルアプリを作るためのテスト戦略and factory, inc.
 
Gas Plant, Dryer and Generator by Atmos Power Pvt Ltd, Ahmedabad
Gas Plant, Dryer and Generator by Atmos Power Pvt Ltd, AhmedabadGas Plant, Dryer and Generator by Atmos Power Pvt Ltd, Ahmedabad
Gas Plant, Dryer and Generator by Atmos Power Pvt Ltd, AhmedabadIndiaMART InterMESH Limited
 
Automation Benefits PowerPoint Presentation Slides
Automation Benefits PowerPoint Presentation SlidesAutomation Benefits PowerPoint Presentation Slides
Automation Benefits PowerPoint Presentation SlidesSlideTeam
 

Ähnlich wie Product Mix Optimization Case Study - OPL/ CPLEX Code (20)

Planning Optimization and Automation in Manufacturing
Planning Optimization and Automation in ManufacturingPlanning Optimization and Automation in Manufacturing
Planning Optimization and Automation in Manufacturing
 
Automation Solutions PowerPoint Presentation Slides
Automation Solutions PowerPoint Presentation SlidesAutomation Solutions PowerPoint Presentation Slides
Automation Solutions PowerPoint Presentation Slides
 
Introducing Automation In Manufacturing Business PowerPoint Presentation Slides
Introducing Automation In Manufacturing Business PowerPoint Presentation SlidesIntroducing Automation In Manufacturing Business PowerPoint Presentation Slides
Introducing Automation In Manufacturing Business PowerPoint Presentation Slides
 
Planning Automation in Cold Chain
Planning Automation in Cold ChainPlanning Automation in Cold Chain
Planning Automation in Cold Chain
 
Implementing 5 s methodology as tool for improving efficiency
Implementing 5 s methodology as tool for improving efficiencyImplementing 5 s methodology as tool for improving efficiency
Implementing 5 s methodology as tool for improving efficiency
 
Postgres survey podcast
Postgres survey podcastPostgres survey podcast
Postgres survey podcast
 
Wellington APAC Groundbreakers tour - Upgrading to the 12c Optimizer
Wellington APAC Groundbreakers tour - Upgrading to the 12c OptimizerWellington APAC Groundbreakers tour - Upgrading to the 12c Optimizer
Wellington APAC Groundbreakers tour - Upgrading to the 12c Optimizer
 
Level Of Automation Powerpoint Presentation Slides
Level Of Automation Powerpoint Presentation SlidesLevel Of Automation Powerpoint Presentation Slides
Level Of Automation Powerpoint Presentation Slides
 
Bengkel POM
Bengkel POMBengkel POM
Bengkel POM
 
Soaib CV
Soaib CVSoaib CV
Soaib CV
 
Resume R91
Resume R91Resume R91
Resume R91
 
appendixbnotes_2.ppt
appendixbnotes_2.pptappendixbnotes_2.ppt
appendixbnotes_2.ppt
 
TenYearsCPOptimizer
TenYearsCPOptimizerTenYearsCPOptimizer
TenYearsCPOptimizer
 
An introduction to lean six sigma
An introduction to lean six sigmaAn introduction to lean six sigma
An introduction to lean six sigma
 
小さなチームでも高品質なモバイルアプリを作るためのテスト戦略
小さなチームでも高品質なモバイルアプリを作るためのテスト戦略小さなチームでも高品質なモバイルアプリを作るためのテスト戦略
小さなチームでも高品質なモバイルアプリを作るためのテスト戦略
 
Gas Plant, Dryer and Generator by Atmos Power Pvt Ltd, Ahmedabad
Gas Plant, Dryer and Generator by Atmos Power Pvt Ltd, AhmedabadGas Plant, Dryer and Generator by Atmos Power Pvt Ltd, Ahmedabad
Gas Plant, Dryer and Generator by Atmos Power Pvt Ltd, Ahmedabad
 
Pitch v2.2
Pitch v2.2Pitch v2.2
Pitch v2.2
 
Unit-7.pdf
Unit-7.pdfUnit-7.pdf
Unit-7.pdf
 
Automation Benefits PowerPoint Presentation Slides
Automation Benefits PowerPoint Presentation SlidesAutomation Benefits PowerPoint Presentation Slides
Automation Benefits PowerPoint Presentation Slides
 
Productivity.pdf
Productivity.pdfProductivity.pdf
Productivity.pdf
 

Mehr von OptiRisk India

Liability driven investment asset liability management optimisation
Liability driven investment asset liability management optimisationLiability driven investment asset liability management optimisation
Liability driven investment asset liability management optimisationOptiRisk India
 
Optimization Automation in Supply Chain
Optimization Automation in Supply ChainOptimization Automation in Supply Chain
Optimization Automation in Supply ChainOptiRisk India
 
Optirisk corporate presentation
Optirisk corporate presentation Optirisk corporate presentation
Optirisk corporate presentation OptiRisk India
 
Leveraging technology in supply chain logistica12
Leveraging technology in supply chain logistica12Leveraging technology in supply chain logistica12
Leveraging technology in supply chain logistica12OptiRisk India
 
Transportation planner scheduler optimization optirisk
Transportation planner scheduler optimization optiriskTransportation planner scheduler optimization optirisk
Transportation planner scheduler optimization optiriskOptiRisk India
 
Logistics optimization
Logistics optimizationLogistics optimization
Logistics optimizationOptiRisk India
 

Mehr von OptiRisk India (6)

Liability driven investment asset liability management optimisation
Liability driven investment asset liability management optimisationLiability driven investment asset liability management optimisation
Liability driven investment asset liability management optimisation
 
Optimization Automation in Supply Chain
Optimization Automation in Supply ChainOptimization Automation in Supply Chain
Optimization Automation in Supply Chain
 
Optirisk corporate presentation
Optirisk corporate presentation Optirisk corporate presentation
Optirisk corporate presentation
 
Leveraging technology in supply chain logistica12
Leveraging technology in supply chain logistica12Leveraging technology in supply chain logistica12
Leveraging technology in supply chain logistica12
 
Transportation planner scheduler optimization optirisk
Transportation planner scheduler optimization optiriskTransportation planner scheduler optimization optirisk
Transportation planner scheduler optimization optirisk
 
Logistics optimization
Logistics optimizationLogistics optimization
Logistics optimization
 

Kürzlich hochgeladen

Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with CultureSeta Wicaksana
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Serviceritikaroy0888
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Dave Litwiller
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMRavindra Nath Shukla
 
John Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfJohn Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfAmzadHosen3
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...lizamodels9
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfAdmir Softic
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communicationskarancommunications
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayNZSG
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataExhibitors Data
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxAndy Lambert
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfPaul Menig
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Roland Driesen
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 

Kürzlich hochgeladen (20)

Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSM
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
John Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfJohn Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdf
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Forklift Operations: Safety through Cartoons
Forklift Operations: Safety through CartoonsForklift Operations: Safety through Cartoons
Forklift Operations: Safety through Cartoons
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptx
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 

Product Mix Optimization Case Study - OPL/ CPLEX Code

  • 1. © 2013 OptiRisk India (P) Ltd, All rights reserved Bala. Padmakumar Director & CEO OptiRisk India Ph: +91 98406 18472/ +91 44 4501 8472 Web: http://www.optiriskindia.com Email : optimize@optiriskindia.com
  • 2. 2© 2013 OptiRisk India (P) Ltd, All rights reserved XYZ Chemical Ltd manufactures three chemicals, namely CH-A, CH-B, and CH-C. All three chemicals have to go through three processes namely MIXING, CONVERSION, and BAGGING. Each process has finite daily capacity, which are given in the below table. Each chemical requires different processing time, which are also given in the below table. Process Production minutes per Kg of product Capacity of production in minutes per dayCH-A CH-B CH-C MIXING CONVERSION BAGGING 2 3 1 2 1 4 1 1 0 400 450 390 Contribution /Kg Rs. 30 Rs. 55 Rs. 23 The company can sell whatever it produces (there is no constraint on demand). The company’s management wants to find out how much of each chemical it should produce to maximize the contribution (profit).
  • 3. 3© 2013 OptiRisk India (P) Ltd, All rights reserved Decision Variables: = Number of Kgs of chemical p produced each day. p = 1, …, P = Number of minutes per day available at process s. ConstraintsConstraints px Constraints: sC = Number of minutes required by product p at production stage s. s = 1, …, S   = Profit per unit of product p Parameters: psa , pv Objective Function: z = Maximize total daily profit
  • 4. 4© 2013 OptiRisk India (P) Ltd, All rights reserved ∑= P p pp xv 1 ∑= ≤ P p spps Cxa 1 , 0≥px for p = 1, …, P=Max num of products for s = 1, …, S=Max num of processes Subject to: Maximize z = Objective function Maximize total contribution (profit) Constraint Process Capacity Constraints Non negativity Constraint Production quantity must be non negative
  • 5. 5© 2013 OptiRisk India (P) Ltd, All rights reserved Subject to: Maximize z = Objective function Maximize total contribution(profit) Constraint Process Capacity Constraints Non negativity Constraint Production quantity must be non negative 321 22 xxx ++ 3213 xxx ++ 21 4xx + 0,0,0 321 ≥≥≥ xxx 321 235530 xxx ++ ≤ 400 ≤ 450 ≤ 390
  • 6. Objective function Maximize Contribution 6© 2013 OptiRisk India (P) Ltd, All rights reserved /********************************************* * OPL 12.5 Model * Author: OptiRisk * Creation Date: 27-Aug-2013 at 10:02:32 AM *********************************************/ // Input - indices {string} Chemicals = ...; {string} Processes = ...; // Input parameters float Capacity[Processes] = ...; float ProcessTime[Chemicals][Processes] = ...; float Contribution[Chemicals] = ...; // Decision Variable // Production Quantity of each Chemical dvar float+ ChemicalQty[Chemicals]; // Objective Function // Maximize total contribution maximize sum( p in Chemicals ) Contribution[p] * ChemicalQty[p]; Input Parameters Decision Variables
  • 7. Post Processing Print Results Constraint Capacity Constraint // Constraints // 1. Capacity Constraints subject to { forall( s in Processes ) ctCapacity: sum( p in Chemicals ) ProcessTime[p][s] * ChemicalQty[p] <= Capacity[s]; } // Post processing to print results. execute { writeln("Maximum Contribution Possible = Rs. ", cplex.getObjValue()); writeln("n----- RESULT: Optimal Product Mix---------"); // Print the optimal product quantities. for( var p in Chemicals){ writeln(p, " ---> ", ChemicalQty[p], " Kgs"); } writeln("n---- END: Optimal Product Mix-------------"); } 7© 2013 OptiRisk India (P) Ltd, All rights reserved
  • 8. Input Data Parameters Index /********************************************* * OPL 12.5 Data * Author: OptiRisk * Creation Date: 27-Aug-2013 at 10:02:32 AM *********************************************/ Chemicals = {"CH-A","CH-B","CH-C"}; Processes = {"MIXING", "CONVERSION", "BAGGING"}; // Capacity in minutes of each process Capacity = [400, 450, 390]; // Processing time for each chemical, for every process ProcessTime = [[2,3,1],[2,1,4],[1,1,0]]; // Contribution (profit) for each chemical Contribution = [30, 55, 23]; 8© 2013 OptiRisk India (P) Ltd, All rights reserved
  • 9. 9© 2013 OptiRisk India (P) Ltd, All rights reserved // solution (optimal) with objective 10077.5 Maximum Contribution Possible = Rs. 10077.5 ----------- RESULT: Optimal Product Mix--------- CH-A ---> 0 Kgs CH-B ---> 97.5 Kgs CH-C ---> 205 Kgs ----------- END: Optimal Product Mix------------- // solution (optimal) with objective 10077.5 Maximum Contribution Possible = Rs. 10077.5 ----------- RESULT: Optimal Product Mix--------- CH-A ---> 0 Kgs CH-B ---> 97.5 Kgs CH-C ---> 205 Kgs ----------- END: Optimal Product Mix-------------
  • 10. 10© 2013 OptiRisk India (P) Ltd, All rights reserved Model Code ResultsDebug Project Explorer
  • 11. Asia Pacific, Africa, Australia & Middle East: Europe & America: No 12, 25th Cross Street Thiruvalluvar Nagar , Thiruvanmiyur, Chennai –600041, India OptiRisk R&D House, One Oxford, Uxbridge, Middlesex, UB9 4DA, United Kingdom Bala. Padmakumar Ph: +91 98406 18472 / +91 44 4501 8472 Email: optimize@optiriskindia.com Web: http://www.optiriskindia.com/ 11© 2013 OptiRisk India (P) Ltd, All rights reserved Development Center: Corporate Head Quarters: No 1/4 , Justice Dwarkanath Road, Kolkata - 700020, India.

Hinweis der Redaktion

  1. Add this  Conference on “ Warehousing &amp; Cold Chain Infrastructure” 28 June 2013, Hotel Hilton, Chennai