wu :: forums
« wu :: forums - supply and demand »

Welcome, Guest. Please Login or Register.
Dec 4th, 2024, 4:24am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: SMQ, ThudnBlunder, Icarus, Grimbal, Eigenray, william wu, towr)
   supply and demand
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: supply and demand  (Read 479 times)
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
supply and demand  
« on: Feb 11th, 2010, 5:05am »
Quote Quote Modify Modify

Suppose you have a graph with at each node some amount of production, a limited storage, and some demand (using up goods). Goods can be moved along the edge from one node to the next each step in time.
 
How can you best optimize the transmission of goods along the network each step, to satisfy demand as quickly as possible?  
 
Also bare in mind that supply and demand can change, so ideally you would want to anticipate, and be able to get goods quickly in new places if there's a sudden increase in demand.
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7527
Re: supply and demand  
« Reply #1 on: Feb 11th, 2010, 5:49am »
Quote Quote Modify Modify

Are production and demand a daily quantity?
 
Do you want to optimize the average time between production and delivery, or the worst delivery time?
 
If you want to anticipate, are production and demand now a function of time?
 
To find a way to satisfy the demand, I would say Ford-Fulkerson.  But to optimize for minimum time, I don't know.
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: supply and demand  
« Reply #2 on: Feb 11th, 2010, 6:42am »
Quote Quote Modify Modify

on Feb 11th, 2010, 5:49am, Grimbal wrote:
Are production and demand a daily quantity?
Yes, but they don't change frequently. So they are constant in most places for long stretches of time.
 
Quote:
Do you want to optimize the average time between production and delivery, or the worst delivery time?
I guess I want to minimize the worst time till the demands are met everywhere (or until we come as close to possible, in case a bottleneck in the network prevents supplying some subgraph adequately). The idea is to get to a steady-state as quickly as possible (provided demands don't change)
The goods are a fungible non-perishable commodity, so delivery time doesn't matter, as long as demand is met.
 
Quote:
If you want to anticipate, are production and demand now a function of time?
Well, basically the problem is that some nodes may at some time in the future have a demand, and you want to be able to meet it asap.
So one simple way, if the network is fairly uniform, would be to ensure (excess) supplies are distributed uniformly around the network (storage allowing). That way you'd have some resilience to meet demand wherever it crops up. But if the network is oddly shaped it's harder to say what would work.
 
Hmm, I just realized that if you have a subnet where all the storage is used, you really need to funnel all excess production away asap, either to places where it will be used or to available storage, otherwise it is just wasted.
 
Quote:
To find a way to satisfy the demand, I would say Ford-Fulkerson.  But to optimize for minimum time, I don't know.
I'll have a look, thanks.
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
inexorable
Full Member
***





   


Posts: 211
Re: supply and demand  
« Reply #3 on: Feb 12th, 2010, 1:19pm »
Quote Quote Modify Modify

You also might want to consider looking at these
 
http://en.wikipedia.org/wiki/Minimum_cost_flow_problem  
 
http://www.topcoder.com/tc?module=Static&d1=tutorials&d2=minimum CostFlow1
 
http://www.topcoder.com/tc?module=Static&d1=tutorials&d2=hungari anAlgorithm
 
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board