Yesterday, 08:51 PM
The current auto production system only references last month's sales, which can easily cause inventory to spiral out of control when demand fluctuates. Here is a suggestion for improving the automatic production system:
Take the average of the actual deliveries from the previous three months, denoted as A.
The player can set a target inventory coverage in months, C (for example, C = 0.5 means the system will try to keep inventory at around half a month's worth of sales).
At the beginning of each month, read the current inventory, denoted as B.
The formula for this month's planned production P is:
P = A + (C × A − B)
Then constrain P to be between 0 and the maximum production capacity.
In this way, when inventory exceeds the target, production is automatically reduced; when inventory is insufficient, production is automatically increased. This avoids both inventory buildup and stockouts without needing to know the current month's orders in advance.
Take the average of the actual deliveries from the previous three months, denoted as A.
The player can set a target inventory coverage in months, C (for example, C = 0.5 means the system will try to keep inventory at around half a month's worth of sales).
At the beginning of each month, read the current inventory, denoted as B.
The formula for this month's planned production P is:
P = A + (C × A − B)
Then constrain P to be between 0 and the maximum production capacity.
In this way, when inventory exceeds the target, production is automatically reduced; when inventory is insufficient, production is automatically increased. This avoids both inventory buildup and stockouts without needing to know the current month's orders in advance.

