Aggregate Planning Problem¶
The Aggregate Planning Problem minimizes the production and holding costs while satisfying the demand of units for each period. The decisions to be made in this problem are how many units to produce in each period. Units that aren’t sold (aka are over the demand) in one period can be held into the next, but with some holding cost per unit. While the holding cost is a single parameter, production costs per unit can vary from period to period.
This main constraints are the conservation of flow constraints, or that the leftover inventory plus the production minus the extra inventory equals the demand for every period. This type of problem can arise in manufacturing or in sales industries.
Definitions¶
Sets¶
Periods
- An ordered set of periods when the units are neededp in Periods
or \(p \in P\)
Parameters¶
Demand
- measure of number of units needed forPeriod p
Demand[p] for p in Periods
or \(D_p \enspace \forall p \in P\)
Cost
- measure of cost of producing one unit withinPeriod p
Cost[p] for p in Periods
or \(C_p \enspace \forall p \in P\)
HoldingCost
- measure of the cost of holding one extra unit from one period to the nextHoldingCost
or \(h\)
MaxStorage
- maximum number of units that can be held over from one period to the nextMaxStorage
or \(m\)
InitialInv
- initial number of units in inventory, before the first period beginsInitialInv
or \(I_I\)
FinalInv
- desired number of units in inventory to end up with, after the last period endsFinalInv
or \(I_F\)
Decision Variables¶
Produce
- number of units to produce inPeriod p
Produce[p] for p in Periods
or \(X_{p} \enspace \forall p \in P\)
InvLevel
- number of units left in inventory at the end ofPeriod p
InvLevel[p] for p in Periods
or \(Y_{p} \enspace \forall p \in P\)
Constraints¶
The conservation of flow constraints enforce the relationships between the production, inventory levels, and the demand for each period. In mathematical terms, these constraints can be represented by
where \(Y_{p-1}\) is defined to be \(I_I\) when \(p\) is the first period.
The amount stored at the end of each period cannot be more than the maximum amount allowed, \(m\).
We define constraints to enforce the definition of \(Y_{p-1}\) when \(p\) is the first period, as well as the last period’s inventory level to be \(I_F\).
The decision variables must be greater than or equal to zero and integer.
API Reference¶
See the corresponding section in the API Library Reference to learn more about how to use the API for this problem class.