SlideShare a Scribd company logo
How to determine demand Centers-of-Gravity
in order to minimize transport costs when designing a supply chain network
Visual explanation, algorithms, and free online tool
Where to locate warehouses in order to minimize transport costs, given the geographical customer
locations and their demand quantities?
Here? Or there?
Answer: locate them in demand Centers-of-Gravity.
• Demand Centers-of-Gravity (CoG) are those locations that minimize the sum of weighted
distances, used as transport costs indicator. Assumption is that transport costs relate to distance.*
• Weighted distance is the distance from CoG to customer multiplied by demand. E.g. if customer A
has a demand of 10 and is located 25 km from its warehouse his weighted distance is 250 km.
Summing over all customers gives the sum of weighted distances.
• This indicator is not to be used as an absolute figure. It just helps to determine warehouse
positions that make sense from a transport costs perspective. But it can be used to calculate
relative transport-cost-scores of different warehouse locations.
* May not be true, e.g. in case of parcel deliveries
Transport costs & demand Centers-of-Gravity
Key points
1. Though the goal value is sum of weighted distances, distances are irrelevant when figuring out in
what direction to move the CoG. The overall demand force is leading. In the example it has a
length of 9 and points towards customer A.
2. The overall demand force points the right direction, but does not tell how far to move the CoG.
* Strictly speaking, a CoG can not move, as it is this specific location that comes with a minimal goal value.
Introduction to the single CoG algorithm
A BCOG?
A BCoG!
A BCOG?
Customer A has a demand of 10 and customer
B a demand of 1, where is the CoG?
Somewhere on line A-B, closer to A?
Well, customer A pulls 10 times harder than
customer B.
If moved towards A over a distance d the
sum of weighted distances goal value lowers
(10 x d) – (1 x d).
So, the CoG is right on top of customer A!*
+ = =
This far?
Or this far?
The single CoG algorithm visualized
How about multiple customers? How does that work? This will be shown by a graphical simulation.
Before running it, let’s explain what you will see.
• Customers: colored circles with a size
that reflects the demand quantity.
• Current CoG: small red circle.
• Demand forces: arrows towards
customers. Each customer ‘pulls’. The
higher the demand, the longer the
arrow.
• Next CoG to be tested: red circle at
the end of the black arrow.
• Demand forces linked as a ‘path’ starting from the CoG.
• This gives the overall demand force: it starts at the CoG and
finishes at the end of the ‘path’. It is shown as a red arrow.
• Moving the CoG in the direction of the red arrow lowers the goal
value. But the distance to move is unclear. Taking tiny steps would
take long. So start with a big step. If the CoG would step too far –
i.e. goal value would increase – do not move, cut the step size in
half, test again, until the step size is OK, then move the CoG.
• Step size is shown as a grey circle, final move as a black arrow. The
next CoG to be tested is at the end of this arrow.
• If the CoG moves, directions of demand forces change. So the
above procedure is run iteratively.
Let’ start the simulation!
The single Center-of-Gravity algorithm on a flat plane
Goal value = ∑i Di.Qi
where
Qi is the demand of customer i
Di is the distance between customer i and the warehouse this customer is assigned to.
The CoG is initially positioned at:
X_cog = ∑i Xi .Qi / ∑i Qi
Y_cog = ∑i Yi .Qi / ∑i Qi
where
Xi = x-coordinate of customer i
Yi = y-coordinate of customer i
Qi = Demand quantity of customer i
This inital CoG is often presented as optimal, but this is not true!
Imagine there are only two customers, customer A with demand 10 at position (0 , 0) and customer B with demand
1 at position (100 , 0). The initial CoG is at (9.09 , 0) with a goal value of (9.09x10+90.91x1) =181.81. The optimal
CoG is on top of customer A, with a goal value of 0x10+100x1=100. In the simulation with multiple customers the
optimal position scored 7.85% better (another simulation run will give other outcomes).
Though the goal function contains distances, these are irrelevant when determining the optimal CoG.
To optimize 'demand forces' pulling the CoG need to be calculated:
• Force in x-direction = ∑i (Qi.(X_cog − Xi)/Di) or ∑i (Qi.cosinus(anglei)).
• Force in y-direction = ∑i (Qi.(Y_cog − Yi)/Di) or ∑i (Qi.sinus(anglei)).
The single Center-of-Gravity algorithm on Earth
The 'geographical translation' of the previous slide:
• Xi = longitude, Yi = latitude (both expressed in radians when used in formula)
• Di = as-the-crow-flies-distance, i.e. shortest distance over the earth's surface.
Calculated using the Haversine formula:
• a = sinus2((latitudei - latitude_cog) /2) + cos(latitude_cog).cos(latitudei).sinus2( (longitudei -
longitude_cog) /2)
• c = 2.atan2(√a, √(1-a))
• Di = 6371.c (6,371 km is Earth's mean radius)
• anglei = spherical angle, called bearing, calculated as
• Bearingi = atan2( sinus(longitudei - longitude_cog).cosinus(latitudei) ,
cosinus(latitude_cog).sinus(latitudei) - sinus(latitude_cog).cosinus(latitudei).cosinus(lontitudei -
longitude_cog)
• Because bearing compares to an angle between a line and the Y-axis, instead of X-axis:
• Force in longitude-direction = Flon = ∑i (Qi.sinus(bearingi))
• Force in latitude-direction = Flat = ∑i (Qi.cosinus(bearingi))
• Normalize by dividing by the length of this F-vector, then multiply with step size.
Algorithm
Step 1: Locate CoG at its initial position (apply the formula), and initialize step_distance at 100km
Repeat
Step 2: Update latitudecog to latitudecog + Flat / √(Flat.Flat +Flon.Flon) .step_distance
Update longitudecog to longitudecog + Flon / √(Flat.Flat +Flon.Flon) .step_distance
Step 3: Calculate the goal value. If it increased (would increase), then step_distance becomes
step_distance/2, and move back to the previous position.
until step_distance is smaller than 1 meter.
The multiple Centers-of-Gravity algorithm
Apply
single-CoG
algorithm
Step 1. Locate warehouses at a randomly selected customer location
Repeat
Step 2. (Re)assign customers to the closest warehouse
Step 3. Locate each warehouse in the CoG given its customers
until the goal value did not improve
(this happens as soon as no customer shifted to another warehouse in step 2)
Note: steps 2 and 3 can never result in an increased goal value.
Enjoy our free tool at www.stellingconsulting.nl
Final remarks
Enjoy our free tool at www.stellingconsulting.nl
• If - for example - you know beforehand you will operate a warehouse in the UK, then split data into
'UK data set' and 'mainland Europe data set' and run the model for both sets separately.
• Outcomes may vary, due to initial random locations. Run several times to check if a solution
reappears and/or to see alternatives. (By the way, CoG may end up in the middle of the sea.)
• In supply chain network design, the optimal number of warehouses and locations is driven by
many quantitative and qualitative factors, like transport costs, buildings costs, labour costs,
inventories, tax, demand growth, supply chain risk, lead time requirements, and law (e.g. medical
industry: in some countries law forbids to serve customers from a warehouse outside the country).
• In supply chain network design, total costs is key, not transportation costs only (though they may
be the major part). Network design software minimizes total costs (or optimizes profit) respecting
all constraints with mathematical precision. But most likely you will feed it with all sorts of
assumptions about demand growth, tariffs for future transport lanes, warehouse costs for
locations somewhere else, etc.
• Nevertheless, a CoG-analysis is commonly done in supply chain network design studies, as CoG
give a first indication what warehouse locations to consider. The demand map itself is used to
validate shipment or sales data anyway. Having the data already, it is easy to run the CoG-tool.

More Related Content

What's hot

1.introduction of production and operations management
1.introduction of production and operations management1.introduction of production and operations management
1.introduction of production and operations management
Akash Bakshi
 

What's hot (20)

Facility location planning
Facility location planningFacility location planning
Facility location planning
 
SPC (Statistical Process Control) concepts in forecasting
SPC (Statistical Process Control) concepts in forecastingSPC (Statistical Process Control) concepts in forecasting
SPC (Statistical Process Control) concepts in forecasting
 
Humanitarian Logistics
Humanitarian LogisticsHumanitarian Logistics
Humanitarian Logistics
 
Logistics management
Logistics management Logistics management
Logistics management
 
Using binary integer linear programming to deal with yes no decisions.
Using binary integer linear programming to deal with yes no decisions.Using binary integer linear programming to deal with yes no decisions.
Using binary integer linear programming to deal with yes no decisions.
 
Mba ii pmom_unit-2.2 facility location a
Mba ii pmom_unit-2.2 facility location aMba ii pmom_unit-2.2 facility location a
Mba ii pmom_unit-2.2 facility location a
 
Facility location selection
Facility location selectionFacility location selection
Facility location selection
 
Process analysis
Process analysisProcess analysis
Process analysis
 
Supply Chain Cost-Cutting Strategies
Supply Chain Cost-Cutting StrategiesSupply Chain Cost-Cutting Strategies
Supply Chain Cost-Cutting Strategies
 
Unit 1 materials management
Unit 1 materials managementUnit 1 materials management
Unit 1 materials management
 
Inventory 1.1
Inventory 1.1Inventory 1.1
Inventory 1.1
 
1.introduction of production and operations management
1.introduction of production and operations management1.introduction of production and operations management
1.introduction of production and operations management
 
Economic Order Quantity Models
Economic Order Quantity ModelsEconomic Order Quantity Models
Economic Order Quantity Models
 
Warehouse location
Warehouse locationWarehouse location
Warehouse location
 
Selective inventory control
Selective inventory controlSelective inventory control
Selective inventory control
 
Store Management
Store ManagementStore Management
Store Management
 
Designing & managing : Integrated marketing channels
Designing & managing : Integrated marketing channels Designing & managing : Integrated marketing channels
Designing & managing : Integrated marketing channels
 
Logistic services marketing
Logistic services marketingLogistic services marketing
Logistic services marketing
 
Warehouse Management
Warehouse Management Warehouse Management
Warehouse Management
 
4. linear programming using excel solver
4. linear programming using excel solver4. linear programming using excel solver
4. linear programming using excel solver
 

Viewers also liked

Facility location and layout planning
Facility location and layout planningFacility location and layout planning
Facility location and layout planning
Birodh Adhikari
 
Centre of gravity segmental method
Centre of gravity   segmental methodCentre of gravity   segmental method
Centre of gravity segmental method
craigjohnharris
 
Operations management location strategies (lecture)
Operations management location strategies  (lecture)Operations management location strategies  (lecture)
Operations management location strategies (lecture)
Jun Gonzales
 
Supply chain managements
Supply chain managementsSupply chain managements
Supply chain managements
Sarwat Shabbir
 
Data envelopment analysis
Data envelopment analysisData envelopment analysis
Data envelopment analysis
Ajit Kumar Ray
 
Data Envelopment Analysis
Data Envelopment AnalysisData Envelopment Analysis
Data Envelopment Analysis
Anna Rellama
 
Apple incorporation
Apple incorporationApple incorporation
Apple incorporation
Sk Hassan
 
Apple operations management
Apple operations managementApple operations management
Apple operations management
SripRiya Iduri
 
cycle time, normal time and standard allowance
cycle time, normal time and standard allowancecycle time, normal time and standard allowance
cycle time, normal time and standard allowance
Pratibha Khemchandani
 

Viewers also liked (20)

Facility location and layout planning
Facility location and layout planningFacility location and layout planning
Facility location and layout planning
 
Locating Facilities
Locating FacilitiesLocating Facilities
Locating Facilities
 
Centre of gravity segmental method
Centre of gravity   segmental methodCentre of gravity   segmental method
Centre of gravity segmental method
 
Location models
Location modelsLocation models
Location models
 
Operations management location strategies (lecture)
Operations management location strategies  (lecture)Operations management location strategies  (lecture)
Operations management location strategies (lecture)
 
Facility layout ppt
Facility layout pptFacility layout ppt
Facility layout ppt
 
Location Strategy
Location StrategyLocation Strategy
Location Strategy
 
recursos de internet
recursos de internetrecursos de internet
recursos de internet
 
Plant location
Plant locationPlant location
Plant location
 
Supply chain managements
Supply chain managementsSupply chain managements
Supply chain managements
 
Data envelopment analysis
Data envelopment analysisData envelopment analysis
Data envelopment analysis
 
LINEAR PROGRAMMING Assignment help
LINEAR PROGRAMMING Assignment helpLINEAR PROGRAMMING Assignment help
LINEAR PROGRAMMING Assignment help
 
Data Envelopment Analysis
Data Envelopment AnalysisData Envelopment Analysis
Data Envelopment Analysis
 
Apple incorporation
Apple incorporationApple incorporation
Apple incorporation
 
Location model smm
Location model smmLocation model smm
Location model smm
 
Facility location
Facility locationFacility location
Facility location
 
Apple operations management
Apple operations managementApple operations management
Apple operations management
 
Center of gravity
Center of gravityCenter of gravity
Center of gravity
 
cycle time, normal time and standard allowance
cycle time, normal time and standard allowancecycle time, normal time and standard allowance
cycle time, normal time and standard allowance
 
facility location and planning layout
facility location and planning layoutfacility location and planning layout
facility location and planning layout
 

Similar to How to determine demand Centers-of-Gravity

A feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problemA feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problem
Cem Recai Çırak
 
Submit complete solutions to the following problems to your instru.docx
Submit complete solutions to the following problems to your instru.docxSubmit complete solutions to the following problems to your instru.docx
Submit complete solutions to the following problems to your instru.docx
mattinsonjanel
 
Facilitylocation
FacilitylocationFacilitylocation
Facilitylocation
ajithsrc
 
Operations Research and Mathematical Modeling
Operations Research and Mathematical ModelingOperations Research and Mathematical Modeling
Operations Research and Mathematical Modeling
Vinodh Soundarajan
 

Similar to How to determine demand Centers-of-Gravity (20)

A feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problemA feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problem
 
Case Study : White Goods
Case Study : White GoodsCase Study : White Goods
Case Study : White Goods
 
Clustering - Machine Learning Techniques
Clustering - Machine Learning TechniquesClustering - Machine Learning Techniques
Clustering - Machine Learning Techniques
 
Operation Research Techniques in Transportation
Operation Research Techniques in Transportation Operation Research Techniques in Transportation
Operation Research Techniques in Transportation
 
A Dynamic Logistic Dispatching System With Set-Based Particle Swarm Optimization
A Dynamic Logistic Dispatching System With Set-Based Particle Swarm OptimizationA Dynamic Logistic Dispatching System With Set-Based Particle Swarm Optimization
A Dynamic Logistic Dispatching System With Set-Based Particle Swarm Optimization
 
robotaxi2023.pdf
robotaxi2023.pdfrobotaxi2023.pdf
robotaxi2023.pdf
 
Optimal Decision Making - Cost Reduction in Logistics
Optimal Decision Making - Cost Reduction in LogisticsOptimal Decision Making - Cost Reduction in Logistics
Optimal Decision Making - Cost Reduction in Logistics
 
Dispatching taxi cabs with passenger pool
Dispatching taxi cabs with passenger poolDispatching taxi cabs with passenger pool
Dispatching taxi cabs with passenger pool
 
Submit complete solutions to the following problems to your instru.docx
Submit complete solutions to the following problems to your instru.docxSubmit complete solutions to the following problems to your instru.docx
Submit complete solutions to the following problems to your instru.docx
 
Ballou13
Ballou13Ballou13
Ballou13
 
Facilitylocation
FacilitylocationFacilitylocation
Facilitylocation
 
Operations Research Project
Operations Research ProjectOperations Research Project
Operations Research Project
 
NMIT-SUPPLY-CHAIN-MANAGEMENT-Lesson4
NMIT-SUPPLY-CHAIN-MANAGEMENT-Lesson4NMIT-SUPPLY-CHAIN-MANAGEMENT-Lesson4
NMIT-SUPPLY-CHAIN-MANAGEMENT-Lesson4
 
MULTI-OBJECTIVE ANALYSIS OF INTEGRATED SUPPLY CHAIN PROBLEM
MULTI-OBJECTIVE ANALYSIS OF INTEGRATED SUPPLY CHAIN PROBLEMMULTI-OBJECTIVE ANALYSIS OF INTEGRATED SUPPLY CHAIN PROBLEM
MULTI-OBJECTIVE ANALYSIS OF INTEGRATED SUPPLY CHAIN PROBLEM
 
Production & Operation Management Chapter25[1]
Production & Operation Management Chapter25[1]Production & Operation Management Chapter25[1]
Production & Operation Management Chapter25[1]
 
Case Study for Plant Layout :: A modern analysis
Case Study for Plant Layout :: A modern analysisCase Study for Plant Layout :: A modern analysis
Case Study for Plant Layout :: A modern analysis
 
Operations Research and Mathematical Modeling
Operations Research and Mathematical ModelingOperations Research and Mathematical Modeling
Operations Research and Mathematical Modeling
 
SKIM at Sawtooth Software Conference 2013: ACBC Revisited
SKIM at Sawtooth Software Conference 2013: ACBC RevisitedSKIM at Sawtooth Software Conference 2013: ACBC Revisited
SKIM at Sawtooth Software Conference 2013: ACBC Revisited
 
Two marks with answers ME6501 CAD
Two marks with answers ME6501 CADTwo marks with answers ME6501 CAD
Two marks with answers ME6501 CAD
 
Natural Reso cha 3-1.pptx
Natural Reso cha 3-1.pptxNatural Reso cha 3-1.pptx
Natural Reso cha 3-1.pptx
 

Recently uploaded

20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
tjcomstrang
 
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBdCree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
creerey
 
Sustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & EconomySustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & Economy
Operational Excellence Consulting
 
Memorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.pptMemorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.ppt
seri bangash
 
Communicative rationality and the evolution of business ethics: corporate soc...
Communicative rationality and the evolution of business ethics: corporate soc...Communicative rationality and the evolution of business ethics: corporate soc...
Communicative rationality and the evolution of business ethics: corporate soc...
BOHR International Journal of Business Ethics and Corporate Governance
 

Recently uploaded (20)

Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111
 
Cracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptxCracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptx
 
Meaningful Technology for Humans: How Strategy Helps to Deliver Real Value fo...
Meaningful Technology for Humans: How Strategy Helps to Deliver Real Value fo...Meaningful Technology for Humans: How Strategy Helps to Deliver Real Value fo...
Meaningful Technology for Humans: How Strategy Helps to Deliver Real Value fo...
 
12 Conversion Rate Optimization Strategies for Ecommerce Websites.pdf
12 Conversion Rate Optimization Strategies for Ecommerce Websites.pdf12 Conversion Rate Optimization Strategies for Ecommerce Websites.pdf
12 Conversion Rate Optimization Strategies for Ecommerce Websites.pdf
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
 
Understanding UAE Labour Law: Key Points for Employers and Employees
Understanding UAE Labour Law: Key Points for Employers and EmployeesUnderstanding UAE Labour Law: Key Points for Employers and Employees
Understanding UAE Labour Law: Key Points for Employers and Employees
 
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
 
Digital Transformation in PLM - WHAT and HOW - for distribution.pdf
Digital Transformation in PLM - WHAT and HOW - for distribution.pdfDigital Transformation in PLM - WHAT and HOW - for distribution.pdf
Digital Transformation in PLM - WHAT and HOW - for distribution.pdf
 
HR and Employment law update: May 2024.
HR and Employment law update:  May 2024.HR and Employment law update:  May 2024.
HR and Employment law update: May 2024.
 
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBdCree_Rey_BrandIdentityKit.PDF_PersonalBd
Cree_Rey_BrandIdentityKit.PDF_PersonalBd
 
New Product Development.kjiy7ggbfdsddggo9lo
New Product Development.kjiy7ggbfdsddggo9loNew Product Development.kjiy7ggbfdsddggo9lo
New Product Development.kjiy7ggbfdsddggo9lo
 
Using Generative AI for Content Marketing
Using Generative AI for Content MarketingUsing Generative AI for Content Marketing
Using Generative AI for Content Marketing
 
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-indiafalcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
 
BeMetals Presentation_May_22_2024 .pdf
BeMetals Presentation_May_22_2024   .pdfBeMetals Presentation_May_22_2024   .pdf
BeMetals Presentation_May_22_2024 .pdf
 
Sustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & EconomySustainability: Balancing the Environment, Equity & Economy
Sustainability: Balancing the Environment, Equity & Economy
 
Memorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.pptMemorandum Of Association Constitution of Company.ppt
Memorandum Of Association Constitution of Company.ppt
 
Transforming Max Life Insurance with PMaps Job-Fit Assessments- Case Study
Transforming Max Life Insurance with PMaps Job-Fit Assessments- Case StudyTransforming Max Life Insurance with PMaps Job-Fit Assessments- Case Study
Transforming Max Life Insurance with PMaps Job-Fit Assessments- Case Study
 
Communicative rationality and the evolution of business ethics: corporate soc...
Communicative rationality and the evolution of business ethics: corporate soc...Communicative rationality and the evolution of business ethics: corporate soc...
Communicative rationality and the evolution of business ethics: corporate soc...
 
Filing Your Delaware Franchise Tax A Detailed Guide
Filing Your Delaware Franchise Tax A Detailed GuideFiling Your Delaware Franchise Tax A Detailed Guide
Filing Your Delaware Franchise Tax A Detailed Guide
 

How to determine demand Centers-of-Gravity

  • 1. How to determine demand Centers-of-Gravity in order to minimize transport costs when designing a supply chain network Visual explanation, algorithms, and free online tool
  • 2. Where to locate warehouses in order to minimize transport costs, given the geographical customer locations and their demand quantities? Here? Or there? Answer: locate them in demand Centers-of-Gravity. • Demand Centers-of-Gravity (CoG) are those locations that minimize the sum of weighted distances, used as transport costs indicator. Assumption is that transport costs relate to distance.* • Weighted distance is the distance from CoG to customer multiplied by demand. E.g. if customer A has a demand of 10 and is located 25 km from its warehouse his weighted distance is 250 km. Summing over all customers gives the sum of weighted distances. • This indicator is not to be used as an absolute figure. It just helps to determine warehouse positions that make sense from a transport costs perspective. But it can be used to calculate relative transport-cost-scores of different warehouse locations. * May not be true, e.g. in case of parcel deliveries Transport costs & demand Centers-of-Gravity
  • 3. Key points 1. Though the goal value is sum of weighted distances, distances are irrelevant when figuring out in what direction to move the CoG. The overall demand force is leading. In the example it has a length of 9 and points towards customer A. 2. The overall demand force points the right direction, but does not tell how far to move the CoG. * Strictly speaking, a CoG can not move, as it is this specific location that comes with a minimal goal value. Introduction to the single CoG algorithm A BCOG? A BCoG! A BCOG? Customer A has a demand of 10 and customer B a demand of 1, where is the CoG? Somewhere on line A-B, closer to A? Well, customer A pulls 10 times harder than customer B. If moved towards A over a distance d the sum of weighted distances goal value lowers (10 x d) – (1 x d). So, the CoG is right on top of customer A!* + = = This far? Or this far?
  • 4. The single CoG algorithm visualized How about multiple customers? How does that work? This will be shown by a graphical simulation. Before running it, let’s explain what you will see. • Customers: colored circles with a size that reflects the demand quantity. • Current CoG: small red circle. • Demand forces: arrows towards customers. Each customer ‘pulls’. The higher the demand, the longer the arrow. • Next CoG to be tested: red circle at the end of the black arrow. • Demand forces linked as a ‘path’ starting from the CoG. • This gives the overall demand force: it starts at the CoG and finishes at the end of the ‘path’. It is shown as a red arrow. • Moving the CoG in the direction of the red arrow lowers the goal value. But the distance to move is unclear. Taking tiny steps would take long. So start with a big step. If the CoG would step too far – i.e. goal value would increase – do not move, cut the step size in half, test again, until the step size is OK, then move the CoG. • Step size is shown as a grey circle, final move as a black arrow. The next CoG to be tested is at the end of this arrow. • If the CoG moves, directions of demand forces change. So the above procedure is run iteratively.
  • 5. Let’ start the simulation!
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19. The single Center-of-Gravity algorithm on a flat plane Goal value = ∑i Di.Qi where Qi is the demand of customer i Di is the distance between customer i and the warehouse this customer is assigned to. The CoG is initially positioned at: X_cog = ∑i Xi .Qi / ∑i Qi Y_cog = ∑i Yi .Qi / ∑i Qi where Xi = x-coordinate of customer i Yi = y-coordinate of customer i Qi = Demand quantity of customer i This inital CoG is often presented as optimal, but this is not true! Imagine there are only two customers, customer A with demand 10 at position (0 , 0) and customer B with demand 1 at position (100 , 0). The initial CoG is at (9.09 , 0) with a goal value of (9.09x10+90.91x1) =181.81. The optimal CoG is on top of customer A, with a goal value of 0x10+100x1=100. In the simulation with multiple customers the optimal position scored 7.85% better (another simulation run will give other outcomes). Though the goal function contains distances, these are irrelevant when determining the optimal CoG. To optimize 'demand forces' pulling the CoG need to be calculated: • Force in x-direction = ∑i (Qi.(X_cog − Xi)/Di) or ∑i (Qi.cosinus(anglei)). • Force in y-direction = ∑i (Qi.(Y_cog − Yi)/Di) or ∑i (Qi.sinus(anglei)).
  • 20. The single Center-of-Gravity algorithm on Earth The 'geographical translation' of the previous slide: • Xi = longitude, Yi = latitude (both expressed in radians when used in formula) • Di = as-the-crow-flies-distance, i.e. shortest distance over the earth's surface. Calculated using the Haversine formula: • a = sinus2((latitudei - latitude_cog) /2) + cos(latitude_cog).cos(latitudei).sinus2( (longitudei - longitude_cog) /2) • c = 2.atan2(√a, √(1-a)) • Di = 6371.c (6,371 km is Earth's mean radius) • anglei = spherical angle, called bearing, calculated as • Bearingi = atan2( sinus(longitudei - longitude_cog).cosinus(latitudei) , cosinus(latitude_cog).sinus(latitudei) - sinus(latitude_cog).cosinus(latitudei).cosinus(lontitudei - longitude_cog) • Because bearing compares to an angle between a line and the Y-axis, instead of X-axis: • Force in longitude-direction = Flon = ∑i (Qi.sinus(bearingi)) • Force in latitude-direction = Flat = ∑i (Qi.cosinus(bearingi)) • Normalize by dividing by the length of this F-vector, then multiply with step size. Algorithm Step 1: Locate CoG at its initial position (apply the formula), and initialize step_distance at 100km Repeat Step 2: Update latitudecog to latitudecog + Flat / √(Flat.Flat +Flon.Flon) .step_distance Update longitudecog to longitudecog + Flon / √(Flat.Flat +Flon.Flon) .step_distance Step 3: Calculate the goal value. If it increased (would increase), then step_distance becomes step_distance/2, and move back to the previous position. until step_distance is smaller than 1 meter.
  • 21. The multiple Centers-of-Gravity algorithm Apply single-CoG algorithm Step 1. Locate warehouses at a randomly selected customer location Repeat Step 2. (Re)assign customers to the closest warehouse Step 3. Locate each warehouse in the CoG given its customers until the goal value did not improve (this happens as soon as no customer shifted to another warehouse in step 2) Note: steps 2 and 3 can never result in an increased goal value.
  • 22. Enjoy our free tool at www.stellingconsulting.nl
  • 23. Final remarks Enjoy our free tool at www.stellingconsulting.nl • If - for example - you know beforehand you will operate a warehouse in the UK, then split data into 'UK data set' and 'mainland Europe data set' and run the model for both sets separately. • Outcomes may vary, due to initial random locations. Run several times to check if a solution reappears and/or to see alternatives. (By the way, CoG may end up in the middle of the sea.) • In supply chain network design, the optimal number of warehouses and locations is driven by many quantitative and qualitative factors, like transport costs, buildings costs, labour costs, inventories, tax, demand growth, supply chain risk, lead time requirements, and law (e.g. medical industry: in some countries law forbids to serve customers from a warehouse outside the country). • In supply chain network design, total costs is key, not transportation costs only (though they may be the major part). Network design software minimizes total costs (or optimizes profit) respecting all constraints with mathematical precision. But most likely you will feed it with all sorts of assumptions about demand growth, tariffs for future transport lanes, warehouse costs for locations somewhere else, etc. • Nevertheless, a CoG-analysis is commonly done in supply chain network design studies, as CoG give a first indication what warehouse locations to consider. The demand map itself is used to validate shipment or sales data anyway. Having the data already, it is easy to run the CoG-tool.