Optimization Problem

This page discusses:

Definition

The goal is to find the best set of service times according to the objective function. Thus, KPI is KPITotalCost, which is the KPI that keeps track of the total cost of safety stock.

Formalize the above into the following, mathematically stricter formulation. First is the terminology and then next to it is the mathematics. An example of the computation is then presented in the following section.

  • V - set of stock locations
  • VT​ - set of transportation stock locations
  • A - set of all arcs (connections between stock locations)
  • SS_i - target safety stock at stock location i
  • ST_i - outbound service time at stock location i
  • LB_i - lower bound on service time at stock location i
  • UB_i - upper bound on service time at stock location i
  • PT_i - processing time at stock location i
  • HC_i - per unit holding cost at stock location i
  • \sigma_i - standard deviation of demand at stock location i
  • k_i - fixed parameter dependent on target service level for customer-facing stock location i or z-score value used to define an extreme event for a non-customer-facing stock location i

The mathematical formulation follows:

minimize: \sum_{i \in V} HC_i * SS_i =\sum_{i \in V} HC_i * k_i * \sigma_i * \sqrt{\left[P T_i+\max _{\mathrm{j}:(\mathrm{j}, \mathrm{i}) \in A}\left\{S T_j\right\}-S T_i\right]^{+}}
subject to: ST_i \in [LB_i,UB_i ] \,\,\, \forall i \in V
SS_i = 0 \,\,\, \forall i \in V_T

Examples

This section provides an example of a basic computation in a simple data set based on CarCo. The graph represents the network where there is \phi_{ij}=1 for all arcs.


First, the production stock location does not have a processing time defined. Instead, a throughput of 0.1 Ton/hour is given as an input. This is the processing time:

  • \mathbb{E}[D_2] = 1*\mathbb{E}[D_3] = 1 * 4 + 1*6 = 10
  • PT_2 = \left\lceil\frac{\mathbb{E}\left[D_2\right]}{ 24*throughput_2 }{ }\right\rceil = \left\lceil\frac{10}{ 24*0.1 }{ }\right\rceil = 5

Also, the required service levels of 95% dictate the values for parameter k_i at stock locations 6 and 7. Use the same values for other nodes of the network. Following the assumption of normality, use the z score for 0.05: k_i = 1.64.

Next, compute the standard deviations for all stock locations:

  • \sigma_5 = \sqrt{1 * \sigma_7^2} = \sqrt{1.25^2} = 1.25
  • \sigma_4 = \sqrt{1 * \sigma_6^2} = \sqrt{1.25^2} = 1.25
  • \sigma_3 = \sqrt{1 * \sigma_6^2 + 1 * \sigma_7^2} = \sqrt{1.25^2 + 1.25^2} = 1.77
  • \sigma_2 = \sqrt{1 * \sigma_6^2 + 1 * \sigma_7^2} = \sqrt{1.25^2 + 1.25^2} = 1.77

Finally, compute safety stocks for the following set of decision variables (that is service times): [0, 0, 0, 0, 0, 0, 0]:

  • SS_7 = k_7*\sqrt{ NLT_7*\sigma_7^2}=1.64*\sqrt{0*1.25^2 }=0NLT_7 = PT_7 + ST_5 - ST_7 = 0 + 0 - 0 = 0
  • SS_6 = k_6*\sqrt{ NLT_6*\sigma_6^2}=1.64*\sqrt{0*1.25^2 }=0 NLT_6 = PT_6 + ST_4 - ST_6 = 0 + 0 - 0 = 0
  • SS_5 = k_5*\sqrt{ NLT_5*\sigma_5^2}=1.64*\sqrt{3*1.25^2 }=3.55 NLT_5 = PT_5 + ST_3 - ST_5 = 3 + 0 - 0 = 3
  • SS_4 = k_4*\sqrt{ NLT_4*\sigma_4^2}=1.64*\sqrt{3*1.25^2 }=3.55 NLT_4 = PT_4 + ST_3 - ST_4 = 3 + 0 - 0 = 3
  • SS_{3} = k_{3}*\sqrt{NLT_{3}*\sigma_{3}^{2}} = 1.64*\sqrt{0*{1.77}^{2}} = 0 NLT_{3} = PT_{3} + ST_{2} - ST_{3} = 0 + 0 - 0 = 0
  • SS_{2} = k_{2}*\sqrt{NLT_{2}*\sigma_{2}^{2}} = 1.64*\sqrt{5*{1.77}^{2}} = 6.49 N{LT}_{2} = PT_{2} + ST_{1} - ST_{2} = 5 + 0 - 0 = 5

Given an array of holding cost, for example [500, 800, 1000, 1500, 1500, 2000, 2000], the resulting total cost is 800*6.49 + 1500*3.55 + 1500*3.55 = 15842. However, the safety stocks associated with the solution [0, 0, 0, 0, 0, 0, 0] are infeasible since SS_{4} > 0 and SS_{5} > 0 but nodes 4 and 5 are transportation nodes.

As a side note, however, you can always find a feasible solution (or show infeasibility). The computation is done in a parent-to-child order. Assuming the bounds are LB_{i} = 0, UB_{i} = 10 for all stock locations, the computation is as follows:

  • ST_{1} = LB_{1} = 0
  • ST_{2} = LB_{2} = 0
  • ST_{3} = LB_{3} = 0
  • ST_{4} = max\left\{ LB_{4},\ ST_{3} + PT_{4} \right\} = max\{ 0,0 + 3\} = 3
  • ST_{5} = max\left\{ LB_{5},\ ST_{3} + PT_{5} \right\} = max\{ 0,0 + 3\} = 3
  • ST_{6} = LB_{6} = 0
  • ST_{7} = LB_{7} = 0