# Nucleolus (game theory)

In cooperative game theory, the nucleolus of a cooperative game is the solution (i.e., allocation of payments to players) that maximizes the smallest excess of a coalition (where the excess is the difference between the payment given to the coalition and the value the coalition could get by deviating). Subject to that, the nucleolus satisfies the second-smallest excess; and so on, in the leximin order. The nucleolus was introduced by David Schmeidler in 1969.

## Background

In a cooperative game, there is a set N of players, who can cooperate and form coalitions. Each coalition S (subset of players) has a value, which is the profit that S can make if they coopereate on their own, ignoring the other players in N. The players opt to form the grand coalition - a coalition containing all players in N. The question then arises, how should the value of the grand coalition be allocated among the players? Each such allocation of value is called a solution or a payoff vector.
The excess of any coalition S from a given payoff-vector x is the difference between the total payoff to members of S under x, and the value of S. Note that the excess can be positive, negative or zero. Intuitively, a solution in which all coalitions have a higher excess is more stable, since coalitions are less incentivized to deviate from the grand-coalition.
The nucleolus is a single solution, for which the vector of excesses of all coalitions is largest in the leximin order. Intuitively, the nucleolus maximizes the stability of the solution by minimizing the incentives of coalitions to deviate.

## Definitions

A cooperative game is represented by a value function $v:2^{N}\to \mathbb {R}$, which assigns a value to each possible coalition (each subset of players). A solution to a cooperative game is a vector $x\in \mathbb {R} ^{N}$, which assigns a payoff to each player in N. A solution should satisfy the basic requirement of efficiency: the sum of payoffs should exactly equal v(N) -- the value of the grand coalition. A payoff solution satisfying this condition is called an imputation.
The excess of a payoff-vector $x$ for a coalition $S\subseteq N$ is the quantity $\mathrm {excess} (x,S):=\sum _{i\in S}x_{i}-v(S)$. That is, the profit that players in coalition $S$ obtain if they remain in the grand coalition $N$ and do not deviate.
Let $\theta (x)\in \mathbb {R} ^{2^{N}}$ be the vector of excesses of $x$, arranged in non-decreasing order: $\theta _{i}(x)\leq \theta _{j}(x),\forall ~i<j$. For two payoff vectors $x,y$, we say $\theta (x)$ is lexicographically smaller than $\theta (y)$ if for some index $k$, we have $\theta _{i}(x)=\theta _{i}(y),\forall ~i<k$ and $\theta _{k}(x)<\theta _{k}(y)$. The nucleolus of $v$ is the lexicographically largest imputation, based on this ordering. In other words, the nucleolus is an imputation whose excesses-vector is largest in the leximin order. It can be represented by the following optimization problem: ${\begin{aligned}\operatorname {lex} \max \min &&\mathrm {excess} (x,S_{1}),\mathrm {excess} (x,S_{2}),\ldots ,\mathrm {excess} (x,S_{k})\\{\text{subject to}}&&x~{\text{is an imputation}}\end{aligned}}$where k = 2$^N$ = the number of possible coalitions.

## Properties

* The nucleolus is always unique. See and Section II.7 of for a proof.

## Relation to other solution concepts

* The core is, by definition, the set of all imputations in which the excess of each coalition is at least 0. Therefore, if the core is non-empty, the nucleolus is in the core.
* When the core is empty, it is natural to consider an approximation: the ε-core is the set of all imputations in which the excess of each coalition is at least -ε. For every ε, if the ε-core is non-empty, then the nucleolus is in the ε-core.
* The least-core is the smallest nonempty ε-core (for the smallest ε for which the ε-core is non-empty). The nucleolus is always in the least-core. In fact, the nucleolus can be seen as a refinement of the least-core. Starting with the least-core, record the coalitions for which the excess is exactly -ε. Find a subset of the least-core in which the smallest excess of the other coalitions is as large as possible. Repeat this process as many times as necessary until all coalitions have been recorded. The resulting payoff vector is the nucleolus.
* The nucleolus is always in the kernel, and since the kernel is contained in the bargaining set, it is always in the bargaining set (see for details.)

## Computation
### General games

A general cooperative game among n players is characterized by 2$^n$ values - one value for each possible coalition. The nucleolus of a general game can be computed by any algorithm for lexicographic max-min optimization. These algorithms usually require to solve linear programs with one constraint for each objective value, plus some additional constraints. Therefore, the number of constraints is O(2$^n$). The number of iterations required by the more efficient algorithms is at most n, so the run-time is O(n 2$^n$).
If the cooperative game is given by enumerating all coalitions' values, then the input size is 2$^n$ , and so the above algorithms run in time polynomial in the input size. But when n is large, even representing such a game is computationally intensive, and there is more interest in classes of cooperative games that have a compact representation.

### Weighted voting games

In a weighted voting game, each player has a weight. The weight of a coalition is the sum of weights of its members. A coalition can force a decision if its total weight is above a certain threshold. Therefore, the value of a coalition is 1 if its value is above the threshold, and 0 if its value is below the threshold. A weighted voting game can be represented by only n+1 values: a weight for each player, and the threshold.
In a weighted voting game, the core can be computed in time polynomial in n. In contrast, the least-core is NP-hard, but has a pseudopolynomial time algorithm - an algorithm polynomial in n and the maximum (integer) weight W. Similarly, the nucleolus is NP-hard, but has a pseudopolynomial time algorithm. The proof relies on solving successive exponential-sized linear programs, by constructing dynamic-programming based separation oracles.

### Minimum-cost spanning tree games

In a minimum-cost spanning-tree game, each player is a node in a complete graph. The graph contains an additional node s (the supply node). Each edge in the graph has a cost. The cost of each coalition S is the minimum cost of a spanning tree connecting all nodes in S to the supply node s. The value of S is minus the cost of S. Thus, a MCST game can be represented by O(n$^2$) values.
Computing the nucleolus on general MCST games is NP-hard, but it can be computed in polynomial time if the underlying network is a tree.

### Weighted cooperative matching games

In weighted cooperative matching games, the nucleolus can be computed in polynomial time.

### Implicitly-given value function

In some games, the value of each coalition is not given explicitly, but it can be computed by solving a set of mathematical programming problems. Using a constraint generation approach, it is possible to compute only the values of coalitions that are required for the nucleolus. This allows to compute the nucleolus efficiently in practice, when there are at most 20 players.
Potters, Reijnierse and Ansing present a fast algorithm for computing the nucleolus using the prolonged simplex algorithm.

### Using the prekernel

If the prekernel of a cooperative game contains exactly one core vector, then the nucleolus can be computed efficiently. The algorithm is based on the ellipsoid method and on a scheme of Maschler for approximating the prekernel.

### Mistakes in computing the nucleolus

Guajardo and Jornsten have found mistakes in the application of linear programming and duality to computing the nucleolus.