-
Notifications
You must be signed in to change notification settings - Fork 47
Prices
Prices in game aren't fixed, instead prices are recalculated each tick to simulate free market prices. Price recalculated according to https://en.wikipedia.org/wiki/Economic_equilibrium, basing on Demand and Supply. Specifically, price goes up if Demand/Supply relation >= 0.95, price goes down if Demand/Supply relation <= 0.8 (see Notes). There is no that annoying x5 price limit like in Victoria 2 game, but there are technical limits 0.001 and 999.
Demand calculated as amount of buying that product last tick.
Supply calculated as amount of product sent to market last tick.
Implementation would be more realistic if price would go up then Demand/Supply relation > 1 and go down when Demand/Supply relation < 1 but I use 0.95 and 0.8 coefficients to help economy be more stable (by bigger overproducing).
Note that when price goes up it stimulates agents to produce more of that product and consume less of that product (agents consume cheap products first, allowing bigger consumption). When price goes down it stimulates agent to produce less of that product (less profitable) and consume more of that product. By this could be achieved more efficient satisfaction of society's needs.
Non-market consumption and production does not influence prices (for example, tribesmen don't sell their Cattle, but eat it themself).