Lean Assembly, Lean Logistics, and Euclides Coimbra’s Changes


My fellow consultant and author Euclides Coimbra has only written two reviews on Amazon, both on July 3, 2006, giving five stars to my books Lean Assembly and Lean Logistics, and commenting as follows:

  1. About Lean Assembly: “Very good book. Full of details. Useful for implementers. Knowledgeable readers can find many info between the lines. A wonderful contribution for Kaizen and Lean knowledge.”
  2. About Lean Logistics: “Following Lean Assembly Lean Logistics is a natural continuation. The style is the same and the information as valuable as Lean Assembly. A must have for any Kaizen and Lean implementer. Lots of details and useful information.”

A few months later, I went to work for him, and grew to appreciate his consulting talents. We parted later on good terms and I considered him a friend.

I just received a copy of his 2013 book, Kaizen in Logistics & Supply Chains, and found much overlap in subject matter with the two books of mine that he previously considered a “wonderful contribution” and a “must have.” I assume he changed his mind because they are not in the bibliography, and I couldn’t find my name anywhere in his book.

Hot dog stand

Safety Stocks: More about the formula


In a previous post on 2/12/2012, I warned against the blind use of formulas in setting safety stock levels. Since then, it has been the single most popular post in this blog, and commands as many page views today as when it first came out. Among the many comments, I noticed that several readers, when looking at the formula, were disturbed that three of the four parameters under the radical are squared and the other one isn’t, to the point that they assume it to be a mistake. I have even seen an attempt on Wikipedia to “correct that mistake.”

I was myself puzzled by it when I first saw the formula, but it’s no mistake.  The problem is that most references, including Wikipedia,  just provide the formula without any proof or even explanation. The authors just assume that the eyes of inventory managers would glaze over at the hint of any math. If you are willing to take my word that it is mathematically valid, you can skip the math. You don’t have to take my word for it, but then, to settle the discussion, there no alternative to digging into the math.

A side effect of working out the math behind a formula is that it makes you think harder about the assumptions behind it, and therefore its range of applicability, which we do after the proof. If you don’t need the proof, please skip to that section.

Math prerequisites

As math goes, it is not complicated. It only requires a basic understanding of expected value, variance, and standard deviation, as taught in an introductory course on probability.

In this context, those who have forgotten these concepts can think of them as follows:

  1. The expected value E(X) of a random variable X can be viewed, in the broadest sense, as the average of the values it can take, weighted by the probability of each value. It is linear, meaning that, for any two random variables X and Y that have expected values, E[X+Y] = E[X]+E[Y] and, for any number a, E[a\times X]= a \times E[X]
  2. Its variance Var(X) = E[X-E(X)]^{2}= E[X^{2} -E(X)^{2}] is the expected value of the square of the deviation of individual values of X from its expected value E(X). Variances are additive, but only for uncorrelated variables X and Y that have variances. If  E[[X-E(X)] \times [Y-E(Y)]]= 0 then Var(X+Y) = Var(X)+Var(Y)
  3. Its standard deviation is \sqrt{Var(X)}.

Proof of the Safety Stock Formula

Fasten your seat belts. Here we go:

As stated in the previous post, the formula is:

Where:

  • S is the safety stock you need.
  • C  is a coefficient set to guarantee that the probability of a stockout is small enough.
  • The other factor, under the radical sign, is the corresponding standard deviation.
  • μL and σL are the mean and standard deviations of the time between deliveries.
  • μD and σD are the mean and standard deviation rates for the demand.

The quantity under the radical, is the standard deviation of the item quantity consumed between deliveries, considering that the time between deliveries varies.

μD and \sigma_{D}^{2} are the mean and variance of the demand per unit time, so that the demand for a period of length T has a mean of \mu_{D} \times T , a variance of  \sigma_{D}^{2} \times T, and therefore a standard deviation of \sigma_{D} \times \sqrt{T}. See below a discussion of the implications of this assumption.

Note that the assumptions are only that these means and variances exist. At this stage, we don’t have to assume more, and particularly not that times between deliveries and demand follow a particular distribution.

If D(T) is the demand during an interval of duration T, since:

we have:

If we now allow T to vary, around mean μL with, standard deviation σL , we have:

and therefore:

and

That’s how the variance ends up linear in one parameter and quadratic in the other three!

Then:

QED.

Note that all of the above argument only requires the means and standard deviations to exist. There is no assumption to this point that the demand or the lead time follow a normal distribution. However, the calculation of the multiplier C used calculate an upper bound for the demand in a period, is based on the assumption that the demand between deliveries is normally distributed.

Applicability

The assumption that the variance of demand in a period of length T is \sigma_{D}^{2} \times T implies that it is additive, because if  T = T_{1} + T_{2}, then \sigma_{D}^{2} \times T = \sigma_{D}^{2} \times T_{1} + \sigma_{D}^{2} \times T_{2}.

But this is only true if the demands in periods T_{1} and T_{2} are uncorrelated. For a hot dog stand working during lunch time, this is reasonable: the demands in the intervals between 12:20 and 12:30, and between 12:30 and 12:40 are from different passers by, who make their lunch choices independently.

On the other hand, in a factory, if you make a product in white on day shift and in black on swing shift every day,  then the shift demand for white parts will not meet the assumptions. Within a day, it won’t be proportional to the length of the interval you are considering, and the variances won’t add up. Between days, the assumptions may apply.

More generally, the time periods you are considering must be long with respect to the detailed scheduling decisions you make. If you cycle through your products in a repeating sequence, you have an “Every-Part-Every” interval (EPEI), meaning, for example, that, if your EPEI is 1 week, you have one production run of every product every week.

In a warehouse, product-specific items don’t need replenishment lead times below the EPEI. If you are using an item once a week, you don’t need it delivered twice a day. You may instead receive it once a week, every other week, every three weeks, etc. And the weekly consumption will fluctuate with the size of the production run and with quality losses. Therefore, it is reasonable to assume that its variance will be \sigma_{D}^{2} \times T where T is a multiple of the EPEI, and it can be confirmed through historical data.

You can have replenishment lead times that are less than the EPEI for materials used in multiple products. For example, you could have daily deliveries of a resin used to make hundreds of different injection-molded parts with an EPEI of one week. In this case, the model may be applied to shorter lead times, subject of course to validation from historical data.

Should Lean efforts focus on the supply chain or within the plant? Comments on an Industry Week article


See on Scoop.itlean manufacturing

This article quotes Paul Myerson as saying that manufacturers preferred to “lean out within their four walls before working heavily with customers and suppliers.”

While I have heard this from many sources, I do not believe it is true. Having worked both within the four walls of plants and on their supply chains, I have repeatedly seen manufacturing managers conclude that their manufacturing needed no improvement, and that all the problems were with suppliers.

Before Paul Myerson, I also wrote a book on Lean Logistics. In 2005, it was the first on this subject. But I also wrote books on Lean Assembly (2002) and Working with Machines (2007), both of which deal with what happens “within the four walls.” Guess what? Lean Logistics sells more copies than the other two combined, and I don’t think it is a better book. To me, it just means that its subject is getting more attention.

Actually, it is getting a disproportionate amount of attention, and too early. Manufacturers should  focus on what happens within their walls first, and fix it. The vast majority, including many claiming to be Lean, have not. Until they do, they have no credibility with their suppliers and no business telling them how to improve.

See on www.industryweek.com

The-Most-Complicated-Formula

Safety Stocks: Beware of Formulas


A formula you find in a book or learn in school is always tempting. It is a “standard.” If you follow it, others are less likely to challenge your results. These results, however, may be worthless unless you take a few precautions. Following are a few guidelines:

  1. Don’t use a formula you know nothing about. Its validity depends on assumptions that may or may not be satisfied. You don’t need to know how to prove the formula, but you need to know its range of applicability.
  2. Examine your data. Don’t just assume they meet the requirements. Examine their summary stats, check for the presence of outliers, generate histograms, scatter plots, time series, etc.
  3. Don’t make up missing data. If you are missing the data you need to estimate a parameter, find what you can infer about the situation from other parameters, by other methods. Do not plug in arbitrary values.
  4. Make your Excel formulas less prone to error by using named ranges rather than cell coordinates. If a formula is even slightly complicated, referring to variables by names like “mean” or “sigma” makes formulas easier to proof-read than with names like “AJ” or “AK.”

The safety stock formula for the reorder point method

Safety stock is a case in point. The literature gives you a formula that is supposed to allow you to set up reorder point loops with just the minimum amount of safety needed to prevent shortages under certain conditions of variability in both your consumption rate and your replenishment lead time. It is a beautiful application of 19th century mathematics but I have never seen it successfully used in manufacturing.

Let us look more closely at what it is so you can judge whether you would want to rely on it. Figure 1 shows you a model of the stock over time when you use the Reorder Point method and both consumption and replenishment lead time vary according to a normal distribution. The amount in stock when the reorder point is crossed should be just sufficient to cover your needs until the replenishment arrives. But since both replenishment lead time and demand vary, you need some safety stock to protect against shortages.

Figure 1. The reorder point inventory model

If your demand is the sum of small quantities from a large number of agents, such as sugar purchases by retail customers in a supermarket, then the demand model makes sense. In  a manufacturing context, there are many situations in which it doesn’t. If you produce in batches, then the demand for a component item will be lumpy: it will be either the quantity required for a batch or nothing. If you use heijunka, it will be so close to constant that you don’t need to worry about its variations.

What about replenishment lead times? If in-plant transportation is by forklifts dispatched like taxis, replenishment lead times cannot be  consistent. On the other hand, if it takes the form of periodic milk runs, then replenishment lead times are fixed at the milk run period or small multiples of it. With external suppliers, the replenishment lead times are much longer, and cannot be controlled as tightly as within the plant, and a safety stock is usually needed.

Let us assume that all the conditions shown in Figure 1 are met. Then there is a formula for calculating safety stock that you can find on Wikipedia or in David Simchi-Levy’s Designing and Managing the Supply Chain (pp. 53-54).  Remember that it is only valid for the Reorder Point method and that it is based on standard deviations of demand and lead time that are not accessible for future operations and rarely easy to estimate on past operations. The formula is as follows:

Where:

  • S is the safety stock you need.
  • C  is a coefficient set to guarantee that the probability of a stockout is small enough. You can think of it a number of standard deviations above the mean item demand needed to protect you against shortages. In terms of Excel built-in functions, C is given by:

C = NORMSINV(Service level)

Service level    C
90.0% 1.28
95.0% 1.64
99.0% 2.33
99.9% 3.09
  • The other factor, under the radical sign, is the corresponding standard deviation.
  • μL and σL are the mean and standard deviations of the lead time.
  • μD and σD are the mean and standard deviation of the demand per unit time, so that the demand for a period of length T has a mean of μD xT and a standard deviation of σDx √T

Case study: Misapplication of the safety stock formula

This formula is occasionally discussed in Manufacturing or Supply Chain Management discussion groups, but I have only ever seen one attempt to use it,  and it was a failure. It was for the supply of components to a factory, and 14 monthly values were available for demand, but only an average for lead times.

The first problem was the distribution of the demand, for which 14 monthly values were available. This is too few for a histogram, but you could plot their cumulative distribution and compare it with that of a normal distribution with the same mean and standard deviation, as in Figure 2. You can tell visually that the actual distribution is much more concentrated in the center than the normal model, which is anything but an obvious fit.  Ignoring such objections, the analyst proceeded to generate a spreadsheet.

Figure 2. Actual versus normal cumulative distribution

The second problem is that he entered the formula incorrectly, which was not easy to see, because of the way it was written in Excel.  The formula in the spreadsheet was as follows:

C*SQRT((AJ4*AL4^2)+(AI4^2*AM4^2))

then, looking at the spreadsheet columns, you found that they were used as follows:

  • AJ  for Standard Deviation of Daily Demand, and
  • AL for Average Replenishment time.

And therefore the first term under the square root sign was σDL2 instead of μLxσD2.

The third problem was that the formula requires estimates of standard deviations for both consumption and replenishment lead times, but no data was available on the latter. To make the formula produce numbers, the standard deviations of replenishment lead times was arbitrarily assumed to be 20% of the average.

For all of these reasons, the calculated safety stock values made no sense, but nobody noticed. They caused no shortage, and the “scientific” formula proved that they were the minimum prudent level to maintain.

Sizing safety stocks in practice

There is no universal formula to determine an optimal size of safety stocks. What can often be done is to simulate the operation of a particular replenishment loop under specified rules. For a simulation of a Kanban loop using Excel, see Lean Logistics, pp. 208-213.

No calculation or simulation, however, is a substitute for keeping an eye on what actually happens on the shop floor during production. One approach is to separate the safety stock physically from the regular, operational stock and monitor how often you have to dig into it. If, say, six months go by without you ever needing it, you are probably keeping too much and you cut it in half. With a Kanban loop, you tentatively remove a card from circulation. If no shortage results, then the card was unnecessary. If a shortage occurs, you return the card and look for an opportunity to improve the process so that the card can be removed.

IndustryWeek : Manufacturing and Trust: A Prescription for What Ails Our Industry


Via Scoop.itlean manufacturing
I also wrote on the subject in Chapter 19 of Lean Logistics. Adversarial relationships between suppliers and customers are stable because each side perceives a collaborative attitude with the other as unilateral disarmament: any information they share can be used against them in a future negotiation. And there is no shortage of examples of such fears being justified. So how do you defuse this situation? Rob Olney’s article points the way, but some of his recommendations assume trust is already there. How do you get them to that point?   “Distrust fuels the need for extra time, inventory, paperwork and more, ultimately building more cost and inefficiency into the supply chain.”
Via www.industryweek.com