Professional Documents
Culture Documents
Alternative Mathematical
Approaches to Shade Sorting
J. R. Aspland,1 K. D. Balasaygun,2
J. P. Jarvis,3* T. H. Whitaker3
1
School of Textiles, Fiber and Polymer Science, Clemson University, Clemson, SC
2
AT&T Laboratories, 200 Laurel Ave., Middletown, NJ 07748
3
Department of Mathematical Sciences, Clemson University, Clemson, SC
Abstract: Shade sorting is the process of assigning samples garment parts are cut from different rolls and sewn together
of the same nominal color into groups having no significant without considering this variation, the end product may be
color variation. Use of modern spectrophotometers and unsatisfactory.
color measurement technology make it possible to obtain One method used to avoid this problem is a process
precise color differences between samples. When these known as shade sorting. This operation is often performed
color differences are viewed as distances between points, by trained color sorters, who visually group the rolls of
the shade sorting problem is seen to be equivalent to the fabric to assure that those rolls cut together are similar
clustering problem in the mathematical literature. Several enough in shade to be sewn into adjacent panels of a single
mathematical techniques for clustering— complete linkage garment.1 However, advances in technology have produced
clustering, vertex labeling, and set covering—are explained color measurement instruments with sufficient accuracy and
and compared for their efficiency when applied to shade reliability to be used to measure color for numerical shade
sorting. A particular implementation of complete linkage sorting. Numerical shade sorting refers to quantitative, ob-
clustering called Clemson Color Clustering (CCC) is found jective methods for grouping rolls of fabric of similar color.
to perform well as compared to the other reviewed It avoids the subjective aspects of visual shade sorting.
methods. © 2000 John Wiley & Sons, Inc. Col Res Appl, 25, 368 –375, Several different mathematical techniques can be used for
2000 numerical shade sorting. These techniques fall under the
general category of clustering. Three common approaches
Key words: shade sorting; clustering; color measurement; to the clustering problem— complete linkage clustering,
Clemson Color Clustering; CCC vertex labeling, and set covering—are explained below.
These methods are then compared for their usefulness in
INTRODUCTION numerical shade sorting for the apparel industry.
The shade sorting problem can also be modeled as a set FIG. 3. Set covering algorithm applied to four sample
covering problem.12 For shade sorting, the goal is to posi- points. (a) The coverage matrix for the given data points. (b)
Reduction 1 applied to the coverage matrix. (c) Reduction 2
tion a minimum number of spheres in color space such that applied to the coverage matrix. (d) Solution: centers at
these spheres collectively contain (cover) all sample points. points w and z.
Each sphere is centered at a sample point. Hence, this
method determines a minimal number of sample points to
serve as centers of spheres, so that each sample point is this method is computationally expensive.13 An effective
contained in at least one sphere. In set covering terms, the heuristic procedure is given below.
rolls of fabric correspond to the entities to be covered. The The algorithm that follows uses a series of logical reduc-
radius of each covering sphere is half the cut tolerance, so tions12 to produce successively smaller problems (reducing
that the maximum color difference between any two points the size of A) until a final solution is obtained. Each reduc-
covered by a sphere does not exceed the cut tolerance. The tion is performed until it is no longer possible to use that
sample points contained in a sphere define a shade group. reduction. The entire set of reductions is repeated until none
First, the color difference of each pair of sample points is can be applied.
calculated and the coverage matrix A ⫽ (aij) is formed. The
rows of A correspond to possible centers of spheres, and the Reductions:
columns correspond to sample points to be covered by the 1. If there is a sample point covered by only one potential
spheres. Initially, each sample point is considered a poten- center, then a sphere must be centered at this point. This
tial center for a covering sphere. A sample point is covered row is eliminated, and each column corresponding to a
by a potential center, if the color difference between this point covered by this sphere is eliminated.
point and the point corresponding to the potential center 2. If sample i is covered whenever sample j is covered,
does not exceed half the cut tolerance. Hence, the (i, j) entry then point i can be ignored. Eliminate column i.
in the coverage matrix is a 1, if point j is covered by 3. If a potential center j covers at least the same points as
potential cover i. Otherwise, entry (i, j) is a 0. This problem a potential center i, then potential center j is preferred.
can be solved using general integer linear programming, but Eliminate row i.
If the matrix is completely reduced (to a 0 ⫻ 0 matrix) by groups produced by each of the three methods over a range
these steps, the solution obtained is optimal. Otherwise, of color tolerances.
another procedure must be used so that the reductions can Some general patterns are evident from these inventories.
be applied again. One reasonable procedure is to choose the With few exceptions, the vertex labeling approach produces
center that covers the largest number of remaining sample the smallest number of groups for a given color tolerance,
points and designate it as a cover, then eliminate the corre- while set covering performs consistently worse than com-
sponding row and all columns corresponding to points cov- plete linkage clustering and vertex labeling. Hence, in terms
ered by this sphere. This heuristic allows the matrix to be of number of groups, vertex labeling appears to be some-
fully reduced, although the solution so obtained is not what superior for shade sorting.
necessarily optimal. The set covering algorithm is illus-
trated in Fig. 3.
The exact number and position of the covering spheres Uniformity in Size and Color Range
depend on the particular sample data. Although the diameter A goal of shade sorting is to produce groups that are
of each covering sphere is fixed and equal to the cut toler- uniform in size and color consistency in order to utilize all
ance, the actual diameter of the shade group produced by a goods and minimize waste in a cutting spread. To be used
covering sphere may be considerably less than the cut for processing a cut, a shade group must be large enough to
tolerance. For instance, in the previous example, the diam- meet the yardage requirement of the desired cut. Hence, the
eter of the group containing only point a is zero. relative size of the groups produced by a shade sorting
method is important. In addition, it is desirable to sort the
samples into groups of minimum diameter. These two char-
EXPERIMENTAL COMPARISON OF ALGORITHMS acteristics tend to work together. As the size of a shade
Datasets from actual textile inventories are used to compare group increases, its diameter also tends to increase. Ideally,
shade sorting by complete linkage clustering, vertex label-
ing, and set covering. Using the color inventories, the shade
groups produced by each of the three methods are compared
for their number, anomalies, and uniformity in size and
color range. The methods themselves are compared for
computational complexity of the algorithms, execution
time, and ability to combine production lots for color in-
ventory management.
Number of Groups
One basis for experimentally comparing the different
shade sorting methods is the number of groups produced for
a given color tolerance. The three approaches— complete
linkage clustering, vertex labeling, and set covering— have FIG. 6. Number of shade groups produced by complete
been used to analyze three color inventories. Results are linkage clustering (CCC), vertex labeling, and set covering
given in Figs. 4 – 6. These figures show the number of when applied to 88 rolls of a gray fabric.
if n points were partitioned into m groups, each group would Note that some additional processing of shade groups
contain n/m points. might be advantageous after the initial clustering is per-
A comparison of the three shade sorting methods— com- formed. For example, consider the groups indicated in Fig.
plete linkage clustering, vertex labeling, and set cover- 7. Suppose that eight rolls of fabric are needed to process a
ing—is shown in Table I. A cut tolerance of 0.70 was used cut. Group A does not contain enough rolls, while Group B
to shade sort an inventory consisting of 149 rolls of a beige contains more than eight. By examining the data, we see
fabric. This table indicates the diameter and size (number of that the cut can be processed by taking the rolls from Group
rolls) of each group produced. These results are typical of A along with three rolls from Group B. As this example
those obtained with other fabrics and cut tolerances. In illustrates, relatively small groups are not necessarily a
Table I, only a slight difference can be seen in the number problem. Although it is easier to use groups containing a
of groups produced by the methods. Set covering produced large number of rolls, small groups can be used efficiently,
two singleton groups, as opposed to only one singleton if the data are examined after shade sorting is completed.
group in complete linkage clustering and none in vertex
labeling. All three methods tend to distribute the samples
Complexity of the Algorithms
well resulting in good colorimetric uniformity within the
shade sorting groups. Each of the three shade sorting algorithms— complete
In general, the hierarchical complete linkage algorithm linkage clustering, vertex labeling, and set covering—re-
used in Clemson Color Clustering may group very similar quires space in the order of n2 to store the color difference
entities in the same cluster only at a late stage in the data for a problem of size n (n rolls). The worst case
algorithm. Occasionally, this can lead to inhomogeneity in theoretical complexity of sorting n entities is of the order n3
some clusters. for complete linkage clustering and of the order of n4 for
The vertex labeling method also tends to produce groups both vertex labeling and set covering.7
that are relatively uniform in size and color range. In large
part, this is a result of stage 2 of the vertex labeling algo-
rithm, which attempts to reduce the maximum diameter of
the groups. By distributing the points more evenly through-
out the groups, the maximum color variation within a shade
group is reduced without increasing the number of groups.
Unlike complete linkage clustering and vertex labeling,
the sole objective of the set covering method is the mini-
mization of the number of groups produced. The set cover-
ing approach ensures that the diameters of the covers do not
exceed the cut tolerance, but the algorithm is not designed
to minimize these diameters. The set covering method does
not uniquely assign points to groups. Each sample is con-
tained in at least one group, possibly more. As a result, the
FIG. 7. Shade groups A and B. The circles represent the
diameters and sizes of the individual groups tend to be maximum diameter of a cluster allowed by the cut tolerance.
larger than those produced by the other methods, which The rolls in the intersection of the circles could actually
partition the points into mutually exclusive groups. reside in either group.