scieee AI-readable full text Open interactive document viewer

Computation of equilibria on integer programming games

Maria Margarida da Silva Carvalho

Full text

Computatio n equilibria on integer programmin g g ames g Maria Margarida da Silva Car v Tese de Doutoramento apresentada à Faculdade de Ciências da Universidade do P Ciência de Computadores 2016 2016 n of g v alho P orto Computation o equilibria on i n programming g Maria Margarida da Silva Carv a Doutoramento em Ciência de Computadores Departamento de Ciência de Computadores 2016 Orientador João Pedro Pedroso Professor Auxiliar Faculdade de C João Pedro Pedroso , Professor Auxiliar , Faculdade de C Coorientador A ndrea Lodi, Professor Catedrático, Università di Bolog Montréal o f n teger g ames a lho Ciências da Universidade do Porto Ciências da Universidade do Porto na e École Polytechnique de Esta tese foi financiada por uma bolsa de doutoramento da Funda¸c˜ao para a Ciˆencia e a Tecnologia (referˆencia SFRH/BD/79201/2011) no ˆambito do programa POPH, financiado pelo Fundo Social Europeu e pelo Governo Portuguˆes. 5 6 Acknowledgments I would like to acknowledge the support of the Portuguese Foundation for Science and Technology (FCT) through a PhD grant number SFRH/BD/79201/2011 (POPH/FSE program). The last four years were an exciting adventure to me. I learned, I got puzzled, I got frustrated, I conquered results, I had tons of fun. This journey was accompanied and made possible due to amazing people. I have no words to Jo˜ao Pedro. I am grateful that he proposed me a challenging research plan. Jo˜ao Pedro was a tireless supervisor, always available and extremely supportive. I am deeply thankful to my co-supervisor Andrea for his guidance and for making me feel confident about myself. I enjoyed amazing scientific experiences thanks to Andrea and his department DEI, Universit`a di Bologna. I highlight, how lucky I was for having the pleasure to collaborate with Alberto Caprara and Gerhard Woeginger while I lived in Bologna. My year in Bologna was one of the happiest years I ever lived! The role of Ana Viana during my Ph.D. was not only of a collaborator. I am grateful to Ana for sharing knowledge, including me in her research projects, being tremendously friendly and advising me. I kindly thanks Mathieu Van Vyve and Claudio Telha for receiving me warmly in Louvain-la-Neuve and enjoying with me puzzling afternoons. My scientific accomplishments could not have been possible without the strength transmited by family and friends. I express a sincere feeling of gratitude to the friends that I made at DCC, DEI, CORE and INESC TEC. A special thanks goes to Amaya and Ana for being my family in Italy and spoiling the Ph.D. life events to me. Agrade¸co profundamente aos meus pais, `a minha irm˜a e ao Ricardo por todo o carinho e paciˆencia infinita comigo durante estes anos. Mil obrigadas a todas e todos que equilibraram o meu dia-a-dia com o seu amor, amizade, encorajamento, tempo para ouvir problemas matem´aticos e n˜ao matem´aticos, em particular, Isa, Yellow Hat Sisters, ˆ Angela, Mariana, Mari Sol e Inˆes. Many more people have been important during the Ph.D., I apologize for not mentioning everybody. 7 8 Resumo O problema da mochila, o problema de emparelhamento m´aximo e o problema de dimensionamento de lotes s˜ao exemplos cl´assicos de modelos de otimiza¸c˜ao combinat´oria que tˆem sido amplamente estudados na literatura. Nos ´ultimos anos tˆem sido investigadas vers˜oes mais intrincadas, o que resulta numa melhor aproxima¸c˜ao dos problemas do mundo real e num aperfei¸coamento das t´ecnicas de solu¸c˜ao. O objetivo desta tese de doutoramento ´e estender as ferramentas algor´ıtmicas que resolvem problemas combinat´orios com apenas um decisor para jogos, isto ´e, para problemas combinat´orios com v´arios decisores. Frequentemente um processo de decis˜ao depende de parˆametros que s˜ao controlados por decisores externos. Por conseguinte, os jogos combinat´orios s˜ao uma linha de investiga¸c˜ao fundamental, uma vez que refletem a realidade destes problemas. Focamo-nos na classifica¸c˜ao da complexidade computacional e no desenho de algoritmos para determinar equil´ıbrios de jogos em programa¸c˜ao inteira com utilidades quadr´aticas. Num jogo em programa¸c˜ao inteira, o objetivo de um jogador ´e formulado usando terminologia de programa¸c˜ao matem´atica. Cada jogador tem o intuito de maximizar a sua utilidade, uma fun¸c˜ao que depende das suas vari´aveis de decis˜ao (estrat´egias) e das dos restantes. Iremos concentrar-nos em jogos onde as fun¸c˜oes de utilidade de cada jogador s˜ao quadr´aticas nas suas vari´aveis de decis˜ao. De forma a que esta tese seja auto-contida, come¸camos por fornecer as bases essenciais da teoria de complexidade computacional, da programa¸c˜ao matem´atica e da teoria dos jogos. Seguir-se-´a a apresenta¸c˜ao das nossas contribui¸c˜oes, as quais est˜ao divididas em duas partes: competi¸c˜ao de Stackelberg e jogos em simultˆaneo. A primeira parte ´e sobre competi¸c˜oes de Stackelberg (tamb´em conhecidas por programa¸c˜ao com dois n´ıveis), onde os jogadores jogam de forma sequencial. Estudamos um dos modelos mais simples de competi¸c˜ao de Stackelberg combinat´oria, o qual ´e baseado no problema da mochila. Caracterizamos a complexidade de calcular um equil´ıbrio e desenhamos um algoritmo novo para atacar um problema de interdi¸c˜ao com dois n´ıveis, o problema da mochila com restri¸c˜oes de interdi¸c˜ao. Recentemente, a classe de problemas de interdi¸c˜ao tem recebido uma grande aten¸c˜ao por parte da comunidade de investiga¸c˜ao. A segunda parte ´e sobre jogos em simultˆaneo, isto ´e, jogos em que os jogadores selecionam as suas estrat´egias ao mesmo tempo. Esta defini¸c˜ao d´a j´a uma ideia dos obst´aculos que iremos encontrar na determina¸c˜ao de estrat´egias racionais para os jogadores, uma vez que as estrat´egias dos seus rivais ter˜ao de ser previstas antecipadamente. Neste contexto, 9 A Potential Function Concavity 201 B Applying modified SGM 203 C List of Acronyms 209 List of Figures 213 List of Tables 215 16 Chapter 1 Introduction 1.1 Context: Mathematical Programming and Game Theory This section succinctly provides an overview of mathematical programming and game theory in order to introduce the problems that will be addressed. Chapter 2 will present in detail the background and previous work in these fields. Mathematical programming is the field that studies optimization. The focus is any mathematical problem that implies maximizing or minimizing a function of many decision variables, called objective function, possibly subject to a set of constraints defining the so-called feasible region. It is suitable for modeling decision processes; therefore, it has been broadly applied in management science and operations research. There are powerful mathematical programming algorithms for solving linear programming problems, i.e., problems for which the objective function and constraints are linear. The same holds for concave quadratic programming problems, where the goal is to maximize a concave quadratic objective function subject to a set of linear constraints. Recently, the research community concentrates on mixed integer programming problems, for which some constraints require part of the decision variables to be integer. This enables modeling situations in which decision variables take discrete values (e.g. when a company has to decide how many persons to employ, the company cannot employ a fraction of a person). The drawback is that whereas for linear programming there are known algorithms which are computational efficient - i.e., which require resources that are bounded by a polynomial in the instance size - no such algorithms are known for general integer programming problems. Solving general integer programming problems has been proven to be at least as hard as solving any problem in NP, which is a complexity class believed to contain hard problems. Nevertheless, in the last decade there has been a huge scientific advance both in this setting and in computational power, resulting in software tools able to tackle (in practice) large integer programming instances. Game theory concerns games: situations where there is more than one decision maker 17 18 CHAPTER 1. INTRODUCTION (player), and players’ decisions (strategies) have influence in each others utilities. Game theory is especially used to analyze economic models. In economic markets, the participants’ strategies will influence the market outcomes. There are many varieties of games implying distinct research approaches, we name some. A game may have a finite number of players or not; players may cooperate or not; there can exist full information about each player’s utility and set of strategies or not; a game representation can vary: games can be classified into situations in which each player’s set of strategies is finite and explicitly given (class of finite games), or situations in which the set of strategies is uncountable or not given explicitly (for example, in continuous games, each player set of strategies can be a closed interval of R); players select strategies simultaneously or sequentially. In this thesis, we concentrate on the case of full information non-cooperative continuous games with a finite number of players, and in both two round and simultaneous games. In order to define a game, one must describe the players, their strategies and their utilities, as well as the game dynamic. A widely accepted solution to a game is the concept of equilibrium, which is a profile of strategies, one for each player, such that each player has no incentive to deviate from the equilibrium strategy if the opponents play according to that equilibrium strategies. There are results concerning sufficient conditions for a game to possess an equilibrium. Generally, however, the existence proofs are inefficient. In fact, for a large class of games, it has been proven that the problem of computing one equilibrium is at least as hard as solving any problem in the complexity class PPAD, which contains problems believed to be computationally hard. Note that in game theory each player aims at selecting the most rational strategy; in other words, a player seeks her optimal decision. Thus, each player has an optimization problem to solve; this merges the mathematical programming and the game theory frameworks. Games using mixed integer programming formulations to describe a player’s optimization problem have been seldom addressed. We call this category integer programming games. In this context, there are four natural research questions. Do integer programming games model real-world situations? Are there equilibria for integer programming games? How to compute equilibria? What is the computational complexity of computing equilibria? The literature in this context is scarce, focusing on special cases, using situation-specific structure or using solution concepts different from equilibrium. 1.2 Organization and Contributions We close this chapter by outlining the thesis organization and research contributions to answer the questions raised above. 1.2. ORGANIZATION AND CONTRIBUTIONS 19 Chapter 2. The fundamental background material and notation are presented in Chapter 2, which is divided into three parts. In the first part, Section 2.1, the relevant complexity classes are defined: polynomial time P, nondeterministic polynomial time NP, second level of the polynomial hierarchy Σp 2and Polynomial Parity Arguments on Directed graphs PPAD. In Section 2.2 important mathematical programming definitions, well-known techniques to solve relevant optimization problems and available software tools are presented. Section 2.2.1 complements the mathematical programming introduction through the presentation of pertinent classical integer programming examples: the maximum matching in a graph,knapsack problem and lot-sizing problem. These formulations are later used to define a player’s goal in the games at hand. The third part, Section 2.3, introduces central game theory concepts, establishes the connection with mathematical programming and formally defines integer programming games, the main topic of this thesis. That section has two parts. The first part, Section 2.3.1, defines tworound sequential games, known as Stackelberg competition or bilevel programming (under pessimistic and optimistic assumptions), Stackelberg equilibria and interdiction problems, and it also describes the challenges of computing these games’ solutions. It concludes with literature review, which motivates further research in this field, and thus, our work in this context. The second part, Section 2.3.2, defines simultaneous games, Nash equilibrium, and presents known results about existence and characterization of equilibria. It follows the relevant literature review about simultaneous games, which points out the novelty of studying integer programming games. We conclude this chapter with the available solvers for games. Chapter 3. Chapter 3 presents our contributions on Stackelberg competitions. In these games, there is a player called the leader that takes first her decision and another called the follower that can observe the leader’s strategy prior to playing. In Section 3.1, three natural generalizations of the knapsack problem to two levels are modeled, which have in common the follower’s optimization program: a knapsack problem. The following variants are considered: the follower’s knapsack capacity is decided by the leader; the follower shares the knapsack capacity with the leader; and the items available for the follower are decided by the leader. In Section 3.2, we prove that: these bilevel knapsack variants are complete for the second level of the polynomial hierarchy under binary encondings; two of them become polynomial solvable under unary encondings, whereas the third becomes NP-complete; the third variant has a polynomial time approximation scheme, whereas the other two cannot be approximated in polynomial time within any constant factor, assuming P 6= NP. Additionally, in Section 3.3, for the third variant of the bilevel knapsack problem (an interdiction problem) a novel algorithm is proposed and tested in order to show its practical effectiveness. Furthermore, it gives insights about 20 CHAPTER 1. INTRODUCTION generalizing the presented ideas to interdiction problems with real-world applicability. Chapter 4. Chapter 4 focuses on simultaneous games. Section 4.1 starts by presenting our contributions for the simplest integer programming game that we could devise: the coordination knapsack game. In Section 4.2 an application of game theory in the context of health care is presented: Competitive Two-Player Kidney Exchange Game. This game has good properties, in the sense that an equilibrium can be computed efficiently and players would agree on the equilibrium to be played (a game may have multiple equilibria). Moreover, the work developed expands results concerning matchings in graphs. A classical game in economics, Cournot competition, is generalized in Section 4.3 in order to include a lot-sizing problem for each player in the market. The complexity of this game is investigated, allowing to identify cases in which an equilibrium for the game can be computed efficiently. Finally, Section 4.4 tackles the general case of simultaneous integer programming games. We start by proving that deciding about the existence of an equilibrium to a simultaneous integer programming game (even with only two players and linear utilities) is at least as hard as solving bilevel knapsack variants of Section 3.1, enabling us to relate sequential and simultaneous games. We derive sufficient conditions to guarantee equilibria. The section finishes proposing an algorithm to approximate equilibria in finite time, as well as the associated computational results. To the best of our knowledge, there are no previous algorithms in the literature capable of treating games with such a general form and therefore, we hope our contribution to be a stepping stone to future results in this context. Chapter 5. The thesis concludes in Chapter 5, summarizing our contributions and presenting future research directions. Chapter 2 Background In this chapter, we provide the essential background that supports our contributions. We start defining the complexity classes P, NP, Σp 2and PPAD that will be employed later as a way of classifying the (in)tractability of the solution computation for the games under our study. The games in this thesis are represented by mathematical programming formulations, which are introduced next, along with duality theory (which is frequently at the base of algorithmic approaches in this context, including the algorithm proposed in Chapter 3). Computational complexity, most common used methods and solvers for mathematical programming problems are also presented in this chapter, which terminates with a game theory background, its connection to mathematical programming, and a literature review. 2.1 Complexity: P, NP, Σp 2and PPAD classes The first developments in complexity theory are traced back to 1965 [71]. It was the frequency of intractable-looking problems faced by algorithm designers, that led to the development of complexity theory in computer science. In this section, we introduce the basic computational complexity concepts required for the understanding of the work in this thesis. We refer the reader to Garey and Johnson [56], Papadimitriou [101] and Stockmeyer [121] for a comprehensive and relevant background in computational complexity. Adecision problem Aconsists of a set DAof instances and a subset YA⊆DAof YES instances; the problem is to determine whether a given instance is a YES instance or not. A deterministic algorithm solves problem A, if it halts for all input instances in DA and returns the answer YES if and only if the instance is in YA, otherwise, returns the answer NO. If the number of steps executed by the deterministic algorithm is bounded by a polynomial in the input size, then it is a polynomial time deterministic algorithm; we say that such algorithm is efficient. The polynomial time complexity class, denoted by P, consists of all decision problems for which a polynomial time deterministic algorithm 21 22 CHAPTER 2. BACKGROUND exists. Cobham [24] and Edmonds [47] were the first to identify the relevance of studying the concept of efficient solvability, that is, to recognize the problems belonging to P. Anondeterministic algorithm solves a decision problem Aif the following two properties hold for all instances I ∈ DA: 1. If I ∈ YA, then there exists a certificate Sthat, when guessed for input I, will lead the algorithm to respond YES for Iand S; 2. If I/∈YA, then there exists no certificate Sthat, when guessed for input I, will lead the algorithm to respond YES for Iand S. A nondeterministic algorithm that solves a decision problem Ais said to operate in polynomial time if there exists a polynomial psuch that, for every instance I ∈ YA, there is some guess Sthat checks whether the response is YES for Iand Swithin time p(|I|) (where |I|is the size of I). The nondeterministic polynomial time complexity class, denoted by NP, consists of all decision problems that can be solved by polynomial time nondeterministic algorithms. The class NP contains the problems in P and it is believed to strictly contain P, i.e., that there are problems which cannot be solved efficiently. For some problems in NP for which it is not known an efficient algorithm, there are pseudopolynomial time algorithms. An algorithm that solves problem Ais called a pseudopolynomial time algorithm for Aif its time complexity is bounded above by a polynomial function of two variables: input size and magnitude of the largest number in the input. For sake of simplicity, whenever it is said polynomial time, we mean deterministic polynomial time. Apolynomial transformation (also called a reduction) from a decision problem A1to a decision problem A2is a function f:DA1→DA2that can be executed by a polynomial time deterministic algorithm such that for all instance I ∈ DA1,Iis a YES instance for A1(I ∈ YA1) if and only if f(I) is also a YES instance for A2(f(I)∈YA2). A decision problem Ais complete for a complexity class Cif A ∈ C and there is a polynomial transformation from A0to Afor all A0∈ C. Therefore, complete problems are the most difficult problems in their class. It was the difficulty at finding efficient algorithms to solve some NP problems that was at the base of NP-completeness theory, which is attributed to Cook [27]. Even conceptually simple problems can be NP-complete. 2.1. COMPLEXITY: P, NP, ΣP 2AND PPAD CLASSES 23 Such an NP-complete example is the famous Partition problem [56]. Problem: Partition Instance: A sequence a1, a2, . . . , anof positive integers. Question: Does there exist a set S⊆ {1,2...,n}such that X i∈S ai=1 2 n X i=1 ai? (PP) The study of complexity classes that lie beyond NP was motivated by natural problems for which their precise classification in terms of the known complexity classes failed. The polynomial hierarchy was introduced by Meyer and Stockmeyer [91] in an attempt to properly classify decision problems that appear to be harder than NP-complete. In this thesis we focus on the second level of the polynomial hierarchy, denoted by Σp 2, built on top (lower level) of NP-complete problems. The Σp 2class consists in all decision problems that are solvable by polynomial time nondeterministic algorithms with access to an NP oracle. An NP oracle outputs the correct answer for problems in NP and each call to the oracle is counted as one computational step. Equivalently, Σp 2contains all decision problems in the form ∃x∀y P(x, y), that is, as a logical formula starting with an existential quantifier, followed by a universal quantifier, followed by a Boolean predicate P(x, y) that can be evaluated in deterministic polynomial time. Lately, more and more problems have been proven to be Σp 2-complete; see Johannes [70]. An example of a Σp 2-complete problem is the Subset-Sum-Interval decision problem (see Eggermont and Woeginger [48]). Problem: Subset-Sum-Interval Instance: A sequence q1, q2, . . . , qkof positive integers; two positive integers Rand rwith r≤k. Question: Does there exist an integer Swith R≤S < R + 2rsuch that none of the subsets I⊆ {1, . . . , k}satisfies X i∈I qi=S? (SSI) In this thesis, for some of our problems there is a proof of existence of a solution, but the existence proof does not provide an efficient algorithm. These are intractable problems of very different kind than decision problems and, thus, not suitable to be computationally classified through the previously defined classes. This is the case for the End-Of-The- 24 CHAPTER 2. BACKGROUND Line problem. Problem: End-Of-The-Line Instance: A directed graph G; a specified unbalanced vertex (i.e., the number of incoming arcs differs from the number of outgoing arcs). Question: Which is another unbalanced vertex? (ETL) For this problem, a solution is guaranteed to exist, by a parity argument. However, note that simply investigating the remaining vertices in order to find the unbalanced one cannot be guaranteed to be done in polynomial time ,since there is no specification on how Gis given in the input. To see this, consider the case that Ghas 2nvertices, one for every binary string of length n, and the vertices adjacency are given through two boolean circuits of polynomial size in n, call them predecessor and successor, such that, given a vertex, the predecessor returns a list of the incoming edges and the successor returns a list of the outgoing edges. In order to address the issue of giving a computational complexity classification for this different type of problems, the class Polynomial Parity Arguments on Directed graphs, denoted by PPAD, was introduced by Papadimitriou [102]. PPAD is a class of problems that can be reduced to the End-Of-The-Line. Therefore, a problem is PPAD-complete if End-Of-The-Line can be reduced to it. The PPAD class is believed to contain hard computational problems (such as fixed point problems); in particular, it is conjectured that P 6= PPAD. For some hard problems, it is possible to compute an “arbitrarily close solution” within polynomial time. In this thesis, we essentially study optimization problems; when these problems are hard, finding an approximate optimal solution efficiently is relevant. We conclude this section by defining approximation scheme for an optimization problem Ato be an algorithm that takes as input both an instance I ∈ DAand an accuracy requirement ε > 0, and that then outputs a candidate solution with value Approx(I) such that OPT(I) Approx(I)≤1 + εfor maximization problems Approx(I) OPT(I)≤1 + εfor minimization problems where OPT(I) is the optimal value for instance I. An algorithm is a polynomial time approximation scheme if, for each fixed ε > 0, it returns the approximate solution in polynomial time. 2.2. MATHEMATICAL PROGRAMMING 25 2.2 Mathematical Programming Definitions and Basic Results. In mathematical programming, a problem is defined by a vector of decision variables, a function of that vector to be maximized or minimized, called objective function, and a set of constraints defining the feasible region for the decision variables. We denote the set of feasible vectors by X. The aim in a maximization problem (respectively, minimization) is to find an optimal solution,i.e., a feasible vector for the decision variables such that the corresponding objective function is maximized (respectively, minimized). A problem is feasible if the set of feasible vectors for the decision variables is not empty, otherwise, it is infeasible; a maximization problem (respectively, minimization) is bounded if the objective function cannot assume arbitrarily large positive (respectively, negative) values at feasible vectors, otherwise, it is said to be unbounded. A linear programming problem (LP) can be expressed as maximize x(max x)c|x(2.2.1a) subject to (s.t.) Ax ≤b(2.2.1b) xi≥0 for i= 1, . . . , n, (2.2.1c) where xis an ndimensional column vector of decision variables (decision vector), c∈Rn, b∈Rm,Ais an m-by-nreal matrix and (·)|is the transpose operator. The objective function is defined in (2.2.1a). Constraints (2.2.1b) and (2.2.1c) define a polyhedron in Rn, the feasible region X. A set of points Pis convex if for any set of points z1, z2, . . . , zk∈ P and λ1, λ2, . . . , λk∈R+ with Pk i=1 λi= 1, the convex combination Pk i=1 λiziis in P(it is called affine combination if λi∈R). The dimension of a convex set is nif and only if it has n+ 1, but no more, affinely independent points (i.e., none of these points is an affine combination of the others). The polyhedron Xdefining the feasible region of an LP is a convex set. A face of Xis a set {x∈X:α|x=β}for some α∈Rn,β∈Rso that the inequality α|x≤β holds for all x∈X. A vertex of Xis the unique element of a zero dimensional face of X. It is a well-known result that if an LP has an optimum, then there is a vertex of X that is an optimal solution. A facet of a ndimensional polyhedron is a face of dimension n−1. See Nemhauser and Wolsey [95] for details in polyhedral theory. Duality Theory (see Dantzig [34]) plays an important role in the context of linear programming. Introduced by von Neumann [129], the dual problem of the LP (2.2.1) is 32 CHAPTER 2. BACKGROUND 2.2.1.3 The Lot-Sizing Problem Production planning is a classical problem in operations research, given its practical applications and the related challenging models in mixed integer programming. In this section, we focus on the simplest case, with only one machine, and planning the production of only one item. The lot-sizing problem (LSP) can be described as follows. There is a finite planning horizon of T > 0 periods. For each period t= 1, . . . , T, the demand is Dt≥0, the unit production cost (also known as variable cost) is Ct≥0, the unit inventory cost is Ht≥0, the fixed set-up cost is Ft≥0 and the production capacity is Mt. The goal is to find a production plan such that the demand of each period is satisfied and the total cost is minimized. Thus, we can model the problem as the following MIP: min x,h,y T X t=1 Ctxt+ T X t=1 Htht+ T X t=1 Ftyt(2.2.7a) s. t. xt+ht−1=Dt+htfor t= 1, . . . , T (2.2.7b) 0≤xt≤Mtytfor t= 1, . . . , T (2.2.7c) h0=hT= 0 (2.2.7d) ht, xt≥0 for t= 1, . . . , T (2.2.7e) yt∈ {0,1}for t= 1, . . . , T (2.2.7f) where, for each period t= 1, . . . , T,xtis the production quantity, htis the quantity in inventory in the end of that period and ytindicates if there was production (yt= 1) or not (yt= 0). The objective (2.2.7a) is to minimize the total production cost. Constraints (2.2.7b) model the conservation of product. Constraints (2.2.7c) ensure that the quantities produced are non-negative, satisfy the production limit, and assure that whenever there is production (xt>0), the binary variable ytis set to 1, implying the payment of the set-up cost. Constraint (2.2.7d) fixes the initial and final inventory quantities to be 0, which is a simplification that does not reduce generality. Moreover, through equation (2.2.7b), the objective function could be alternatively written without the inventory costs; we assume such simplification from now on. In the uncapacitated lot-sizing problem (ULSP), for each period tthe production capacity Mtdoes not limit production, and the problem can be solved in polynomial time through dynamic programming, as presented next. A well-known property that reveals the structure of the ULSP is the following. Proposition 2.2.9. There exists an optimal solution to ULSP in which ht−1xt= 0 for all t. This proposition allows to describe the optimal solution to ULSP as follows. 2.2. MATHEMATICAL PROGRAMMING 33 Proposition 2.2.10. There exists an optimal solution to ULSP characterized by i. a subset of periods 1≤t1< . . . tr≤Tin which production takes place; the amount produced in tjis Dtj+. . . +Dtj+1−1for j= 1, . . . , r with tr+1 =T+ 1; ii. a subset of periods R⊆ {1, . . . , T}\{t1, . . . , tr}; there is a set-up in periods {t1, . . . , tr}∪ R. Proposition 2.2.10 shows that an optimal solution can be decomposed into a sequence of intervals, [t1, t2−1], [t2, t3−1], ..., [tr, T], plus some additional set-ups without production (periods in R). Let G(t) be the minimum cost of solving ULSP over the first tperiods, that is, satisfying the demands D1,. . .,Dt, and ignoring the demands after period t, and let φ(k, t) be the minimum cost of solving the problem over the first tperiods subject to the additional condition that the last set-up and production period is k≤t. From the definition, it follows that G(t) = min k:k≤tφ(k, t).(2.2.8) Using the optimal solution description by Proposition 2.2.10 it is easy to conclude that the value of φ(k, t) is equal to the minimum cost of solving the problem over the first k−1 periods plus the costs associated with producing in period kto satisfy the demand up to period t. Therefore, φ(k, t) = G(k−1) + Fk+Ck t X j=k Dt.(2.2.9) Now we have the tools to describe the dynamic programming procedure. Start with G(0) = 0 and calculate G(1), G(2), ..., terminating with the optimal value, G(T) through the recursion G(t) = min k:k≤t"G(k−1) + Fk+Ck t X j=k Dt#.(2.2.10) In order to recover the optimal solution, some additional information must be kept. These calculations can be done polynomially, in O(T2) computing time. In fact, the computation can be further improved in order to run in O(Tlog T). When the production capacities are constant over time, LSP remains polynomially solvable. However, if capacities are time-varying the problem becomes NP-complete. The interested reader is referred to Pochet and Wolsey [106] for a complete treatment of production planning problems. 34 CHAPTER 2. BACKGROUND 2.3 Game Theory Basic Definitions. Game theory (Fudenberg and Tirole [53], Owen [99]) is a generalization of decision theory where players are concerned about finding their “best” strategies subject to the fact that each controls some, but not all, actions that can take place. It can be applied in a wide range of fields such as economics, political science, operations research and evolutionary biology; in short, whenever multiple agents interact. In a game, each player is a decision-maker and her utility is influenced by the other participants’ decisions. A game is described by a set of players M, each player p∈Mhaving a (nonempty) set of feasible strategies Xpand a real-valued utility function Πpover all combinations of the players’ feasible strategies, i.e., the domain is X=Qk∈MXk. We call each xp∈Xpand x∈Xa player ppure strategy and a pure profile of strategies, respectively. In this thesis, it is assumed that the games are non-cooperative (i.e., players have no compassion for the opponents), players are rational and there is complete information,i.e., players have full information about each other utilities and strategies. In a finite game, the set of strategies for each player pis finite and explicitly enumerated, that is, Xp={1,2, . . . , np}. Usually, it is represented in normal-form (or strategic-form), this is, through a multidimensional matrix with an entry for each pure profile of strategies x∈X, where that entry is an mdimensional vector of the players’ utilities associated with x. The following example serves to illustrate the concepts just described. Example 2.3.1. In the well-known “rock-scissors-paper” game there are two players, M={1,2}. The set of feasible strategies for each player p∈Mis Xp={rock, scissors, paper}. The players’ utilities for each possible game outcome are given in the bimatrix of Table 2.1. Player 1 is the row player and player 2 is the column player; for each combination of the players’ strategies there is an entry in the bimatrix which is a vector of their utilities: the first value is player 1 utility and the second value is player 2 utility. When the pure strategy “rock” is played against “scissor”, the player selecting “rock” receives a utility of 1 paid by the opponent (who gets -1); when the pure strategy “scissors” is played against “paper”, the player selecting “scissor” receives a utility of 1 paid by the opponent (who gets -1); when the pure strategy “paper” is played against “rock”, the player selecting “rock” receives a utility of 1 paid by the opponent (who gets -1). In continuous games, broader sets of strategies with respect to finite games are considered: each player pstrategy set Xpis a nonempty compact metric space and the utility Πpis continuous1. In particular, in continuous games, Xpcan be a set with an exponential (in 1All finite games are continuous games: a finite set is a compact metric space under the discrete metric and any function whose domain is endowed with the discrete metric is automatically continuous. 2.3. GAME THEORY 35 Player 2 rock scissors paper Player 1 rock (0,0) (1,-1) (-1,1) scissors (-1,1) (0,0) (1,-1) paper (1,-1) (-1,1) (0,0) Table 2.1: Rock-scissors-paper game the size of the representation of the game) or uncountable number of feasible strategies. Next, we give an example of a continuous game that is not finite. Example 2.3.2. There are two firms (the players), M={A, B}, producing a homogeneous good and competing in the same market. Firm Aand firm Bdecide the quantities to produce, xAand xB, respectively. There is an associated unit production cost Cp>0 and production capacity Wp, for each firm p∈M. The unit price function P(·)depends on the quantity of good that is put in the market; it is linear and decreasing, therefore P(xA+xB) = a−b(xA+xB)with a, b > 0and parameter ais greater than 2CAand 2CB. Thus, the utility of firm p∈Mis Πp(xA, xB) = a−b(xA+xB)xp−Cpxp and the feasible set of strategies is Xp={xp: 0 ≤xp≤Wp}(that is, the quantity xp produced by firm pmust be non negative and cannot exceed the production capacity). In order to find “rational” strategies, the following definitions are commonly used. Let the operator (·)−pfor some p∈Mdenote (·) for all players except player p. A strategy ˜xp∈Xpis dominated if there is ˆxp∈Xpsuch that for all x−p∈X−p Πp(˜xp, x−p)≤Πp(ˆxp, x−p).(2.3.1) A strategy ˜xp∈Xpis conditionally dominated given a profile of set of strategies R−p⊆ X−pfor the remaining players, if there is ˆxp∈Xpsatisfying Πp(˜xp, x−p)<Πp(ˆxp, x−p)∀x−p∈R−p.(2.3.2) A profile of strategies is said to be Pareto efficient if it is not dominated [114]. Up to this point, only pure strategies have been considered. However, there are games for which pure strategies seem insufficient in providing a “rational strategy”. The next example demonstrates this by showing that each pure profile of strategies is unstable. Example (Continuation of Example 2.3.1).In this game, both players decide simultaneously a strategy. The question is: which strategy should each player select such that 36 CHAPTER 2. BACKGROUND her utility is maximized? The maximum gain that player 1 can guarantee to herself through a pure strategy is -1 and the minimum loss that player 2 can guarantee to herself through a pure strategy is 1. In other words, assume that player 1 and player 2 are pessimistic. Then, player 1 determines her max-min strategy: for each of player 1’s strategies, determine her minimum gain and select player 1’s strategy that maximizes her minimum gain (in this game, the three strategies lead to a minimum of -1 and thus, the maximum gain that can be guaranteed is -1). Analogously, player 2 determines her minmax strategy: for each of player 2’s strategies, determine her maximum loss and select player 2’s strategy that minimizes her maximum loss. Player 1 max-min strategy leads to a gain of -1 while player 2 min-max strategy leads to a loss of 1. Since these utility values do not coincide (i.e., the gain of player 1’s max-min strategy is not the loss of player 2’s minmax strategy), we conclude that none of the 6 pure profiles of strategies (game outcomes) leads to a stable situation: each player has incentive to unilaterally deviate. However, if we allow the use of more complex strategies it is possible to achieve an equilibrium, that is, a strategy for each player such that both are simultaneously maximizing their utilities. Motivated by Example 2.3.1, we introduce basic concepts of measure theory to formalize the use of a probability distribution among a set of strategies. Let ∆pdenote the space of Borel probability measures (see Fremlin [52]) over Xpand ∆ = Qp∈M∆p. Similarly to pure strategy and profile definitions, σp∈∆pand σ∈∆ are called player pmixed strategy and mixed profile of strategies, respectively. In a strict mixed strategy no pure strategy is played with probability 1. For the sake of simplicity, whenever the context makes it clear, we use the term strategy to refer to a pure one. We make the standard von Neumann-Morgenstern expected utility assumption [130] that each player’s utility under a profile of mixed strategies is the expected utility when all players choose their strategies according to their respective probability distributions in an independent way. Therefore, for σ∈∆, each player pexpected utility is Πp(σ) = ZXp Πp(x)dσ. (2.3.3) A player pbest reaction (or best response) to a (fixed) strategy σ−p∈∆−pof the opponents is a solution to max xp∈XpΠp(xp, σ−p).(2.3.4) Example (Continuation of Example 2.3.1).If both players decide to assign a probability of 1 3for each of their three strategies, applying the probability theory definition of expected value, player 1 and player 2 could both guarantee an expected utility of 0 and none could unilaterally improve it by deviating to a different strategy. 2.3. GAME THEORY 37 Connecting Mathematical Programming and Game Theory. Until the famous book by von Neumann and Morgenstern in 1944 [130], there were almost no papers about game theory, except for the contributions of Borel in the early 1920’s [14–16] and von Neumann in 1928 [127] and 1937 [128]. It was in the fall of 1947 that von Neumann connected linear programming with games [34]. The observation of the players’ best strategies presented in the Example 2.3.1 is in fact an application of von Neumann’s min-max Theorem for two-player zero-sum games, i.e., games where the sum of the players’ utilities for each profile of strategies is zero X p∈M Πp(x) = 0 ∀x∈X. Theorem 2.3.3 (von Neumann’s min-max Theorem).Consider a two-player finite game with M={1,2},X1={1,2, . . . , n1}and X2={1,2, . . . , n2}. Let the game be a zerosum game, i.e, Π1(i, j) = −Π2(i, j). Then, there are probability distributions q1and q2 (i.e., Pn1 i=1 q1 i= 1,Pn2 j=1 q2 j= 1,q1 i≥0,q2 j≥0), satisfying max q1min q2|q1 n1 X i=1 n2 X j=1 Π1(i, j)q1 iq2 j= min q2max q1|q2 n1 X i=1 n2 X j=1 Π1(i, j)q1 iq2 j(2.3.5a) ⇔max q1min j n1 X i=1 Π1(i, j)q1 i= min q2max i n2 X j=1 Π1(i, j)q2 j(2.3.5b) where q1|q2is to be read q1given q2. Theorem 2.3.3 allows to find the equilibria strategies for two-player zero-sum finite games through linear programming. The right hand side of equation (2.3.5b) is equivalent to solving min q2,v v(2.3.6a) s. t. Π1(1,1)q2 1+Π1(1,2)q2 2+. . . +Π1(1, n2)q2 n2≤v(2.3.6b) Π1(2,1)q2 1+Π1(2,2)q2 2+. . . +Π1(2, n2)q2 n2≤v(2.3.6c) . . . (2.3.6d) Π1(n1,1)q2 1+Π1(n1,2)q2 2+. . . +Π1(n1, n2)q2 n2≤v(2.3.6e) q2 1+q2 2+. . . +q2 n2=1 (2.3.6f) q2 1≥0, q2 2≥0, . . . , q2 n2≥0 (2.3.6g) and the associated dual optimal solution gives the q1of the min-max Theorem 2.3.3 (recall the duality results of Section 2.2). 38 CHAPTER 2. BACKGROUND This was the first relationship between linear programming and game theory pointed out. However, for non two-players zero-sum finite games, von Neumann theorem does not necessarily hold, and alternative ways of computing “rational” strategies are required. Integer Programming Games. Next, we define the particular representation of Xp characterizing integer programming games. Based on the definition presented by K¨oppe et al. [77], we define an integer programming game (IPG) as a non-cooperative game where the feasible set of strategies for each player pis characterized through linear inequalities and integer requirements on player p’s decision variables Xp={xp∈Rnp:Apxp≤bp, xp i∈Nfor i= 1, . . . , Bp}(2.3.7) with Bp≤np. In this thesis, we will restrict our attention to IPGs. The example below is an IPG. Example 2.3.4. Consider Example 2.3.2, but now include set-up costs: whenever a firm p∈Mproduces a positive quantity, xp>0, a fixed cost Fpmust be paid. Then, the utility of firm p∈Mbecomes Πp(xA, xB) = a−b(xA+xB)xp−Cpxp−Fpyp and the feasible set of strategies is Xp={(xp, yp) : yp∈ {0,1},0≤xp≤Wpyp}, that is, the quantity xpproduced by firm pmust be non negative, cannot exceed the production capacity and whenever xp>0, the set-up cost is paid (yp= 1). Remark: Note that Example 2.3.4 is also a continuous game, because each player set of strategies is bounded and thus, a compact metric space. Example 2.3.1 is in the so-called normal-form representation. However, game 2.3.1 could easily be formulated as an IPG by associating a binary variable to each player pure strategy (which would model the strategy selected), adding a constraint summing the decision variables up to one (this ensures that one strategy is selected) and formulating the players’ objective functions according to the utility values for combinations of the binary variables. In fact, this transformation applied to any normal-form game leads to an equivalent IPG. Figure 2.3.1 depicts the relation between the aforementioned game classes; we highlight that an IPG contains all finite games and, if Xis bounded and utility functions are continuous, it is a continuous game; as in this thesis we restrict our attention to quadratic utility functions, the continuity of the utilities is guaranteed. In the next two sections, we distinguish between sequential games with two rounds (Section 2.3.1), Stackelberg competition, and simultaneous games (Section 2.3.2). Although in both types of games each player goal is to maximize her utility, the approach to find a solution significantly varies. 2.3. GAME THEORY 39 Finite Games Continuous Games IPGs Figure 2.3.1: Games classes. 2.3.1 Stackelberg Competition Basic Definitions. In the Stackelberg competition [131], also known as bilevel programming (BP), there are two players that play two rounds. In the first round the so-called leader takes action, and in the second round the other player (called the follower) observes the leader’s decision and selects her strategy. The decision variables are split into two groups, those that are controlled by the leader (on the upper level) and those controlled by the follower (on the lower level). Both decision makers have an objective function (utility) of their own and a set of constraints on their variables that define the set of feasible strategies. Furthermore, there are coupling constraints that connect the decision variables of leader and follower. Let the leader and follower decision vectors be xand y, respectively. A mathematical formulation for a bilevel problem is max x,y Πl(x, y) (2.3.8a) s. t. x∈X⊆Rnx(2.3.8b) where ysolves the follower’s problem (2.3.8c) max yΠf(x, y) (2.3.8d) s. t. y∈Y(x)⊆Rny,(2.3.8e) where the objective (2.3.8a) is the leader’s utility who controls the decision vector x, and the objective (2.3.8d) is the follower’s utility who controls the decision vector y. Note that problem (2.3.8) does not fully determine the follower’s behavior: there might be many follower’s optimal solutions for a fixed leader decision that yield different objective values for the leader. Which one will the follower choose? In the optimistic scenario the follower always picks an optimal solution that yields the best objective value for the leader, and in the pessimistic scenario she picks a solution that yields the worst 40 CHAPTER 2. BACKGROUND objective value for the leader. In Section 3.3, we tackle a BP characterized by the fact that both leader and follower share the same objective function (although with different optimization directions) and this distinction about optimistic and pessimistic scenarios is not needed; when leader and follower share the same objective function but the leader aims to minimize, and the follower to maximize it, the problem is called min-max programming problem. A Stackelberg equilibrium is an optimal solution for the BP (2.3.8); note that the objective function of an BP is the leader’s utility function. Let us give a classical example of a game with two rounds, in order to clarify the concepts presented so far. Example 2.3.5. The classical Stackelberg competition is modeled according to Example 2.3.2, but without production capacity limitations. Let firm Abe the leader and firm Bthe follower. Thus, we aim at finding the solution (Stackelberg equilibrium) for max xAa−b(xA+xB)xA−CAxA(2.3.9a) s. t. xA≥0 (2.3.9b) where xBsolves the follower’s problem (2.3.9c) max xBa−b(xA+xB)xB−CBxB(2.3.9d) s. t. xB≥0.(2.3.9e) Once the leader’s strategy xAis chosen, the follower selects her best reaction (which is easy to compute, since the follower’s utility is concave), playing xB(xA) = (a−CB−bxA)+ 2b(2.3.10) where α+= max(0, α). Then, since we assume that the leader is rational and can predict xB(xA), she replaces in her utility function xBby xB(xA)and computes the optimal quantity x∗A x∗A=a−2CA+CB 2b.(2.3.11) In conclusion, (x∗A, xB(x∗A)) is the Stackelberg equilibrium or, equivalently, the optimal solution for the bilevel problem (2.3.9). Interdiction problems (see Israel [68]) are a special type of BP that have received large attention in the research community. These are min-max BPs where for each follower’s variable, there is a leader’s binary variable and an interdiction constraint in the lower level problem that enables the leader to make that follower’s variable unavailable. Formally, in an interdiction problem, the follower’s constraints (2.3.8e) include a set of interdiction constraints y≤U|(1 −x),(2.3.12) 2.3. GAME THEORY 41 where Uis a vector column of dimension nx=ny. In Section 3.3 of this thesis, we focus on an interdiction problem. Solving Bilevel Problems. When the follower’s problem is an LP, through strong duality (recall Properties 2.2.2 and 2.2.3) applied to the follower’s optimization problem, one can compute a single level programming problem equivalent to the BP. If the follower’s optimization problem is a concave QP then an equivalent single level programming problem can be obtained by replacing her optimization problem by appropriate Karush- Kuhn-Tucker (KKT) conditions (for details in these conditions see Karush [73] and Kuhn and Tucker [79]). The introduction of integer requirements, leading to mixed integer bilevel programs (MIBP), even if restricted to the follower’s decision variables, is enough to make the transformation above not valid. The decision version of a BP asks whether there exists an action of the leader such that for any follower’s reaction, the leader’s objective value is guaranteed to be at least as good as a predefined bound. The complexity class Σp 2is the natural hotbed for bilevel problems that are built on top of NP-complete single-level problems. If a problem is Σp 2-complete, there is no way of formulating it as a single-level integer problem of polynomial size unless the polynomial hierarchy collapses (a highly unlikely event which would cause a revolution in complexity theory, quite comparable to the revolution that would be caused by a proof that P=NP). In fact, even for the simplest MIBP with the leader’s problem as an LP, the problem is Σp 2-complete (as is the case for the problem of Dempe and Richter [40] which we prove to be Σp 2-complete in Section 3.2.1). It is a well-known fact in MIBP research that the techniques that successfully work on (classical, single-level) MIPs are not straightforward to generalize to the bilevel case. Indeed, the BP obtained by relaxing the integrality restrictions does not provide an upper bound on the maximization version of the original problem, and even if its solution is integral, it is not necessarily optimal for the original problem. This is illustrated in the following example. 1 2 3 4 5 6 7 8 1 2 3 4 x y OP T original problem 1 2 3 4 5 6 7 8 1 2 3 4 x y OP T continuous relaxation Figure 2.3.2: Blue represents the feasible region for Problem (2.3.13) and associated continuous relaxation. 48 CHAPTER 2. BACKGROUND Feasibility Problem Input: for all p∈Ma set of strategies Apto be the support Output: NE σ, if there exists both a mixed strategy profile σ and a utility value upfor all p∈Msuch that up=Πp(ˆxp, σ−p)∀p, ∀ˆxp∈Ap(2.3.21a) up≥Πp(xp, σ−p)∀p, ∀xp∈Xp(2.3.21b) X xp∈Ap σp(xp)=1 ∀p(2.3.21c) σp(xp)≥0∀p, ∀xp∈Ap(2.3.21d) σp(xp) =0 ∀p, ∀xp∈Xp−Ap,(2.3.21e) where Πp(ˆxp, σ−p) = X x∈A−p Πp(ˆxp, x)Y k∈M−{p} σk(xk). Figure 2.3.3: Feasibility Problem for finite games. (Proposition 2.3.12); Constraints (2.3.21b) are the Nash equilibria conditions (2.3.14); Constraints (2.3.21c) to (2.3.21e) guarantee that σpis a probability distribution for each p∈M. In the literature there are many algorithmic approaches for computing equilibria of finite games. These methods essentially differ in the way of enumerating supports for the equilibria. One of the approaches to compute NE for finite games that performs better in practice is PNS, developed by Porter, Nudelman and Shoham [107]. PNS enumerates support sets and solves the associate Feasibility Problem until it is feasible and thus, an NE of it was found. In order to possibly reduce the support enumeration search space, an additional step eliminating conditionally dominated strategies from being in the supports is included, decreasing the number of Feasibility Problems to be solved. In this thesis, our goal is not restricted to finite games; we refer the reader interested on finite games to the surveys and state-of-the-art algorithms collected in [133]. Note that the algorithms for finite games when applied to IPG imply the explicit enumeration of all profiles of strategies, which can be exponential in the size of the game representation or even unsuitable when the set of feasible strategies is uncountable. Computing NE for IPG. For IPG, if there is at least a player pfor whom not all variables are bounded, or there are continuous variables (i.e.,Bp< np), Nash’s Theorem 2.3.11 does not apply, since the set of strategies becomes infinite. In this case, 2.3. GAME THEORY 49 Finite Games Continuous Games IPGs Separable Games Figure 2.3.4: Games classes. the most common existence theorem used is the following. Theorem 2.3.13 (Glicksberg [58]).Every continuous game has a Nash equilibrium. Therefore, an IPG is guaranteed to have an equilibrium if the players’ objective functions are continuous and the set of strategies Xis bounded (since IPG becomes a continuous game). Let the set of players be M={1, . . . , m}. A separable game is a continuous game with utility functions Πp:X−→ Rtaking the form Πp(x) = k1 X j1=1 . . . km X jm=1 ap j1...jmf1 j1(x1). . . fm jm(xm),(2.3.22) where ap j1...jm∈Rand the fp j:Xp−→ Rare continuous. See Figure 2.3.4 for a clear picture of the games classes relations. Separable games have the following property. Theorem 2.3.14 (Stein et al. [120]).In a separable game, for every mixed strategy σpthere is a finitely supported mixed strategy τpsuch that fp j(σp) = fp j(τp)for all j and |supp(τp)| ≤ kp+ 1. Moreover, if σpis countably-supported τpcan be chosen with supp(τp)⊆supp(σp).2 Combining Stein et al. and Glicksberg’s Theorems 2.3.14 and 2.3.13, Stein et al. [120] conclude the following: 2Extend fpto the space of all finite-valued signed measures in Xp: fp(σp) = Zfp 1(xp)dσp,...,Zfp kp(xp)dσp. 50 CHAPTER 2. BACKGROUND Corollary 2.3.15. Every separable game has a Nash equilibrium. Moreover, for every Nash equilibrium σthere is a Nash equilibrium τsuch that each player pmixes among at most kp+ 1 pure strategies and Πp(σ)=Πp(τ). Therefore, in case an IPG is a separable game, the search for an equilibrium can be reduced to finding a finite set of strategies for each player pof size at most kp+ 1 and check through the Feasibility Problem (2.3.21) if they are the support on an equilibrium. The utility functions of the games to be analyzed in this thesis are linear or quadratic and, thus, the utilities are written in the form (2.3.22). 2.3.2.1 Previous Work The literature on IPG is scarce and often focused on the particular structure of specific games. Moreover, typically, the analysis is restricted to pure Nash equilibria. Kostreva [78] provides the first attempt to address the computation of pure NE to IPG. Kostreva [78] describes a theoretical approach to tackle IPG for which players’ utility functions and constraints are polynomial, and integer variables are required to be binary. For each player’s binary variable xthe penalty Mx(1 −x) is added to her utility3, where Mis a suitably large positive number. Then, the Karush-Kuhn-Trucker (KKT) conditions are applied to each player’s continuous relaxation and merged into a system of equations for which the set of solutions contains the set of pure equilibria. To find the solutions for that system of equations the author recommends the use of a path following in a homotopy [136] or Gr¨obner basis [30]. Additionally, it must be verified which of the system’s solutions are equilibria4, implying solving each player’s best response problem and resulting in long computational times. Gabriel et al. [54] developed an optimization model for which the optimal solution is a pure Nash equilibrium of a game that approximates an IPG with concave utilities when integer constraints are relaxed. In [54], the players’ continuous relaxations are transformed in constrained problems through the KKT conditions and the complementary conditions are relaxed (not required to be satisfied) in order to satisfy the integer requirements. On the few experimental results presented, this approach leads to the computation of a pure NE for the original game. However, there is neither theoretical nor computational evidence showing the applicability of these ideas to the general case. Deciding the existence of pure equilibria in games with an exponential number of actions per player with general utility functions (expressed as Turing machines or Boolean circuits) was proven to be Σp 2-complete in ´ Alvarez et al. [2] and Schoenebeck et al. [115]. 3Note that the penalty Mx(1 −x) makes a player’s best reaction problem non-concave. 4The KKT conditions applied to non-concave maximization problems are only necessary. 2.3. GAME THEORY 51 Lee and Baldick [81] study the computation of mixed NE for an IPG in the context of the electric power market. There, the player’s set of strategies is approximated through a discretization of it, resulting in a normal-form (finite) game to which there are general algorithms to compute NE. Nevertheless, there is a trade-off between having a good discretized approximation and an efficient computation of NE: the more strategies are contained in the discretization, the longer the time to compute an NE will be. Stein et al. [120] restrict their attention to separable games. The authors are able to provide bounds on the cardinality of the support of equilibrium strategies (Theorem 2.3.14) and present a polynomial-time algorithm for computing -equilibria of two-player separable games with fixed strategy spaces and utility functions satisfying the H¨older condition. We expand the class of problems introduced by K¨oppe, Ryan and Queyranne [77] as integer programming games (recall the strategy set formulation (2.3.7)); the difference is in the fact that we allow continuous decision variables in addition to integer variables. The utility functions in [77] are differences of piecewise-linear concave functions. This is not the case for our models; e.g., for the IPG studied in Section 4.3, each player’s objective function is quadratic in her decision variables. Moreover, since generating functions of integer points inside of polytopes (bounded polyhedron) are used to study pure NE, their approach would only be suitable if the players’ strategy sets are countable (which is not the case when there are continuous variables). Finally, the application of K¨oppe, Ryan and Queyranne’s results rely on computational implementations that are still in preliminary stage, although theoretically it can be proven to run in polynomial time (under restrictive conditions, like number of players fixed and sum of the number of players’ decision variables fixed, to name few). As we have seen in the previous section, the class of IPGs contains finite games for which it has been proven that computing an equilibrium is PPAD-complete. Adding to this, the fact that deciding if a profile of strategies is an equilibrium is itself an NP-complete problem (since it implies to solve each player best reaction problem (2.3.4), which can, in turn, be an IP) reveals the difficulty of tackling this class of problems. In this thesis, the first simultaneous IPG that we present has a special structure associated with the classical knapsack problem that enables to reduce the computation of pure equilibria to solving a two-objective optimization problem. Then, we analyze a game modeling the two-player kidney exchange markets for which our generalization of the maximum matching theory enable us to efficiently compute an equilibrium in which the players agree to play. The last particular game to be analyzed generalizes the classical Cournot competition model by merging it with the lot-sizing problem, and illustrates the difficulties of computing equilibria. Finally, in Section 4.4, general simultaneous IPGs with quadratic objective functions are studied. Note that IPGs may have no equilibria; 52 CHAPTER 2. BACKGROUND take, for instance, the case with a single player in which her optimization problem is unbounded. To the best of our knowledge, there is no previous study classifying the complexity of deciding if an IPG has an equilibrium. We prove that it is a Σp 2-complete problem, even in the case with only two players and linear utility functions. We also prove that deciding the existence of pure NE is Σp 2-complete. We conclude with an algorithm and the associated computational validation for simultaneous IPGs. 2.3.3 Game Theory Solvers As far as we know, MibS [109] is the only solver available to tackle general MIBP’s. Essentially, the generality of the algorithmic approaches to solve an MIBP reduce to determining optimal solutions for series of LP’s and/or MIP’s, and thus, the solvers mentioned in Section 2.2 are integrated in these algorithms framework. To the best of our knowledge, there are no general solvers for IPG. Thus, as mentioned in the previous section, in the literature, either in the games analyzed there are no integrality requirements to be satisfied or these are somehow taken into account in the players’ objective functions. This allows the problem of computing an equilibrium to be reduced to solving a constrained programming problem for which the solvers in Section 2.2 might be applied. However, the resulting constrained programming problems can be hard to solve and only enable the computation of pure equilibria. Alternatively, IPG equilibria have been approximated by enumerating part of the players’ feasible strategies and solving the resulting normal-form game (finite game). The most well-known and up-to-date game theory solver for normal-form games is the open-source Gambit [90], which results from a project initiated in the mid-1980’s by Richard McK- elvey at the California Institute of Technology. Gambit includes famous algorithmic approaches, like Lemke-Howson [82], Govindan-Wilson [61, 62], Simplicial Subdivision [126] and PNS [107]. In resemblance with the mathematical programming instances, there is a computational testbed for normal-form games: GAMUT [97]. Chapter 3 Stackelberg Competition: Bilevel Knapsack 1 Bilevel programming includes the classical single-level programming and therefore, it is expected to be more intricate. For this reason, in this chapter, we concentrate in studying the simplest mixed integar bilevel programming problems that one could devise. The knapsack problem has been a fundamental “playground” for understanding singlelevel programming. Thus, this methodological motivation together with the simplicity of the KP model, lead us to study natural generalizations of KP to bilevel programming which are formulated in Section 3.1. In particular, we study these problems computational complexity (Section 3.2) and suggest a novel viable algorithmic approach for one of the bilevel knapsack variants that have seldom address in the literature (Section 3.3). 3.1 Bilevel Knapsack Variants Over the last few years, a variety of authors has studied certain bilevel variants of the knapsack problem. Dempe and Richter [40] considered the variant where the leader controls the weight capacity of the knapsack, and where the follower decides which items are packed into the knapsack (Section 3.1.1). Mansi et al. [85] consider a bilevel knapsack variant where the item set is split into two parts, one of which is controlled by the leader and one controlled by the follower (Section 3.1.2). DeNegre [41] suggests yet another variant, where both players have a knapsack of their own; the follower can only choose from those items that the leader did not pack (Section 3.1.3). This section gives precise definitions for these variants and provides further information on them. 1The results of this chapter appears in: A. Caprara, M. Carvalho, A. Lodi, G. J. Woeginger. A Study on the Computational Complexity of the Bilevel Knapsack Problem, SIAM Journal on Optimization 24(2), 2014, 823-838. A. Caprara, M. Carvalho, A. Lodi, G. J. Woeginger. Bilevel knapsack with interdiction constraints, INFORMS Journal on Computing, Volume 28, Issue 2, Spring 2016, 319-333. 53 54 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK Throughout, we use ai,a0 i,bi,b0 i,ci,c0 iand A,B,C,C0to denote item weights, cost coefficients, upper bounds, and lower bounds. All these numbers are assumed to be nonnegative integers (or rationals). As usual, we will sometimes use the notation a(I) = Pi∈Iaifor an index set I, and a(x) = Piaixifor a 0-1 vector x. 3.1.1 The Dempe-Richter (DeRi) variant The first occurrence of a bilevel knapsack problem in the optimization literature seems to be due to Dempe and Richter [40]. In their problem variant DeRi, as depicted in Figure 3.1.1, the leader controls the capacity xof the knapsack while the follower controls all items and decides which of them are packed into the knapsack. The objective function of the leader depends on the knapsack capacity xas well as on the packed items, whereas the objective function of the follower solely depends on the packed items. max x∈Nf1(x, y) = A x + n X i=1 aiyi(3.1.1a) s. t. C≤x≤C0(3.1.1b) where y1, . . . , ynsolves the follower’s problem max y∈{0,1}n n X i=1 biyis.t. n X i=1 biyi≤x(3.1.1c) Figure 3.1.1: The bilevel knapsack problem DeRi. All decision variables in this bilevel programming problem are integers; the knapsack capacity xis integer, and the variables y1, . . . , yn∈ {0,1}encode whether item iis packed into the knapsack (yi= 1) or not (yi= 0). We note that in the original model in [40] the knapsack capacity xis continuous; one nasty consequence of this continuous knapsack capacity is that the problem (3.1.1a)–(3.1.1c) may fail to have an optimal solution (Example 3.1.1 illustrates such case). The computational complexity of the problem remains the same, no matter whether xis integral or continuous. Example 3.1.1. Consider the DeRi instance with n= 2,A= 1,C= 2,C0= 3,a1= 3, a2= 1,b1= 2 and b2= 3. If x < 3, the follower only has the feasible strategy y= (1,0), leading to f1(x, (1,0)) = x+3 which is greater or equal to 5; if x= 3, the follower optimal solution is y= (0,1) which leads to f1(3,(0,1)) = 3 + 1 = 4. It follows that the leader 3.1. BILEVEL KNAPSACK VARIANTS 55 would choose xas close as possible to 3 in order to maximize her objective value f1. This shows that there is no optimal solution for this instance. Dempe and Richter [40] discuss approximation algorithms for DeRi, and furthermore design a dynamic programming algorithm that solves variant DeRi in pseudo-polynomial time. Brotcorne, Hanafi and Mansi [17] derive another (simpler) dynamic program with a much better running time. Plyasunov [105] provides conditions under which the problem is non-degenerate and reduces to a series of linear programming problems. 3.1.2 The Mansi-Alves-de-Carvalho-Hanafi (MACH) variant Mansi et al. [85] consider a bilevel knapsack variant where both players pack items into the knapsack. There is a single common knapsack for both players with a prespecified capacity of C. The item set is split into two parts, which are, respectively, controlled by the leader and the follower. The leader starts the game by packing some of her items into the knapsack, and then the follower adds some further items from her set. The objective function of the leader depends on all items packed by leader and follower, whereas the objective function of the follower solely depends on her own items. Figure 3.1.2 specifies the bilevel problem MACH. max x∈{0,1}mf2(x, y) = m X j=1 ajxj+ n X i=1 a0 iyi(3.1.2a) s. t. y1, . . . , ynsolves the follower’s problem max y∈{0,1}n n X i=1 b0 iyis.t. n X i=1 c0 iyi≤C− m X j=1 cjxj(3.1.2b) Figure 3.1.2: The bilevel knapsack problem MACH. Mansi et al. [85] describe several applications of their problem in revenue management, telecommunication, capacity allocation, and transportation. Variant MACH has also been studied in a more general form by Brotcorne, Hanafi and Mansi [18], who reduced the model to one-level in pseudo-polynomial time. 56 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK 3.1.3 DeNegre (DNeg) variant DeNegre [41] proposes another bilevel knapsack variant where both players hold their own private knapsacks and choose items from a common item set. First, the leader packs some of the items into her private knapsack, and then the follower picks some of the remaining items and packs them into her private knapsack. The objective of the follower is to maximize the profit of the items in her knapsack, and the objective of the hostile leader is to minimize this profit. min x∈{0,1}nf3(x, y) = n X i=1 biyi(3.1.3a) s. t. n X i=1 aixi≤A(3.1.3b) where y1, . . . , ynsolves the follower’s problem max y∈{0,1}n n X i=1 biyis.t. n X i=1 biyi≤Band (3.1.3c) yi≤1−xifor i= 1, . . . , n (3.1.3d) Figure 3.1.3: The bilevel knapsack problem DNeg. Figure 3.1.3 depicts the bilevel problem DNeg. The 0-1 variables x1, . . . , xn(for the leader) and y1, . . . , yn(for the follower) encode whether the corresponding item is packed into the knapsack. The interdiction constraint yi≤1−xiin (3.1.3d) enforces that the follower cannot take item ionce the leader has picked it. Note that leader and follower have exactly opposing objectives. In Section 3.3, we will actually study a slightly more general version, where the constraint Pn i=1 biyi≤Bin (3.1.3c) reads Pn i=1 wiyi≤B, and thus has cost coefficients that differ from the coefficients in the objective functions of leader and follower. 3.2 Computational Complexity Recall the background Section 2.1 for essential concepts in the understanding of what follows. 3.2. COMPUTATIONAL COMPLEXITY 57 In Section 3.2.1, we will show that all three bilevel knapsack variants are complete for the complexity class Σp 2. The second line of investigation is presented in Section 3.2.2 where we study these variants under so-called unary encodings (an integer nis represented as a string of nones). The classical knapsack problem becomes much easier and polynomial solvable if the input in encoded in unary, and it is only natural to expect a similar behavior from our bilevel knapsack problems. Indeed, two of them become polynomial solvable if the input is encoded in unary, and thus show exactly the type of behavior that one would expect from a knapsack variant. The third variant, however, behaves stubbornly and becomes NP-complete under unary encodings, which is not the behavior one would expect. Our third line of results in Section 3.3, studies the approximability of the three bilevel variants. As a rule of thumb Σp 2-hard problems do not allow good approximation algorithms. Indeed, the literature only contains negative results in this direction that establish the inapproximability of various Σp 2-hard optimization problems (see [76] and [124, 125]). Of particular interest is the paper [125] by Umans that derives strong inapproximability results for Σp 2-hard optimization problems from certain errorcorrecting codes. Two of our bilevel knapsack variants (actually the same ones that are easy under unary encodings) behave exactly as expected and do not allow polynomial time approximation algorithms with finite worst case guarantee, assuming P6=NP. For the third variant, however, we derive a polynomial time approximation scheme. This is the first approximation scheme for a Σp 2-hard optimization problem in the history of approximation algorithms, and from the technical point of view it is the most sophisticated result in this section. Section 3.2.4 concludes by summarizing our results. 3.2.1 Hardness Results under Binary Encodings Throughout this section we consider bilevel knapsack problems where the input data is encoded in binary. As usual, we consider the decision versions of these optimization problems: “Does there exist an action of the leader that makes her objective value at least as good as some given bound?” The decision versions of our bilevel problems DeRi, MACH, DNeg ask whether there exists a way of fixing the variables controlled by the leader, such that all possible settings of the variables controlled by the follower yield a good objective value for the leader. Since this question is exactly of the form ∃x∀y P(x, y), we conclude that all three considered bilevel knapsack variants are indeed contained in Σp 2. Next, we prove that these variants are Σp 2-hard. The Σp 2-hardness proofs in this section will all be done by reductions from the decision problem Subset-Sum-Interval (SSI), which has been proved to be Σp 2-complete by Eggermont and Woeginger [48]. 64 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK solving a standard knapsack problem in unary encoding, which can be done in polynomial time. 3.2.3 Approximability and inapproximability Our Σp 2-completeness proofs in Section 3.2.1 have devastating consequences for the polynomial time approximation of problems DeRi and MACH. Recall that our reduction for problem DeRi yields the following: it is Σp 2-hard to distinguish the DeRi instances in which the leader can reach an objective value of 1 from those DeRi instances in which the leader can only reach objective value 0. An analogous statement holds for problem MACH. As a polynomial time approximation algorithm with finite worst case guarantee would be able to distinguish between these two instance types, we get the following result. Corollary 3.2.5. Problems DeRi and MACH do not possess a polynomial time approximation algorithm with finite worst case guarantee, unless P=NP holds (which is equivalent to P=Σp 2). The statement in Corollary 3.2.5 is not surprising at all: the literature on the approximability of Σp 2-hard optimization problems consists entirely of such negative statements that show the inapproximability of various problems; see Ko and Lin [76] and Umans [124]. The following theorem breaks with this old tradition, and presents the first approximation scheme for a Σp 2-hard optimization problem in the history of approximation algorithms. Theorem 3.2.6. Problem DNeg has a polynomial time approximation scheme. The rest of this section is dedicated to the proof of Theorem 3.2.6. We apply and extend a number of rounding tricks from the seminal paper [80] by Lawler, we use approximation schemes from the literature as a black box, and we also add a number of new ingredients and rounding tricks. Throughout the proof we will consider a fixed instance Iof problem DNeg. Without loss of generality (w.l.o.g.) we assume that no item iin the instance satisfies bi> B: such items could never be used by the follower, and hence are irrelevant and may as well be ignored. Let εwith 0 <ε<1/3 be a small positive real number; for the sake of simplicity we will assume that the reciprocal value 1/ε is integer. Our global goal is to determine in polynomial time a feasible solution for the leader that yields an objective value of at most (1+ε)4times the optimum (Approx(I) OPT(I)≤(1+ε)4). This will be done by a binary search over the range 0,1, . . . , B that (approximately) sandwiches the optimal objective value between a lower and an upper bound. Whenever we bisect 3.2. COMPUTATIONAL COMPLEXITY 65 the search interval between these bounds at some value U, we have to decide whether the optimal objective value lies below or above U. If the optimal objective value lies below U, then Lemma 3.2.8 and Lemma 3.2.9 (both derived next) show how to find and how to verify in polynomial time an approximate solution for the leader whose objective value is bounded by (1+ε)3U. If these lemmas succeed then we make Uthe new upper bound. If the lemmas fail to produce an approximate objective value of at most (1 + ε)3U, then we make Uthe new lower bound. The binary search process terminates as soon as the upper bound comes within a factor of 1 + εof the lower bound. Note that we then lose a factor of 1 + εbetween upper and lower bound, and that we lose a factor of at most (1 + ε)3 by applying the lemmas. All in all, this yields the desired approximation guarantee of (1 + ε)4and completes the proof of Theorem 3.2.6. See Figure 3.2.1 for an illustration of these ideas. Approx(I)≤U(1 + ε)3, U ≤L(1 + ε), L ≤OPT(I) ⇒Approx(I)≤OPT(I)(1 + ε)4 0B L U OPT (I)U(1 + ε)3 L(1 + ε) Approx(I) Figure 3.2.1: Approximation of the optimal value for a DNeg instance I. Let Land U be a lower and upper bound, respectively, for OPT(I). How do handle the central cases. We start by assuming that Uis an upper bound on the optimal objective value of the considered instance with B/2≤U≤B/(1 + ε).(3.2.3) The items i= 1, . . . , n are partitioned according to their b-values into so-called large items that satisfy U < bi, into medium items that satisfy εU < bi≤U, and into small items that satisfy bi≤εU. We denote by L,M,Srespectively the set of large, medium, small items. Furthermore a medium item ibelongs to class Ck, if it satisfies kε2U≤bi<(k+ 1)ε2U. Note that only classes Ckwith 1/ε ≤k≤1/ε2play a role in this classification. By (3.2.3) the overall size of 2/ε medium items exceeds the capacity of the follower’s knapsack. Hence the follower can fit at most 2/ε medium items into her knapsack. 66 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK In the following we will analyze two scenarios. In the first scenario, the solution x∗ used by the leader and the solution y∗for the follower both will carry a superscript∗. The sets of large, medium, small items packed by x∗into the leader’s knapsack will be denoted respectively by L∗ x,M∗ x,S∗ x, and the corresponding sets for y∗and the follower will be denoted L∗ y,M∗ y,S∗ y. In the second scenario we use analogous notations with the superscript#. The first scenario is centered around an optimal solution x∗for the leader. The second scenario considers another feasible solution x#for the leader that we call the aligned version of x∗. •Solution x#packs all large items into the knapsack; hence L# x=L. •Solution x#packs the following medium items from class Ck(note that M# x⊆M∗ x): (i.) If |Ck−M∗ x| ≤ 2/ε, then solution x#packs all items in M∗ x∩Ck. (ii.) If |Ck−M∗ x|>2/ε, then x#packs an item i∈M∗ x∩Ckif and only if there are at most 2/ε items j∈ Ck−M∗ xwith smaller b-value bj≤bi. (By this choice, the 2/ε items with smallest b-value in Ck−M∗ xcoincide with the 2/ε items with smallest b-value in Ck−M# x.) •For the small items we first determine a (1+ε)-approximate solution to the following auxiliary problem (Aux): find a subset Z⊆Sof the small items that minimizes b(Z), subject to the covering constraint a(Z)≥a(L# x∪M# x) + a(S)−A. Solution x#then packs the complementary set S# x=S−Z. This completes the description of x#, which is easily seen to be a feasible action for the leader. Note that also the optimal solution x∗packs all the large items, as otherwise the follower may pack a large item and push the objective value above the bound U. Then L# x=L∗ xand M# x⊆M∗ ximply a(L∗ x∪M∗ x)≥a(L# x∪M# x), which yields A≥a(L∗ x∪M∗ x∪S∗ x)≥a(L# x∪M# x) + a(S∗ x).(3.2.4) As a(S∗ x) = a(S)−a(S−S∗ x), we conclude from (3.2.4) that the set S−S∗ xsatisfies the covering constraint in the auxiliary problem (Aux). Hence, the optimal objective value of (Aux) is upper bounded by b(S−S∗ x), and any (1 + ε)-approximate solution Zto (Aux) must satisfy b(Z)≤(1 + ε)b(S−S∗ x), which is equivalent to b(S−S# x)≤(1 + ε)b(S−S∗ x).(3.2.5) The following lemma demonstrates that the aligned solution x#is almost as good for the leader as the underlying optimal solution x∗. Lemma 3.2.7. Given an optimal solution (x∗, y∗)with f3(x∗, y∗)≤U, let x#be the solution aligned to x∗. If the leader uses x#, then every feasible reaction y#for the follower yields an objective value f3(x#, y#)≤(1 + 2ε)U. 3.2. COMPUTATIONAL COMPLEXITY 67 Proof. Suppose for the sake of contradiction, that there exists a reaction y#for the follower that yields an objective value of f3(x#, y#)>(1 + 2ε)U. Based on y#we will construct another solution y∗for the follower: •Solution y∗does not use any large item; hence L∗ y=∅. •Solution y∗picks the same number of items from every class Ckas y#does. It avoids items in x∗and selects the |Ck∩M# y|items in Ck−M∗ xthat have the smallest b-values. •Finally we add small items from S−S∗ xto the follower’s knapsack, until no further item fits or until we run out of items. Solution y#packs at most 2/ε medium items, and hence uses at most 2/ε items from Ck. By our choice of medium items for x#we derive b(Ck∩M∗ y)≤b(Ck∩M# y) for every k, which implies b(M∗ y)≤b(M# y)≤B. (3.2.6) Solution y∗only selects items that are not used by x∗, and inequality (3.2.6) implies that all the selected items indeed fit into the follower’s knapsack. Hence, y∗constitutes a feasible reaction of the follower if the leader chooses x∗. Next, let us quickly go through the item types. First of all, neither solution y∗nor solution y#can use any large item, so that we have b(L∗ y) = b(L# y)=0.(3.2.7) For the medium items, the ratio between the smallest b-value and the largest b-value in class Ckis at least k/(k+1) ≥1−ε. Hence, we certainly have b(Ck∩M∗ y)≥(1−ε)b(Ck∩ M# y), which implies b(M∗ y)≥(1 −ε)b(M# y).(3.2.8) Let us turn to the small items. Suppose that y∗cannot accommodate all small items from S−S∗ xin the follower’s knapsack. Then some small item iwith bi< εU does not fit, which with (3.2.3) leads to b(y∗)> B −ε U ≥U. As this violates our upper bound Uon the optimal objective value, we conclude that y∗accommodates all such items and satisfies S∗ y=S−S∗ x. This relation together with (3.2.5) and the disjointness of the sets S# xand S# yyields b(S∗ y) = b(S−S∗ x)≥b(S−S# x) 1 + ε≥b(S# y) 1 + ε>(1 −ε)b(S# y).(3.2.9) Now let us wrap things up. If the leader chooses x∗, the follower may react with the 68 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK feasible solution y∗and get an objective value f3(x∗, y∗) = b(L∗ y) + b(M∗ y) + b(S∗ y) >(1 −ε)b(L# y) + (1 −ε)b(M# y) + (1 −ε)b(S# y) = (1 −ε)f3(x#, y#)>(1 −ε)(1 + 2ε)U > U. Here we used the estimates in (3.2.7), (3.2.8), and (3.2.9). As this objective value violates the upper bound U, we have reached the desired contradiction. Lemma 3.2.8. Given an upper bound Uon the objective value that satisfies (3.2.3), one can compute in polynomial time a feasible solution xfor the leader, such that every reaction yof the follower has f3(x, y)≤(1 + ε)3U. Proof. If we did not only know the bound Ubut also an optimal solution x∗, then we could simply determine the corresponding aligned solution x#and apply Lemma 3.2.7. We will bypass this lack of knowledge by checking many candidates for the set M# x. Let us recall how the aligned solution x#picks medium items from class Ck. •If |Ck−M∗ x| ≤ 2/ε then M# x∩Ck=M∗ x∩Ck. Note that there are only O(|Ck|2/ε) different candidates for M# x∩Ck. •If |Ck−M∗ x|>2/ε then M# x∩Ckis a subset of M∗ x; an item ifrom M∗ x∩Ckenters M# xif there are at most 2/ε items j∈ Ck−M∗ xwith bj≤bi. Note that M# x∩Ckis fully determined by the 2/ε items with smallest b-value in Ck−M∗ x. As there are only O(|Ck|2/ε) ways for choosing these 2/ε items, there are only O(|Ck|2/ε) different candidates for M# x∩Ck. Altogether there are only O(|Ck|2/ε) ways of picking the medium items from class Ck. As every class satisfies |Ck| ≤ nand as there are only 1/ε2classes to consider, we get a polynomial number O(n2/ε3) of possibilities for choosing the set M# xin the aligned solution. Summarizing, we only need to check a polynomial number of candidates for set M# x. How do we check such a candidate M# x? The aligned solution always uses L# x=L, and the auxiliary problem (Aux) is fully determined once M# xand L# xhave been fixed. We approximate the auxiliary problem by standard methods (see for instance Pruhs and Woeginger [108]), and thus also find the set S# xin polynomial time. This yields the full corresponding aligned solution x#. It remains to verify the quality of this aligned solution for the leader, which amounts to analyzing the resulting knapsack problem at the follower’s level. We use one of the standard approximation schemes for knapsack as for instance described by Lawler [80], and thereby get a (1 + ε)-approximate solution for the follower’s problem. 3.2. COMPUTATIONAL COMPLEXITY 69 While checking and scanning through the candidates, we eventually must hit a good candidate M# xthat yields the correct aligned version xof an optimal solution. By Lemma 3.2.7 the corresponding objective value f3(x, y) is bounded by (1 + 2ε)U. Then the approximation scheme finds an objective value of at most (1+ε)(1+2ε)U≤(1+ε)3U. This completes the proof of the lemma. How do handle the boundary cases. Finally let us discuss the remaining cases where Udoes not satisfy the bounds in (3.2.3). The first case U > B/(1 + ) is trivial, as the objective value never exceeds the follower’s knapsack capacity B; hence in this case the objective value will always stay below (1 + )U. The second case U < B/2 is settled by the following lemma. Lemma 3.2.9. Given an upper bound U < B/2on the objective value, one can compute in polynomial time a feasible solution xfor the leader, such that every reaction yof the follower has f3(x, y)≤(1 + )U. Proof. If the objective value is below B/2, then the leader must pick all items iwith bi≥B/2; otherwise the follower could pick one and push the objective value to B/2 or more. Once the leader has chosen her solution x, all remaining items will fit into the follower’s knapsack: the knapsack has free capacity of at least B−U > B/2, and hence every item iwith bi< B/2 will fit there. With these observations, the goal of the leader boils down to the following: partition the item set into two parts Zland Zfsuch that the value b(Zf) is minimized subject to the condition that the items in Zlaltogether fit into the leader’s knapsack. This minimization problem belongs to the class of subset selections problems studied by Pruhs and Woeginger [108]: determine a subset Zfof items that has minimum cost b(Zf) subject to the feasibility constraint that the total size of all items outside Zfis at most the size of the leader’s knapsack. This subset selection problem can be solved in pseudopolynomial time by routine dynamic programming; the resulting time complexity is bounded in B, in n, and in the logarithm of A. With this, Theorem 1.2 in [108] yields the existence of an approximation scheme which yields the desired solution xfor the leader. 3.2.4 Summary We have analyzed the computational complexity of three bilevel knapsack problems from the literature. All three problems DeRi, MACH, DNeg turn out to be Σp 2-complete under the standard binary encoding of the input. Our results provide strong evidence 70 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK that bilevel knapsack problems cannot be formulated as a classical single-level integer problem of polynomial size; otherwise the entire polynomial hierarchy would collapse to its first level which is considered to be extremely unlikely in the area of computational complexity theory. Furthermore, we have settled the complexity of these three bilevel knapsack problems under unary encodings of the input: unary-DeRi and unary-MACH are polynomially solvable, whereas unary-DNeg is NP-complete. Finally, we studied the approximability of the three problems. DeRi and MACH turned out to be inapproximable, whereas DNeg has a polynomial time approximation scheme. Our investigations provide a complete and clean picture of the complexity landscape of the considered bilevel knapsack problems. We expect that our results will also be useful in classifying and understanding other bilevel problems, and that our hardness proofs will serve as stepping stones for future results. 3.3 Bilevel Knapsack with Interdiction Constraints In this section, we will investigate a more general version of the bilevel knapsack variant defined in Section 3.1.3 which can be modeled through the following bilevel formulation: (DNeg) min (x,y)∈{0,1}n×{0,1}n n X i=1 biyi(3.3.1a) s. t. n X i=1 aixi≤A(3.3.1b) where y1, . . . , ynsolves the follower’s problem max y∈{0,1}n n X i=1 biyis.t. n X i=1 wiyi≤Band (3.3.1c) yi≤1−xifor i= 1, . . . , n, (3.3.1d) where xand yare the binary decision vectors controlled by the leader and the follower, respectively. Since it is in fact this general version that was originally suggested in the PhD thesis of DeNegre [41], we keep the label DNeg to designate it. Without loss of generality, we will throughout make the following three assumptions: bi,ai,wi,Aand Bare positive integers (3.3.2) ai< A and wi< B for all i(3.3.3) n X i=1 ai> A and n X i=1 wi> B. (3.3.4) 3.3. BILEVEL KNAPSACK WITH INTERDICTION CONSTRAINTS 71 In addition to our methodological motivation, DNeg can model a real-world application, called Corporate Strategy problem which is described in [41]: a Company Bwishes to determine its marketing strategy for the upcoming fiscal year. Company Bhas to decide which demographic or geographic regions to target, subject to a specified marketing budget. There exists a cost to establish a marketing campaign for each target region and an associated benefit. Company B’s goal is to maximize its marketing benefit. The larger Company Ahas market dominance; whenever Company Aand Company Btarget the same region, Company Bis unable to establish a worthwhile marketing campaign. In other words, Company Acan interdict regions for the marketing problem to be solved by Company B. Our goal is to end up with an algorithm to find the exact optimal solution. In Section 3.3.1, we review the algorithmic approaches to bilevel knapsack variants highlighting the difficulties that general MIBP methods encounter when solving DNeg and then propose one straightforward scheme for problem DNeg. In Section 3.3.2, we devise our algorithm for DNeg which is the central contribution in this section. Section 3.3.3 presents the computational results for our algorithm when applied on new randomly generated instances and on instances from the literature. 3.3.1 Knapsack Bilevel Algorithms Brotcorne et al. [18] consider a bilevel knapsack problem in which the decision of the leader only modifies the budget available for the follower. The algorithm in [18] may be summarized as follows: compute an upper bound for the follower’s budget, by ignoring the resources consumed by the leader; solve the follower’s 0–1 KP considering this budget bound through the standard knapsack dynamic programming approach (see for instance [86]). More precisely, the best follower’s reactions for all her possible budgets from 0 to the bound are computed. (Note that in this case, different decisions of the leader may yield the same subproblem for the follower.) With this, the authors are able to define the follower’s best reaction set for any fixed leader’s decision through linear constraints, reducing the problem to single-level. If we mimic this procedure for problem DNeg, we would have to consider all the leader’s interdictions that imply different reactions of the follower. However, in this case for every possible decision of the leader, the follower’s KP is modified in terms of the (not interdicted) items available and not in terms of her budget. Since different decisions of the leader always yield different problems for the follower, the number of lower level subproblems for the follower grows with the number 2nof item subsets and hence is exponential. In short, this is the reason why the methods 72 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK developed in [18] cannot be applied to DNeg. Yet another bilevel knapsack variant occurs in the work of Chen and Zhang [22], where the leader’s decision only interferes with the follower’s objective function, but not with the follower’s feasible region. This variant is computationally much easier, since the leader wants to maximize the social welfare (total profit) that leads to a coordination and alignment of the leader’s and the follower’s interests. Next, we focus in the general MIBP algorithms when applied to DNeg. As mentioned in Section 2.3.1.1, these methods adapt the Branch-and-Bound techniques for single level optimization to the bilevel case. In the root node, the high-point problem is solved which in the case of being applied to DNeg has an optimal value of zero, and hence does not provide an interesting lower bound for solving DNeg. Under this approach, the method continues by standard variable branching, and once a node has an integer solution verify its bilevel feasibility (which amounts to solving a KP for the follower). A bilevel feasible solution represents an upper bound and therefore helps to prune some nodes. Unfortunately, for all possible leader’s decisions the high-point problem may have its optimum equal to zero if y= 0 (thus, these nodes are not pruned), meaning that the method would enumerate all the possible leader’s decisions. Note, that the number of feasible leader’s solutions is Θ (2n), so that this all boils down to a standard brute force approach. DeNegre [41] considers interdiction problems, and constructs a Branch-and-Cut scheme by adding some new ingredients to the basic method. (In [41] the disjunction is stated for the general interdiction problems, but for sake of clarity, we explicitly show it here for the DNeg problem.) Consider a node twhere the optimal solution (xt, yt) is integer but not bilevel feasible (that is, the best follower’s reaction to xtis bywith Pn i=1 bibyi>Pn i=1 biyt i). In such a node t, the method either adds valid inequalities (cuts) such that xtbecomes infeasible (the so-called nogood cuts), or exploits the interdiction structure of the problems by branching on the following disjunction: either the leader packs a set of items such that Pi:xt i=0 xi≥1 or the leader packs a set of items such that Pi:xt i=0 xi≤0 and the follower has a profit Pn i=1 biyi≥Pn i=1 bibyi. In Section 3.3.2, we will build a method that uses this disjunction idea to solve DNeg, but in a more sophisticated and efficient way. Hemmati et al. [65] proposed a cutting plane scheme for an interdiction problem in the context of networks. Next, we describe a natural cutting plane approach to solve DNeg exactly. The ideas of this approach will be an ingredient of our algorithm that will be stated in Section 3.3.2. 3.3. BILEVEL KNAPSACK WITH INTERDICTION CONSTRAINTS 73 Cutting plane approach Problem DNeg is equivalent to the following single-level linear optimization problem: (BKP) min (p,x)∈R×{0,1}np(3.3.5a) subject to n X i=1 aixi≤A(3.3.5b) p≥ n X i=1 yibi(1 −xi)∀y∈S(3.3.5c) Here Sis the collection of all feasible packings for the follower. As the size of Sis O(2n), the use of the cutting plane approach is the standard method to apply; see Algorithm 3.3.1.1. In Algorithm 3.3.1.1, the function BestReaction receives as input the leader’s decision xk from the optimal solution of a BKP with S, and computes a rational reaction yxkfor the follower, that is, the KP optimum to interdiction xk. Note that this type of single-level reformulation works for all interdiction problems where the lower level optimization problem can be replaced by a set of constraints explicitly taking into account all possible reactions to the leader’s strategy. Note furthermore that this reformulation is exponential in size. Algorithm 3.3.1.1 CP- Cutting Plane Approach Input: An instance of DNeg. Output: Optimal value and an optimal solution to DNeg. 1: k←1 2: Initialize S(e.g., with the best follower’s reaction when there is no interdiction) 3: Let pk, xkbe an optimal solution to BKP with S 4: y(xk)←BestReaction xk 5: while pk< n X i=1 biyi(xk)do 6: Add constraint p≥ n X i=1 yi(xk)bi(1 −xi) to BKP // update S 7: k←k+ 1 8: Solve BKP and let pk, xkbe the optimal solution 9: y(xk)←BestReaction xk 10: end while 11: return p,xk, y(xk) 80 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK new solutions for the leader where the set of items picked by the follower in yxkis available, as the follower would have a profit at least as high as the previous one. If xk is a maximal strategy for the leader, then Pi:yi(xk)=1 xi≥1 is called a nogood constraint for the follower (NG2). It is easy to see that given a maximal strategy for the leader, the corresponding strong maximal constraint is dominated by the associated nogood constraint for the follower, as yixk= 1 implies xk i= 0. If xk, y(xk)is not the optimal solution of DNeg then, under the strategy y(xk), the follower is packing an item interdicted in any optimal solution. This establishes the validity of the nogood constraints for the follower. Thus, at each iteration kof the algorithm in which the (standard) nogood cuts are replaced by the follower’s nogood cuts, either an optimal solution has already been obtained or any optimal strategy for the leader satisfies all the follower’s nogood constraints already added. This shows the correctness of the substitution of (standard) nogood with follower’s nogood constraints. A further strengthening of the follower’s nogood constraints can be achieved by paying close attention to the cutting plane approach described in Section 3.3.1. Theorem 3.3.4. Consider an iteration kof Algorithm 3.3.2.1. If BEST is not the optimal value of problem DNeg, then there is an optimal admissible interdiction x∗for the leader such that n X i=1 biyi(1 −x∗ i)≤BEST −1∀y∈ {0,1}nsuch that n X i=1 wiyi≤B. (3.3.13) Proof. Let (x∗, y∗) be an optimal solution of DNeg. Then n X i=1 yibi(1 −x∗ i)≤ n X i=1 biy∗ i∀y: n X i=1 wiyi≤B. Moreover, if BEST at iteration kis not an optimal value of DNeg, then Pn i=1 biy∗ i≤ BEST −1. With the help of Theorem 3.3.4, it is easy to derive the following new type of valid constraints, to be introduced in each iteration kto strengthen MIPk: (NG3)cutting plane constraint n X i=1 yixkbi(1 −xi)≤BEST −1.(3.3.14) In this way, whenever BEST is updated in the iterative procedure, also the right-hand- sides of the previous cutting plane constraints are updated. 3.3. BILEVEL KNAPSACK WITH INTERDICTION CONSTRAINTS 81 It is easy to show that a cutting plane constraint dominates a follower’s nogood constraint when associated with the same leader interdiction. Indeed, after solving MIPkin an arbitrary iteration k, a best reaction of the follower to xkis computed and then it is checked whether this leads to a better solution for DNeg. At that point, the following inequality holds: n X i=1 biyixk≥BEST. Hence, in order to satisfy the associated cutting plane constraint n X i=1 yixkbi(1 −xi)≤BEST −1, the leader must interdict at least one item packed with the strategy yxk. Next, the general dominance of the cutting plane constraints over the remaining presented ones is established. Proposition 3.3.5. Consider Algorithm 3.3.2.1 amended by making the leader’s strategy maximal (after step 4) (call it Algorithm0) and replacing the nogood constraint (step 10) by - Algorithm1: the strong maximal constraint; - Algorithm2: the follower’s nogood constraint; - Algorithm3: the cutting plane constraint. Assume that if in an iteration k, Algorithm2and Algorithm3have a common optimal interdiction xkthen, both select xkand the same associated best reaction y(xk). Then, for i= 1,2,3, Algorithmireturns the optimal solution after a number of iterations less or equal than Algorithmi−1. Proof. For Algorithmidenote as MIPk,i and Fk,i the optimization problem MIPkand the associated feasible region for the leader maximal interdictions at iteration k. Define Fk,i as equal to the empty set if Algorithmihad returned the optimal solution in a number of iterations less or equal to k. Denote xk,i as the leader optimal solution to MIPk,i. For each Algorithminote that the purpose of each iteration kis to cut off non optimal leader’s maximal interdictions, therefore it is enough to concentrate on the set Fk,i. In other words, it is sufficient to show that Fk,i ⊆Fk,i−1holds for any iteration ksince it directly implies that Algorithmienumerates a less or equal number of bilevel feasible solutions in comparison with Algorithmi−1. We will prove that this result holds for i= 1,2 through induction in k. 82 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK In the first iteration, k= 1, all algorithms solve the same MIP1and thus, F1,2=F1,1= F1,0. Next, assume that Fm,i ⊆Fm,i−1holds for m=k. The induction hypothesis implies that the optimal solution value of MIPm,i−1is a lower bound to MIPm,i. Recall that we have argued before that for the same leader interdiction: the nogood constraint is dominated by the strong maximal constraint; the strong maximal constraint is dominated by the follower’s nogood constraint. By contradiction, suppose that Fm+1,i 6⊆ Fm+1,i−1. This implies the existence of x∈ Fm+1,i such that x /∈Fm+1,i−1. Since Fm+1,i ⊂Fm,i ⊆Fm,i−1, then x∈Fm,i−1. Therefore, xonly violates the additional constraint of Fm+1,i−1associated with Fm,i−1. This is only possible if xis the optimal solution of MIPm,i−1. Because MIPm,i−1provides a lower bound to MIPm,i and x∈Fm,i,xis the optimal solution of MIPm,i. However, this means that xwill be cut off from Fm,i and thus x /∈Fm+1,i, leading to a contradiction. It remains to prove that Algorithm3finishes in a number of iterations less or equal than Algorithm2. To this end the following assumption is necessary. As mentioned before, in the first iteration MIP1,2=MIP1,3and thus, by the proposition assumption, y(x1,2) = y(x1,3). This fact, implies that MIP2,2=MIP2,3since BEST = Pn i=1 piyi(x1,2) means that the NG3constraint is equivalent to NG2with respect to y(x1,2). Moreover, y(x2,2) = y(x3,2) and, consequently, the associated NG3constraint dominates NG2. We conclude that F3,3⊆F3,2. At this point, Algorithm3has advantage over Algorithm2because the set of interdictions F3,3is at most as large as F2,3. Note that if there is an iteration k≥3 such that y(xk,3)6=y(xk,2) then, Algorithm3is reducing the set of feasible interdictions through NG3associated with y(xk,3) and Algorithm3might end up computing y(xk,2) latter on in an iteration m > k which shows that Algorithm3 progresses more or as fast as Algorithm2. We conclude this series of cut improvements with two observations. First, the improvements described above are purely based on the fact that we are dealing with an interdiction problem. Hence, any type of interdiction problem for which we can prove an adaptation of Theorem 3.3.2 can be attacked by the basic iterative method with cutting plane constraints. Secondly, all constraints described so far depend solely on the decision variables of the leader. Therefore, the statement of Theorem 3.3.2 also applies to all improvements, and each MIPkis equivalent to a bilevel optimization problem in which the follower solves a relaxed knapsack problem. 3.3. BILEVEL KNAPSACK WITH INTERDICTION CONSTRAINTS 83 Stopping Criteria. Our next goal is to add a condition for the whole algorithm to stop. Let bmax = max i=1,...,n bi. Proposition 3.3.6. At an iteration kof the Basic Iterative Method, BEST cannot be decreased in the current and forthcoming iterations if n X i=1 biyBEST i+bmax ≤ n X i=1 biyk i. Proof. Let OPT be the optimal value to DNeg and assume that the proposition condition holds. For any leader’s optimal solution x∗, Corollary 2.2.8 implies that the optimal value of the follower’s continuous knapsack with interdiction x∗lies within the interval [OPT, OPT +bmax].(3.3.15) Because yBEST is the follower’s strategy corresponding to the best solution computed up to iteration k, obviously, n X i=1 biyBEST i+bmax ≥OPT +bmax. Then Pn i=1 biyk iis not in the range (3.3.15) which implies that xkis not an optimal interdiction. Furthermore, since the optimal value of the MIPs is monotonically increasing with the algorithm iterations, none of the upcoming iterations returns a leader’s optimal solution. In other words, the quantity bmax is an upper bound on the amount by which the continuous solution value of any follower’s reaction can decrease. If Pn i=1 biyk i−bmax is already bigger than the current incumbent solution value, then no further improvement is possible since (of course) Pn i=1 biyk+1 i≥Pn i=1 biyk i. Saving some Knapsack Computations. In an iteration kof our algorithm, the leader’s interdiction just built may lead to an improvement if the following necessary condition holds. The following observation follows from Corollary 2.2.8. Proposition 3.3.7. At an iteration k, the pair xk, y xkdoes not decrease BEST if n X i=1 biyk i−bckyk ck≥ n X i=1 biyBEST i, where ckis the critical item for the follower’s continuous knapsack with interdiction xk. 84 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK Thus, whenever the above condition is violated, we do not need to compute the best reaction by solving the associated KP. Our next goal is to embed the condition of Proposition 3.3.7 as a constraint inside MIPk. For that purpose, the following lemma and theorem will be crucial. Lemma 3.3.8 follows from Corollary 2.2.8. Lemma 3.3.8. Let xkbe a leader’s interdiction. Then n X i=1 biyk− n X i=1 biyixk≤bck. Note that bckprovides yet another upper bound on the value of the improvement due to BestReaction. The following theorem makes the upper bound independent of the critical item computation. Let wmax = max i=1,...,n wi. Theorem 3.3.9. Let xkbe a leader’s interdiction. Then, for the corresponding follower’s relaxed rational reaction to xkthere exists a dual solution that satisfies zk 0wmax ≥ n X i=1 biyk i− n X i=1 biyixk. Proof. By Theorem 2.2.7, there exists a solution in which at most one entry of ykis not binary in the relaxed best reaction to xk; furthermore, if such an entry does exist then its value equals yk ck. By the complementary slackness Property 2.2.3, there is a corresponding optimal dual solution with zk ck= 0. The ckdual constraint (3.3.8f) implies zk 0wck≥bck⇒zk 0wmax ≥zk 0wck≥bck. By using Lemma 3.3.8, we get zk 0wmax ≥zk 0wck≥bck≥ n X i=1 biyk− n X i=1 biyixk. Otherwise, if all follower’s variables are binary n X i=1 biyk− n X i=1 biyixk= 0 ≤zk 0wmax, because zk 0≥0. In order to use the upper bound derived above, the following proposition establishes yet another necessary condition which is similar in spirit to Proposition 3.3.7. 3.3. BILEVEL KNAPSACK WITH INTERDICTION CONSTRAINTS 85 Proposition 3.3.10. At an iteration k,BEST will not decrease if n X i=1 bibyk ic> BEST −1. In other words, if we round down the relaxed rational reaction of the follower to the leader strategy xk, then the resulting feasible solution for the follower has a profit strictly smaller than the best bilevel feasible bound known. Because of Theorem 3.3.9 n X i=1 biyk− n X i=1 biyixk≤ n X i=1 biyk− n X i=1 bibyk ic ≤ bck≤zk 0wmax, and it is easy to see that also the following holds: zk 0B+ n X i=1 uk i z }| { 1−xk izk i−zk 0wmax ≤BEST −1.(3.3.16) The following theorem turns condition (3.3.16) into an inequality that can be added to MIPk. Theorem 3.3.11. In the end of iteration k, the strong cut z0B+ n X i=1 ui−z0wmax ≤BEST −1, is valid for MIPk+1. Proof. The dual of the follower’s relaxed problem with the introduction of the strong cut (and replacing ui) is (Dual) minz≥0z0B+ n X i=1 1−xk izi(3.3.17a) s. t. wiz0+zi≥bifor 1 = 1, . . . , n. (3.3.17b) z0B+Pn i=1 1−xk izi−z0wmax ≤BEST −1,(3.3.17c) and the follower’s relaxed problem is (Primal) maxy≥0 n X i=1 yibi−(BEST −1) yn+1 (3.3.18a) s. t. Pn i=1 yiwi−(B−wmax)yn+1 ≤B(3.3.18b) yi−1−xk iyn+1 ≤1−xk ifor i= 1, . . . , n. (3.3.18c) 86 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK Essentially, we are dealing with a new item n+ 1 whose profit −(BEST −1) and weight −(B−wmax) are both negative. We will show that no optimal solution will use this new item: then yk n+1 = 0 holds, and the above primal problem collapses to the previous KP continuous relaxation for which the critical item exists. Hence, let us first ignore the new item and solve the continuous knapsack as before. Let cbe the critical item, and let S be the set of (indices of) items that are fully taken. Then, clearly Pi∈Sbi Pi∈Swi≥bc wc . Moreover, by Proposition 3.3.10 we may assume Pi∈Sbi≤BEST −1. Finally Pi∈Swi≥ B−wmax, as otherwise cwould not be the critical item. Altogether, this yields BEST −1 B−wmax ≥Pi∈Sbi Pi∈Swi≥bc wc . As the profit-to-weight ratio of the new item is at least as large as the profit-to-weight ratio of the critical item and as profit and weight of the new item are negative, the new item will not be used in an optimal solution. In the next section we will show that this cut is crucial in practice, as it significantly reduces the number of leader interdictions in the enumeration. This is the reason why the iterative approach is currently superior to the cutting plane (CP) approach. It is relatively easy to embed additional conditions to reduce the search space of the iterative approach, whereas additional cutting planes to enhance CP seem difficult to be developed. Pre-processing. For the approach developed so far, it is crucial to compute good upper bounds to the profit and weight of the items that may act as critical item. We describe a pre-processing routine that tightens these bounds and hence leads to a stronger approach. Recall that in this context we are dealing with the continuous relaxation of KP for the follower. Suppose that the follower could pack all the items from 1 to c−1 as illustrated in Figure 3.3.2. Since the follower has incentive to fully pack the available items from 1 to c−1, these items can never be critical. Another interesting observation is that some of the less valuable items for the follower are never packed by her and hence are not critical: this occurs because the follower uses all her budget on the most valuable available items. All in all, we are interested in computing a bound on the maximum follower’s weight interdicted by the leader. This trivially can be achieved by solving the following relaxed 3.3. BILEVEL KNAPSACK WITH INTERDICTION CONSTRAINTS 87 ratio 1 w1w2 2... wc c... wn n B ratio 1 w1w2 2... wc c... t wt ... wn n B+bPn i=1 wixint ic Figure 3.3.2: Illustration of the follower’s preferences when her knapsack is relaxed: items from 1 to c−1 and from t+ 1 to nare never critical. KP: xint = arg maxx∈[0,1]n n X i=1 wixi(3.3.19a) s. t. n X i=1 aixi≤A. (3.3.19b) Therefore, the leader interdicts at most bPn i=1 wixint icof the total available weight of the follower. It is easy to see from Figure 3.3.2 that the items from t+1 to nare never critical. In conclusion, with t= min{j:B+bPn i=1 wixint ic ≤ Pj i=1 wi}we have bmax = max i=c,...,t biand wmax = max i=c,...,t wi. The running time of this pre-processing is O(nlog n), and hence slightly more expensive than the simple O(n) procedure by computing bmax and wmax by taking all nitems. We could improve these bounds even further by adding so-called sensitive intervals for identifying the critical item candidates; see [18]. However, this comes at the cost of adding more constraints to our MIPs. For that reason, we will apply this improvement only to the very hard instances as explained in Section 3.3.3. CCLW algorithm. Our main algorithm is summarized in Algorithm 3.3.2.3. For ease of reference, we call it the Caprara-Carvalho-Lodi-Woeginger Algorithm (CCLW). 88 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK Algorithm 3.3.2.3 CCLW Input: An instance of DNeg. Output: Optimal value and an optimal solution to DNeg. 1: Compute bmax, wmax according to the Pre-processing 2: k←1; BEST ←+∞; 3: Build MIPk 4: while MIPkis feasible do 5: xk←arg min{MIPk} 6: if BEST +bmax ≤Optimal value of MIPk=Pn i=1 biyk ithen 7: STOP; 8: else 9: xk←MakeMaximal xk 10: yxk←BestReaction xk// solves the follower’s KP by fixing xk 11: if Pn i=1 biyixk< BEST then 12: BEST ←Pn i=1 biyixk; 13: xBEST , yBEST ←xk, y xk 14: MIPk+1 ←if k= 1 add strong cut z0B+ n X i=1 ui−z0wmax ≤BEST −1, otherwise update the right hand side of the strong cut and NG3s with BEST-1. 15: end if 16: MIPk+1 ←add NG3in yxkto the MIPk: X i:yi(xk)=1 bi(1 −xi)≤BEST −1 17: end if 18: k←k+ 1 19: end while 20: OPT ←BEST;xOPT , yOP T ←xBEST , yBEST ; 21: return OPT,xOP T , yOP T  3.3. BILEVEL KNAPSACK WITH INTERDICTION CONSTRAINTS 89 3.3.3 Computational Results In this section we computationally evaluate the algorithms from the preceding section in two phases. First, we compare CCLW with CP. There we also discuss the importance of the main ingredients of algorithm CCLW, as well as the structural difficulty of DNeg instances with respect to our algorithms. Secondly, we compare CCLW with the results of [41] and [42]. All algorithms have been coded in Python 2.7.2, and each MIP has been solved with Gurobi 5.5.0. The experiments were conducted on a Quad-Core Intel Xeon processor at 2.66 GHz and running under Mac OS X 10.8.4. Method Comparisons CP and CCLW will be compared against each other. Moreover, we will discuss the structural difficulty of bilevel knapsack instances with respect to the performance of CCLW. Generation of instances. For building the follower’s data, we have used the knapsack generator described in [86]; the profits biand weights wiare taken with uncorrelated coefficients from the interval [0,100]. For each value n, 10 instances were generated; these instances are available upon request. According to [86], the budget Bis set to dINS 11 Pn i=1 wiefor the instance number “INS”. The leader’s data, aiand Aall were generated by using Python’s random module; see [51]. In particular, aiand Awere chosen uniformly at random from [0,100] and [B−10, B + 10], respectively. Note that if the leader’s budget is significantly smaller than the follower’s budget, then there are fewer feasible solutions for the leader and the instance would be easier. On the other hand, if the leader’s budget is significantly bigger than the follower’s budget, then all the items may be packed by leader and follower together, and again the instance would be easier. We will see below that CCLW is very efficient for these cases. CP versus CCLW. In an attempt of asserting the importance of each ingredient of algorithm CCLW, we performed some tests with its basic scheme (Algorithm 3.3.2.1). It turned out that within one hour of CPU time, the Basic Iterative Method can only solve instances with up to 15 items. Although this is comparable to the size of problems reported in [41, 42] (discussed in detail in the end of this section), both CP and CCLW can go much higher in terms of number of items. For this reason, no detailed results for Algorithm 3.3.2.1 are reported here. Table 3.1 reports the results of algorithms CP and CCLW. For each instance, the table 96 CHAPTER 3. STACKELBERG COMPETITION: BILEVEL KNAPSACK 3.3.4 Summary We have analyzed a special class of interdiction problems and proposed an exact algorithm for solving it. Our method uses a new way of generating (enumerating) solutions, which seems to hit the optimal solution at a very early stage and thus allows us to concentrate on techniques for proving optimality. This behavior is quite different from classical Branch- and-Bound methods, which usually starts from infeasible (super-optimal) solutions and apply extensive enumerations. Of course, the classical branch-and-bound scheme has proven very effective for classical MIPs, whereas our results might indicate that this is not the case for MIBPs. Furthermore, we introduce a new cut for the leader’s variables which seems to be much stronger than the ones used in the literature and which significantly decreased the number of enumerated bilevel feasible solutions. Also cuts limiting the objective function range had a big impact in speeding up the method. We were able to solve instances with up to 100 binary variables, which is significantly larger than the size of instances solved in the literature. Our method is very efficient on instances where both leader and follower have a large budget. Consequently, the challenging and hard instances are those in which the budget of both leader and follower forces them to evaluate a large number of strategies. The comparison of our algorithm CCLW with the best ones from the literature demonstrates its advantage, and stresses the importance that problem-specific algorithms currently have in solving bilevel programming. A promising line for future research on general interdiction problems is to exploit the follower’s integrality relaxation; this is in harsh contrast to the classical high-point relaxation where the follower is forgotten as a decision-maker. Chapter 4 Simultaneous Games In this chapter, we will focus in simultaneous integer programming games. To warm-up, Section 4.1 investigates a simple IPG, called the coordination knapsack game, where each player’s optimization problem is a knapsack problem. Section 4.2 describes a game in the context of kidney exchange, called the competitive two-player kidney exchange game, and generalizes results from matching on graphs in order to solve the game efficiently. The competitive uncapacitated lot-sizing game is modeled in Section 4.3 through the generalization of the classical Cournot Competition to a finite time horizon and inclusion of lot-sizing decisions in the optimization programs of each firm (player) participating in the market. The chapter concludes in Section 4.4 by classifying the complexity of simultaneous IPGs and proposing a general algorithmic approach for computing at least one approximate equilibrium. 97 98 CHAPTER 4. SIMULTANEOUS GAMES 4.1 Two-Player Coordination Knapsack Game 1 Our Game Model. In resemblance to the methodological motivation to study bilevel knapsack variants, we start the study of simultaneous IPGs by modeling a game which is very simple to describe. Again, the knapsack problem is in the base of our game. The two-player coordination knapsack game (CKG) consists in a game played by a set of players M={A, B}, where each player’s goal is to maximize the individual valuation over a set of nitems. The optimization problem for each player p∈Mis max xp∈{0,1}n n X i=1 cp ixA ixB i(4.1.1a) s. t. n X i=1 wp ixp i≤Wp.(4.1.1b) The objective (4.1.1a) models the fact that player p∈Mgets profit cp i≥0 associated with item iif and only if xA i=xB i= 1. In other words, the benefit is only perceived for items which are chosen by both players. Each player phas to select a subset of items that does not exceed the capacity constraint (4.1.1b) of her knapsack. Another motivation to study the CKG is that it models situations in which a firm has to decide a set of new technologies to invest in, subject to a budget constraint and taking into account that the revenue is restricted to the technologies that were also adopted by other firms. Literature Review. In the literature, to the best of our knowledge, the most similar game to CKG that has been studied is the two-group knapsack game by Wang et al. [134]. Wang et al. [134] consider a game in which two groups simultaneously bid (select) on a common pool of potential projects (items); the profit of a particular project can be wholly taken by the sole bidder group or shared proportionally by two group bidders according to each group power in the market. The main difference between this game model [134] and CKG is twofold: (1) in [134] there is a profit for sole bidders and (2) shared projects (items) benefit the two groups proportionally, enabling existence conditions for the game to be potential and thus, to have at least a pure equilibrium (recall Lemma 2.3.9). 1The results of this chapter appear in: M. Carvalho, J. P. Pedroso. Two-Player Coordination Knapsack Game, working paper. 4.1. TWO-PLAYER COORDINATION KNAPSACK GAME 99 Our Contributions and Organization of the Section. In general, CKG is not potential; see Example 4.1.1 below. Moreover, potential function arguments only allow to determine one (pure) equilibrium. In this work, we are able to prove the existence of pure equilibria and to characterize the equilibria set. Example 4.1.1 (CKG is not potential).Consider an CKG instance with n= 4 items, profits equal to cA= (13,7,5,6) and cB= (5,6,7,10), weights equal to wA= (1,1,1,1) and wB= (1,1,1,2), and total capacities equal to WA= 2 and WB= 3. Observe the players’ utilities for the following profiles of strategies: xA= (1,0,0,1) and xB= (1,1,1,0),ΠA=13 and ΠB= 5 xA= (1,0,0,1) and xB= (0,1,0,1),ΠA=6 and ΠB= 10 xA= (0,1,1,0) and xB= (0,1,0,1),ΠA=7 and ΠB= 6 xA= (0,1,1,0) and xB= (1,1,1,0),ΠA=12 and ΠB=13. By the definition of potential function Φ(xA, xB), the above utility’ values imply that it satisfies Φ((1,0,0,1),(1,1,1,0)) <Φ((1,0,0,1),(0,1,0,1)) Φ((1,0,0,1),(0,1,0,1)) <Φ((0,1,1,0),(0,1,0,1)) Φ((0,1,1,0),(0,1,0,1)) <Φ((0,1,1,0),(1,1,1,0)) Φ((0,1,1,0),(1,1,1,0)) <Φ((1,0,0,1),(1,1,1,0)), which is impossible. In Section 4.1.1, we prove the existence of pure NE and reduce the computation of Pareto efficient pure NE to a two-objective optimization problem. To conclude, in Section 4.1.2, it will be shown that the utilities for any mixed equilibria of CKG lie in the convex hull formed by the utilities associated with the game pure NE. 4.1.1 Computing Pure Equilibria If player Apacks the set of items SA, then it is easy to see that player Bcan restrict her best reaction to this set; let a player B’s optimal response to SAbe SB⊆SA. It is feasible for both players to pack the items SBand this is an equilibrium. Lemma 4.1.2. If selecting the set of items Ssatisfies constraint (4.1.1b) for all p∈M, then it is an equilibrium for both players to only pack the items S. 100 CHAPTER 4. SIMULTANEOUS GAMES As a consequence of this lemma, we conclude that any CKG has a pure equilibrium, since it is feasible for both players to pack the set of items S=∅. Corollary 4.1.3. CKG has a pure equilibrium. As an implication of Lemma 4.1.2, the search of pure equilibria can be restricted to the strategies in which the players select exactly the same items. A profile x= (xA, xB)∈X is called coordination profile if xA=xB. Given x∈X, a coordination profile of xis ˜x∈X such that ˜xA i= ˜xB i=xA ixB i. Corollary 4.1.4. For any pure equilibrium ˆx∈X, there is another equilibrium ˜x∈X which is a coordination profile of ˆx, and Πp(ˆxA,ˆxB) = Πp(˜xA,˜xB)for all p∈M. The reason why this game has “coordination” in its name is based on Lemma 4.1.2 and Corollary 4.1.4: when the players choose the same set of items to pack (coordinate), an equilibrium is attained. Each player has potentially O(2n) feasible strategies, thus the potential number of equilibria is also O(2n). In the presence of multiple equilibria, the concept of Nash equilibrium may be refined. We will concentrate in Pareto efficient equilibria (defined in Section 2.3). Pure Pareto efficient equilibria which are coordination profiles can be described through the computation of the Pareto frontier of a two-objective optimization program. Theorem 4.1.5. Each pure Pareto efficient equilibrium for CKG has a coordination profile which is an equilibrium and a solution of the following two-objective optimization programming problem: max x∈{0,1}n n X i=1 cA ixi, n X i=1 cB ixi!(4.1.4a) s. t. n X i=1 wA ixi≤WA(4.1.4b) n X i=1 wB ixi≤WB.(4.1.4c) Proof. This is a direct consequence of Corollary 4.1.4. If the data is integer, in order to solve the optimization (4.1.4), one could reduce this search to solving a series of MIPs: simply remove one of the objective functions, say player B’s objective function, and solve the resulting one-objective optimization problem 4.1. TWO-PLAYER COORDINATION KNAPSACK GAME 101 (this will provide the preferable pure NE for player A); add the constraint that player Bmust have a profit of at least one unit greater than the one just computed and solve this new one-objective optimization problem; repeat this process until the optimization problem becomes infeasible (player Bcannot get higher profits). Alternatively, it could be applied the dynamic programming method proposed by Delort and Spanjaard [37]. This problem may be solved, e.g., by SYMPHONY [122], which is a software tool that tackles two-objective MIP’s. 4.1.2 Summary We have shown that the coordination knapsack game possesses a pure Nash equilibrium, and that for each Pareto efficient profile there is an associate pure NE, which is in the set of solutions of a two-objective mixed integer programming problem. The literature is rich in proposing methods capable of handling two-objective MIPs, which is out of the scope of this thesis. The developed work enables us to reach some conclusions about mixed equilibria of the CKG. The expected utilities for mixed equilibria are convex combinations of utilities evaluated for pure profiles. Thus, by definition of convex hull for a set, the expected utilities for mixed equilibria lie in the convex hull of the set of utilities for pure profiles. This convex hull can easily be determined given the Pareto frontier for the two-objective program (4.1.4) and the fact that each player’s utility is never negative; see Figure 4.1.1. We were not able to experimentally find any instance of CKG with a Pareto efficient mixed equilibrium, thus we have the following conjecture: Conjecture 4.1.6. The Pareto efficient equilibria of an CKG is completely defined by its pure equilibria. In Section 4.4, CKG is generalized to allow more than two players, to data that may be non-positive, and to adding to each player’s utility independent profits/costs for each item. This general version will be rich in (strictly) mixed equilibria. Indeed, for some instances there is no pure equilibrium. 102 CHAPTER 4. SIMULTANEOUS GAMES ΠA ΠB Figure 4.1.1: Pareto frontier of a CKG. The green dots represent the players’ utilities in a Pareto efficient pure equilibrium; the grey area represents all the utilities that are dominated; the dashed line in red is the convex hull boundary for the set of utilities’ values. 4.2. COMPETITIVE TWO-PLAYER KIDNEY EXCHANGE GAME 103 4.2 Competitive Two-Player Kidney Exchange Game 2 The Context. The kidney exchange problem can be described as follows. A patient suffering from renal failure can see her life quality improved through the transplantation of a healthy kidney. Whenever possible, a patient receives a kidney transplant from a deceased donor, or from a compatible living donor that is a patient’s relative or friend. Unfortunately, these two possibilities of transplantation can only satisfy a tiny fraction of the demand, since deceased donors are scarce and patient-donor incompatibilities may occur. To potentially increase the number of kidney transplants, some countries’ recent legislation (e.g., United Kingdom [84], Netherlands [36]) allows a pairwise exchange: e.g., for two patient-donor pairs P1and P2the patient of pair P1receives a kidney from the donor of pair P2and vice versa. The idea can be extended to allow more than two pairs to Pairwise exchange Exchange of size L P1P2P1P2P3. . . PL−1PL Figure 4.2.1: Kidney exchanges. be involved in an exchange (for L-pairs, P2receives a kidney from the donor P1,P3 from the donor of P2, etc, and, finally, P1from the donor of PL, closing a cycle; see Figure 4.2.1), and to include undirected (altruistic) donors, as well as pairs with other characteristics [26]. The general aim is to define a match that maximizes the number of transplants in a pool. Because in most cases the operations must take place at the same time, for logistic reasons the number of pairs that can be involved in an exchange is limited to a maximum value, say L. Furthermore, because additional compatibility tests that must be performed prior to transplant may uncover new incompatibilities, resulting in the cancellation of all transplants involved in the cycle, it is preferable for the cycles to be shorter. 2The results of this section appear in: M. Carvalho, A. Lodi, J. P. Pedroso, A. Viana. Nash Equilibria in the Two-Player Kidney Exchange Game, Mathematical Programming, 2016 (accepted). 104 CHAPTER 4. SIMULTANEOUS GAMES Abraham et al. [1] formulated the kidney exchange program (KEP) as an integer programming problem with an exponential number of variables, which maximizes the number of vertices covered in a digraph by vertex-disjoint cycles of size at most L. In this model, the vertices of the digraph represent patient-donor pairs and the arcs represent the compatibilities between pairs. A compact model, where the number of variables and constraints increases polynomially with the problem size, has been proposed by Constantino et al. [26]. In the previous models, there is a centralized decision-maker deciding the exchange program. However, there are other potential decision makers to be considered that can influence the exchange program. In Cechl´arov´a et al. [21], patient-donor pairs are the players in a cooperative kidney exchange game that is structurally different from what is presented in this paper because the players, the set of actions and utilities interact differently, as will be clear later with our game model description. Multi-Agent Kidney Exchange. Although some countries have a national kidney exchange pool with the matches being done by a central authority, other countries have regional (or hospital) pools, where the matches are performed internally with no collaboration between the different entities. Since it is expected that as the size of a patient-donor pool increases more exchanges can take place, it became relevant to study kidney exchange programs involving several hospitals or even several countries. In such cases, each entity can be modeled as a self-interested agent that aims at maximizing the number of its patients receiving a kidney (see Ashlagi and Roth [5, 6]). To the extent of our knowledge, work in this area concentrates on the search of a strategyproof mechanism that decides all exchanges to be performed in a multi-hospital setting. A mechanism is strategyproof if the participating hospitals do not have incentive to hide information from a central authority that decides the exchanges to be executed through that mechanism. For the 2-hospital kidney exchange program with pairwise exchanges, the deterministic strategyproof mechanism in Ashlagi et al. [4] provides a 2-approximation ratio on the maximum number of exchanges, while the randomized strategyproof mechanism in Caragiannis et al. [19] guarantees a 3 2-approximation ratio. Additionally, Ashlagi et al. [4] built a randomized strategyproof mechanism for the multihospital case with approximation ratio 2, again only for pairwise exchanges. In these mechanisms, in order to encourage the hospitals to report all their incompatible pairs, social welfare is sacrificed. In fact, in [4] it is proven that the best lower bound for a strategyproof (randomized) mechanism is 2 (8 7), which implies that no mechanism returning the maximum number of exchanges is strategyproof. In this context, the question is whether, analyzing the hospitals interaction from a standpoint of a non- 4.2. COMPETITIVE TWO-PLAYER KIDNEY EXCHANGE GAME 105 cooperative game, Nash equilibria would improve the program’s social welfare. A Game Model. We can formalize and generalize KEP to a competitive N-player kidney exchange game (N–KEG) with two sequential moves: first, simultaneously, each player n, for n= 1, . . . , N, decides the internal exchanges to be performed; second, an independent agent (IA) takes the first-stage unused pairs and decides the external exchanges to be done such that the number of pairs participating on it is maximized. Let us define Vnas the vertex set of player n,V=SN n=1 Vnand Cas the set of cycles with size at most L. Let Cn={c∈C:c∩Vn=c}be the subset of cycles involving only player n’s patient-donor pairs, and I=C\SN n=1 Cnbe the subset of cycles, involving at least two patient-donor pairs of distinct players. Each player solves the following bilevel programming problem: max xn∈{0,1}|Cn|X c∈Cn wn cxn c+X c∈I wn cyc(4.2.1a) s. t. X c∈Cn:i∈c xn c≤1∀i∈Vn(4.2.1b) where ysolves the problem max y∈{0,1}|I|X c∈I N X n=1 wn cyc(4.2.1c) s.t. X c∈I:i∈c yc≤1− N X n=1 X c∈Cn:i∈c xn c∀i∈V. (4.2.1d) Player ncontrols a binary decision vector xnwith size equal to the cardinality of Cn. An element xn cof xnis 1 if cycle c∈Cnis selected, 0 otherwise. Similarly, the IA controls the binary decision vector ywith size equal to the cardinality of I. The objective function (4.2.1a) translates on the maximization of player n’s patients receiving a kidney: wn c the number of player n’s patient-donor pairs in cycle c(which is the size of cif it is an internal). Constraints (4.2.1b) ensure that every pair is in at most one cycle. The IA objective (4.2.1c) represents the maximization of patient-donor pairs receiving a kidney in the second-stage. Constraints (4.2.1d) are analogous to (4.2.1b), but also ensure that pairs participating in the first-stage exchanges are not selected by the IA. In the way that we defined N–KEG, it is implicit that it is a complete information game. Initially, every player decides the pairs to reveal, and only revealed pairs will be considered in each player utility as well as in the second stage IA decision process. Note that there is no incentive for hiding information, as each player has complete control over her internal exchanges, and, therefore, can guarantee to be at least as good as if it was by herself. Moreover, if there were hidden pairs, they would not be considered in the IA 112 CHAPTER 4. SIMULTANEOUS GAMES Proof. Since we proved existence of a social welfare equilibrium PoS = highest total utilities value among all Nash equilibria social optimum = 1. Theorem 4.2.9. The price of anarchy is 1 2for the 2–KEG. Proof. By the definition of price of anarchy, we have PoA = lowest total utilities value among all Nash equilibria social optimum . Let MA,MBand MI(MA, MB) be the matchings of player A,Band the IA, respectively, that lead to the Nash equilibrium with lowest total utilities value, that is z∗= 2|MA|+ 2|MB|+ 2|MI(MA, MB)|. Let Mbe a maximum matching of the game graph G. Therefore, the social optimum is equal to z= 2|M∩EA|+ 2|M∩EB|+ 2|M∩EI|. By the definition of NE, we know that under MAand MB, none of the players has incentive to deviate, thus z∗≥2|M∩EA|+|MI(M∩EA, MB)|+ 2|M∩EB|+|MI(MA, M ∩EB)| ⇔z∗≥2|M∩EA|+ 2|M∩EB|+ 2|M∩EI|−2|M∩EI|+|MI(M∩EA, MB)| +|MI(MA, M ∩EB)| ⇔z∗≥z−2|M∩EI|−|MI(MA, M ∩EB)|−|MI(M∩EA, MB)|.(4.2.2a) The set M∩EImay include matchings of vertices also matched under MAor MB, therefore 2|M∩EI| ≤ 2|MA|+ 2|MB|+|RA|+|RB|, where Rnis a subset of Econsidering all the edges in M∩EIbut not in Mnand incident with a vertex of Vn, for n=A, B. See Figure 4.2.3. The number of player B’s vertices matched in MIM∩EA, MBis equal or greater than RB, because this external matching has available the vertices incident with the edges of RBand can match them with any vertex not in M∩EA, thus |RB|−|MI(MA, M ∩EB)| ≤ 0. 4.2. COMPETITIVE TWO-PLAYER KIDNEY EXCHANGE GAME 113 M∩EA∩MAM∩EB∩MB MA M∩EA EAEB M∩EB RAM∩EIRB MB Figure 4.2.3: Illustration of the solutions associated with the worst Nash equilibrium and the social optimum. In a completely analogous way, it can be shown that |RA|−|MI(M∩EA, MB)| ≤ 0. The inequalities above imply 2|M∩EI|−|MI(MA, M ∩EB)|−|MI(M∩EA, MB)| ≤ 2|MA|+ 2|MB| ≤ z∗, which together with inequality (4.2.2a) results in z∗≥z−z∗⇔z∗ z≥1 2. Now, we will use an instance to prove that the bound 1 2is tight. Consider a 2–KEG represented by the graph of Figure 4.2.4. It is easy to see that the worst Nash equilibrium in terms of total utilities is MA={(1,2)},MB=∅and MIMA, MB=∅with a total of z∗= 2. On the other hand, the social optimum is M={(1,3) ,(2,4)}with a value of z= 4. In this instance the price of anarchy is z∗ z=2 4=1 2. 4.2.3 Rational Outcome: Social Welfare Equilibrium In this section, we will prove that the social welfare equilibria are Pareto efficient (defined in Section 2.3) and any NE that is not social optimal is dominated by an SWE. Consequently, from both the social welfare and the players’ point of view, these equilibria are the most desirable game outcomes. Moreover, recall that in Section 4.2.2.2, we presented an algorithm that computes an SWE in polynomial time emphasizing its practicality. Below we show that no SWE is dominated, i.e., all SWE are Pareto efficient. 114 CHAPTER 4. SIMULTANEOUS GAMES 1 2 3 4 Figure 4.2.4: The price of anarchy is 1 2. Lemma 4.2.10. In 2–KEG any social welfare equilibrium is Pareto efficient. Proof. Let MAand MBbe players’ Aand Bstrategies, respectively, in a SWE. Assume that this SWE is not Pareto efficient, that is, there is a player A’s feasible strategy RA and a player B’s feasible strategy RBthat dominate this equilibrium. Without loss of generality, these assumptions translate into: 2|MA|+|MI(MA, MB)| ≤ 2|RA|+|MI(RA, RB)| 2|MB|+|MI(MA, MB)|<2|RB|+|MI(RA, RB)|. Summing the two inequalities above and simplifying, we obtain: |MA|+|MI(MA, MB)|+|MB|<|RA|+|MI(RA, RB)|+|RB|, which contradicts the assumption that the equilibrium given by MAand MBis a social optimum (maximum matching). Note that this result also holds for more than two players which reinforces the interest of studying SWE. In the next section, we prove any NE that is not a social optimum is dominated by an SWE. In order to achieve this result we need the following theorem, which fully characterizes a player’s best reaction. Theorem 4.2.11. In 2–KEG, let MBbe a player B’s fixed matching. A player A’s matching MAcan be improved if and only if there is a MA∪MI(MA, MB)-alternating path in GA(MB)whose origin is a vertex in VA, unmatched in this path, and the destination is a i. MA∪MI(MA, MB)-unmatched vertex belonging to VA, or ii. MI(MA, MB)-matched vertex in VB, or iii. MI(MA, MB)-unmatched vertex in VB. 4.2. COMPETITIVE TWO-PLAYER KIDNEY EXCHANGE GAME 115 The symmetric result for player Balso holds. Proof. Consider a fixed match MBof GB. (Proof of if). Let MAbe a player A’s strategy. Recall Lemma 4.2.2 in which we state that given MB, we can assume that player Acontrols the IA decision. If there is a path pin GA(MA) satisfying i.,ii. or iii., then, (MA∪MI(MA, MB)) ⊕pimproves player A’s utility in comparison with MA∪MI(MA, MB); see Figure 4.2.5 for an illustration. 1 2 3 4 5 6 MAMI(MA, MB) Case i. - The matching {(2,3),(4,5)}⊕{(1,2),(2,3),(3,4),(4,5),(5,6)}increases player A’s utility by two units. 1 2 3 4 5 6 7 MI(MA, MB)MAMI(MA, MB) Case ii. - The matching {(2,3),(4,5),(6,7)}⊕{(1,2),(2,3),(3,4),(4,5),(5,6),(6,7)}increases player A’s utility by one unit. 1 2 3 4 5 6 MAMI(MA, MB) Case iii. - The matching {(2,3),(4,5)}⊕{(1,2),(2,3),(3,4),(4,5),(5,6)}increases player A’s utility by one unit. Figure 4.2.5: Possibilities for player A’s to have an incentive to deviate from strategy MA, given the opponent strategy MB. (Proof of only if). Let MAbe player A’s best reaction to MBand consider a feasible player A’s strategy RAthat is not her best reaction to MB. We will show that assuming that there is no RA∪MI(RA, MB)-alternating path of GA(MB) as stated in the theorem leads to a contradiction. Note that given any two matchings M1and M2of a graph, in the induced subgraph with edges M1⊕M2, each vertex can be incident to at most two edges; hence, any connected component of M1⊕M2is either an even cycle with edges alternately in M1and M2, or a path with edges alternately in M1and M2. Let us define HAas the subgraph of GA that results from considering the edges in MA⊕RA, and Has the subgraph of GA(MB) that results from considering the edges in (MA∪MI(MA, MB)) ⊕(RA∪MI(RA, MB)). Connected components of HAand of Hare either even cycles or paths. 116 CHAPTER 4. SIMULTANEOUS GAMES If |MA|>|RA|,HAhas more edges of MAthan of RA, and therefore there exists a path pof HAthat starts and ends with edges of MA. If the origin and destination of pare MI(RA, MB)-unmatched, then pis an RA∪MI(RA, MB)-alternating path as stated in i., which contradicts our assumption. Thus, for all paths of HAstarting and ending with edges of MA, it holds that all their vertices are both MA-matched and RA∪MI(RA, MB)- matched (see Figure 4.2.6). Therefore, the advantage of MA∪MI(MA, MB) over RA∪ MARAMA MI(RA, MB)MI(RA, MB) p Figure 4.2.6: The path pis not an RA∪MI(RA, MB)-alternating path of type i. MI(RA, MB) must be outside HA. Analogously, if |MA|≤|RA|, we also conclude that the advantage of MA∪MI(MA, MB) over RA∪MI(RA, MB) must be outside HA. In this way, there is a∈VAand b∈VBsuch that (a, b)∈MI(MA, MB), but ais RA∪ MI(RA, MB)-unmatched. Then, since we assumed that there is no RA∪MI(RA, MB)- alternating path as stated in the theorem (and the IA does not violate the game rules), the path of Hstarting in amust end in a vertex a0∈VAthat is RA∪MI(RA, MB)- matched and MA∪MI(MA, MB)-unmatched. Therefore, the number of VAvertices covered by MA∪MI(MA, MB) and RA∪MI(RA, MB) on this component is the same (see Figure 4.2.7). In conclusion, any path of Hstarting in a vertex of VAthat is a b a0 MI(MA, MB) RA∪MI(RA, MB) Figure 4.2.7: Path component of H. The white circle is a vertex for which it is not important to specify the player to which it belongs. RA∪MI(RA, MB)-unmatched and MI(MA, MB)-matched does not give advantage to MA∪MI(MA, MB) over RA∪MI(RA, MB). This contradicts the fact that strategy RA is not a player A’s best reaction to MB. 4.2. COMPETITIVE TWO-PLAYER KIDNEY EXCHANGE GAME 117 4.2.3.1 Computation of a Dominant SWE We present in Algorithm 4.2.3.1 a method that, given a 2–KEG graph and a socially suboptimal Nash equilibrium, computes an SWE that we claim dominates the given equilibrium. Algorithm 4.2.3.1 Input: A 2–KEG instance Gand an NE Mof G. Output: Mif it is an SWE, else an SWE dominating it. 1: S←a maximum matching of G 2: if |M|=|S|then 3: return M 4: end if 5: t←1 6: Pt←paths from M⊕Swith both extreme edges in SM-augmenting paths 7: Mt←M⊕p1⊕. . . ⊕prwhere {p1, p2, . . . , pr}=Pt 8: while there is an Mt-alternating path x= (v0, v1, . . . , v2m) of type ii. in Gn(Mt∩E−n) for some n∈ {A, B}do 9: Assume (v0, v1)∈EI∩Mtwith v0∈V−nand v1∈Vn. 10: j←maxi=0,...,2m−1{i: (vi, vi+1)∈qfor some q∈ Pt} 11: y←(u0, u1, . . . , uk, uk+1, . . . , uf)∈ Ptused to determine jwith (uk, uk+1) = (vj, vj+1) 12: z←(v2m, v2m−1, . . . , vj+1, uk+2, . . . , uf) 13: Mt+1 ←Mt⊕y⊕z 14: Pt+1 ←(Pt−{y})∪{z} 15: t←t+ 1 16: G0←subgraph of Gn(Mt∩E−n) induced by considering only edges of xfrom v0to vj=ukand of yfrom u0to uk=vj 17: if there is a x←Mt-alternating path of type ii. in G0starting in (v0, v1) go to step 10 18: end while 19: return Mt. In what follows we provide a proof of the correctness of this algorithm. For sake of clarity, first of all, we provide an illustration of how the algorithm works by applying it to a 2–KEG instance. Example 4.2.12. Consider the 2–KEG instance represented in Figure 4.2.8. A Nash equilibrium Mthat is not a maximum matching is represented by bold edges in the top-left graph of Figure 4.2.9. The matching Mis a Nash equilibrium, since there is 118 CHAPTER 4. SIMULTANEOUS GAMES 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 Figure 4.2.8: A 2–KEG instance. no M-alternating path as stated in Theorem 4.2.11; and it is not a maximum matching because there are M-augmenting paths, e.g.,(25,24,5,6,20,21,22,23). We will apply Algorithm 4.2.3.1 to this NE in order to achieve one that is an SWE and dominates it. The algorithm starts by computing an arbitrary maximum matching S, represented in the top-right graph of Figure 4.2.9; the symmetric difference between Mand Sis represented in the center-left graph of that figure. There are 6 connected components in S⊕M, three of which include M-augmenting paths: P1={(33,32,31,30,3,4,26,27,28,29),(25,24,5,6,20,21,22,23), (15,14,13,12,11,10,19,18,17,16)}. Therefore, at the end of step 7 we obtain a maximum matching M1, represented at the center-right of Figure 4.2.9. The algorithm proceeds searching for an M1-alternating path of type ii. in Gn(M1∩ E−n)for some n∈ {A, B}, i.e., the algorithm will check if M1is an SWE. In this step, path x= (1,2,3,4,5,6,7,8,9) is found, which shows that M1is not an equilibrium. The M-augmenting path y= (25,24,5,6,20,21,22,23) is replaced by z= (9,8,7,6,20,21,22,23), leading to matching M2represented at the bottom-left graph of Figure 4.2.9. Next, step 17 is used to verify if there is an M2-alternating path of type ii. considering only the edges (1,2),(2,3),(3,4),(4,5),(5,24),(24,25). There is: path (1,2,3,4,5,24,25). The M-augmenting path (33,32,31,30,3,4,26,27,28,29) is modified into (25,24,5,4,26,27,28,29), obtaining M3represented in the lower-right graph of Figure 4.2.9. In the next iteration no M3-alternating path of type ii. can be found, and thus the algorithm terminates. M3is an SWE that dominates M. Next we will prove that for any socially suboptimal NE, the Algorithm 4.2.3.1 returns a dominant SWE. 4.2. COMPETITIVE TWO-PLAYER KIDNEY EXCHANGE GAME 119 Initial Nash equilibrium MInitial maximum matching S 12 3 4 5 6 78 9 10 11121314 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 2 3 4 5 67 89 10 1112131415 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 M⊕SMatching M1 1 2 3 4 5 67 89 10 1112131415 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 2 3 4 5 67 89 10 1112131415 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 Matching M2Matching M3 1 2 3 4 5 67 89 10 1112131415 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 2 3 4 5 67 89 10 1112131415 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 Figure 4.2.9: Computation of a dominant SWE in the 2–KEG instance of Figure 4.2.8 starting from the initial equilibrium in the top-left graph, and the initial maximum matching of top-right graph. The algorithm starts by computing a maximum matching S. If the Nash equilibrium from the input is a maximum matching, the algorithm returns it and stops. Otherwise, it proceeds. At iteration t,Ptis the set of M-augmenting paths used to compute the maximum matching Mt. In this way, step 7 augments Min order to obtain a maximum matching M1. Note that |P1|augmenting paths of Mare used in order to get M1and that the symmetric difference of a matching with an associated augmenting path only adds additional covered vertices. Therefore, none of the M-matched vertices is M1-unmatched, which shows that the players’ utilities associated with M1are equal to or greater than the ones achieved through M. Note that if there is an M1-alternating path of type i. or iii., then it is also an augmenting path of M1contradicting the fact that M1is a maximum matching. Therefore, by Theorem 4.2.11, if M1is not a Nash equilibrium then there is an M1-alternating path of type ii. in GA(M1∩EB) or GB(M1∩EA). In this case, the algorithm will remove the M1-alternating path of type ii. through steps 8 to 15. In these steps an M-augmenting path y∈ P1is replaced by a new M-augmenting path z. Thus, it is obvious that the new 120 CHAPTER 4. SIMULTANEOUS GAMES maximum matching M2dominates the utilities achieved through M. Suppose that in step 8 an Mt-alternating path xof type ii. is found. Since Mis an NE, the path xcannot be M-alternating. Thus, xintersects at least one Mt-matched edge of ay∈ Pt. The algorithm picks such yaccordingly with the one closest to v2m, since this rule ensures that ynever intersects xfrom vj+1 =uk+1 to v2m. Then, through step 13, v2mis made Mt+1-matched, which eliminates the Mt-alternating path xof type ii.. See Figure 4.2.10 for illustration. v0v1. . . vj=ukvj+1 =uk+1 . . . v2m u0uf MtMt x yz Figure 4.2.10: Modification of yto zthrough x. White circle vertices mean that there is no need to specify the player to which the vertices belong. So far, we proved that at any iteration tof Algorithm 4.2.3.1, the current maximum matching Mtdominates Mand that if there is an Mt-alternating path of type ii., we eliminate it in the next maximum matching Mt+1. It remains to show that the elimination of paths of type ii. will stop, leading to an SWE. By construction, the size of the augmenting path sets is maintained during the algorithm execution. Indeed, in each iteration, an M-augmenting path is replaced by a new one. Lemma 4.2.13. |Pt|=|Pk| ∀t, k ≥1. For an M-augmenting path y= (u0, u1, . . . , uf), define σ(y) as the number of times that y switches the player’s graph plus one unit if the first internal edge that follows the extreme u0∈Viis in E−i, and plus one unit if the last internal edge that precedes the extreme uf∈Vjis in E−j. For instance, the path 1 2 3 4 5 6 7 8 has σ-value equal to 3: count two unities because, the first extreme vertex, 1, is in VB while the following internal edge, (2,3), is in EAand add 1 unit because the rest of 4.2. COMPETITIVE TWO-PLAYER KIDNEY EXCHANGE GAME 121 the path is in EB. Indeed, the σ-value of M-augmenting paths has to be greater or equal to two, otherwise it is not a Nash Equilibrium (i.e., there is an M-alternating path as described in Theorem 4.2.11, or the independent agent is not choosing a maximum matching as obliged by the game rule). The following lemma states that the σ-value of the paths in Ptis non-increasing. Lemma 4.2.14. In an iteration tof Algorithm 4.2.3.1 σ(y)≥σ(z). Proof. Consider an arbitrary iteration tof Algorithm 4.2.3.1. Without loss of generality, assume that the Mt-alternating path xof type ii. found is in GA(Mt∩EB). In step 11, y= (u0, u1, . . . , uf) is the selected augmenting path in Pt. In order to get z, the part of yfrom u0to ukis replaced by a path that has all the edges in EA∪EI. Note that there must be an internal edge in yafter uk+1, otherwise Mis not an equilibrium: the path (uf, uf−1, . . . , uk+1, vj+2, vj+3, . . . , v2m) would be an M-alternating path in GA(M∩EB) satisfying one of the conditions of Theorem 4.2.11. Thus, we continue the proof by distinguishing two possible cases: the first internal edge in yafter uk+1 is in EBor EA. Case 1: The first internal edge in yafter uk+1 is in EB. Then, σ(z) is equal to one plus the number of times that the path yfrom uk+1 to ufswitches the player’s graph plus one unit if the last internal edge before uf∈Viis in E−i. Observe that σ(y) is greater or equal to the number of times that the path yfrom uk+1 to ufswitches the player’s graph plus one unit if the last internal edge before uf∈Viis in E−i. In order to get equal, the part of yfrom u0to uk+1 must have the edges in EB∪EI and u0∈EB. However, this contradicts the fact that Mis a Nash equilibrium: one of the vertices ukor uk+1 has to be in VA, otherwise yis not in player A’s graph. If uk+1 ∈VA, then uk+2 ∈VB, which means that the part of xfrom v2mto (uk+1, uk+2) is an M-alternating path of type ii. in GA(M∩EB). Otherwise, if uk∈VA, then uk−1∈VBand the part of yfrom u0to ukis an M-alternating path of type ii. in GB(M∩EA). In conclusion, σ(y)≥σ(z). Case 2: The first internal edge in yafter uk+1 is in EA. Then, σ(z) is equal to the number of times that the path yfrom uk+1 to ufswitches the player’s graph plus one unit if the last internal edge before uf∈Viis in E−i. Note that σ(y) is greater or equal to the number of times that the path yfrom uk+1 to ufswitches the player’s graph plus one unit if the last internal edge before uf∈Viis in E−i. In conclusion, σ(y)≥σ(z). An immediate consequence it the following corollary. 128 CHAPTER 4. SIMULTANEOUS GAMES Case 2: path pterminates in an M2-matched vertex of VB. Then, pis an M2-alternating path of type ii.; by Lemma 4.2.24, this contradicts the fact that M2is an NE. Case 3: path pterminates in an M1-matched vertex. Then, pis an augmenting path to M2; by Lemma 4.2.24, this contradicts the fact that M2is a maximum matching. We finish this section by noting that another desirable SWE is that in which the difference of players’ utilities is minimized, i.e., the discrepancy of the players’ utilities is minimized resulting in a more “fair” outcome. It is easy to show that the social welfare equilibrium introduced in this section, i.e., that minimizing the number of external matchings achieves simultaneously the goal of minimizing the difference of players’ utilities. Theorem 4.2.29. If Mis an SWE with minimum number of external matchings then, it also an SWE that minimizes the difference of players’ utilities. Proof. Let MA,MBand MI(MA, MB) be the social welfare equilibrium that minimizes the number of external matchings. Let RA,RBand MI(RA, RB) be the social welfare equilibrium that minimizes the difference in the players utilities, i.e., the value of |2|RA|+ |MI(RA, RB)|−2|RB|−|MI(RA, RB)|| =||RA|−|RB|| is the minimum among all social welfare equilibria. If |MI(MA, MB)|=|MI(RA, RB)|, then the matching RA∪RB∪MI(RA, RB) is also an SWE that minimizes the number of external matchings. Thus, by the uniqueness of the players’ utilities under this refinement of the SWE, MA∪MB∪MI(MA, MB) also minimizes the difference of players’ utilities. If |MI(MA, MB)| 6=|MI(RA, RB)|then, |MA|+|MB|>|RA|+|RB|since, by hypothesis |MI(MA, MB)|<|MI(RA, RB)|and both matchings have maximum cardinality. Without loss of generality, there must be a path pthat starts and ends in MA-matched vertices and alternates between edges in MAand edges in RA. Matching RA∪RB∪MI(RA, RB) is an NE which implies that pcannot be a path as described in Theorem 4.2.11. Therefore, the extreme vertices of pmust be MI(RA, RB)-matched which does not show any advantage of MA∪MI(MA, MB) and RA∪MI(RA, RB) over each other in terms of player A’s utility. In this way, it follows that both matchings lead to the same utility for both players. In conclusion, one may argue that the players will select social welfare equilibria since, given any Nash equilibrium, both players can improve their utilities through an SWE. Additionally, choosing an SWE that minimizes the number of external exchanges is a desirable propriety for both players, and we demonstrated that such equilibrium can 4.2. COMPETITIVE TWO-PLAYER KIDNEY EXCHANGE GAME 129 be found in polynomial time. Moreover, players are indifferent among such equilibria, because utilities remain the same for any of them. Thus, it seems reasonable to consider that the players will agree in the SWE to be played. 4.2.5 Model Extensions In what follows, we discuss extensions to the results when our assumptions (exchanges size, players’ utilities and number of players) are relaxed. A common problem of these extensions is that the IA decision may become undefined (in contrast with Proposition 4.2.1), in the sense that there might exist more than one optimal solution maximizing the number of external exchanges that would benefit the players differently. In order to deal with this issue, we could, for example, impose a public preference on the external exchanges to the IA, associate a probability for each equivalent optimal solution of the IA or assume that the players are pessimistic/optimistic about the IA decision. Relaxation of Exchanges Maximum Size to L > 2.In the literature about kidney exchange programs, besides cycles of size two (matchings), typically cycles of size three (3-way exchanges) are allowed. In the latter case, we conjecture that (recall the notation introduced to N–KEG in Problem 4.2.1) Φ(xA, xB) = X c∈CA wcxA c+X c∈CB wcxB c+X c∈I:wA c=wB c=1 yc+3 2X c∈I:wA c=2∨wB c=2 yc is a (non-exact) potential function and thus, a maximum is an NE. However, for general values of Lthe game may fail to have a pure Nash equilibrium, as shown in Figure 4.2.14. The main difference when L > 3 is that in this case external cycles may help strictly more patients of a same player than an internal exchange, while for L= 3 an external exchange helps at most as many patients as an internal one. Besides cyclic exchanges, researchers have also included chains, where, there is an altruistic donor starting the exchange (see Figure 4.2.15). Allowing exchanges beyond matchings (L= 2) and chains is an extension with positive impact in the social optimum, and it calls for studying the existence of pure Nash equilibria with good social properties. Change in Players’ Utilities. Investigating different players’ utilities is of crucial importance. The literature on the kidney exchange program is rich of examples analyzing different solution selection criteria (e.g., see [44]). 130 CHAPTER 4. SIMULTANEOUS GAMES 1 2 3 4 5 6 7 89SA=∅,SB=∅,SI(SA, SB) = {(2,6,5,4,3,2)} SA={(1,2,1)},SB=∅,SI(SA, SB) = ∅ SA={(1,2,1)},SB={(5,6,5)},SI(SA, SB) = ∅ SA=∅,SB={(5,6,5)},SI(SA, SB) = {(2,8,9,3,2)} Player Ahas incentive to deviate Player Bhas incentive to deviate Player Ahas incentive to deviate Player Bhas incentive to deviate Figure 4.2.14: A game instance with L= 5. Player Acan select {(1,2,1)}or ∅; Player B can select {(5,6,5)}or ∅. Let SPbe player Pinternal exchange program, for P=A, B, and SI(SA, SB) the IA external exchange program. The diagram on the right hand side of the graph shows that none of the (pure) game outcomes is a Nash equilibrium (implying that the game cannot be potential). altruistic donor patient donor patient Figure 4.2.15: Example of a chain of length 2. A simple extension would be to assume that the players prioritize maximum matchings that maximize “hard-to-match” vertices. In this case, we could still have an SWE. We first compute an SWE for 2–KEG. If this SWE is not an equilibrium for this extension, then, w.l.o.g., there is a M-unmatched vertex a∈VAhard-to-match and a MA∪MI(MA, MB)- alternating path pthat terminates in a player A M-matched vertex that is not hard-to- match. Because the maximum matching M0=M⊕pimproves player Autility and does not create alternating paths of type ii. (see Theorem 4.2.11), we just need to repeat this process until no player has incentive to deviate. However, for more complicated players’ utilities the game may fail to have pure Nash equilibria. For instance, consider the compatible graph of Figure 4.2.16. The IA behavior remains as before: maximize the number of external exchanges among the available vertices; be indifferent between the players’ evaluation of the different matchings; have a deterministic decision, that is, for any combination of the players’ strategies (internal matchings) the external exchange selected by the IA is known. In Figure 4.2.17, we have all the possible outcomes for the game. Observe that none of these 4 possible outcomes is a Nash equilibrium and thus, no pure equilibrium exists. Another extension in this context is to Bayesian games. In this case, the players would not know their opponents evaluations/utilities for the exchanges. Under this incomplete information scenario, it would be interesting to explore how the players can build believes 4.2. COMPETITIVE TWO-PLAYER KIDNEY EXCHANGE GAME 131 1 2 3 4 5 1,1 0,5 1,1 5,05,1 5,1 1,10 Figure 4.2.16: The players’ utility of each matching is given by the numbers in the edges: player Avalue is in red and player Bvalue in green. MA=∅MA=∅MA={(1,4)}MA={(1,4)} MB=∅MB={(2,3)}MB=∅MB={(2,3)} MI(MA, MB) = {(1,3),(2,4)}MI(MA, MB) = ∅MI(MA, MB) = {(3,5)}MI(MA, MB) = ∅ ΠA= 10 ΠA= 0 ΠA= 6 ΠA= 5 ΠB= 2 ΠB= 5 ΠB= 10 ΠB= 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 Figure 4.2.17: All possible outcomes for the game. about the opponents’ objectives by repeatedly observing the game outcomes and, thus, use them to compute (Bayesian) equilibria. Increase Number of Players to N > 2.Extending our results about the existence of an NE and an SWE dominating it is immediate. Let {1,2, . . . , N}be the set of players. Then, (by extending our notation in an obvious way) Φ(M1, M2, . . . , MN) = N X P=1 2|MP|+|MI(M1, M2, . . . , MN)| is a (non-exact) potential function, and a optimum of it is an NE. The function is potential, since whenever a player increases her utility it is because she is increasing the number of internal exchanges. An increase in the number of internal exchanges has a greater impact in the value of Φ than external exchanges. The results in Section 4.2.3 remain valid in this setting. The ideas presented analyze each player’s incentives for deviation, which hold for more than 2 players, because we can think of a player opponents’ as a single one (reducing the study to 2–KEG). It remains to investigate, if there is an NE which the players would agree to choose. 132 CHAPTER 4. SIMULTANEOUS GAMES 4.2.6 Summary In this section, we have shown that the two-player kidney exchange game has always a pure Nash equilibrium and that it can be computed in polynomial time. Furthermore, we have proven the existence of a NE that is also a social optimum. Finally, and more importantly, we have shown that for any NE there is always a social welfare Nash equilibrium that is a preferred outcome for both players. There is no uniqueness result for social welfare equilibria. In order to find rational guidelines for the players’ strategies, we add to the social welfare equilibrium the requirement that it must be the one that minimizes the number of external exchanges. For this type of solution, we were able to prove uniqueness in terms of the players’ utilities and to show that it can be efficiently computed, thus strengthening the fact that this is a realistic outcome for the game. Although we show that a social welfare equilibrium can be computed in polynomial time, a full characterization of the Pareto frontier of social welfare equilibria (with respect to pure Nash equilibria) remains to be done. This is an interesting subject for future research. Our work also indicates that studying the players interaction through 2–KEG turns the exchange program efficient both from the social welfare and the players’ point of view. These results motivate further research in the generalization of the game to more than two players, to exchanges including more than two patient-donor pairs and to different evaluation metrics of the exchanges. Some of these generalizations have been preliminarily discussed in Section 4.2.5. Additional inspiration for future research is given by the recent paper Hajaj et al. [64], where a strategyproof mechanism for a multi-period dynamic model was shown to lead to a global maximum matching that cannot be guaranteed by a mechanism for the static case. Therefore, given that 2–KEG already provides such solution as a rational outcome in the static case, investigating the 2–KEG by playing it repeatedly as the players’ pools of patient-donor pairs change over time would be another line to explore in the future work. 4.3. COMPETITIVE UNCAPACITATED LOT-SIZING GAME 133 4.3 Competitive Uncapacitated Lot-Sizing Game 3 Our Game Model. In this section, Pedroso and Smeers [104] Cournot competition model is analyzed. We investigate the authors’ competitive uncapacitated lot-sizing game (ULSG) version. The ULSG is a game that merges the lot-sizing problem (see Section 2.2.1.3) with Cournot competition (see Example 2.3.8). A player is a firm with its own production facility, modeled as an uncapacitated lot-sizing problem. For each time period, instead of fixed demands to be satisfied by each player, a Cournot competition is played. The lot-sizing part turns the game combinatorial, i.e., an IPG, and the Cournot competition models the players interaction. Literature in Lot-Sizing Games. The generality of the lot-sizing games formulated in the literature have in common (with the ULSG) that players model their production through a lot-sizing programming problem, and differ in the way in which the players affect each others utilities. There is literature about lot-sizing games focusing on the underlying cooperative direction. In this type of games, instead of searching for a Nash equilibrium, the goal is to find coalitions between the players such that they do not have incentive to leave them (it would lead to an utility decrease); e.g. see Heuvel et al. [66]. To the best of our knowledge, the literature in non-cooperative (competitive) lot-sizing games significantly differs from our setting. Maskin and Tirole [88] analyze an oligopoly, where set-up costs are considered and firms are committed to a particular action in the short-run. In opposition to the model that we present in this section, in [88], firms move sequentially and set-up costs are considered to be sufficiently large so that no two firms can operate profitably. Federgruen and Meissner [50] analyze a Bertrand (price) competition. In this model, each player decides a market price which is maintained throughout the game. Given these market prices, the demand in each time period for each player is determined. The authors are able to get sufficient conditions for the existence and efficiency of computing one Nash equilibrium if the set-up costs are constant during the whole time horizon for each player. It is also mentioned the Cournot competition associated with this model. In this last case, a player’s strategy reduces to deciding a basic deseasonalized target volume quantity through which the demand is determined for each time period (the authors note that this case is considerably more difficult). Li and Meissner [83] consider a lot-sizing game version in which the players’ strategies are the 3The results of this chapter appear in: M. Carvalho, M. Van Vyve, C. Telha. Competitive Uncapacitated Lot-Sizing Game, working paper. 134 CHAPTER 4. SIMULTANEOUS GAMES production capacities purchased at the beginning of the time planning and, afterwards, each player solves a lot-sizing programming problem. The cost of buying capacity depends on the total capacity purchased by the players. After this choice is taken, the players’ problem is just a single-item lot-sizing problem with limited capacity. The authors prove the existence of a capacity equilibrium under modest assumptions. In the models of these two papers ([50] and [83]), as well as in our model, the producers decide their strategies initially and stay committed to them until the end of the time horizon. Pedroso and Smeers [104] apply a tˆatonnement process (recall Section 2.3.2) in order to compute an equilibrium to the competitive lot-sizing game. In the authors’ computational experiments, this process successfully computes an equilibrium. Thence, their work opens the questions of the method conditions to converge to an equilibrium and how efficient it is. Our Contributions and Organization of the Section. In Section 4.3.1, we formalize the competitive uncapacitated lot-sizing game, which is a novel Cournot Competition model. Section 4.3.2 describes the players’ best responses once the opponents’ strategies are fixed, and, in particular, a dynamic programming method to find a player’s best response in polynomial time. It is proven that ULSG is potential in Section 4.3.3, immediately implying the existence of a (pure) Nash equilibrium. For the case of a single period and for the case of only set-up costs, algorithms to find a pure NE in polynomial time are described in Section 4.3.4 and Section 4.3.5, respectively. There may exist multiple equilibria for an ULSG, and thus, refinements to the equilibrium concept are usually used (as we did for the two-player kidney exchange game); we show that it is NP- hard to find a pure NE for the single-period case with respect to a given linear objective function, but one can compute such an optimal equilibrium in pseudo-polynomial time. In Section 4.3.6 we remark that our results can be easily extended if inventory costs are considered. Section 4.3.7 summarizes the open questions. 4.3.1 Model and Notation The ULSG establishes the connection between the classical uncapacitated lot-sizing model and the Cournot competition. The model we have built has a discretized finite time horizon of Tperiods. In each period tthere is a market for a homogeneous product. We assume that for each period t, the market unit price is Pt, represented by the demand function Pt= (at−btqt)+where α+= max(α, 0), qtis the total quantity placed in the market, and at,btare given parameters modeling the market size and the level of players interaction, respectively. The set of firms (players) competing in this multi-period 4.3. COMPETITIVE UNCAPACITATED LOT-SIZING GAME 135 market is M={1,2, . . . , m}. The production structure of each firm is represented by an uncapacitated lot-sizing model. That is, each firm phas to decide how much to produce in each time period t(production variable xp t) and how much to place in the market (variable qp t); we assume that a firm is fully committed to a strategy for the finite time horizon T. For each firm pand period t, there are set-up and variable (linear) production costs, denoted by Fp tand Cp t, respectively, no upper limit on production quantities, and a producer can build inventory by producing in advance (inventory variable for period t is hp t). We assume that there are no inventory costs (in Section 4.3.6 this assumption is removed). In this way, we obtain the following model for each player (firm) p= 1,2, . . . , m: max yp,xp,qp,hpΠp(yp, xp, hp, qp, q−p) = T X t=1 Pt(qt)qp t− T X t=1 Cp txp t− T X t=1 Fp typ t(4.3.1a) s. t. xp t+hp t−1=hp t+qp tfor t= 1, . . . , T (4.3.1b) 0≤xp t≤ Byp tfor t= 1, . . . , T (4.3.1c) hp 0=hp T= 0 (4.3.1d) hp t, qp t≥0 for t= 1, . . . , T (4.3.1e) yp t∈ {0,1}for t= 1, . . . , T (4.3.1f) where Bis a sufficient large number and qt=Pm i=1 qi t(total quantity introduced in the market of period t). The total quantity introduced in the market of period tis the responsible for the optimization program (4.3.1) to induce a game. The goal of player pis to maximize the utility (4.3.1a), which is simply the sum of her profit minus the production costs in each period t. Constraints (4.3.1b) represent the conservation of product. Constraints (4.3.1c) ensure that the quantities produced are non-negative and whenever there is production (xp t>0), the binary variable yp tis set to 1, implying the payment of the set-up cost Fp t. We assume that the initial and final inventory quantities are zero, which is captured by equations (4.3.1d). Inventory quantities and output quantities must be non-negative, Constraints 4.3.1e. The variables yp tare restricted to be binary through constraint (4.3.1f). Let yp,xp,hpbe Tdimensional vectors of player p’s decision variables for each time period t. Finally, for theoretical purposes, let us assume that variable and set-up costs are positive integers, and define producing in period T+ 1 as not participating in the game. 136 CHAPTER 4. SIMULTANEOUS GAMES 4.3.2 Best Responses Recall from Section 2.2.1.3 that in ULSP the demand is fixed and the problem reduces to minimizing the costs. A well-known and fundamental property of ULSP is that it has an optimal solution with no inventory at the begin of a period with positive production (Proposition 2.2.9). The same property holds for a player p’s optimal solution for (4.3.1). Proposition 4.3.1. Let q−p∈X−pbe fixed. There exists an optimal solution to (4.3.1) (best response to q−p) in which hp t−1xp t= 0 for t= 1,2, . . . , T. Proof. Suppose that qpis an optimal solution to (4.3.1) given q−p. The optimal production plan to player preduces to an ULSP with demand qp. Therefore, Proposition 2.2.9 holds, and thus, there is an optimal solution such that hp t−1xp t= 0 for t= 1,2, . . . , T. Proposition 4.3.1 is the essential ingredient to determine the optimal output quantities for player p. Proposition 4.3.2. Let q−p∈X−pand player p’s positive production periods t1< t2< . . . , < trbe fixed. There is an optimal solution to problem (4.3.1) satisfying qp t(q−p) = 0,for t= 1,2, . . . , t1−1 qp t(q−p) = (at−btPi6=pqi t−Cp tj)+ 2bt ,for t=t1, . . . , T with j= arg max tu≤t u=1,2,...,r tu. Proof. Let Tp={t1, t2, . . . , tr}be as stated in the proposition. By Proposition 4.3.1, in period t≥t1, the optimal output quantity qp tis produced in the latest production period tjprior to t, so the production variable can be simply replaced by xp tj=Pmin(tj+1,T ) t=tjqp t. The optimal value for qp tin 4.3.1 can be determined by optimizing an univariate concave quadratic function (the part of the utility function associated with qp t), that is, (at−btqp t−btX i6=p qi t)qp t−Cp tjqp t leading to the formulas of this proposition. Recall from Section 2.2.1.3 that ULSP can be solved in polynomial time through dynamic programming. If q−p∈X−pis fixed, a similar idea extends to efficiently compute an optimal production plan for player p. 4.3. COMPETITIVE UNCAPACITATED LOT-SIZING GAME 137 Lemma 4.3.3. Solving player p’s best reaction (4.3.1) for q−pcan be done in polynomial time. Proof. Let Gp(t, q−p) be the maximum utility of player pover the first tperiods, given the opponents’ strategies q−p. Then, Gp(t, q−p) can be written as player p’s maximum utility when the last production period was k Gp(t, q−p) = max k:k≤t{Gp(k−1, q−p) + t X u=k (au−bu(qp u+ m X j6=p qj u))qp u−Fp k−Cp k t X u=k qp u}, where qp uis computed according with Proposition 4.3.2. Thus, computing Gp(T, q−p), which is equivalent to solve the best reaction problem (4.3.1) for q−p, can be done in O(T2) time (recall the dynamic programming method for ULSP described at the end of Section 2.2.1.3). In an equilibrium each player is selecting her best reaction (optimal solution of problem (4.3.1)) to the opponents’ strategies on that equilibrium. Thus, once the players’ production periods are fixed, we can apply Proposition 4.3.2 simultaneously for all the players, obtaining a system of equations in the output variables qwhich can be simplified and solved, resulting in the following proposition. Proposition 4.3.4. Let Tpbe the set of production periods for each player pfor an ULSG. Then, an optimal output quantity for player pis4 qp t= 0,for t= 1,2,...,min{Tp}−1 qp t= (Pt(St)−Cp tp j)+ bt ,for t= min{Tp}, . . . , T, where tp j= max u∈Tp,u≤tu(last production period prior to tfor player p), St={i:t∈ Tifor i= 1,2, . . . , m}(players participating in the market of period t) and Pt(St) = at+Pi∈StCi ti j |St|+1 (market price of period t). In particular, player p’s utility is Πp(T1, . . . , Tm) = X t∈Tp−Fp t+ T X t=min{Tp} (Pt(St)−Cp tp j)+ bt (Pt(St)−Cp tp j).(4.3.4) In conclusion, the sets of production periods for all the players are sufficient to describe an NE. This fact significantly simplifies the game analysis in Section 4.3.4 and Section 4.3.5. 4By optimal output quantities it must be understood the quantities of an NE for the game in which production periods are fixed beforehand. 144 CHAPTER 4. SIMULTANEOUS GAMES Inequalities (4.3.9c) hold: using ap< A for p= 1,2, . . . , m, it follows that Cp+ 2√Fpb= 2A−ap≥A=P(S),∀p∈S∩I Cp+ 2√Fpb=A=P(S),∀p∈S∩D CUB + 2√FUBb=A=P(S). (Proof of only if). It is easy to check that the pivalues and Bare set in such a way that any YES instance Sof 1P-LSG-OPT must contain player m, but cannot contain the upper bound player UB. Using inequalities (4.3.9b) and (4.3.9c) for players mand UB, respectively, it follows that P(S) must be equal to A. In particular P(S) = A⇒Am +Pi∈S∩I ai |S|+ 1 =A⇒X i∈S∩I ai=A(|S|+ 1 −m). Clearly 0 ≤Pi∈S∩I ai≤A, but furthermore, the first inequality is strict, since m∈S. It follows that m−1<|S| ≤ m, so |S|=m, and Pi∈S∩I ai=A. Theorem 4.3.11 shows that maximizing a linear function over the set of NE is hard, assuming P6=NP . Yet, we can build a pseudo-polynomial time algorithm to solve this problem: let Lp=Cp+√Fpband Up=Cp+ 2√Fpbfor p= 1,2, . . . , m. We propose to solve this problem using Algorithm 4.3.4.2, where H(k, l, r, s, C) is the optimal value of the problem limited to players {1,2, . . . , k}, where |S|=l, the tightest lower bound is Lr, the tightest upper bound is Usand Pi∈SCi=C. From each (k, l, r, s, C), we can choose to either add k+ 1 or not to the set S, leading to the updates of lines 3 and 4, respectively. At the end, the optimal objective function value is given by the maximum entry H(m, l, r, s, C) leading to a feasible solution. It is easy to build the optimal Sby a standard backward pass of the underlying recursion. Therefore we have established the following result. Theorem 4.3.12. Finding the optimal NE in the 1-period lot-sizing game can be solved in O(m4Pm k=1 Ck)time. Remark. The potential function (4.3.6) restricted to this case, i.e.,T= 1 and domain 2m(power set of {1,2, . . . , m}), is submodular. It is well-known that general submodular functions are hard to maximize. This is the reason why we built an algorithm to compute an NE which is not based on this function. 4.3. COMPETITIVE UNCAPACITATED LOT-SIZING GAME 145 Algorithm 4.3.4.2 Input: A single period ULSG instance and a vector p∈Zm. Output: The optimal value of the input function associated with pover the set of NE. 1: Initialize H(·)← −∞ but H(0,0,0,0,0) ←0. 2: for k= 0 : m−1; l, r, s =0:k;C= 0 : Pk i=0 Cido 3: H(k+ 1, l + 1,arg maxi=k+1,r Li, s, C +Ck)← max(H(k+ 1, l + 1,arg maxi=k+1,r Li, s, C +Ck), H(k, l, r, s, C) + pk+1) 4: H(k+ 1, l, r, arg mini=k+1,s Ui, C)← max(H(k+ 1, l, r, arg mini=k+1,s Ui, C), H(k, l, r, s, C)) 5: end for 6: return arg maxl,r,s,C{H(m, l, r, s, C)|Lr≤a+C l+1 ≤Us}. 4.3.5 Congestion Game Equivalence: only set-up costs Throughout this section, we approach the ULSG with only set-up costs, i.e.,Ck t= 0 for all k= 1,2, . . . , m and t= 1,2, . . . , T. There are two immediate important observations valid in this special case. One is that it is always optimal for a player to produce only once in order to minimize the set-up costs. Another is that the strategies in an NE depend only on the number of players sharing the market in each period. From Proposition 4.3.4, if Stare the players participating in period t, then their revenue is a2 t bt(|St|+1)2, with a market price of Pt(St) = at |St|+1. These observations lead us to a connection with congestion games. A congestion game is one where a collection of players has to go from a (source) vertex in a digraph to another (sink) and the cost of using an arc of the graph depends on the number of players also selecting it in their paths; each player’s goal is to minimize the cost of her path; see Rosenthal [111]. We can easily reformulate ULSG-sim as a congestion game: consider a digraph G= (N,A), where N=S∪T with S={s1, s2, . . . , sm}and T={1,2, . . . , T, T + 1}, and A=F ∪ P with F={(sk, t) : k= 1,2, . . . , m and t= 1,2, . . . , T + 1}and P={(t, t + 1) : t= 1,2, . . . , T}. The cost of arcs (sk, t)∈ F equals Fk t; the cost of arcs (t, t+1) ∈ P equals −a2 t bt(1+n)2, where nis the number of players selecting this arc. Finally, for each player kthe source vertex is skand the sink is T+ 1. Figure 4.3.1 illustrates this transformation. This reformulation has polynomial size since, the number of vertices is m+T+ 1 and the number of arcs is m(T+ 1) + T(note that the size of ULSG is O(mT) since mT set-up costs are given). Any congestion game is a potential game as proved by Rosenthal [111] (as well as the converse; see Monderer and Shapley [92]) and the author also provides a potential function. 146 CHAPTER 4. SIMULTANEOUS GAMES 1 2 TT+ 1 −a2 1 b1(1+|S1|)2−a2 2 b2(1+|S1|+|S2|)2−a2 T−1 bT−1(1+PT−1 u=1 |Su|)2−a2 T bT(1+PT u=1 |Su|)2 s1 F1 1F1 2 s2 0 F1 T F2 1F2 2F2 T0 ... Figure 4.3.1: Congestion game for ULSG-sim with m= 2. In our case it is Φ(t1, . . . , tm) = m X k=1 −Fk tk+ T X t=1 nt X k=1 a2 t (k+ 1)2bt ,(4.3.13) where tk∈ {1,2, . . . , T + 1}is the period in which player kproduces and nt= #{k:tk≤ t, k = 1, . . . , m}. Using the same proof argument as for Proposition 4.3.6, one can prove that a maximizer of 4.3.13 is an NE for ULSG-sim and thus, by Proposition 4.3.5, for ULSG. For this specific problem, maximizing the potential function (4.3.13) is equivalent to solve the min-cost flow problem in the following network (see Figure 4.3.2): •consider a digraph G= (N0,A0) where N0={s}∪S∪T with S={s1, s2, . . . , sm} and T={1,2, . . . , T, T +1}, and A0=I∪F∪P0with I={(s, sk) : k= 1,2, . . . , m}, F={(sk, t) : k= 1,2, . . . , m and t= 1,2, . . . , T + 1}and P0={(t, t + 1) : t= 1,2, . . . , T and k= 1, . . . , m}(mparallel arcs). •for (s, sk)∈ I the cost is 0 and capacity is 1; •for (sk, t)∈ F the cost is Fk tand capacity is 1; set Fk T+1 = 0; •for (t, t + 1) ∈ P0and k= 1, . . . , m, the cost is −a2 t bt(1+k)2and capacity is 1; •the supply is min vertex sand the demand at T+ 1 is m. Observe that this reformulation is polynomial in the size of an ULSG instance: the network has 1+m+T+1 vertices and m+m(T+1)+mT arcs. The advantage of this reformulation is that solving a min-cost flow problem can be done in polynomial time; Goldberg and Tarjan [59]. There is another alternative approach to compute a, possibly distinct, NE. A maximum of the potential function (4.3.6) is an NE and it is in the subset of strategies in which the players decide the production period and choose the optimal quantities accordingly with Proposition 4.3.4. Therefore, restricting function (4.3.6) to this subset of strategies, 4.3. COMPETITIVE UNCAPACITATED LOT-SIZING GAME 147 s1s2sm T+ 1 s F1 1F1 2 Fm 1Fm 2 Fm T+1 00 0 na2 1 b1(1+k)2ok=1..m na2 T bT(1+k)2ok=1..m F1 T+1 1 supply m demand m 2 - - Figure 4.3.2: Minimum cost flow approach to optimize (4.3.13). All arcs have unit capacity. it simplifies to Φ(t1, t2, . . . , tm) = m X p=1  −Fp tp+ T X t=tp a2 t bt(nt+ 1)2+ T X t=tp a2 t 2(nt+ 1)(nt−1) a2 t (nt+ 1)bt  = m X p=1 −Fp tp+ T X t=1 a2 t 2bt(nt+ 1)nt(4.3.14a) = m X p=1 −Fp tp+ T X t=1 nt X i=1 a2 t 2i(i+ 1)bt .(4.3.14b) Once again, computing the maximum of (4.3.14b) is equivalent to solve a min-cost flow problem similar to the one in Figure 4.3.2 (the difference is in the cost of the arcs (t, t+1) which are {a2 t 2k(k+1)bt}k=1,...,m for t= 1, . . . , T). We remark that there are instances for which the optimal solutions for the maximums of 4.3.13 and 4.3.14b do not coincide and thus, two distinct NE can be computed in polynomial time. The results of this section are summarized in the following theorem. Theorem 4.3.13. When Ck t= 0 for k= 1,2, . . . , m and t= 1,2, . . . , T , an NE for an ULSG can be computed in polynomial time by solving a minimum-cost network flow problem. 148 CHAPTER 4. SIMULTANEOUS GAMES 4.3.6 Extension: inventory costs Recall from Section 2.2.1.3 that in the lot-sizing problem (2.2.7) inventory costs are taken into account, a natural aspect in real-world applications that influences the optimal production plan; as noted there, using the flow conservation constraints (2.2.7b), an ULSP can be transformed in an equivalent one without inventory costs which are included in the new variable costs. In ULSG, if each player p’s objective (4.3.1a) considers inventory costs Hp tfor each period t, an analogous replacement of the inventory variables hp t(through constraint (4.3.1b)) results in new variable production costs, but also in new market prices; these market prices depend on each player’s inventory costs; therefore, since in the results previously presented, we consider equal market prices for each player, the inclusion of inventory costs requires an adaption of them. Proposition 4.3.14. Consider an ULSG with each player p’s utility function equal to Πp(yp, xp, hp, qp, q−p) = T X t=1 Pt(qt)qp t− T X t=1 Cp txp t− T−1 X t=1 Hp thp t− T X t=1 Fp typ t.(4.3.15) The results presented in Section 4.3.2 and Section 4.3.3 for each player phold if atis replaced by ap t=at+PT−1 u=tHp u,Cp tis replaced by ˆ Cp t=Cp t+PT−1 u=tHp uand Pt(St)is replaced by Pp t(St) = ap t+Pi∈St ˆ Ci ti j −ai t! |St|+1 . Proof. One can use constraints (4.3.1b) to eliminate the inventory variables in player p’s objective function (4.3.15). Thus, using hp t=Pt u=1(xp t−qp t) in the objective function (4.3.15), leads to Πp(yp, xp, hp, qp, q−p) = T X t=1 (ap t−btqt)+qp t− T X t=1 ˆ Cp txp t− T X t=1 Fp typ t. and the proof follows. 4.3.7 Summary In the uncapacitated lot-sizing game, the production cost of player pin period tdepends on two parameters: the variable cost Cp tand the set-up cost Fp t. When we consider production costs with only one of these parameters or a single period, the problem of computing a pure equilibrium becomes tractable, although characterizing the set of pure equilibria is NP-complete. Table 4.1 summarizes our findings. It remains open the question of whether it is a tractable problem to find an optimal NE when there are no variable costs and if an NE can be efficiently computed for the general 4.3. COMPETITIVE UNCAPACITATED LOT-SIZING GAME 149 Problem Compute one NE Characterize the set of NE ULSG with T= 1 P NP-complete ULSG with F= 0 P P ULSG with C= 0 P ? ULSG ? NP-complete Table 4.1: Computational complexity of ULSG. case. As we will see in the next section, in practice, it is fast to compute one equilibrium for ULSG. A typical constraint in the lot-sizing problem 2.2.7 is the presence of positive initial and final inventory quantities, which for the uncapacitated case can be assumed to be 0, without loss of generality, by modifying the demands (see Pochet and Wolsey [106]). In one hand, considering positive initial and final inventory quantities in ULSG for each player does not interfere with the fact that the game is potential, since the the objective function does not change. On the other hand, this is problematic when characterizing each player’s best response, since in the game there is no fixed demand to satisfy. Therefore, it is interesting to study the influence of relaxing the assumption that initial and final inventories are zero in future research. When production capacities are introduced in LSP, it becomes NP-complete (see [106]). Thus, if there are players’ production capacities for each period in our game, solving each player’s best response becomes NP-complete. Note that this does not interfere in the formulation of a player’s utility function, and thus the game remains potential with only the potential function domain reduced (set of pure profiles of strategies X). Therefore, including more restrictions (e.g. positive initial and/or final inventory quantities, production capacities) on the lot-sizing model of each player will not change the fact that the game is potential (with the potential function concave) and thus, that it posses a pure NE. It remains to understand the computational complexity of maximizing the potential function (and thus, computing an NE). 150 CHAPTER 4. SIMULTANEOUS GAMES 4.4 Integer Programming Games 5 Motivation. Mixed integer programming has been extensively studied. Along with its success modeling decision problems, we have seen a remarkable rise in the power of solvers to tackle them; recall Section 2.2. Many state-of-the-art game theory tools are confined to finite games and “well-behaved” continuous games6; see Section 2.3.2. Our aim is to investigate the continuous game class, where the players’ sets of strategies mix finite and uncountable sets; to this end, the players’ best reactions are described through mixed integer programming problems. We call problems in this class integer programming games; see Figure 2.3.1. In the previous sections, real-world interactions were modeled as simultaneous IPGs, highlighting the importance of exploring them. Note that for these games, enumerating all players’ feasible strategies (as in finite games) can be impractical, and the players’ objectives (best reactions) may lead to non-concave problems. Thus, the standard approaches for finite games and “well-behaved” continuous games are not directly applicable to IPGs. In what follows, we study IPGs where each player’s utility function is quadratic in her variables. Recalling the notation to define IPG in Section 2.3, each player p’s utility function is Πp(xp, x−p) = cpxp+X k∈M (xk)|Qp kxp,(4.4.1) where cp∈Rnpand Qp kis an nk-by-npreal matrix. Note that in the games previously described in this chapter, the players’ utilities have the form (4.4.1). We make this assumption on the players’ utilities for sake of clarity, although the algorithm that will be presented for the computation of equilibria is also applicable to games with more general utility functions. Our Contributions and Organization of the Section. We aim at investigating Nash equilibria to simultaneous IPGs. In Section 4.4.1, it is proven that the existence of NE to an IPG is Σp 2-complete and sufficient conditions for equilibria existence are 5The results of this chapter appear in: M. Carvalho, A. Lodi, J. P. Pedroso. Computing Nash equilibria: integer programming games, working paper. 6In “well-behaved” continuous games, players’ best reaction problems (2.3.4) (maximization problems) must satisfy certain differentiability and concavity requirements. 4.4. INTEGER PROGRAMMING GAMES 151 derived. Section 4.4.2 starts by showing the challenge of extending integer programming methods to computing NE and formalizes a novel algorithm to compute an NE for IPGs. In Section 4.4.3, implementation details to our algorithm are described and validated, through computational results for a generalization of the coordination knapsack game (4.1.1) and the competitive uncapacitated lot-sizing game (4.3.1). Finally, we conclude in Section 4.4.4. 4.4.1 NE Complexity and Existence It can be argued that players’ computational power is bounded and thus, since the space of pure strategies is simpler and contained in the space of mixed strategies – i.e., the space of Borel probability measures – pure equilibria are more plausible outcomes for games with large sets of pure strategies. In this way, it is important to understand the complexity of determining a pure equilibrium to an IPG. According with Nash famous Theorem 2.3.11, all purely integer bounded IPGs have a Nash equilibrium. However, some IPGs do not possess a pure equilibrium, as illustrated in the following example. Example 4.4.1. Consider a simultaneous two-player game with M={A, B}. Player A solves max xA18xAxB−9xA s. t. xA∈ {0,1} and player B max xB−18xAxB+ 9xB s. t. xB∈ {0,1}. Let us show that none of the pure profiles of strategies is an equilibrium. Under the profile (xA, xB) = (0,0), player B has incentive to deviate to xB= 1; for the profile (xA, xB) = (1,0), player A has incentive to deviate to xA= 0; for the profile (xA, xB) = (0,1), player A has incentive to deviate to xA= 1; for the profile (xA, xB) = (1,1) player B has incentive to deviate to xB= 0. Thus, there is no pure NE. In Section 4.4.1.1, we classify both the computational complexity of deciding if there is a pure and a mixed NE for an IPG. It will be shown that even with linear utilities and two players, these problems are Σp 2-complete (defined in Section 2.1). Then, in Section 4.4.1.2, we state sufficient conditions for the game to have (finitely supported) Nash equilibria. 152 CHAPTER 4. SIMULTANEOUS GAMES 4.4.1.1 Complexity of the NE Existence Theorem 4.4.2. The problem of deciding if an IPG has a pure NE is Σp 2-complete. Proof. The problem of deciding if an IPG has a pure NE is in Σp 2, since we have to decide if there is a solution in the space of pure strategies such that for any unilateral deviation of a player, her utility is not improved (and evaluating the utility value for a profile of strategies can be done in polynomial time, because we consider them to be in the form (4.4.1)). It remains to prove Σp 2-hardness; we will reduce DNeg to it. Recall from Section 3.1.3 that the input of DNeg are non-negative integers a1,. . .,an,b1,. . .,bn,Aand B; from the proof of Theorem 3.2.1, the decision version of DNeg asks whether there is a leader strategy that makes her objective value less or equal to B−1. Our reduction starts from an instance of DNeg. We construct the following instance of IPG. •The game has two players, M={Z, W}. •Player Zcontrols a binary decision vector zof dimension 2n+ 1; her set of feasible strategies is n X i=1 aizi≤A zi+zi+n≤1i= 1, . . . , n z2n+1 +zi+n≤1i= 1, . . . , n. •Player Wcontrols a binary decision vector wof dimension n+ 1; her set of feasible strategies is Bwn+1 + n X i=1 biwi≤B. (4.4.5) •Player Z’s utility is (B−1)wn+1z2n+1 +Pn i=1 biwizi+n. •Player W’s utility is (B−1)wn+1 +Pn i=1 biwi−Pn i=1 biwizi−Pn i=1 biwizi+n. We claim that in the constructed instance of IPG there is an equilibrium if and only if the DNeg instance has answer YES. (Proof of if). Assume that the DNeg instance has answer YES. Then, there is xsatisfying Pn i=1 aixi≤Asuch that Pn i=1 biyi≤B−1 for any ysatisfying constraints (3.1.3c) and (3.1.3d). Choose as strategy for player Z,bz= (x, n z }| { 0,...,0,1) and for player W bw= ( n z }| { 0,...,0,1). We will prove that (bz, bw) is an equilibrium. First, note that these strategies are guaranteed to be feasible for both players. Second, note that none of the players has incentive to deviate from (bz, bw): 4.4. INTEGER PROGRAMMING GAMES 153 •Player Z’s utility is B−1, and B−1≥Pn i=1 biwiholds for all the remaining feasible strategies wof player W. •Player W’s has utility B−1 which is the maximum possible given bz. (Proof of only if). Now assume that the IPG instance has answer YES. Then, there is a pure equilibrium (bz, bw). If bwn+1 = 1 then, by (4.4.5), bw= ( n z }| { 0,...,0,1). In this way, since player Zmaximizes her utility in an equilibrium, bz2n+1 = 1, forcing bzi+n= 0 for i= 1, . . . , n. The equilibrium inequalities (2.3.14) applied to player W, imply that for any of her feasible strategies w with wn+1 = 0: B−1≥ n X i=1 biwi(1 −bzi), which shows that DNeg is a YES instance with the leader selecting xi=bzifor i= 1, . . . , n. If bwn+1 = 0, under the equilibrium strategies, player Z’s utility term (B−1) bwn+1z2n+1 is zero. Thus, since in an equilibrium player Zmaximizes her utility, it holds that bzi+n= 1 for all i= 1, . . . , n with bwi= 1. However, this implies that player W’s utility is nonpositive given the profile (bz, bw). In this way, player Wwould strictly improve her utility by unilaterally deviating to w= (z }| { 0,...,0,1). In conclusion, wn+1 is never zero in a pure equilibrium of the constructed game instance. Extending the existence property to mixed equilibria would increase the chance of an IPG to have an NE, and thus, a solution. The next theorem shows that the problem remains Σp 2-complete. Theorem 4.4.3. The problem of deciding if an IPG has an NE is Σp 2-complete. Proof. Analogously to the previous proof, the problem belongs to Σp 2. It remains to show the Σp 2-hardness; we will reduce DeRi to it. Recall from Section 3.1.1 that the input of DeRi are non-negative integers a1,. . .,an,b1,. . .,bn,A,Cand C0; from the proof of Theorem 3.2.1, the decision version of DeRi asks whether there is a leader strategy that makes her objective value greater or equal to 1. Our reduction starts from an instance of DeRi. We construct the following instance of IPG. •The game has two players, M={Z, W}. •Player Zcontrols a non-negative variable zand a binary decision vector (z1, . . . , zn+1);