If (I know that it is unrealistic) the amount of input a factory seeks to buy each day (after day one) is the one that it would have been required to build the goods it sold the previous day, wouldn't that partially solve the problem?
On day one, a factory gets a "free ride" (it can build products without needing resources). It builds x amount of goods.
1. If it manages to sell all produced goods (and make a profit), next day it tries to buy the input needed to build x+a goods ("a" could be a percentage of x or a set number). The resources that are needed to build (x+a) are the limit that the factory is allowed to purchase, but the actual amount can be lower (because of insufficient money or insufficient available raw materials). If it has the money to buy the resources needed, it again produces (x+a goods). If all (x+a) are sold, next day it goes out to buy the input required to build (x+a)+a goods. So, until the product's supply meets demand (plus the factory makes a profit so it is actually able to buy the required resources), the factory keeps increasing its input and output (or at least it tries to do so).
2.If it sells y<x, next day it sets out to buy the input required to build y goods.
The result would be that fewer products are left unsold, and less resources go down the drain.
It is QUITE possible that i am missing some important parameter. I just wanted to post my idea.
On day one, a factory gets a "free ride" (it can build products without needing resources). It builds x amount of goods.
1. If it manages to sell all produced goods (and make a profit), next day it tries to buy the input needed to build x+a goods ("a" could be a percentage of x or a set number). The resources that are needed to build (x+a) are the limit that the factory is allowed to purchase, but the actual amount can be lower (because of insufficient money or insufficient available raw materials). If it has the money to buy the resources needed, it again produces (x+a goods). If all (x+a) are sold, next day it goes out to buy the input required to build (x+a)+a goods. So, until the product's supply meets demand (plus the factory makes a profit so it is actually able to buy the required resources), the factory keeps increasing its input and output (or at least it tries to do so).
2.If it sells y<x, next day it sets out to buy the input required to build y goods.
The result would be that fewer products are left unsold, and less resources go down the drain.
It is QUITE possible that i am missing some important parameter. I just wanted to post my idea.