1 Background

We study the problem of allocating different kinds of substitutable resources to different populations seeking them. This is related to a fundamental problem in economics—how should different resources be produced and made available to agents; see, e.g., [10]. Our aim is to allocate resources in a fair manner, a term we make precise below, and we develop a class of optimization models that achieve specific notions of fairness. This work finds applications in resource allocation problems that have been studied in specific settings; see, e.g., distribution of coal among power companies [2], several military and defense examples [11], multiperiod manufacturing of high-tech products [12], wireless networks [9], healthcare [6], education [3], and conservation of threatened species [8]. Special cases of this general problem include the so-called waterfilling algorithm; see, e.g., [13]. We present general results, based on the KKT optimality conditions, that provide essential conditions for fair allocation of resources, as well as special cases in which resources are abundant. For an introduction to resource allocation problems, see, e.g., [7].

An excellent introduction to different concepts in fairness is available in Bertsimas et al. [1]. Similar to our study, the authors consider a central decision planner seeking to allocate resources in a “fair” manner. The authors describe several concepts of fairness based on utilities of each user, and primarily distinguish between max-min fairness and proportional fairness. Our work differs from this existing body of literature in the following sense. We do not seek to maximize utilities, but rather to ensure equitable coverages (or, shortages) when allocating scarce resources with varying priorities (or, claims) for users. Bertsimas et al. [1] call this as an Aristotle’s equity principle, which they do not analyze; see also [4, 14]. To this end, we develop mathematical models and analyze their properties under specific notions of fairness that are significantly different from the existing literature. As with Aristotle’s equity principle, our models serve to answer the question: how should allocation decisions be conducted when resources are due to users with pre-existing claims?

2 Mathematical models for fairness

We consider a set of user types (henceforth simply users), \(i \in I\), seeking a set of resources, \(k \in K\). Define a subset of resources, \( k \in K_i\), as the set of resources that user i is eligible to receive. Define a subset of users, \( i \in I_k\), as the set of users that are eligible to receive resource k. Define the population of user i and an associated weight as \(n_i > 0\) and \(w_i> 0\), \(\forall i \in I\), respectively, and the availability of resource k as \(b_k>0\), \(\forall k \in K\). The prior coverage of user i is denoted by \( 0 \le f_i < 1\), where we assume \(f_i\) is defined relative to the same population of size \(n_i\). Let \(x_{ik} \ge 0\) be the amount of discretionary resource k allocated to user i. We denote the final coverage, after allocation of all resources, by \(y_i\), where \(f_i \le y_i \le 1\). Our resources are partially substitutable in the sense that user i is equally able to make use of any resource in \(K_i\), but can make no use of a resource in \(K {\setminus } K_i\).

Consider the following optimization model:

$$\begin{aligned} \displaystyle \min _{x,y}&\displaystyle \sum _{i \in I} w_i n_i F(y_i)&\end{aligned}$$
(1a)
$$\begin{aligned} \text{ s.t. }&\displaystyle \sum _{i \in I_k} x_{ik} \le b_k, \forall k \in K&: \nu _k \end{aligned}$$
(1b)
$$\begin{aligned}&\displaystyle f_{i} + \frac{1}{n_i} \sum _{k \in K_i}{ x_{ik}} = y_i, \forall i \in I&: \alpha _i \end{aligned}$$
(1c)
$$\begin{aligned}&y_i \le 1, \forall i \in I&: \lambda _i \end{aligned}$$
(1d)
$$\begin{aligned}&x_{ik} \ge 0, \forall k \in K_i, i \in I,&: - \mu _{ik}, \end{aligned}$$
(1e)

where \(F: [0,1] \rightarrow \mathbb {R}\) is a loss function. The dual multipliers indicated in constraints (1b)–(1e) satisfy \(\nu _k \ge 0, \lambda _i \ge 0\) and \(\mu _{ik} \ge 0\), respectively. Model (1) provides an optimal allocation, denoted \(x^*_{ik}\), and, in turn, the optimal final coverage of each user population, denoted \(y^*_{i} = f_{i} + n_i^{-1} \sum _{k \in K_i} {x^*_{ik}}\). The objective function in model (1) seeks to minimize the weighted sum of the users’ loss values. Constraint (1b) ensures that the allocated resources of type k do not exceed what is available. Constraints (1c) and (1d) indicate that the maximum final coverage is at most 1 for every user type. Constraint (1e) ensures non-negative allocation of resources. In the rest of this article, we drop the superscript, \((\cdot )^*\), on the optimal solution for simplicity. We start with the following notion of priority which is fundamental to our notions of fairness.

Definition 1

(Priority) In an optimal solution to model (1) if \(w_{i'} \ge w_i\), then \(i'\) is said to have a priority over i. If \(i'\) has a priority over i and \(y_{i'} \le y_i\) (with at least one inequality strict), then \(i'\) has an inappropriate priority, denoted by \(i' \gg i\); while, if \(i'\) has a priority over i and \(y_{i'} \ge y_i\) (with at least one inequality strict) then i has an appropriate priority, denoted by \(i' \ggg i\).

In the above definition, “with at least one inequality strict” means that both the weights and the coverages cannot be equal. Definition 1 distinguishes two kinds of priorities. “Inappropriate” can be understood as follows: a user has a larger weight, but receives a lower coverage; “Appropriate” refers to a larger weight and a larger coverage. Excluding the trivial case of \(w_i=w_{i'}, y_i=y_{i'}\), we have the following four exclusive cases (i) \(i' \gg i\), (ii) \(i \gg i'\), (iii) \(i' \ggg i\), or (iv) \(i \ggg i'\). In Sect. 2.1, we study the first two cases, while in Sect. 2.2 we study the latter two.

2.1 Fairness: inappropriate priorities

Definition 2

(Fairness) In an optimal solution to model (1) if \(i'\gg i\) implies \(x_{ik}=0\) for all \(k \in K_i \cap K_{i'}\) and all \(i, i' \in I\) with \(y_{i'} < 1\), then the solution is said to be fair.

We can interpret Definition 2 by understanding whether the inappropriately prioritized user \(i'\) can “complain” about the allocation given to user i; i.e., the distribution being not fair. According to Definition 2, user \(i'\) can have a justifiable complain only if: (a) user \(i'\) has coverage less than 100%, (b) there is a user, i, over which \(i'\) has an inappropriate priority, and (c) user i received positive allocation from a resource shared with user \(i'\). The following theorem provides a class of functions, \(F(\cdot )\), that provide fairness for model (1).

Theorem 1

If \(F : [0,1] \rightarrow \mathbb {R}\) is continuously differentiable, decreasing, and strictly convex, then optimization model (1) achieves fairness.

Proof

The feasible region of model (1) is nonempty and compact, and hence the model has a finite optimal solution. The constraints are linear, and F is differentiable and convex, and so an optimal solution is characterized by the KKT conditions of primal feasibility, i.e., constraints (1b)–(1e) along with multipliers that satisfy the following conditions:

$$\begin{aligned}&\lambda _i + \alpha _i + w_i n_i F'(y_i) =0, \quad \forall i \in I \end{aligned}$$
(2a)
$$\begin{aligned}&\nu _k - \frac{\alpha _i}{n_i} - \mu _{ik} =0,\quad \forall k \in K_i, i \in I \end{aligned}$$
(2b)
$$\begin{aligned}&\nu _k \ge 0, \, \forall k \in K, \ \lambda _i \ge 0, \quad \forall i \in I, \ \mu _{ik} \ge 0, \, \forall k \in K_i, i \in I \end{aligned}$$
(2c)

and

$$\begin{aligned}&\nu _k \left( \sum _{i \in I_k} x_{ik} - b_k \right) = 0,\quad \forall k \in K \end{aligned}$$
(3a)
$$\begin{aligned}&\alpha _i \left( f_{i} + \frac{1}{n_i} \sum _{k \in K_i}{ x_{ik}} - y_i \right) = 0,\quad \forall i \in I \end{aligned}$$
(3b)
$$\begin{aligned}&\lambda _i( y_i -1) =0,\quad \forall i \in I \end{aligned}$$
(3c)
$$\begin{aligned}&\mu _{ik} x_{ik}=0,\quad \forall k \in K_i, i \in I. \end{aligned}$$
(3d)

Because F is strictly convex and decreasing, we have

$$\begin{aligned} w_i F'(y_i) \ge w_{i'} F'(y_{i'}), \, \text{ with } \text{ strict } \text{ inequality } \text{ if } \text{ either } \ y_i> y_{i'} \, \text{ or } \, w_{i'} > w_i . \end{aligned}$$
(4)

Assume that the optimal solution is not fair. Hence, there exists at least one user pair, with \(i' \gg i, y_{i'} < 1\), and with \(k \in K_i \cap K_{i'} \ne \emptyset \) such that \(x_{ik}>0\). From the complementary slackness conditions (3c) and (3d), we have \(\lambda _{i'}=0\) and \(\mu _{ik}= 0\).

From Eqs. (2a) and (2b), we obtain \({w_i} F'(y_i) = -\nu _k - \frac{\lambda _i}{n_i}\) and \(w_{i'} F'(y_{i'})= \mu _{i'k} -\nu _k\). Thus, \({w_i} F'(y_i) + \frac{\lambda _i}{n_i} + \mu _{i'k} = w_{i'} F'(y_{i'})\), and because \({\lambda _i}, \mu _{i'k} \ge 0\), we have \({w_i} F'(y_i) \le w_{i'} F'(y_{i'})\). Given that \(y_i > y_{i'}\) or \(w_{i'} > w_i\), inequality (4) implies the contradiction of \(w_i F'(y_i) > w_{i'} F'(y_{i'})\). \(\square \)

Examples of functions that satisfy the hypothesis of Theorem 1 include \(F(z)= (1-z)^{m}\), where \(m > 1\); \(F(z)= - \ln (z+\varepsilon )\), where \(\varepsilon >0\); and, \(F(z)= e^{-z}\).

2.2 Proportional fairness: appropriate priorities

The previous notion of fairness covers the case of inappropriate priorities. A stronger notion of fairness can be developed by a slight change in the definition of fairness. This encompasses the case when the prioritized user \(i'\) receives a larger coverage than i; i.e., the priority is appropriate. We term this notion as proportional fairness. Before we explain the motivation for this term, we define another term as follows.

Definition 3

(Balance) An optimal solution to model (1) satisfying \(w_i F'(y_i) = w_{i'} F'(y_{i'})\) is said to be balanced between users i and \(i'\).

In other words, a balance between two users requires their marginal losses to be in inverse proportion to their weights. The following lemma proves that excluding the trivial case of \(w_i=w_{i'}, y_i=y_{i'}\), only an appropriate priority could result in a balanced coverage.

Lemma 1

Let \(F : [0,1] \rightarrow \mathbb {R}\) is continuously differentiable, decreasing, and strictly convex. Then, an optimal solution to model (1) with an inappropriate priority cannot be balanced.

Proof

Since \(w_i, w_i'>0\) and F is decreasing, \(w_i F'(y_i) = w_{i'} F'(y_{i'})\) cannot hold if either i or \(i'\) has an inappropriate priority. \(\square \)

Definition 4

(Proportional fairness) Consider a balanced optimal solution to model (1). If \(y_{i'} < 1\) and \(x_{ik}> 0\) for \(k \in K_i \cap K_{i'}\) implies and is implied by \(y_{i} < 1\) and \(x_{i'k} > 0\), then the solution is said to be proportionally fair between user i and \(i'\).

This stronger notion encompasses the situation when a user has an appropriate priority, did not receive 100% coverage, and yet the other user received a positive allocation of the shared resource. According to Definition 4, a user \(i'\) can have a justifiable complain only if: (a) \(i'\) has coverage less than 100%, (b) another user, i, received a positive allocation from a resource shared with \(i'\), (c) the coverages of the two users are balanced, and (d) \(i'\) did not receive any allocation of this shared resource or user i received 100% coverage. We note from Lemma 1 that statement (c) can hold only for the case of appropriate priorities.

The following theorem shows that the same class of functions as Theorem 1, but with an additional condition, provide proportional fairness for model (1).

Theorem 2

Let \(F : [0,1] \rightarrow \mathbb {R}\) is continuously differentiable, decreasing, and strictly convex. If an optimal solution to model (1) is balanced and satisfies strict complementary slackness, then it is proportionally fair.

Proof

The proof is similar to that of Theorem 2. Equations (2a) and (2b) yield

$$\begin{aligned} {w_i} F'(y_i) + \frac{\lambda _i}{n_i} - \mu _{ik} = w_{i'} F'(y_{i'}) + \frac{\lambda _{i'}}{n_{i'}} - \mu _{{i'}k}. \end{aligned}$$

From Definition 4, consider an \((i,i')\) pair satisfying \(y_{i'} <1\) and \(x_{ik}> 0\) for \(k \in K_i \cap K_{i'}\). We prove that \(y_{i} < 1\) and \(x_{i'k} > 0\). Because the optimal solution satisfies strict complementary slackness \(y_{i'} < 1\) implies \(\lambda _{i'}=0\) and \(x_{ik} > 0\) implies \(\mu _{ik}=0\). Since the solution is balanced, we have \(\mu _{{i'}k}= - \frac{\lambda _i}{n_i}\). Because the dual multipliers are non-negative, strict complementary slackness further implies \(y_i < 1\) and \(x_{{i'}k} > 0\). \(\square \)

Most interior point algorithms yield solutions that satisfy strict complementary slackness; see, e.g., [16]. Also note, the assumption of differentiability ensures we can compute the gradients of F, and the assumption of convexity on F ensures the KKT conditions are necessary and sufficient. We thus have the following central results for model (1) for the chosen class of F:

  1. 1.

    An optimal solution with an inappropriate priority is fair.

  2. 2.

    An optimal balanced solution with an appropriate priority that satisfies strict complementary slackness is proportionally fair.

2.3 Scarce and abundant resources

We define a resource k to be abundant if \(\sum _{i \in I_k} x_{ik}\) is strictly less than \(b_k\), and scarce if \(\sum _{i \in I_k} x_{ik}\) is equal to \(b_k\) . Since F is decreasing, we expect that if \(b_k\) is sufficiently large, all users sharing resource k achieve 100% coverage; i.e., \(y_i= 1, \forall i \in I_k\). Since this is the maximum possible coverage, no user should complain; the hypotheses of both Definitions 2 and 4 are not satisfied and there is no concept of fairness. However, if there exists even a single user with less than 100% coverage, then we expect a complete allocation of all resources the user is eligible for. And then, the user can justifiably complain and seek fairness. The following theorem makes this precise.

Theorem 3

Abundant resources: In an optimal solution to model (1), if resource k is not completely allocated, i.e., \(\sum _{i \in I_k} x_{ik} < b_k\), then \(y_i= 1, \forall i \in I_k\). Scarce resources: In an optimal solution to model (1), if \(y_i <1\) for some \(i \in I\), then \(\sum _{i \in I_k} x_{ik} =b_k, \forall k \in K_i\).

Proof

Abundant resources: Consider a resource \(k \in K\) such that \(\sum _{i \in I_k} x_{ik} < b_k\). From Eq. (3a), we have \(\nu _k=0\). Assume that there exists some \(i \in I_k\) with \(y_i <1\). Then, by Eq. (3c), we have \(\lambda _i =0\). From Eqs. (2a) and (2b) we have for this \((i,k): \mu _{ik} = w_i F'(y_i) \). Since \(F'(y_i) < 0\) and \(w_i >0\), we have \(\mu _{ik} <0\) which is a contradiction of Eq. (2c).

Scarce resources: Assume that there exists some \(i \in I_k\) with \(y_i <1\). Then, by Eq. (3c), we have \(\lambda _i =0\). From Eqs. (2a) and (2b), we have for all k in \(K_i\): \(\mu _{ik} - \nu _k = w_i F'(y_i)\). Since \(w_i > 0, F'(y_i) <0\) and \(\mu _{ik} \ge 0\), we have \(\nu _k >0\). From Eq. (3a) we have \(\sum _{i \in I_k} x_{ik} =b_k, \forall k \in K_i\). \(\square \)

The proof of Theorem 3 uses the KKT conditions for model (1). However, we can also prove the same without requiring the assumptions of convexity or differentiability. Consider an optimal solution, \((x^*,y^*)\), and resource \(k'\) is abundant. Assume that \(y_{i'}< 1\) for some \(i' \in I_{k'}\). We show that this is not possible. Consider another solution, \((x',y')\), as follows: \(x'_{i'k'} = x^*_{i'k'} + \delta \) and \(x'_{ik} = x^*_{ik}\) for all other (ik) pairs; \(y'_{i'}= y'_{i'} + \frac{\delta }{n_{i'}}\) and \(y'_i= y^*_{i}\) for all other i. Here \(0<\delta < \min \{b_{k'} - \sum _{i \in I_{k'}} x^*_{ik'}, n_{i'} (1- y^*_{i'}) \} \). Then, this solution is feasible to model (1). Further, since F is decreasing and \(y'_{i'} > y^*_{i'}\), we have \(F(y'_{i'}) < F(y^*_{i'})\). This contradicts the hypothesis that \((x^*,y^*)\) is optimal. The analogous proof for scarce resources mirrors this.

3 A motivating example

This research was motivated by a collaboration with the Texas Department of State Health Services, aimed at allocating a limited amount of vaccines in an equitable manner during an influenza pandemic [5, 6, 15]. Here, we use model (3.1) from [15] to allocate four types of vaccines to five different population groups seeking them. In this example, vaccines are scarce at the start of the pandemic. The allocation ensures an equitable access to vaccines across all five population priority groups in 254 different counties of Texas. Vaccine types constitute our “resources” and the five priority groups across the 254 counties of Texas constitute our “users”. Table 1 presents a map between our notation and that of [15].

Table 1 Mapping between model (1) and model (3.1) of [15]

Singh’s optimization model in [15] presents a special case of model (1), with \(F(y_i) = (1-y_i)^2\). A similar loss function is used in [5, 6]. This loss function, \(F(z) = (1-z)^2\), satisfies the hypothesis of Theorem 2 and hence achieves fairness for inappropriately prioritized users per Definition 2. Next, Theorem 3.2.1 of [15] provides sufficient conditions for a balanced solution \(w_i F'(y_i) = w_{i'} F'(y_{i'})\): (i) \(y_i < 1\) and \(y_{i'} < 1\), and (ii) \(x_{ik} >0 \) and \(x_{i'k} >0\) for some \(k \in K_i \cap K_{i'}\). Then, the solution is proportionally fair per Definition 4 for the given loss function. Singh [15] thus proves the special cases of inappropriate priorities and appropriate priorities with balance, using the quadratic loss function.

4 Conclusion

We develop a general optimization model to study the allocation of partially substitutable resources to different classes of users seeking them. Not all resources are suitable to all classes of users, and different classes of users have different priorities. When a resource is abundant, all users seeking it achieve the maximum possible coverage. When resources are scarce, we provide different notions of fairness depending on the priorities between users. And, we provide a class of objective functions as well as restrictions that achieve these notions of fairness.

Inappropriate priorities always result in fairness. Appropriate priorities, with two additional restrictions of balance and complementary slackness, always result in proportional fairness. Future research could establish what happens when these two restrictions are not met, as well as sufficient and/or necessary conditions to guarantee a balanced solution.

Finally, we demonstrate how our model is reducible to an existing model for equitable allocation of vaccines during an influenza pandemic.