Initializing help system before first use

Mathematical formulation

Multi-period, multi-item production planning problem

Let PRODS be the set of products (glass types) and WEEKS = {1,...,NT} the set of time periods. We write DEMpt for the demand for product p in time period t. We also have CPRODp and CSTOCKp the production and storage cost for glass type p. This cost is identical for all time periods, but it would be easy to model a different cost per time period by adding an index for the time period.

TIMEWp and TIMEMp denote the worker and machine times respectively required per unit of product p, and correspondingly, SPACEp the storage area. The initial stock ISTOCKp is given, as is the desired final stock level FSTOCKp per product (see data in Table Data for six glass types). We write CAPW and CAPM for the capacities of workers and machines respectively, and CAPS for the capacity of the storage area.

To solve this problem, we need variables producept to represent the production of glass type p in time period t. The variables corresponding to the stock level of every product p at the end of period t are called storept. By convention, the initial stock level ISTOCKp may be considered as the stock level at the end of time period 0 and we use the notation storep0 to simplify the formulation of the stock balance constraints:

∀p ∈ PRODS, t ∈ WEEKS: storept = storep,t-1 + producept - DEMpt

These stock balance constraints state that the quantity storept of product that is held in stock at the end of a time period t equals the stock level storep,t-1 at the end of the preceding period plus the production producept of the time period t minus the demand DEMpt of this time period.

We wish to have a certain amount of product in stock at the end of the planning period to avoid that stocks run down to zero at the end of the planning horizon. These constraints on the final stock levels are expressed by the constraints:

∀p ∈ PRODS: storep,NT ≥ FSTOCKp

We now formulate the various capacity constraints for every time period. The following constraints guarantee that the capacity limits on manpower, machine time, and storage space are kept:

∀t ∈ WEEKS: p ∈ PRODS TIMEWp · producept ≤ CAPW
∀t ∈ WEEKS: p ∈ PRODS TIMEMp · producept ≤ CAPM
∀t ∈ WEEKS: p ∈ PRODS SPACEp · producept ≤ CAPS

The cost function that is to be minimized is the sum of production and storage costs for all products and time periods.

min p ∈ PRODS t ∈ WEEKS ( CPRODp · producept + CSTOREp · storept )

We obtain the complete mathematical model by the non-negativity constraints for the production variables and for the stored quantities to the constraints described above.

min p ∈PRODS t ∈ WEEKS ( CPRODp · producept + CSTOREp · storept )
s.t. ∀ p ∈ PRODS, t ∈ WEEKS: storept = storep,t-1 + producept - DEMpt
∀ p ∈PRODS: storep,NT ≥ FSTOCKp
∀ t ∈WEEKS: p ∈PRODS TIMEWp · producept ≤ CAPW
∀ t ∈WEEKS: p ∈PRODS TIMEMp · producept ≤ CAPM
∀ t ∈WEEKS: p ∈PRODS SPACEp ·producept ≤ CAPS
∀ p ∈PRODS, t ∈WEEKS: producep,t ≥ 0
∀ p ∈PRODS, t ∈WEEKS: storep,t ≥ 0

Robust optimization problem

Various assumptions behind the mathematical model that we have stated above might be questioned:

  1. Constant resource capacity: availability of personnel most likely will not be constant over time (subject to holidays, training, sick leave etc.) and there is also a risk of scheduled (maintenance) or unscheduled (breakdown) machine outages.
  2. Exact demand quantities are known: demand forecasts typically are estimates, most often resulting from an analysis of historical values.

Workers' absence

The case of machine outage (formulated as k contingencies) is studied in Sections Production planning under energy supply uncertainty and Robust unit commitment of this whitepaper. Let us therefore here take a look at how we might capture the uncertainty in the availability of personnel.

Let ABSENCEt be a maximum limit on the absence hours per time period t (the actual absence will take at most this value), and we also know by experience what is the average absence over a longer period of time (expressed as a percentage A of the total worker hours). We introduce uncertains absentt to represent the actual absence hours per time period. The worker capacity constraints from the original model are then replaced by the following:

∀ t ∈WEEKS: p ∈PRODS TIMEWp · producept ≤ CAPW - absentt
absent ∈ Uabsent

where the polyhedral uncertainty set Uabsent is characterized by

Uabsent = {absent : t ∈WEEKS absentt ≤ A·CAPW·|WEEKS|,
    0 ≤ absentt ≤ ABSENCEt ∀ t ∈WEEKS}

Demand scenarios

For a robust formulation of the demand, assume that we have got a number of different scenarios—obtained from historical data for comparable periods or possibly resulting from different forecasting methodologies—that describe the space of possible realizations of demand. In the place of the fixed demand quantities DEMpt we now work with uncertain quantities demandpt that are determined by the demand scenario data SCENDEMspt for a given set of scenarios s∈SCEN. The demand s included in the original model formulation via the stock balance constraints.

∀p ∈ PRODS, t ∈ WEEKS: storept = storep,t-1 + producept - DEMpt

A naive 'robustification' might attempt to simply replace the fixed demand quantities by the uncertains demandpt. However, this approach would not lead to the desired result: by introducing a single uncertain quantity in an equality constraint we do not leave any room for different realizations of the uncertain. We therefore now work with the following two sets of inequalities in the place of the stock balance constraints.

∀p ∈ PRODS, t ∈ WEEKS: storept ≤ storep,t-1 + producept - demandpt
∀p ∈ PRODS, t ∈ WEEKS: storept ≥ storep,t-1 + producept - maxs∈SCEN SCENDEMpt

The first of these inequalities states that the demand must be satisfied from the production in a period and the difference between stock levels at the beginning and end of the period, which can be more easily seen in this transformed version of the inequality:

demandpt ≤ storep,t-1 + producept - storept

The second inequality forces the final stock per period to be at least what remains after satisfying the largest possible demand.

© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.