Professional Documents
Culture Documents
Multi-Car Paint Shop Optimization With Quantum Annealing: September 2021
Multi-Car Paint Shop Optimization With Quantum Annealing: September 2021
net/publication/354650432
CITATIONS READS
0 44
6 authors, including:
Thomas Bäck
Leiden University
533 PUBLICATIONS 23,247 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Florian Neukart on 01 December 2021.
‡ VolkswagenGroup of America
San Francisco, CA, USA
Abstract—We present a generalization of the binary paint shop IBM, and others have built gate-based NISQ computers with
problem (BPSP) to tackle an automotive industry application, up to dozens of qubits [3], [5]. Companies such as D-
the multi-car paint shop (MCPS) problem. The objective of Wave Systems have adopted an alternative approach, pursuing
the optimization is to minimize the number of color switches
between cars in a paint shop queue during manufacturing, a instead the physical implementation of quantum annealing
known NP-hard problem. We distinguish between different sub- algorithms, an adaptation of Adiabatic Quantum Optimization.
classes of paint shop problems, and show how to formulate the Originally proposed as a heuristic optimization algorithm [6],
basic MCPS problem as an Ising model. The problem instances the field of quantum annealing has grown significantly over
used in this study are generated using real-world data from a time, with many potential applications being showcased in
factory in Wolfsburg, Germany. We compare the performance
of the D-Wave 2000Q and Advantage quantum processors to fields such as quantum simulation [7], [8], [9], quantum
other classical solvers and a hybrid quantum-classical algorithm machine learning [10], [11], [12], optimization [13], [14],
offered by D-Wave Systems. We observe that the quantum [15], and more [16], [17]. The majority of both gate-model
processors are well-suited for smaller problems, and the hybrid and quantum annealing applications currently involve solving
algorithm for intermediate sizes. However, we find that the an optimization problem, typically formulated as either an
performance of these algorithms quickly approaches that of a
simple greedy algorithm in the large size limit. Ising Model using spin variables s ∈ {−1, 1}, or a Quadratic
Index Terms—quantum annealing, quantum computing, opti- Unconstrained Binary Optimization (QUBO) problem with
mization, sequencing binary variables x ∈ {0, 1}. These two models are equivalent
under a simple change of basis, and are known to be NP-hard
I. I NTRODUCTION to minimize in the worst case [18]. As such, many interesting
Quantum computing has the potential to significantly impact and complex optimization problems can be posed in one of
both research and industry in a variety of disciplines. Quantum these models [19]. Ising Models are formulated as a system
algorithms developed expressly for fully error-corrected quan- of interacting spins:
tum computers are among the most promising, specifically X X
Shor’s algorithm for factoring [1] and Grover’s algorithm H(s) = hi si + Jij si sj , (1)
for unstructured search [2], which are both asymptotically i i<j
faster than their classical counterparts. Without error cor- where hi and Jij are real-valued numbers defining the strength
recting schemes, the advantages of quantum computing are of interactions between neighboring spins si , sj . For QUBOs,
more difficult to discern. Recently, a significant milestone we define:
of quantum supremacy was reached by Google’s quantum Obj(x, Q) = xT · Q · x, (2)
computer, when it was shown to sample from random quantum
circuits faster than any classical algorithm [3]. In the near where x is a vector of binary variables, and here Q is an upper-
term, specific focus has been dedicated to developing useful triangular matrix defining the relationships between them. The
algorithms for so-called Noisy Intermediate-Scale Quantum initial work of constructing an optimization problem suitable
(NISQ [4]) processors. Various companies such as Google, for quantum computers is finding a valid representation in
either Ising or QUBO form. In quantum annealers, these proving that even the simplest coloring version, with only two
optimization problems are encoded by programming sets of colors, is both NP-complete and APX-hard. Additional results
qubits and couplers. The quantum processor then initializes the show that a subset of problems meeting specific conditions
system of qubits in an easy-to-prepare ground state, and slowly can be solved in polynomial time.
transitions the Hamiltonian to represent the optimization prob- Streif et. al [21] investigated solving the restricted problem,
lem as specified by the user. The physical and mathematical where each ensemble of cars is exactly one pair and only two
background motivating the algorithm is beyond the scope of colors are used (binary paint shop problem, BPSP), using a
this work, and we refer the reader to [20]. quantum algorithm. Specifically it was shown that a Quantum
Despite the proof-of-concept projects presented above Approximate Optimization Algorithm (QAOA) of fixed depth
which have been tested on quantum processors, a large-scale can outperform classical heuristics for solving the BPSP in the
application has yet to be shown. Partly, this can be attributed infinite size limit. The authors investigate multiple classical
to the mismatch between the core optimization problem and heuristics for solving the BPSP and give bounds on the
the limited scope of quantum optimization algorithms. Many asymptotic performance of each to show this result.
industry problems involve a mix of integer, discrete, and
III. M ULTI - CAR PAINT SHOP OPTIMIZATION
continuous variables and constraints, while NISQ processors
solve small-scale binary optimization problems. Therefore, it One of the steps in car production at Volkswagen is painting
is important to find candidate problems that not only benefit the car body before assembly. In general, this can be viewed
from quantum computing theoretically, but also are amenable as a queue of car bodies that enter the paint shop, undergo
to the technology practically. We therefore present an auto- the painting procedure, and exit the paint shop. It is important
motive industry problem, the multi-car paint shop (MCPS) to note that the area of the factory immediately proceeding
problem. This optimization problem is an extension of the the paint shop is typically assembly, where car components
binary paint shop problem (BPSP) which has been studied are assembled into the car bodies. Because of the many
in the context of other quantum algorithms [21]. The MCPS different models and configurations being produced, designing
problem represents the real-world version of the BPSP, and is a a sequence of cars to be assembled that is optimal (also known
crucial step in the process of car manufacturing at Volkswagen. as the car sequencing problem) is a known NP-hard problem in
In this study we only solve problem instances obtained from itself [24]. In practice it is imperative to solve the sequencing
a factory in Wolfsburg, Germany. We employ a variety of problem because of worker safety and regulatory issues, and
classical solvers as competition benchmarks, and compare the we therefore treat the sequence of cars entering the paint shop
results to D-Wave quantum processing units (QPUs) and a as a fixed queue. However, the colors assigned to the cars
hybrid quantum-classical algorithm. within a given sequence are still randomly distributed, and
The rest of the paper is structured as follows: in Section II thus we can focus on optimizing them.
we review the relevant existing literature for the paint shop Each car body entering the paint shop is painted indepen-
problem. Section III motivates and defines the multi-car paint dently in two steps: the first layer is called the filler, which
shop problem, and derives the Ising model for the problem. covers the car body with an initial coat of paint, and the
In Section IV we outline the experimental setup and data final color layer is the base coat, which is painted on top
preparation, and Section V presents the results of our analysis. of the filler. The base coat is the color that matches the final
Lastly, Section VI discusses the conclusions of the scientific customer order: blue, green, etc. However, the filler has only
analysis and the lessons learned from this study. two possible colors: white for the lighter base coats colors,
and black for darker colors. We define a customer order as
II. P REVIOUS WORKS the number of cars of each configuration to be painted one
The paint shop problem refers to a set of combinatorial of the color choices. We associate each coating step (filler or
optimization problems in the automotive industry. The objec- base coat) with a unique class of paint shop problems, each
tive is to color a given sequence of cars with a fixed number of which are NP-complete [22], [23]. The filler optimization
of colors such that the total number of color switches is is referred to as the multi-car paint shop problem, where
minimized. This simple problem poses interesting scientific the cardinality of each set of unique cars in the sequence is
complexity-theoretic questions, which in turn have real impact unconstrained, but the cardinality of the color set is restricted
for solving such problems in practice. The paint shop problem to two (e.g., black or white). The base coat optimization
was originally posed by Epping et. al [22] as a form of coloring is therefore an extension of the MCPS problem, where the
problem. Some clarification on nomenclature: the given car cardinality of the color set is also unconstrained– we call this
sequence can also be referred to as a word, where each car version of the problem the multi-car multi-color paint shop
is denoted by a character. In [22], it was shown that the problem. In our work we focus on the filler optimization,
paint shop problem is NP-complete in both the number of the MCPS problem, which can be formulated natively as a
colors and cars in the sequence. Furthermore, results show binary optimization problem. We formally define the problem
that, for bounded numbers of colors and unique cars, there as follows:
exists a polynomial-time dynamic programming solution to
these instances. Subsequent work [23] extended these results,
Given: a word w defining the fixed sequence of N cars (wi denotes
the ith character in w), state denotes if it is white. The Ising model which represents
our problem can be divided into a hard constraint component
set of C = {C1 , . . . , CM } unique car ensembles, and an optimization component. The optimization component
binary choice of colors {W, B}, is a simple Ising ferromagnet with J = −1 couplings between
adjacent cars in the sequence:
function k(Ci ) which defines the number of Ci to be pain-
ted B in w, N
X −2
HA = − si si+1 . (3)
function f (w) to count the number of color switches in w, i=0
such that: #Ci |B = k(Ci ), ∀Ci ∈ C, This incentivizes adjacent cars to have the same color. The sec-
minimize: f (w). ond component of our Ising model is the hard constraint, en-
suring that the correct number of cars are colored white/black
per customer orders. This is encoded in a second energy
In practice (i.e., in the paint shop), the information required
function, as a sum over independent k-hot constraint for each
to formulate this optimization problem is always available, as
ensemble of cars Ci :
it is a necessary part of fulfilling customer orders. Therefore, X X
this MCPS problem representation above corresponds exactly HB (Ci ) = (#Ci − 2k(Ci )) si + si sj . (4)
to the industrial use-case of paint shop optimization on the i i<j
filler line. In Fig. 1 we show a simple example of the MCPS
Therefore, the final Ising model is the sum of the two
problem with three car ensembles.
components, HMCPS = HA + λHB :
N
X −2
HMCPS = − si si+1
i=0
X X X
+λ (#Ci − 2k(Ci )) si + si sj , (5)
Ci ∈C i i<j