Introduction
Robust optimization is a well-established framework to handle optimization problems in the presence of uncertainty, by considering that some of the parameters may take any value in a given convex set, and taking the decision that is best assuming worst-case realization of the uncertain parameters. A fundamental extension of robust optimization arose with the introduction of a preliminary level of information discovery. In this model, the decision maker can decide to query some of the uncertain parameters before having to decide on the solution to implement. The resulting problem, named robust optimization with Decision-Dependent Information Discovery, was first introduced in [14 ] , and is motivated by several applications, such as urban planning, project management, resource allocations, scheduling. In their seminal paper, the authors propose heuristic solutions based on K K K -adaptability [8 ] , which they assess on several numerical examples, including a case-study illustrating how preference elicitation can improve the US kidney allocation system. Despite its practical relevance, obtaining good numerical solutions to the problem, even for the special case of cost budget uncertainty, has remained very challenging.
Introducing the query set Q ⊆ 2 [ n ] \mathcal{Q} \subseteq2^{[n]} Q ⊆ 2 [ n ] , the nominal feasibility set Y ⊆ 2 [ n ] \mathcal{Y} \subseteq2^{[n]} Y ⊆ 2 [ n ] , the budget polytope Ξ Γ = { ξ ∈ R n | ∑ i ∈ [ n ] ξ i d i ≤ Γ , 0 ≤ ξ ≤ d } \Xi_{\Gamma} = \left\{ \xi\in\mathbb{R}^{n} \,\middle|\, \sum_{i \in[n]} \frac{\xi_i}{d_i} \leq\Gamma, 0 \leq\xi\leq d \right\} Ξ Γ = { ξ ∈ R n ∑ i ∈ [ n ] d i ξ i ≤ Γ , 0 ≤ ξ ≤ d } given by the deviations d > 0 d > 0 d > 0 and budget Γ > 0 \Gamma> 0 Γ > 0 , this special case can be cast as
min Q ∈ Q max μ ∈ Ξ Γ min Y ∈ Y max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ( c i + ξ i ) (1) \min_{Q \in\mathcal{Q}} \max_{\mu\in\Xi_{\Gamma}} \min_{Y \in\mathcal{Y}} \max_{\xi\in\Xi_{\Gamma}(Q,\mu)} \sum_{i \in Y}(c_i+\xi_i) \tag*{(1)} Q ∈ Q min μ ∈ Ξ Γ max Y ∈ Y min ξ ∈ Ξ Γ ( Q , μ ) max i ∈ Y ∑ ( c i + ξ i ) (1)
where c c c represents the nominal cost vector and Ξ Γ ( Q , μ ) = { ξ ∈ Ξ Γ ∣ ξ i = μ i for each i ∈ Q } \Xi_{\Gamma}(Q,\mu)=\{\xi\in\Xi_{\Gamma}\mid\xi_i=\mu_i\text{ for each }i\in Q\} Ξ Γ ( Q , μ ) = { ξ ∈ Ξ Γ ∣ ξ i = μ i for each i ∈ Q } , whose defining constraint ensures that the cost coefficients already observed cannot be altered once Y Y Y has been fixed. The four stages of (DDID-OPT) can be read from left to right as follows. The decision maker first selects which components of the cost vector to observe, through the measurement set Q Q Q ; nature then reveals the values μ \mu μ taken by the observed components; in view of this partial information, the combinatorial solution Y Y Y is chosen; nature finally picks the worst realization ξ \xi ξ that is consistent with what has been revealed.
Problem (DDID-OPT) was further studied by [12 ] , which improved over [14 ] by speeding up the K K K -adaptability approach and proposing a Benders decomposition algorithm based on combinatorial cuts. [12 ] also proposed a detailed case study focusing on collecting medicine crates at the Alrijne Hospital, in the Netherlands. A significant step forward in the numerical solution of (DDID-OPT) arose with [11 ] , which provided (i) a compact mixed-integer linear programming reformulation for DDID essentially assuming that Y \mathcal{Y} Y is easy-to-optimize, and (ii) a branch-and-price algorithm extending the latter formulation to problems for which Y \mathcal{Y} Y is not easy-to-optimize. These formulations made it possible to solve DDID exactly for larger problems than before.
The above papers have provided different algorithms to obtain good approximate or exact solutions to (DDID-OPT), focusing on algorithms that work well numerically. In this paper, we focus on the decision counterpart of (DDID-OPT), so given a threshold z z z , we ask whether
min Q ∈ Q max μ ∈ Ξ Γ min Y ∈ Y max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ( c i + ξ i ) ≤ z . \min_{Q\in\mathcal{Q}}\max_{\mu\in\Xi_{\Gamma}}\min_{Y\in\mathcal{Y}}\max_{\xi\in\Xi_{\Gamma}(Q,\mu)}\sum_{i\in Y}(c_i+\xi_i)\le z. Q ∈ Q min μ ∈ Ξ Γ max Y ∈ Y min ξ ∈ Ξ Γ ( Q , μ ) max i ∈ Y ∑ ( c i + ξ i ) ≤ z .
The complexity of (DDID) has remained largely open since its introduction in [14 ] , contrasting with our understanding of simpler robust problems [1 , 2 , 6 ] . More specifically, it is well-known [1 ] that the problem
min Y ∈ Y max ξ ∈ Ξ Γ ∑ i ∈ Y ( c i + ξ i ) ≤ z (2) \min_{Y\in\mathcal{Y}}\max_{\xi\in\Xi_{\Gamma}}\sum_{i\in Y}(c_i+\xi_i)\le z \tag*{(2)} Y ∈ Y min ξ ∈ Ξ Γ max i ∈ Y ∑ ( c i + ξ i ) ≤ z (2)
is easy as soon as Y \mathcal{Y} Y is easy-to-optimize (meaning that optimizing a linear function over Y \mathcal{Y} Y is easy). Our purpose herein is to understand whether the positive result available for (1) carries over to (DDID). We know already from [11 ] is that computing the objective function
Φ ( Q ) : = max μ ∈ Ξ Γ min Y ∈ Y max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ( c i + ξ i ) \Phi(Q):=\max_{\mu\in\Xi_{\Gamma}}\min_{Y\in\mathcal{Y}}\max_{\xi\in\Xi_{\Gamma}(Q,\mu)}\sum_{i\in Y}(c_i+\xi_i) Φ ( Q ) := μ ∈ Ξ Γ max Y ∈ Y min ξ ∈ Ξ Γ ( Q , μ ) max i ∈ Y ∑ ( c i + ξ i )
is easy as soon as Y \mathcal{Y} Y is easy-to-optimize. Hence, enumerating all Q ∈ Q Q\in\mathcal{Q} Q ∈ Q leads to a polynomial algorithm for (DDID) when Y \mathcal{Y} Y is easy-to-optimize and ∣ Q ∣ |\mathcal{Q}| ∣ Q ∣ is polynomially bounded. Yet, enforcing ∣ Q ∣ |\mathcal{Q}| ∣ Q ∣ to be polynomially bounded is a very strong assumption, since natural query sets would, at the very least, involve query budgets that are part of the input [11 , 12 , 14 ] , naturally leading to sets Q \mathcal{Q} Q of superpolynomial cardinalities. On the other hand, if Q \mathcal{Q} Q or Y \mathcal{Y} Y is hard-to-optimize, it is easy to see that (DDID) is NP-hard (straightforward for Y \mathcal{Y} Y , detailed in § 3 for Q \mathcal{Q} Q ). Hence, the most interesting complexity problem lies in the case where both Q \mathcal{Q} Q and Y \mathcal{Y} Y are easy-to-optimize. The main contribution of this paper is to answer this question, showing that DDID is NP-hard even when Q = { Q ⊆ [ n ] ∣ ∣ Q ∣ = q } \mathcal{Q}=\{Q\subseteq[n]\mid|Q|=q\} Q = { Q ⊆ [ n ] ∣ ∣ Q ∣ = q } and Y = { Y ⊆ [ n ] ∣ ∣ Y ∣ = 2 } \mathcal{Y}=\{Y\subseteq[n]\mid|Y|=2\} Y = { Y ⊆ [ n ] ∣ ∣ Y ∣ = 2 } ; observe that our result thus involves a particularly simple set Y \mathcal{Y} Y , the cardinality of which is only O ( n 2 ) O(n^2) O ( n 2 ) ! We complement this hardness result by showing that (DDID) is in NP, dismissing the possibility that higher levels of the polynomial hierarchy above the first are needed to establish an upper bound on its complexity, which possibility is the case with other adjustable variants of robust optimization problems with continuous budget uncertainty [7 , 13 ] . Last, we prove that two special cases are polynomially solvable. The first one involves the set Y = { Y ⊆ [ n ] ∣ ∣ Y ∣ = 1 } \mathcal{Y}=\{Y\subseteq[n]\mid|Y|=1\} Y = { Y ⊆ [ n ] ∣ ∣ Y ∣ = 1 } and the algorithm follows quite naturally from the preliminary observations derived for (DDID). The second one involves set Y = { Y ⊆ [ n ] ∣ ∣ Y ∣ = p } \mathcal{Y} = \{Y \subseteq[n] \mid|Y| = p\} Y = { Y ⊆ [ n ] ∣ ∣ Y ∣ = p } , for some integer p > 0 p > 0 p > 0 , and further assumes that all deviations d d d are equal, which can arise in scheduling or measurements from identical sensors; the assumption is also a natural choice when little information on the individual deviations is available. The proof of this latter result relies on a more subtle case analysis.
We mention that other works have been dedicated to variants of (DDID). Perhaps closest to the present work are [3 ] and [4 ] . On the one hand, [4 ] considers the variant of (DDID) with uncertainty on a single constraint of Y \mathcal{Y} Y (and no cost uncertainty) and proves that such problems are easy when some cardinality constrained variant of Y \mathcal{Y} Y are easy-to-optimize and a constant number of items can be queried, NP-hard otherwise. On the other hand, [3 ] focuses on the discrete budget uncertainty set (the extreme points of Ξ \Xi Ξ ) and Y \mathcal{Y} Y being the selection set, and considers either cost or constraint uncertainty, providing different types of results: polynomiality of special cases, hardness for more general settings, and a MILP reformulation. Other variants of (DDID) have also been considered in the literature, such as [9 ] , who consider a distributionally robust version, solved by combining a decomposition algorithm with K K K -adaptability, and [10 ] who consider an extension called controllable uncertainty, generalizing (DDID) to the case where the observation reduces the uncertainty around a (possibly unknown) hedging point.
The rest of this paper is structured as follows. § 2 formally defines problem (DDID) as a decision problem and proves its membership in NP. § 3 introduces an adversarial reformulation of (DDID) and illustrates how the latter leads to the problem being easy for Q = { Q ⊆ [ n ] ∣ ∣ Q ∣ = q } \mathcal{Q} = \{Q \subseteq[n] \mid|Q| = q\} Q = { Q ⊆ [ n ] ∣ ∣ Q ∣ = q } and Y = { Y ⊆ [ n ] ∣ ∣ Y ∣ = 1 } \mathcal{Y} = \{Y \subseteq[n] \mid|Y| = 1\} Y = { Y ⊆ [ n ] ∣ ∣ Y ∣ = 1 } . § 4 leverages the adversarial reformulation to prove the hardness of (DDID), using a reduction from Equal-Cardinality-Partition. § 5 turns to the problem with equal deviations, providing a polynomial time algorithm for the problem.
NP membership
The precise definition of (DDID) as a decision problem requires the definition of the instances and how these are related to sets Q \mathcal{Q} Q and Y \mathcal{Y} Y . We consider in this section the general version of the problem, named DDID, by assuming that both Q \mathcal{Q} Q and Y \mathcal{Y} Y are defined by linear constraints. Specifically, an instance I I I of problem DDID is given by rational matrices A A A and B B B , rational vectors a , b , c , d a,b,c,d a , b , c , d , d > 0 d > 0 d > 0 , and rationals Γ > 0 \Gamma> 0 Γ > 0 and z z z . Given these, one defines Q = { Q ⊆ [ n ] ∣ ∑ j ∈ Q A ∙ j ≤ a } \mathcal{Q} = \{Q \subseteq[n] \mid\sum_{j \in Q} A_{\bullet j} \leq a\} Q = { Q ⊆ [ n ] ∣ ∑ j ∈ Q A ∙ j ≤ a } and Y = { Y ⊆ [ n ] ∣ ∑ j ∈ Y B ∙ j ≤ b } \mathcal{Y} = \{Y \subseteq[n] \mid\sum_{j \in Y} B_{\bullet j} \leq b\} Y = { Y ⊆ [ n ] ∣ ∑ j ∈ Y B ∙ j ≤ b } , where M ∙ j M_{\bullet j} M ∙ j denotes the j j j -th column of matrix M M M , and DDID asks whether there exists a solution to (DDID), or said differently, whether there exists Q ∈ Q Q \in\mathcal{Q} Q ∈ Q such that Φ ( Q ) ≤ z \Phi(Q) \leq z Φ ( Q ) ≤ z .
The membership of DDID in NP follows from folklore results from linear programming and the non-compact reformulation based on the convexification of Y \mathcal{Y} Y proposed by [11 Section 5.1] . Let us first state a lemma on the existence of a small solution to any mixed-integer linear program with polynomially many integer variables and constraints, but possibly large number of continuous variables.
Lemma 1. Let P P P be a mixed-integer linear program with m m m constraints and p p p integer variables, where m m m and p p p are polynomially bounded in the input size and the integer variables have polynomially bounded encoding length, and assume its optimal solution is finite. Then, the optimal solution cost z z z has polynomially bounded encoding length and P P P admits an optimal solution with at most m + 1 m + 1 m + 1 non-zero continuous components, with polynomially bounded encoding length.
Proof. Let x ^ \hat{x} x ^ be an optimal solution to P P P of cost z z z . Define P ′ P' P ′ from P P P by fixing all integer variables to their value in x ^ \hat{x} x ^ . Problem P ′ P' P ′ is an LP of cost at most z z z , so there exists a basic feasible solution which has at most m + 1 m+1 m + 1 non-zero components and satisfies M x M = h M M x_M = h_M M x M = h M for a non-singular submatrix M M M of order at most m + 1 m+1 m + 1 . By Cramer’s rule the encoding length of each component of x M x_M x M is polynomially bounded in the input size. This also proves that the encoding length of the optimal cost z z z is polynomially bounded.
Corollary 1. DDID is in NP .
Proof. Consider the formulation (DDID-CG) proposed in [11 Section 5.1] for (DDID-OPT). It satisfies the two assumptions of Lemma 1, so that any YES-instance possesses a small certificate and the problem thus belongs to NP.
Reformulation of DDID
We provide next a reformulation of (DDID) that will be instrumental in proving the hardness of the problem, as well as proving one easy special case. Introducing an additional continuous variable z z z , we obtain the epigraphical reformulation of Φ ( Q ) \Phi(Q) Φ ( Q ) as
Φ ( Q ) = max μ , z z (3) \Phi(Q) = \max_{\mu,z}\ z \tag*{(3)} Φ ( Q ) = μ , z max z (3)
s.t. z ≤ min Y ∈ Y max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ( c i + ξ i ) , (4) \begin{aligned}
\text{s.t.}\quad z &\le\min_{Y\in\mathcal{Y}}\max_{\xi\in\Xi_\Gamma(Q,\mu)}\sum_{i\in Y}(c_i+\xi_i), \tag*{(4)}
\end{aligned} s.t. z ≤ Y ∈ Y min ξ ∈ Ξ Γ ( Q , μ ) max i ∈ Y ∑ ( c i + ξ i ) , (4)
μ ∈ Ξ Γ . (5) \mu\in\Xi_\Gamma. \tag*{(5)} μ ∈ Ξ Γ . (5)
Introduce the complement of Q Q Q as Q ‾ : = [ n ] ∖ Q \overline{Q}:=[n]\setminus Q Q := [ n ] ∖ Q (which is empty if there is Q ∈ Q Q\in\mathcal{Q} Q ∈ Q equal to [ n ] [n] [ n ] ) and Γ ‾ Q ( μ ) : = Γ − ∑ e ∈ Q μ e d e \overline{\Gamma}_Q(\mu):=\Gamma-\sum_{e\in Q}\frac{\mu_e}{d_e} Γ Q ( μ ) := Γ − ∑ e ∈ Q d e μ e , and observe that
max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ( c i + ξ i ) = ∑ i ∈ Y c i + ∑ i ∈ Y ∩ Q μ i + max ξ ∈ Ξ Γ ‾ Q ( μ ) ∑ i ∈ Y ∩ Q ‾ ξ i . (6) \max_{\xi\in\Xi_\Gamma(Q,\mu)}\sum_{i\in Y}(c_i+\xi_i)
=
\sum_{i\in Y}c_i+\sum_{i\in Y\cap Q}\mu_i+
\max_{\xi\in\Xi_{\overline{\Gamma}_Q(\mu)}}\sum_{i\in Y\cap\overline{Q}}\xi_i. \tag*{(6)} ξ ∈ Ξ Γ ( Q , μ ) max i ∈ Y ∑ ( c i + ξ i ) = i ∈ Y ∑ c i + i ∈ Y ∩ Q ∑ μ i + ξ ∈ Ξ Γ Q ( μ ) max i ∈ Y ∩ Q ∑ ξ i . (6)
Linearizing the minimum over Y Y Y of constraints (2b) and using (3) leads to
Φ ( Q ) = max μ , z z (7) \Phi(Q)=\max_{\mu,z}\ z \tag*{(7)} Φ ( Q ) = μ , z max z (7)
s.t. z ≤ ∑ i ∈ Y c i + ∑ i ∈ Y ∩ Q μ i + max ξ ∈ Ξ Γ ‾ Q ( μ ) ∑ i ∈ Y ∩ Q ‾ ξ i , ∀ Y ∈ Y , (8) \begin{aligned}
\text{s.t.}\quad z &\le\sum_{i\in Y}c_i+\sum_{i\in Y\cap Q}\mu_i+
\max_{\xi\in\Xi_{\overline{\Gamma}_Q(\mu)}}\sum_{i\in Y\cap\overline{Q}}\xi_i,
&&\forall Y\in\mathcal{Y}, \tag*{(8)}
\end{aligned} s.t. z ≤ i ∈ Y ∑ c i + i ∈ Y ∩ Q ∑ μ i + ξ ∈ Ξ Γ Q ( μ ) max i ∈ Y ∩ Q ∑ ξ i , ∀ Y ∈ Y , (8)
μ ∈ Ξ Γ (9) \mu\in\Xi_\Gamma \tag*{(9)} μ ∈ Ξ Γ (9)
We propose next to compute Φ ( Q ) \Phi(Q) Φ ( Q ) through a binary search on the value of z z z . Specifically, we define γ Q ( z ) \gamma_Q(z) γ Q ( z ) as the minimum budget value Γ \Gamma Γ needed by the adversary so the cost of every Y ∈ Y Y\in\mathcal{Y} Y ∈ Y is at least z z z , formally
γ Q ( z ) : = min μ , Γ ‾ Γ ‾ + ∑ i ∈ Q μ i d i (10) \gamma_Q(z):=\min_{\mu,\overline{\Gamma}}\ \overline{\Gamma}+\sum_{i\in Q}\frac{\mu_i}{d_i} \tag*{(10)} γ Q ( z ) := μ , Γ min Γ + i ∈ Q ∑ d i μ i (10)
s.t. z ≤ ∑ i ∈ Y c i + ∑ i ∈ Y ∩ Q μ i + max ξ ∈ Ξ Γ ‾ ∑ i ∈ Y ∩ Q ‾ ξ i , ∀ Y ∈ Y , (11) \begin{aligned}
\text{s.t.}\quad z &\le\sum_{i\in Y}c_i+\sum_{i\in Y\cap Q}\mu_i+
\max_{\xi\in\Xi_{\overline{\Gamma}}}\sum_{i\in Y\cap\overline{Q}}\xi_i,
&&\forall Y\in\mathcal{Y}, \tag*{(11)}
\end{aligned} s.t. z ≤ i ∈ Y ∑ c i + i ∈ Y ∩ Q ∑ μ i + ξ ∈ Ξ Γ max i ∈ Y ∩ Q ∑ ξ i , ∀ Y ∈ Y , (11)
0 ≤ μ ≤ d (12) 0\le\mu\le d \tag*{(12)} 0 ≤ μ ≤ d (12)
0 ≤ Γ ‾ ≤ Γ ‾ max (13) 0\le\overline{\Gamma}\le\overline{\Gamma}^{\max} \tag*{(13)} 0 ≤ Γ ≤ Γ m a x (13)
where we observe that the upper bound Γ ‾ max : = max Y ∈ Y ∣ Y ∣ \overline{\Gamma}^{\max}:=\max_{Y\in\mathcal{Y}}|Y| Γ m a x := max Y ∈ Y ∣ Y ∣ is satisfied by any optimal solution.
Proposition 1. For any z ∈ R z \in\mathbb{R} z ∈ R , Φ ( Q ) < z ⟺ γ Q ( z ) > Γ \Phi(Q) < z \Longleftrightarrow\gamma_Q(z) > \Gamma Φ ( Q ) < z ⟺ γ Q ( z ) > Γ .
Proof. Let us prove the equivalent statement Φ ( Q ) ≥ z ⟺ γ Q ( z ) ≤ Γ \Phi(Q) \ge z \Longleftrightarrow\gamma_Q(z) \le\Gamma Φ ( Q ) ≥ z ⟺ γ Q ( z ) ≤ Γ . Suppose γ Q ( z ) ≤ Γ \gamma_Q(z) \le\Gamma γ Q ( z ) ≤ Γ and let ( μ ∗ , Γ ˉ ∗ ) (\mu^*, \bar{\Gamma}^*) ( μ ∗ , Γ ˉ ∗ ) form an optimal solution of (5), which we assume to satisfy μ i = 0 \mu_i = 0 μ i = 0 for each i ∈ Q ‾ i \in\overline{Q} i ∈ Q without loss of generality. Then, Γ ˉ ∗ + ∑ i ∈ Q μ i ∗ d i ≤ Γ \bar{\Gamma}^* + \sum_{i \in Q} \frac{\mu_i^*}{d_i} \le\Gamma Γ ˉ ∗ + ∑ i ∈ Q d i μ i ∗ ≤ Γ implies that Γ ˉ ∗ ≤ Γ ˉ Q ( μ ) \bar{\Gamma}^* \le\bar{\Gamma}_Q(\mu) Γ ˉ ∗ ≤ Γ ˉ Q ( μ ) so max ξ ∈ Ξ Γ ˉ ∗ ∑ i ∈ Y ∩ Q ‾ ξ i ≤ max ξ ∈ Ξ Γ ( Q ‾ , μ ) ∑ i ∈ Y ∩ Q ‾ ξ i \max_{\xi\in\Xi_{\bar{\Gamma}^*}} \sum_{i \in Y \cap\overline{Q}} \xi_i \le\max_{\xi\in\Xi_{\Gamma(\overline{Q},\mu)}} \sum_{i \in Y \cap\overline{Q}} \xi_i max ξ ∈ Ξ Γ ˉ ∗ ∑ i ∈ Y ∩ Q ξ i ≤ max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ∩ Q ξ i , and ( μ ∗ , z ) (\mu^*,z) ( μ ∗ , z ) is feasible for (4), so Φ ( Q ) ≥ z \Phi(Q) \ge z Φ ( Q ) ≥ z . Conversely, assume Φ ( Q ) ≥ z \Phi(Q) \ge z Φ ( Q ) ≥ z and let ( μ ∗ , z ∗ ) (\mu^*,z^*) ( μ ∗ , z ∗ ) be an optimal solution to (4). Then ( μ ∗ , min ( Γ ˉ max , Γ ˉ Q ( μ ∗ ) ) ) (\mu^*,\min(\bar{\Gamma}^{\max},\bar{\Gamma}_Q(\mu^*))) ( μ ∗ , min ( Γ ˉ m a x , Γ ˉ Q ( μ ∗ ))) is feasible for (5), yielding γ Q ( z ) ≤ Γ \gamma_Q(z) \le\Gamma γ Q ( z ) ≤ Γ . □ \square □
Observe that the above proposition considers the variant of DDID defined by a strict inequality. This is not an issue in the case of DDID as the MILP formulation (DDID-CG) provided in [11 ] implies that encoding length of Φ ( Q ) \Phi(Q) Φ ( Q ) is polynomially bounded in the encoding length of the instance (without the threshold z z z ), so considering the strict inequality is polynomially equivalent to considering its non-strict variant. We formalize this observation in the following remark.
Remark 1. Proposition 1 addresses the variant of DDID that seeks Q ∈ Q Q \in\mathcal{Q} Q ∈ Q such that Φ ( Q ) < z \Phi(Q) < z Φ ( Q ) < z . This variant is polynomially equivalent to DDID. Indeed, the threshold z z z does not appear in formulation [11 (DDID-CG)] , so Lemma 1 shows that Φ ∗ : = min Q ∈ Q Φ ( Q ) \Phi^* := \min_{Q \in\mathcal{Q}} \Phi(Q) Φ ∗ := min Q ∈ Q Φ ( Q ) is a rational number of encoding length at most L L L , where L L L is polynomial in the input size and does not depend on z z z . Hence, writing Φ ∗ = a / b \Phi^* = a/b Φ ∗ = a / b and z = r / s z = r/s z = r / s , b < 2 L b < 2^L b < 2 L , so we can define ϵ : = 1 / ( s 2 L ) \epsilon:= 1/(s2^L) ϵ := 1/ ( s 2 L ) such that either Φ ∗ = z \Phi^* = z Φ ∗ = z or ∣ Φ ∗ − z ∣ ≥ ϵ |\Phi^* - z| \ge\epsilon ∣ Φ ∗ − z ∣ ≥ ϵ . Therefore, Φ ∗ < z ⟺ Φ ∗ ≤ z − ϵ \Phi^* < z \Longleftrightarrow\Phi^* \le z - \epsilon Φ ∗ < z ⟺ Φ ∗ ≤ z − ϵ and Φ ∗ ≤ z ⟺ Φ ∗ < z + ϵ \Phi^* \le z \Longleftrightarrow\Phi^* < z + \epsilon Φ ∗ ≤ z ⟺ Φ ∗ < z + ϵ , where ϵ \epsilon ϵ has polynomial encoding length.
In what follows, we study the complexity of DDID under different choices of feasible sets Q \mathcal{Q} Q and Y \mathcal{Y} Y . For ease of reading, whenever one or both feasible sets Q \mathcal{Q} Q and Y \mathcal{Y} Y are specified, we denote the corresponding DDID problem by DDID-Q \mathcal{Q} Q -Y \mathcal{Y} Y .
We illustrate next the reformulation of Proposition 1 and Remark 1 on the special case of DDID, named DDID-Q \mathcal{Q} Q -Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel , in which we define Y = Y 1 -Sel : = { Y ⊆ [ n ] ∣ ∣ Y ∣ = 1 } = { { i } ∣ i ∈ [ n ] } \mathcal{Y} = \mathcal{Y}^{1\text{-Sel}} := \{Y \subseteq[n] \mid|Y| = 1\} = \{\{i\} \mid i \in[n]\} Y = Y 1 -Sel := { Y ⊆ [ n ] ∣ ∣ Y ∣ = 1 } = {{ i } ∣ i ∈ [ n ]} . Plugging the definition of Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel into (5) leads to
γ Q ( z ) : = min μ , Γ ˉ Γ ˉ + ∑ i ∈ Q μ i d i (14) \gamma_Q(z) := \min_{\mu,\bar{\Gamma}} \bar{\Gamma} + \sum_{i \in Q} \frac{\mu_i}{d_i} \tag*{(14)} γ Q ( z ) := μ , Γ ˉ min Γ ˉ + i ∈ Q ∑ d i μ i (14)
s.t. z ≤ c i + μ i , ∀ i ∈ Q , z ≤ c i + min ( 1 , Γ ˉ ) d i , ∀ i ∈ Q ‾ , 0 ≤ μ ≤ d , 0 ≤ Γ ˉ ≤ 1 , (15) \begin{aligned}
\text{s.t.}\quad& z \le c_i + \mu_i, && \forall i \in Q,\\
& z \le c_i + \min(1,\bar{\Gamma})d_i, && \forall i \in\overline{Q},\\
& 0 \le\mu\le d,\\
& 0 \le\bar{\Gamma} \le1, \tag*{(15)}
\end{aligned} s.t. z ≤ c i + μ i , z ≤ c i + min ( 1 , Γ ˉ ) d i , 0 ≤ μ ≤ d , 0 ≤ Γ ˉ ≤ 1 , ∀ i ∈ Q , ∀ i ∈ Q , (15)
where we assume that, without loss of generality, Q ‾ \overline{Q} Q is not empty. Observe that if z > min i ∈ [ n ] c i + d i z > \min_{i \in[n]} c_i + d_i z > min i ∈ [ n ] c i + d i , problem (6) is unfeasible so γ Q ( z ) = + ∞ \gamma_Q(z) = +\infty γ Q ( z ) = + ∞ and Φ ( Q ) < z \Phi(Q) < z Φ ( Q ) < z . Otherwise, we can set μ i = [ z − c i ] + ≤ d i \mu_i = [z - c_i]^+ \le d_i μ i = [ z − c i ] + ≤ d i and Γ ˉ = max i ∈ Q ‾ [ z − c i d i ] + ≤ 1 \bar{\Gamma} = \max_{i \in\overline{Q}} \left[\frac{z-c_i}{d_i}\right]^+ \le1 Γ ˉ = max i ∈ Q [ d i z − c i ] + ≤ 1 , so
γ Q ( z ) = max i ∈ Q ‾ [ z − c i ] + d i + ∑ i ∈ Q [ z − c i ] + d i . (16) \gamma_Q(z) = \max_{i \in\overline{Q}} \frac{[z-c_i]^+}{d_i} + \sum_{i \in Q} \frac{[z-c_i]^+}{d_i}. \tag*{(16)} γ Q ( z ) = i ∈ Q max d i [ z − c i ] + + i ∈ Q ∑ d i [ z − c i ] + . (16)
Consider any combinatorial optimization problem Π \Pi Π for which an instance is given by a cost vector w ∈ Z n w \in\mathbb{Z}^n w ∈ Z n and a set of feasible solutions Q Π \mathcal{Q}^{\Pi} Q Π over which the total cost of the selected elements is to be optimized, formally:
max Q ∈ Q Π ∑ i ∈ Q w i \max_{Q \in\mathcal{Q}^{\Pi}} \sum_{i \in Q} w_i Q ∈ Q Π max i ∈ Q ∑ w i
Given a threshold W W W , its decision version can be expressed as
max Q ∈ Q Π ∑ i ∈ Q w i > W . \max_{Q \in\mathcal{Q}^{\Pi}} \sum_{i \in Q} w_i > W. Q ∈ Q Π max i ∈ Q ∑ w i > W .
Denote by DDID-Q Π \mathcal{Q}^{\Pi} Q Π -Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel the resulting DDID problem under the feasible set Q Π \mathcal{Q}^{\Pi} Q Π of Π \Pi Π . We next show that DDID-Q Π \mathcal{Q}^{\Pi} Q Π -Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel is essentially as easy as Π \Pi Π .
Proposition 2. Given problem Π \Pi Π -OPT and the resulting problem DDID-Q Π \mathcal{Q}^{\Pi} Q Π -Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel ,
if Π \Pi Π is NP-hard, then DDID-Q Π \mathcal{Q}^{\Pi} Q Π -Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel is NP-hard.
if Π \Pi Π is polynomial-time solvable, then DDID-Q Π \mathcal{Q}^{\Pi} Q Π -Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel is polynomial-time solvable.
Proof. Given any set Q \mathcal{Q} Q , the reformulation (16) implies that, ∃ Q ∈ Q \exists Q \in\mathcal{Q} ∃ Q ∈ Q such that γ Q ( z ) > Γ \gamma_Q(z) > \Gamma γ Q ( z ) > Γ if and only if
max Q ∈ Q , ℓ ∈ [ n ] ∖ Q [ z − c ℓ ] + d ℓ + ∑ i ∈ Q [ z − c i ] + d i > Γ . (17) \max_{Q \in\mathcal{Q},\,\ell\in[n]\setminus Q} \frac{[z-c_\ell]^+}{d_\ell}+\sum_{i \in Q}\frac{[z-c_i]^+}{d_i}>\Gamma. \tag*{(17)} Q ∈ Q , ℓ ∈ [ n ] ∖ Q max d ℓ [ z − c ℓ ] + + i ∈ Q ∑ d i [ z − c i ] + > Γ. (17)
i (hardness). Consider any NP-hard problem Π \Pi Π . Deciding whether
max Q ∈ Q Π ∑ i ∈ Q w i > W (18) \max_{Q \in\mathcal{Q}^{\Pi}}\sum_{i \in Q}w_i>W \tag*{(18)} Q ∈ Q Π max i ∈ Q ∑ w i > W (18)
is thus hard, where w i > 0 w_i>0 w i > 0 is the cost of each i ∈ [ n ] i\in[n] i ∈ [ n ] . We now construct an instance of the resulting DDID-Q Π \mathcal{Q}^{\Pi} Q Π -Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel : let [ z − c i ] + d i = w i n ⋅ ( 1 + max i ∈ [ n ] w i ) \frac{[z-c_i]^+}{d_i}=\frac{w_i}{n\cdot(1+\max_{i\in[n]}w_i)} d i [ z − c i ] + = n ⋅ ( 1 + m a x i ∈ [ n ] w i ) w i for each i ∈ [ n ] i\in[n] i ∈ [ n ] , and [ z − c n + 1 ] + d n + 1 = 1 \frac{[z-c_{n+1}]^+}{d_{n+1}}=1 d n + 1 [ z − c n + 1 ] + = 1 . There is no constraint on the item n + 1 n+1 n + 1 . Therefore, there is a yes solution to (18) if and only if the left-hand side of (17) is greater than W n ⋅ ( 1 + max i ∈ [ n ] w i ) + 1 \frac{W}{n\cdot(1+\max_{i\in[n]}w_i)}+1 n ⋅ ( 1 + m a x i ∈ [ n ] w i ) W + 1 .
ii (tractability). First note that if Π \Pi Π is polynomial-time solvable, so is Π \Pi Π -OPT. Given an instance of DDID-Q Π \mathcal{Q}^{\Pi} Q Π -Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel , we construct n n n instances Π ( ℓ ) \Pi(\ell) Π ( ℓ ) -OPT of Π \Pi Π -OPT: for each ℓ ∈ [ n ] \ell\in[n] ℓ ∈ [ n ] , w ℓ = − M w_\ell=-M w ℓ = − M , with M : = 1 + ∑ i ∈ [ n ] [ z − c i ] + d i M:=1+\sum_{i\in[n]}\frac{[z-c_i]^+}{d_i} M := 1 + ∑ i ∈ [ n ] d i [ z − c i ] + , w i = [ z − c i ] + d i w_i=\frac{[z-c_i]^+}{d_i} w i = d i [ z − c i ] + for all i ∈ [ n ] ∖ { ℓ } i\in[n]\setminus\{\ell\} i ∈ [ n ] ∖ { ℓ } . Furthermore, v ( ℓ ) : = max Q ∈ Q Π ∑ i ∈ Q w i v(\ell):=\max_{Q\in\mathcal{Q}^{\Pi}}\sum_{i\in Q}w_i v ( ℓ ) := max Q ∈ Q Π ∑ i ∈ Q w i and Q ( ℓ ) Q(\ell) Q ( ℓ ) denotes an optimal solution. Our algorithm for DDID-Q Π \mathcal{Q}^{\Pi} Q Π -Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel works as follows: we solve the n n n problems Π ( ℓ ) \Pi(\ell) Π ( ℓ ) -OPT and return the solution ( Q ( ℓ ~ ) , ℓ ~ ) (Q(\widetilde{\ell}),\widetilde{\ell}) ( Q ( ℓ ) , ℓ ) maximizing z ( ℓ ) : = v ( ℓ ) + [ z − c ℓ ] + d ℓ z(\ell):=v(\ell)+\frac{[z-c_\ell]^+}{d_\ell} z ( ℓ ) := v ( ℓ ) + d ℓ [ z − c ℓ ] + . If z ( ℓ ~ ) > Γ z(\widetilde{\ell})>\Gamma z ( ℓ ) > Γ , output yes , together with certificate ( Q ( ℓ ~ ) , ℓ ~ ) (Q(\widetilde{\ell}),\widetilde{\ell}) ( Q ( ℓ ) , ℓ ) ; otherwise, no .
Denote by z ∗ > 0 z^*>0 z ∗ > 0 the left-hand side of (17) , and by ( Q ∗ , ℓ ∗ ) (Q^*,\ell^*) ( Q ∗ , ℓ ∗ ) a maximizer. We prove the validity of the algorithm by showing that z ( ℓ ~ ) = z ∗ z(\widetilde{\ell})=z^* z ( ℓ ) = z ∗ . Consider ℓ ∗ \ell^* ℓ ∗ . We see that
max Q ∈ Q Π ∑ i ∈ Q w i = max { max Q ∈ Q Π ℓ ∗ ∉ Q ∑ i ∈ Q w i , max Q ∈ Q Π ℓ ∗ ∈ Q ∑ i ∈ Q w i } ≥ max Q ∈ Q Π ℓ ∗ ∉ Q ∑ i ∈ Q w i = z ∗ − [ z − c ℓ ∗ ] + d ℓ ∗ , \max_{Q\in\mathcal{Q}^{\Pi}}\sum_{i\in Q}w_i
=\max\left\{
\max_{\substack{Q\in\mathcal{Q}^{\Pi}\\\ell^*\notin Q}}\sum_{i\in Q}w_i,\,
\max_{\substack{Q\in\mathcal{Q}^{\Pi}\\\ell^*\in Q}}\sum_{i\in Q}w_i
\right\}
\geq
\max_{\substack{Q\in\mathcal{Q}^{\Pi}\\\ell^*\notin Q}}\sum_{i\in Q}w_i
=z^*-\frac{[z-c_{\ell^*}]^+}{d_{\ell^*}}, Q ∈ Q Π max i ∈ Q ∑ w i = max ⎩ ⎨ ⎧ Q ∈ Q Π ℓ ∗ ∈ / Q max i ∈ Q ∑ w i , Q ∈ Q Π ℓ ∗ ∈ Q max i ∈ Q ∑ w i ⎭ ⎬ ⎫ ≥ Q ∈ Q Π ℓ ∗ ∈ / Q max i ∈ Q ∑ w i = z ∗ − d ℓ ∗ [ z − c ℓ ∗ ] + ,
where the inequality holds because the set { Q ∈ Q Π ∣ ℓ ∗ ∉ Q } ≠ ∅ \{Q\in\mathcal{Q}^{\Pi}\mid\ell^*\notin Q\}\ne\varnothing { Q ∈ Q Π ∣ ℓ ∗ ∈ / Q } = ∅ and the cost of any solution in { Q ∈ Q Π ∣ ℓ ∗ ∉ Q } \{Q\in\mathcal{Q}^{\Pi}\mid\ell^*\notin Q\} { Q ∈ Q Π ∣ ℓ ∗ ∈ / Q } is larger than the cost of any solution in { Q ∈ Q Π ∣ ℓ ∗ ∈ Q } \{Q\in\mathcal{Q}^{\Pi}\mid\ell^*\in Q\} { Q ∈ Q Π ∣ ℓ ∗ ∈ Q } . Furthermore, for each ℓ ∈ [ n ] \ell\in[n] ℓ ∈ [ n ] , either ℓ ∈ Q ( ℓ ) \ell\in Q(\ell) ℓ ∈ Q ( ℓ ) , so z ( ℓ ) ≤ 0 z(\ell)\leq0 z ( ℓ ) ≤ 0 , or ℓ ∉ Q ( ℓ ) \ell\notin Q(\ell) ℓ ∈ / Q ( ℓ ) , in which case ( Q ( ℓ ) , ℓ ) (Q(\ell),\ell) ( Q ( ℓ ) , ℓ ) is a feasible solution for the left-hand side of (17) , of cost z ( ℓ ) z(\ell) z ( ℓ ) ; in both cases, z ( ℓ ) ≤ z ∗ z(\ell)\leq z^* z ( ℓ ) ≤ z ∗ . Hence, z ( ℓ ~ ) = z ∗ z(\widetilde{\ell})=z^* z ( ℓ ) = z ∗ , so we can solve DDID-Q Π \mathcal{Q}^{\Pi} Q Π -Y 1 -Sel \mathcal{Y}^{1\text{-Sel}} Y 1 -Sel in polynomial-time.
Therefore, if Q \mathcal{Q} Q is hard-to-optimize, the resulting DDID is NP-hard even when Y = Y 1 -Sel \mathcal{Y} = \mathcal{Y}^{1\text{-Sel}} Y = Y 1 -Sel . Henceforth, we focus on easy-to-optimize sets Q \mathcal{Q} Q , namely, those for which problem Π \Pi Π is easy to solve. Proposition 2-(ii) shows that, for such sets Q \mathcal{Q} Q , the resulting DDID is easy when considering the simplest feasible set Y 1 -Sel = { { i } ∣ i ∈ [ n ] } \mathcal{Y}^{1\text{-Sel}} = \{\{i\} \mid i \in[n]\} Y 1 -Sel = {{ i } ∣ i ∈ [ n ]} . Despite the polynomiality of this special case, DDID is hard in general, even for easy-to-optimize sets Q \mathcal{Q} Q . We show this in the next section, by considering the special case based on Y 2 -Sel : = { { i , j } ∣ i , j ∈ [ n ] , i ≠ j } \mathcal{Y}^{2\text{-Sel}} := \{\{i,j\} \mid i,j \in[n],\ i \ne j\} Y 2 -Sel := {{ i , j } ∣ i , j ∈ [ n ] , i = j } .
Hardness of DDID
In this section, we establish the hardness of DDID-Q \mathcal{Q} Q -Y \mathcal{Y} Y even for easy-to-optimize sets Q \mathcal{Q} Q .
Reformulation of Φ ( Q ) \Phi(\mathcal{Q}) Φ ( Q ) for 2-selection
We consider in what follows a special case of DDID, named DDID-Q S e l \mathcal{Q}^{\mathrm{Sel}} Q Sel -Y 2 -Sel \mathcal{Y}^{2\text{-Sel}} Y 2 -Sel , for which Q = Q S e l : = { Q ⊆ [ n ] ∣ ∣ Q ∣ = q } \mathcal{Q} = \mathcal{Q}^{\mathrm{Sel}} := \{Q \subseteq[n] \mid|Q| = q\} Q = Q Sel := { Q ⊆ [ n ] ∣ ∣ Q ∣ = q } , and Y = Y 2 -Sel : = { Y ⊆ [ n ] ∣ ∣ Y ∣ = 2 } = { { i , j } ∣ i , j ∈ [ n ] , i ≠ j } \mathcal{Y} = \mathcal{Y}^{2\text{-Sel}} := \{Y \subseteq[n] \mid|Y| = 2\} = \{\{i,j\} \mid i,j \in[n],\ i \ne j\} Y = Y 2 -Sel := { Y ⊆ [ n ] ∣ ∣ Y ∣ = 2 } = {{ i , j } ∣ i , j ∈ [ n ] , i = j } is the feasibility set of the 2-selection problem. An instance of DDID-Q S e l \mathcal{Q}^{\mathrm{Sel}} Q Sel -Y 2 -Sel \mathcal{Y}^{2\text{-Sel}} Y 2 -Sel is given by n n n , q q q , c c c , d d d , Γ \Gamma Γ , z z z .
Then, the expression max ξ ∈ Ξ Γ ˉ ∑ i ∈ Y ∩ Q ˉ ξ i \max_{\xi\in\Xi_{\bar{\Gamma}}} \sum_{i \in Y \cap\bar{Q}} \xi_i max ξ ∈ Ξ Γ ˉ ∑ i ∈ Y ∩ Q ˉ ξ i in the right-hand side of (5b) can be reformulated depending on ∣ Y ∩ Q ˉ ∣ |Y \cap\bar{Q}| ∣ Y ∩ Q ˉ ∣ :
max ξ ∈ Ξ Γ ˉ ∑ i ∈ Y ∩ Q ˉ ξ i = { 0 if Y ∩ Q ˉ = ∅ , min ( 1 , Γ ˉ ) d j if Y ∩ Q ˉ = { j } , min ( 1 , Γ ˉ ) d i + min ( 1 , max ( 0 , Γ ˉ − 1 ) ) d j if Y ∩ Q ˉ = { i , j } , d i ≥ d j . (19) \max_{\xi\in\Xi_{\bar{\Gamma}}} \sum_{i \in Y \cap\bar{Q}} \xi_i =
\begin{cases}
0 & \text{if } Y \cap\bar{Q} = \varnothing,\\
\min(1,\bar{\Gamma})d_j & \text{if } Y \cap\bar{Q} = \{j\},\\
\min(1,\bar{\Gamma})d_i + \min(1,\max(0,\bar{\Gamma}-1))d_j & \text{if } Y \cap\bar{Q} = \{i,j\},\ d_i \ge d_j.
\end{cases} \tag*{(19)} ξ ∈ Ξ Γ ˉ max i ∈ Y ∩ Q ˉ ∑ ξ i = ⎩ ⎨ ⎧ 0 min ( 1 , Γ ˉ ) d j min ( 1 , Γ ˉ ) d i + min ( 1 , max ( 0 , Γ ˉ − 1 )) d j if Y ∩ Q ˉ = ∅ , if Y ∩ Q ˉ = { j } , if Y ∩ Q ˉ = { i , j } , d i ≥ d j . (19)
Introducing
Q ˉ 2 = { ( i , j ) ∣ i , j ∈ Q ˉ , i ≠ j , d i ≥ d j } \bar{Q}_2 = \{(i,j) \mid i,j \in\bar{Q},\ i \ne j,\ d_i \ge d_j\} Q ˉ 2 = {( i , j ) ∣ i , j ∈ Q ˉ , i = j , d i ≥ d j }
we can plug (10) in the right-hand side of (5b) to obtain
γ Q ( z ) = min μ , Γ ˉ Γ ˉ + ∑ i ∈ Q μ i d i (20) \gamma_{\mathcal{Q}}(z) = \min_{\mu,\bar{\Gamma}} \bar{\Gamma} + \sum_{i \in Q} \frac{\mu_i}{d_i} \tag*{(20)} γ Q ( z ) = μ , Γ ˉ min Γ ˉ + i ∈ Q ∑ d i μ i (20)
s.t. z ≤ c i + c j + μ i + μ j , ∀ i , j ∈ Q , i ≠ j , z ≤ c i + c j + μ i + min ( 1 , Γ ˉ ) d j , ∀ i ∈ Q , j ∈ Q ˉ , z ≤ c i + c j + min ( 1 , Γ ˉ ) d i + min ( 1 , max ( 0 , Γ ˉ − 1 ) ) d j , ∀ ( i , j ) ∈ Q ˉ 2 , 0 ≤ μ ≤ d , 0 ≤ Γ ˉ ≤ 2. (21) \begin{aligned}
\text{s.t.}\quad z &\le c_i + c_j + \mu_i + \mu_j, && \forall i,j \in Q,\ i \ne j,\\
z &\le c_i + c_j + \mu_i + \min(1,\bar{\Gamma})d_j, && \forall i \in Q,\ j \in\bar{Q},\\
z &\le c_i + c_j + \min(1,\bar{\Gamma})d_i + \min(1,\max(0,\bar{\Gamma}-1))d_j, && \forall(i,j) \in\bar{Q}_2,\\
0 &\le\mu\le d,\\
0 &\le\bar{\Gamma} \le2. \tag*{(21)}
\end{aligned} s.t. z z z 0 0 ≤ c i + c j + μ i + μ j , ≤ c i + c j + μ i + min ( 1 , Γ ˉ ) d j , ≤ c i + c j + min ( 1 , Γ ˉ ) d i + min ( 1 , max ( 0 , Γ ˉ − 1 )) d j , ≤ μ ≤ d , ≤ Γ ˉ ≤ 2. ∀ i , j ∈ Q , i = j , ∀ i ∈ Q , j ∈ Q ˉ , ∀ ( i , j ) ∈ Q ˉ 2 , (21)
Study of the optimal solutions of γ Q ( z ) \gamma_{\mathcal{Q}}(z) γ Q ( z )
To simplify the presentation of the reduction provided in the next subsection, we introduce below properties which, whenever satisfied, leads to simplification of the function γ Q ( z ) \gamma_{\mathcal{Q}}(z) γ Q ( z ) . Specifically, we consider only specific instances that satisfy ∣ Q ∣ ≤ n − 2 |Q| \le n - 2 ∣ Q ∣ ≤ n − 2 for each Q ∈ Q Q \in\mathcal{Q} Q ∈ Q , and
Γ ˉ min ( Q , z ) : = max ( i , j ) ∈ Q ˉ 2 z − ( c i + c j ) d i = 1 , (22) \bar{\Gamma}_{\min}(Q,z) := \max_{(i,j) \in\bar{Q}_2} \frac{z - (c_i + c_j)}{d_i} = 1, \tag*{(22)} Γ ˉ m i n ( Q , z ) := ( i , j ) ∈ Q ˉ 2 max d i z − ( c i + c j ) = 1 , (22)
c n + d n < z 2 . (23) c_n + d_n < \frac{z}{2}. \tag*{(23)} c n + d n < 2 z . (23)
We show next how assuming (12) leads to a closed-form reformulation for γ Q ( z ) \gamma_{\mathcal{Q}}(z) γ Q ( z ) if n ∈ Q ˉ n \in\bar{Q} n ∈ Q ˉ , while still involving one optimization variable otherwise. First, we show that this assumption implies we can assume that Γ ˉ = 1 \bar{\Gamma} = 1 Γ ˉ = 1 in any optimal solution to (11).
Proposition 3. Assuming ∣ Q ∣ ≤ n − 2 |Q| \le n - 2 ∣ Q ∣ ≤ n − 2 and (12a),
γ Q ( z ) = 1 + min μ ∑ i ∈ Q ‾ μ i d i \gamma_Q(z) = 1 + \min_{\mu} \sum_{i \in\overline{Q}} \frac{\mu_i}{d_i} γ Q ( z ) = 1 + μ min i ∈ Q ∑ d i μ i s . t . ( 11 b ) and ( 11 e ) c i + c j + μ i + d j ≥ z , ∀ i ∈ Q , ∀ j ∈ Q ‾ . (24) \begin{aligned}
s.t.\quad&(11b)\ \text{and}\ (11e)\\
&c_i+c_j+\mu_i+d_j \ge z,\qquad\forall i\in Q,\ \forall j\in\overline{Q}. \tag*{(24)}
\end{aligned} s . t . ( 11 b ) and ( 11 e ) c i + c j + μ i + d j ≥ z , ∀ i ∈ Q , ∀ j ∈ Q . (24)
Proof. Assumption Γ ‾ min ( Q , z ) = 1 \overline{\Gamma}_{\min}(Q,z)=1 Γ m i n ( Q , z ) = 1 implies that min ( i , j ) ∈ Q ‾ 2 c i + c j + d i = z \min_{(i,j)\in\overline{Q}^2}c_i+c_j+d_i=z min ( i , j ) ∈ Q 2 c i + c j + d i = z . Then (11d) is satisfied for every Γ ‾ ≥ 1 \overline{\Gamma}\ge1 Γ ≥ 1 . If Γ ‾ < 1 \overline{\Gamma}<1 Γ < 1 , then the right-hand side of (11d) rewrites c i + c j + Γ ‾ d i c_i+c_j+\overline{\Gamma}d_i c i + c j + Γ d i , and
min ( i , j ) ∈ Q ‾ 2 c i + c j + Γ ‾ d i < min ( i , j ) ∈ Q ‾ 2 c i + c j + d i = z , \min_{(i,j)\in\overline{Q}^2} c_i+c_j+\overline{\Gamma}d_i
<
\min_{(i,j)\in\overline{Q}^2} c_i+c_j+d_i=z, ( i , j ) ∈ Q 2 min c i + c j + Γ d i < ( i , j ) ∈ Q 2 min c i + c j + d i = z ,
so (11d) is violated for some ( i , j ) ∈ Q ‾ 2 (i,j)\in\overline{Q}^2 ( i , j ) ∈ Q 2 . Rewriting (11c) for Γ ‾ ≥ 1 \overline{\Gamma}\ge1 Γ ≥ 1 yields (11c′), so variable Γ ‾ \overline{\Gamma} Γ only appears in the objective and its bound constraints. It follows that the minimum is attained at Γ ‾ = 1 \overline{\Gamma}=1 Γ = 1 .
The above reformulation is leveraged in the next result to provide an expression for γ Q ( z ) \gamma_Q(z) γ Q ( z ) that involves at most one optimization variable.
Proposition 4. Let Q ∈ Q Q\in\mathcal{Q} Q ∈ Q be such that ∣ Q ∣ ≤ n − 2 |Q|\le n-2 ∣ Q ∣ ≤ n − 2 , (12) holds and (11) is feasible. Then:
(a) If n ∈ Q ‾ n\in\overline{Q} n ∈ Q :
γ Q ( z ) = 1 + ∑ i ∈ Q [ z − ( c n + d n + c i ) ] + d i . \gamma_Q(z)=1+\sum_{i\in Q}\frac{\left[z-(c_n+d_n+c_i)\right]^+}{d_i}. γ Q ( z ) = 1 + i ∈ Q ∑ d i [ z − ( c n + d n + c i ) ] + . (b) If n ∈ Q n\in Q n ∈ Q :
γ Q ( z ) = 1 + min μ n μ n d n + ∑ i ∈ Q ∖ { n } [ z − ( c n + μ n + c i ) ] + d i (25) \gamma_Q(z)=1+\min_{\mu_n}\frac{\mu_n}{d_n}+\sum_{i\in Q\setminus\{n\}}\frac{\left[z-(c_n+\mu_n+c_i)\right]^+}{d_i} \tag*{(25)} γ Q ( z ) = 1 + μ n min d n μ n + i ∈ Q ∖ { n } ∑ d i [ z − ( c n + μ n + c i ) ] + (25) μ n ≥ z − c n − min j ∈ [ n − 1 ] ( c j + d j ) (26) \mu_n\ge z-c_n-\min_{j\in[n-1]}(c_j+d_j) \tag*{(26)} μ n ≥ z − c n − j ∈ [ n − 1 ] min ( c j + d j ) (26) 0 ≤ μ n ≤ d n . (27) 0\le\mu_n\le d_n. \tag*{(27)} 0 ≤ μ n ≤ d n . (27)
Proof. We first note that (12b) and the feasibility of (11) imply that
c i + d i > z 2 , ∀ i ∈ Q ‾ ∖ { n } , (28) c_i+d_i>\frac{z}{2},\qquad\forall i\in\overline{Q}\setminus\{n\}, \tag*{(28)} c i + d i > 2 z , ∀ i ∈ Q ∖ { n } , (28)
c i + μ i > z 2 , ∀ i ∈ Q ∖ { n } , (29) c_i+\mu_i>\frac{z}{2},\qquad\forall i\in Q\setminus\{n\}, \tag*{(29)} c i + μ i > 2 z , ∀ i ∈ Q ∖ { n } , (29)
for any feasible solution ( μ , Γ ‾ ) (\mu,\overline{\Gamma}) ( μ , Γ ) to (11). Indeed, assume there is i ∈ Q ‾ ∖ { n } i\in\overline{Q}\setminus\{n\} i ∈ Q ∖ { n } such that c i + d i ≤ z 2 c_i+d_i\le\frac{z}{2} c i + d i ≤ 2 z . Then, if n ∈ Q ‾ n\in\overline{Q} n ∈ Q , d n ≤ d i d_n\le d_i d n ≤ d i (the case d i ≤ d n d_i\le d_n d i ≤ d n is proved similarly), we have that
c i + c n + min ( 1 , Γ ‾ ) d i + min ( 1 , max ( 0 , Γ ‾ − 1 ) ) d n ≤ c i + c n + d i + d n < z , c_i+c_n+\min(1,\overline{\Gamma})d_i+\min(1,\max(0,\overline{\Gamma}-1))d_n
\le c_i+c_n+d_i+d_n<z, c i + c n + min ( 1 , Γ ) d i + min ( 1 , max ( 0 , Γ − 1 )) d n ≤ c i + c n + d i + d n < z ,
so (11d) is infeasible. If n ∈ Q n\in Q n ∈ Q , relying instead on (11c) yields the same conclusion. If i ∈ Q ∖ { n } i\in Q\setminus\{n\} i ∈ Q ∖ { n } , (16b) is proved by relying instead on (11b) and (11c).
In what follows, we let μ ∗ \mu^* μ ∗ be an optimal solution.
(a) Case n ∈ Q ‾ n\in\overline{Q} n ∈ Q . By (16b),
c i + c j + μ i ∗ + μ j ∗ > z , ∀ i , j ∈ Q , i ≠ j , c_i+c_j+\mu_i^*+\mu_j^*>z,\qquad\forall i,j\in Q,\ i\ne j, c i + c j + μ i ∗ + μ j ∗ > z , ∀ i , j ∈ Q , i = j ,
so that (21) is satisfied strictly. From (16), we also have
c i + c j + μ i ∗ + d j > z , ∀ i ∈ Q , ∀ j ∈ Q ‾ ∖ { n } , c_i+c_j+\mu_i^*+d_j>z,\qquad\forall i\in Q,\ \forall j\in\overline{Q}\setminus\{n\}, c i + c j + μ i ∗ + d j > z , ∀ i ∈ Q , ∀ j ∈ Q ∖ { n } ,
so (11c') is also satisfied strictly. Apart from the bounds on μ ∗ \mu^* μ ∗ , the only remaining constraints are
c i + c n + μ i ∗ + d n ≥ z . c_i+c_n+\mu_i^*+d_n\ge z. c i + c n + μ i ∗ + d n ≥ z .
By optimality of μ ∗ \mu^* μ ∗ , we see that for each i ∈ Q i\in Q i ∈ Q , either c i + c n + μ i ∗ + d n = z c_i+c_n+\mu_i^*+d_n=z c i + c n + μ i ∗ + d n = z or μ i ∗ = 0 \mu_i^*=0 μ i ∗ = 0 , for otherwise decreasing μ i ∗ \mu_i^* μ i ∗ by some ϵ > 0 \epsilon>0 ϵ > 0 yields a strictly better solution. Hence, for every i ∈ Q i\in Q i ∈ Q , μ i ∗ = [ z − ( c i + c n + d n ) ] + \mu_i^*=[z-(c_i+c_n+d_n)]^+ μ i ∗ = [ z − ( c i + c n + d n ) ] + , so that
γ Q ( z ) = 1 + ∑ i ∈ Q [ z − ( c n + d n + c i ) ] + d i . \gamma_Q(z)=1+\sum_{i\in Q}\frac{[z-(c_n+d_n+c_i)]^+}{d_i}. γ Q ( z ) = 1 + i ∈ Q ∑ d i [ z − ( c n + d n + c i ) ] + .
(b) Case n ∈ Q n\in Q n ∈ Q . Similarly to (a), one shows that the constraints not involving item n n n are not active so the only constraint (other than bounds) involving μ i ∗ \mu_i^* μ i ∗ that may possibly be active is (21) ,
c n + c i + μ n ∗ + μ i ∗ ≥ z . c_n+c_i+\mu_n^*+\mu_i^*\ge z. c n + c i + μ n ∗ + μ i ∗ ≥ z .
As before, for every i ∈ Q ∖ { n } i\in Q\setminus\{n\} i ∈ Q ∖ { n } , we obtain
μ i ∗ = [ z − ( c n + μ n ∗ + c i ) ] + ≤ d i . \mu_i^*=[z-(c_n+\mu_n^*+c_i)]^+\le d_i. μ i ∗ = [ z − ( c n + μ n ∗ + c i ) ] + ≤ d i .
The constraints (11c') involving item n n n give
c n + μ n ∗ + c j + d j ≥ z , ∀ j ∈ Q ‾ ⟺ μ n ∗ ≥ z − c n − ( c j + d j ) , ∀ j ∈ Q ‾ ⟺ μ n ∗ ≥ z − c n − min j ∈ Q ‾ ( c j + d j ) . \begin{aligned}
c_n+\mu_n^*+c_j+d_j&\ge z, &&\forall j\in\overline{Q}\\
\Longleftrightarrow\quad\mu_n^*&\ge z-c_n-(c_j+d_j), &&\forall j\in\overline{Q}\\
\Longleftrightarrow\quad\mu_n^*&\ge z-c_n-\min_{j\in\overline{Q}}(c_j+d_j).
\end{aligned} c n + μ n ∗ + c j + d j ⟺ μ n ∗ ⟺ μ n ∗ ≥ z , ≥ z − c n − ( c j + d j ) , ≥ z − c n − j ∈ Q min ( c j + d j ) . ∀ j ∈ Q ∀ j ∈ Q
To conclude, we note that μ i ∗ ≤ d i \mu_i^*\le d_i μ i ∗ ≤ d i for every i ∈ Q ∖ { n } i\in Q\setminus\{n\} i ∈ Q ∖ { n } implies
z − ( c n + μ n ∗ + c i ) ≤ d i , ∀ i ∈ Q ∖ { n } ⟺ μ n ∗ ≥ z − c n − ( c i + d i ) , ∀ i ∈ Q ∖ { n } . \begin{aligned}
z-(c_n+\mu_n^*+c_i)&\le d_i, &&\forall i\in Q\setminus\{n\}\\
\Longleftrightarrow\quad\mu_n^*&\ge z-c_n-(c_i+d_i), &&\forall i\in Q\setminus\{n\}.
\end{aligned} z − ( c n + μ n ∗ + c i ) ⟺ μ n ∗ ≤ d i , ≥ z − c n − ( c i + d i ) , ∀ i ∈ Q ∖ { n } ∀ i ∈ Q ∖ { n } .
We deduce that
γ Q ( z ) = 1 + min μ n μ n d n + ∑ i ∈ Q ∖ { n } [ z − ( c n + μ n + c i ) ] + d i \gamma_Q(z)=1+\min_{\mu_n}\frac{\mu_n}{d_n}+\sum_{i\in Q\setminus\{n\}}\frac{[z-(c_n+\mu_n+c_i)]^+}{d_i} γ Q ( z ) = 1 + μ n min d n μ n + i ∈ Q ∖ { n } ∑ d i [ z − ( c n + μ n + c i ) ] +
s.t. μ n ≥ z − c n − min i ∈ [ n − 1 ] ( c i + d i ) \text{s.t.}\quad\mu_n\ge z-c_n-\min_{i\in[n-1]}(c_i+d_i) s.t. μ n ≥ z − c n − i ∈ [ n − 1 ] min ( c i + d i )
0 ≤ μ n ≤ d n . 0\le\mu_n\le d_n. 0 ≤ μ n ≤ d n .
Polynomial reduction
The hardness proof is carried out by a polynomial reduction from Equal-Cardinality-Partition, which, given a list of integers ( h 1 , … , h 2 k ) ⊆ N (h_1,\ldots,h_{2k})\subseteq\mathbb{N} ( h 1 , … , h 2 k ) ⊆ N summing up to 2 H 2H 2 H for some integer H H H , asks whether there exist k k k elements with indices T ⊆ [ 2 k ] T\subseteq[2k] T ⊆ [ 2 k ] such that
∑ i ∈ T h i = H . \sum_{i\in T}h_i=H. i ∈ T ∑ h i = H .
Equal-Cardinality-Partition is known to be NP-hard [5 SP12] . We consider without loss of generality that k ≥ 12 k \ge12 k ≥ 12 , and reduce any instance I I I of Equal-Cardinality-Partition to an instance I ′ I' I ′ of DDID-Q y 2 -Sel S e l \mathcal{Q}^{\mathrm{Sel}}_{y^2\text{-Sel}} Q y 2 -Sel Sel . Following Proposition 1 and Remark 1, we consider the variant of DDID-Q y 2 -Sel S e l \mathcal{Q}^{\mathrm{Sel}}_{y^2\text{-Sel}} Q y 2 -Sel Sel that seeks Q ∈ Q S e l Q \in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel such that γ Q ( z ) > Γ \gamma_Q(z) > \Gamma γ Q ( z ) > Γ .
The instance I ′ I' I ′ contains n : = 3 k + 4 n := 3k + 4 n := 3 k + 4 items and q : = k + 1 q := k + 1 q := k + 1 . Each of the first 2 k 2k 2 k items i ∈ [ 2 k ] i \in[2k] i ∈ [ 2 k ] corresponds to an element of Equal-Cardinality-Partition, while the last k + 4 k + 4 k + 4 items are added so as to satisfy the assumptions of Proposition 4, namely (12) and ensuring the feasibility of (11). Specifically, letting ω i = h i + 2 H \omega_i = h_i + 2H ω i = h i + 2 H for each i ∈ [ 2 k ] i \in[2k] i ∈ [ 2 k ] , and Ω = ( 2 k + 1 ) H \Omega= (2k + 1)H Ω = ( 2 k + 1 ) H , we further define
∀ i ∈ [ 2 k ] : c i = z 2 + q ⋅ d n − ( 3 4 d i + 1 2 d n ) , d i = Ω ω i d n > d n , ∀ g ∈ G : = { 2 k + 1 , … , 2 k + q + 2 } : c g = 0 , d g = z , c n = z 2 − q ⋅ d n , d n = 2 H , z = 6 ( q + 1 ) d n , \begin{aligned}
\forall i \in[2k]:\quad c_i &= \frac{z}{2} + q \cdot d_n - \left(\frac{3}{4}d_i + \frac{1}{2}d_n\right), \qquad d_i = \frac{\Omega}{\omega_i}d_n > d_n,\\
\forall g \in G := \{2k + 1,\ldots,2k + q + 2\}:\quad c_g &= 0, \qquad d_g = z,\\
c_n &= \frac{z}{2} - q \cdot d_n, \qquad d_n = 2H,\\
z &= 6(q+1)d_n,
\end{aligned} ∀ i ∈ [ 2 k ] : c i ∀ g ∈ G := { 2 k + 1 , … , 2 k + q + 2 } : c g c n z = 2 z + q ⋅ d n − ( 4 3 d i + 2 1 d n ) , d i = ω i Ω d n > d n , = 0 , d g = z , = 2 z − q ⋅ d n , d n = 2 H , = 6 ( q + 1 ) d n ,
and Γ : = 3 2 + 3 4 ( q − 1 ) − 1 2 Ω \Gamma:= \frac{3}{2} + \frac{3}{4}(q - 1) - \frac{1}{2\Omega} Γ := 2 3 + 4 3 ( q − 1 ) − 2Ω 1 . Observe that for each i ∈ [ 2 k ] i \in[2k] i ∈ [ 2 k ] and k ≥ 12 k \ge12 k ≥ 12 the constructed instance satisfies
d i ≥ 6 d n . (30) d_i \ge6d_n. \tag*{(30)} d i ≥ 6 d n . (30)
We show next that the constructed instance satisfies all requirements of Proposition 4. Property (12b) and ∣ Q ∣ ≤ n − 2 |Q| \le n - 2 ∣ Q ∣ ≤ n − 2 for each Q ∈ Q Q \in\mathcal{Q} Q ∈ Q follow immediately from the definitions of q q q , c n c_n c n , and d n d_n d n , and we prove below that (12a) holds for all Q ∈ Q S e l Q \in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel .
Proposition 5. For every Q ∈ Q S e l Q \in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel , we have Γ ˉ min ( Q , z ) = 1 \bar{\Gamma}_{\min}(Q,z) = 1 Γ ˉ m i n ( Q , z ) = 1 .
Proof. Let Q ∈ Q S e l Q \in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel . Since ∣ G ∣ = ∣ Q ∣ + 2 |G| = |Q| + 2 ∣ G ∣ = ∣ Q ∣ + 2 , there exist g 1 , g 2 ∈ G g_1,g_2 \in G g 1 , g 2 ∈ G , g 1 ≠ g 2 g_1 \ne g_2 g 1 = g 2 , with g 1 ∈ Q ˉ g_1 \in\bar{Q} g 1 ∈ Q ˉ and g 2 ∈ Q ˉ g_2 \in\bar{Q} g 2 ∈ Q ˉ . To compute Γ ˉ min ( Q , z ) \bar{\Gamma}_{\min}(Q,z) Γ ˉ m i n ( Q , z ) we evaluate z − ( c i + c j ) d i \frac{z-(c_i+c_j)}{d_i} d i z − ( c i + c j ) for all ( i , j ) ∈ Q ˉ 2 (i,j) \in\bar{Q}_2 ( i , j ) ∈ Q ˉ 2 , enumerating the cases. We start with the case where i , j ∈ G i,j \in G i , j ∈ G , for which z − ( c i + c j ) d i = z z = 1 \frac{z-(c_i+c_j)}{d_i} = \frac{z}{z} = 1 d i z − ( c i + c j ) = z z = 1 .
To compute the remaining cases, we first show that for each i ∈ [ 2 k ] i \in[2k] i ∈ [ 2 k ] ,
c i ≥ z 2 (31) c_i \ge\frac{z}{2} \tag*{(31)} c i ≥ 2 z (31)
follows from (i) 3 4 d i + 1 2 d n ≤ 3 4 d i + 1 12 d i ≤ d i \frac{3}{4}d_i + \frac{1}{2}d_n \le\frac{3}{4}d_i + \frac{1}{12}d_i \le d_i 4 3 d i + 2 1 d n ≤ 4 3 d i + 12 1 d i ≤ d i (using (17)), and (ii) q ⋅ d n = ( k + 1 ) ω i Ω d i = ( k + 1 ) h i + 2 H ( 2 k + 1 ) H d i ≥ ( 2 k + 1 ) H ( 2 k + 1 ) H d i q \cdot d_n = (k+1)\frac{\omega_i}{\Omega}d_i = (k+1)\frac{h_i+2H}{(2k+1)H}d_i \ge\frac{(2k+1)H}{(2k+1)H}d_i q ⋅ d n = ( k + 1 ) Ω ω i d i = ( k + 1 ) ( 2 k + 1 ) H h i + 2 H d i ≥ ( 2 k + 1 ) H ( 2 k + 1 ) H d i . We now consider the three different cases:
i ∈ G i \in G i ∈ G , j ∈ [ 2 k ] ∪ { n } j \in[2k] \cup\{n\} j ∈ [ 2 k ] ∪ { n } : z − ( c i + c j ) d i ≤ z d g ≤ 1 \frac{z-(c_i+c_j)}{d_i} \le\frac{z}{d_g} \le1 d i z − ( c i + c j ) ≤ d g z ≤ 1 , from (18) if j ∈ [ 2 k ] j \in[2k] j ∈ [ 2 k ] , and using d g > d i > d n d_g > d_i > d_n d g > d i > d n for each i ∈ [ 2 k ] i \in[2k] i ∈ [ 2 k ] ,
i ∈ [ 2 k ] i \in[2k] i ∈ [ 2 k ] , j = n j = n j = n : z − ( c i + c j ) d i = 3 4 + 1 2 d n d i ≤ 1 \frac{z-(c_i+c_j)}{d_i} = \frac{3}{4} + \frac{1}{2}\frac{d_n}{d_i} \le1 d i z − ( c i + c j ) = 4 3 + 2 1 d i d n ≤ 1 , from (17),
i , j ∈ [ 2 k ] i,j \in[2k] i , j ∈ [ 2 k ] : z − ( c i + c j ) d i ≤ 0 \frac{z-(c_i+c_j)}{d_i} \le0 d i z − ( c i + c j ) ≤ 0 , from (18).
We prove next that the feasibility of (11) for all Q ∈ Q S e l Q \in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel is a direct consequence of Proposition 5 .
Proposition 6. For each Q ∈ Q S e l Q \in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel , problem (11) is feasible.
Proof. We set Γ ˉ = 2 \bar{\Gamma} = 2 Γ ˉ = 2 and μ i = d i \mu_i = d_i μ i = d i for all i ∈ Q i \in Q i ∈ Q , so the problem is feasible if c i + c j + d i + d j ≥ z c_i + c_j + d_i + d_j \ge z c i + c j + d i + d j ≥ z for each i , j ∈ [ n ] i,j \in[n] i , j ∈ [ n ] , i ≠ j i \ne j i = j . This result follows immediately from z − ( c i + c j ) d i ≤ 1 \frac{z-(c_i+c_j)}{d_i} \le1 d i z − ( c i + c j ) ≤ 1 for each i , j ∈ [ n ] i,j \in[n] i , j ∈ [ n ] , d i ≥ d j d_i \ge d_j d i ≥ d j , proved in Proposition 5 .
In the following proposition, we show that it is suboptimal to observe the elements of G G G .
Proposition 7. For every Q G ∈ Q Q_G \in\mathcal{Q} Q G ∈ Q there exists Q ∈ Q Q \in\mathcal{Q} Q ∈ Q with Q ⊆ [ 2 k ] ∪ { n } Q \subseteq[2k] \cup\{n\} Q ⊆ [ 2 k ] ∪ { n } such that γ Q ( z ) ≥ γ Q G ( z ) \gamma_Q(z) \ge\gamma_{Q_G}(z) γ Q ( z ) ≥ γ Q G ( z ) .
Proof. If Q G ∩ G = ∅ Q_G \cap G = \varnothing Q G ∩ G = ∅ , it suffices to take Q = Q G Q = Q_G Q = Q G .
Suppose now Q G ∩ G ≠ ∅ Q_G \cap G \ne\varnothing Q G ∩ G = ∅ and let g ∈ Q G ∩ G g \in Q_G \cap G g ∈ Q G ∩ G . For 0 ≤ μ n ≤ d n 0 \le\mu_n \le d_n 0 ≤ μ n ≤ d n ,
[ z − ( c n + μ n + c g ) ] + d g = [ z − ( c n + μ n ) ] + z = 1 2 + q ⋅ d n − μ n z ≤ 1 2 + q ⋅ d n 6 ( q + 1 ) d n ≤ 1 2 + 1 6 = 2 3 . (32) \frac{\left[z-(c_n+\mu_n+c_g)\right]^+}{d_g}
=
\frac{\left[z-(c_n+\mu_n)\right]^+}{z}
=
\frac{1}{2}+\frac{q\cdot d_n-\mu_n}{z}
\le\frac{1}{2}+\frac{q\cdot d_n}{6(q+1)d_n}
\le\frac{1}{2}+\frac{1}{6}
=\frac{2}{3}. \tag*{(32)} d g [ z − ( c n + μ n + c g ) ] + = z [ z − ( c n + μ n ) ] + = 2 1 + z q ⋅ d n − μ n ≤ 2 1 + 6 ( q + 1 ) d n q ⋅ d n ≤ 2 1 + 6 1 = 3 2 . (32)
For j ∈ [ 2 k ] ∖ Q G j \in[2k]\setminus Q_G j ∈ [ 2 k ] ∖ Q G , by (30) we have
[ z − ( c n + μ n + c j ) ] + d j = [ 3 4 d j + 1 2 d n − μ n ] + d j ≥ 3 4 − 1 2 d n d j ≥ 2 3 . (33) \frac{\left[z-(c_n+\mu_n+c_j)\right]^+}{d_j}
=
\frac{\left[\frac{3}{4}d_j+\frac{1}{2}d_n-\mu_n\right]^+}{d_j}
\ge\frac{3}{4}-\frac{1}{2}\frac{d_n}{d_j}
\ge\frac{2}{3}. \tag*{(33)} d j [ z − ( c n + μ n + c j ) ] + = d j [ 4 3 d j + 2 1 d n − μ n ] + ≥ 4 3 − 2 1 d j d n ≥ 3 2 . (33)
Let I ⊆ [ 2 k ] ∖ Q G I \subseteq[2k]\setminus Q_G I ⊆ [ 2 k ] ∖ Q G with ∣ I ∣ = ∣ Q G ∩ G ∣ |I|=|Q_G\cap G| ∣ I ∣ = ∣ Q G ∩ G ∣ (such a set exists for 2 k ≥ q = k + 1 2k\ge q=k+1 2 k ≥ q = k + 1 ), and set Q = ( Q G ∖ G ) ∪ I Q=(Q_G\setminus G)\cup I Q = ( Q G ∖ G ) ∪ I . Referring to Proposition 4, we have two cases:
(a) Case n ∈ Q G ‾ n\in\overline{Q_G} n ∈ Q G .
γ Q G ( z ) = 1 + ∑ g ∈ Q G ∩ G [ z − ( c n + d n + c g ) ] + d g + ∑ i ∈ Q G ∖ G [ z − ( c n + d n + c i ) ] + d i \gamma_{Q_G}(z)
=
1+\sum_{g\in Q_G\cap G}\frac{\left[z-(c_n+d_n+c_g)\right]^+}{d_g}
+\sum_{i\in Q_G\setminus G}\frac{\left[z-(c_n+d_n+c_i)\right]^+}{d_i} γ Q G ( z ) = 1 + g ∈ Q G ∩ G ∑ d g [ z − ( c n + d n + c g ) ] + + i ∈ Q G ∖ G ∑ d i [ z − ( c n + d n + c i ) ] +
≤ 1 + 2 3 ∣ Q G ∩ G ∣ + ∑ i ∈ Q G ∖ G [ z − ( c n + d n + c i ) ] + d i . \le1+\frac{2}{3}|Q_G\cap G|+\sum_{i\in Q_G\setminus G}\frac{\left[z-(c_n+d_n+c_i)\right]^+}{d_i}. ≤ 1 + 3 2 ∣ Q G ∩ G ∣ + i ∈ Q G ∖ G ∑ d i [ z − ( c n + d n + c i ) ] + .
Furthermore, γ Q ( z ) ≥ 1 + 2 3 ∣ I ∣ + ∑ i ∈ Q G ∖ G [ z − ( c n + d n + c i ) ] + d i \gamma_Q(z)\ge1+\frac{2}{3}|I|+\sum_{i\in Q_G\setminus G}\frac{\left[z-(c_n+d_n+c_i)\right]^+}{d_i} γ Q ( z ) ≥ 1 + 3 2 ∣ I ∣ + ∑ i ∈ Q G ∖ G d i [ z − ( c n + d n + c i ) ] + . Hence, γ Q ( z ) ≥ γ Q G ( z ) \gamma_Q(z)\ge\gamma_{Q_G}(z) γ Q ( z ) ≥ γ Q G ( z ) .
(b) Case n ∈ Q G n\in Q_G n ∈ Q G . Bounds (32) and (33) imply that
∑ i ∈ Q ∖ { n } [ z − ( c n + μ n + c i ) ] + d i ≥ ∑ i ∈ Q G ∖ { n } [ z − ( c n + μ n + c i ) ] + d i , \sum_{i\in Q\setminus\{n\}}\frac{\left[z-(c_n+\mu_n+c_i)\right]^+}{d_i}
\ge
\sum_{i\in Q_G\setminus\{n\}}\frac{\left[z-(c_n+\mu_n+c_i)\right]^+}{d_i}, i ∈ Q ∖ { n } ∑ d i [ z − ( c n + μ n + c i ) ] + ≥ i ∈ Q G ∖ { n } ∑ d i [ z − ( c n + μ n + c i ) ] + ,
for each 0 ≤ μ n ≤ d n 0\le\mu_n\le d_n 0 ≤ μ n ≤ d n . Taking the minimum over μ n \mu_n μ n leads to γ Q ( z ) ≥ γ Q G ( z ) \gamma_Q(z)\ge\gamma_{Q_G}(z) γ Q ( z ) ≥ γ Q G ( z ) .
We now focus on sets Q Q Q that do not contain elements of G G G , and compute a closed-form expression for γ Q \gamma_Q γ Q .
Proposition 8. Let Q ⊆ [ 2 k ] ∪ { n } Q\subseteq[2k]\cup\{n\} Q ⊆ [ 2 k ] ∪ { n } with ∣ Q ∣ = q |Q|=q ∣ Q ∣ = q .
Proof. We start from Proposition 4.
(a) Case n ∈ Q ‾ n \in\overline{Q} n ∈ Q .
γ Q ( z ) = 1 + ∑ i ∈ Q 3 4 d i − 1 2 d n d i = 1 + ∑ i ∈ Q ( 3 4 − 1 2 w i Ω ) = 1 + 3 4 q − 1 2 ∑ i ∈ Q w i Ω . \gamma_Q(z)=1+\sum_{i\in Q}\frac{\frac{3}{4}d_i-\frac{1}{2}d_n}{d_i}
=1+\sum_{i\in Q}\left(\frac{3}{4}-\frac{1}{2}\frac{w_i}{\Omega}\right)
=1+\frac{3}{4}q-\frac{1}{2}\sum_{i\in Q}\frac{w_i}{\Omega}. γ Q ( z ) = 1 + i ∈ Q ∑ d i 4 3 d i − 2 1 d n = 1 + i ∈ Q ∑ ( 4 3 − 2 1 Ω w i ) = 1 + 4 3 q − 2 1 i ∈ Q ∑ Ω w i .
(b) Case n ∈ Q n \in Q n ∈ Q : We first show that with chosen parameters, constraints (14) are redundant in the definition of γ Q \gamma_Q γ Q . Observe that
min j ∈ [ n − 1 ] ( c j + d j ) = min j ∈ [ 2 k ] z 2 + q ⋅ d n − 3 4 d j − 1 2 d n + d j = z 2 + ( q − 1 2 ) d n + 1 4 min j ∈ [ 2 k ] d j . \begin{aligned}
\min_{j\in[n-1]}(c_j+d_j)=\min_{j\in[2k]}\frac{z}{2}+q\cdot d_n-\frac{3}{4}d_j-\frac{1}{2}d_n+d_j \\
&=\frac{z}{2}+\left(q-\frac{1}{2}\right)d_n+\frac{1}{4}\min_{j\in[2k]}d_j.
\end{aligned} j ∈ [ n − 1 ] min ( c j + d j ) = j ∈ [ 2 k ] min 2 z + q ⋅ d n − 4 3 d j − 2 1 d n + d j = 2 z + ( q − 2 1 ) d n + 4 1 j ∈ [ 2 k ] min d j .
Using (17),
z − c n − min j ∈ [ n − 1 ] ( c j + d j ) = z − z 2 + q ⋅ d n − z 2 − q ⋅ d n + 1 2 d n − 1 4 min j ∈ [ 2 k ] d j = 1 2 d n − 1 4 min j ∈ [ 2 k ] d j ≤ 0. \begin{aligned}
z-c_n-\min_{j\in[n-1]}(c_j+d_j)
=z-\frac{z}{2}+q\cdot d_n-\frac{z}{2}-q\cdot d_n+\frac{1}{2}d_n-\frac{1}{4}\min_{j\in[2k]}d_j \\
&=\frac{1}{2}d_n-\frac{1}{4}\min_{j\in[2k]}d_j\leq0.
\end{aligned} z − c n − j ∈ [ n − 1 ] min ( c j + d j ) = z − 2 z + q ⋅ d n − 2 z − q ⋅ d n + 2 1 d n − 4 1 j ∈ [ 2 k ] min d j = 2 1 d n − 4 1 j ∈ [ 2 k ] min d j ≤ 0.
Therefore, the lower bound (14) are dominated by the non-negativity constraint on μ n \mu_n μ n , so
γ Q ( z ) = 1 + min 0 ≤ μ n ≤ d n μ n d n + ∑ i ∈ Q ∖ { n } ( 3 4 + 1 2 d n d i − μ n d i ) = 1 + 3 4 ( q − 1 ) + ∑ i ∈ Q ∖ { n } 1 2 d n d i + min 0 ≤ μ n ≤ d n μ n d n ( 1 − ∑ i ∈ Q ∖ { n } ω i Ω ) = 1 + 3 4 ( q − 1 ) + 1 2 ∑ i ∈ Q ∖ { n } ω i Ω + { 1 − ∑ i ∈ Q ∖ { n } ω i Ω , if ∑ i ∈ Q ∖ { n } ω i > Ω , 0 , otherwise, = 3 2 + 3 4 ( q − 1 ) − 1 2 ∣ 1 − ∑ i ∈ Q ∖ { n } ω i Ω ∣ . \begin{aligned}
\gamma_Q(z)=1+\min_{0\leq\mu_n\leq d_n}\frac{\mu_n}{d_n}
+\sum_{i\in Q\setminus\{n\}}\left(\frac{3}{4}+\frac{1}{2}\frac{d_n}{d_i}-\frac{\mu_n}{d_i}\right) \\
&=1+\frac{3}{4}(q-1)+\sum_{i\in Q\setminus\{n\}}\frac{1}{2}\frac{d_n}{d_i}
+\min_{0\leq\mu_n\leq d_n}\frac{\mu_n}{d_n}\left(1-\sum_{i\in Q\setminus\{n\}}\frac{\omega_i}{\Omega}\right) \\
&=1+\frac{3}{4}(q-1)+\frac{1}{2}\sum_{i\in Q\setminus\{n\}}\frac{\omega_i}{\Omega}
+\begin{cases}
1-\sum_{i\in Q\setminus\{n\}}\frac{\omega_i}{\Omega}, & \text{if }\sum_{i\in Q\setminus\{n\}}\omega_i>\Omega,\\
0, & \text{otherwise,}
\end{cases} \\
&=\frac{3}{2}+\frac{3}{4}(q-1)-\frac{1}{2}\left|1-\sum_{i\in Q\setminus\{n\}}\frac{\omega_i}{\Omega}\right|.
\end{aligned} γ Q ( z ) = 1 + 0 ≤ μ n ≤ d n min d n μ n + i ∈ Q ∖ { n } ∑ ( 4 3 + 2 1 d i d n − d i μ n ) = 1 + 4 3 ( q − 1 ) + i ∈ Q ∖ { n } ∑ 2 1 d i d n + 0 ≤ μ n ≤ d n min d n μ n 1 − i ∈ Q ∖ { n } ∑ Ω ω i = 1 + 4 3 ( q − 1 ) + 2 1 i ∈ Q ∖ { n } ∑ Ω ω i + { 1 − ∑ i ∈ Q ∖ { n } Ω ω i , 0 , if ∑ i ∈ Q ∖ { n } ω i > Ω , otherwise, = 2 3 + 4 3 ( q − 1 ) − 2 1 1 − i ∈ Q ∖ { n } ∑ Ω ω i .
Theorem 1. ( h 1 , … , h 2 k ) (h_1,\ldots,h_{2k}) ( h 1 , … , h 2 k ) is a yes-instance of Equal-Cardinality-Partition if and only if ∃ Q ∈ Q S e l \exists Q\in\mathcal{Q}^{\mathrm{Sel}} ∃ Q ∈ Q Sel such that γ Q ( z ) > 3 2 + 3 4 ( q − 1 ) − 1 2 Ω \gamma_Q(z)>\frac{3}{2}+\frac{3}{4}(q-1)-\frac{1}{2\Omega} γ Q ( z ) > 2 3 + 4 3 ( q − 1 ) − 2Ω 1 .
Proof. Proposition 7 shows that the search space for Q Q Q can be restricted to [ 2 k ] ∪ { n } [2k]\cup\{n\} [ 2 k ] ∪ { n } . By Proposition 8, and noting that ∑ i ∈ Q ω i ≥ ( k + 1 ) 2 H ≥ Ω \sum_{i\in Q}\omega_i\geq(k+1)2H\geq\Omega ∑ i ∈ Q ω i ≥ ( k + 1 ) 2 H ≥ Ω , we get for n ∈ Q ‾ n\in\overline{Q} n ∈ Q that
γ Q ( z ) ≤ 1 2 + 3 4 q = 5 4 + 3 4 ( q − 1 ) ≤ 3 2 + 3 4 ( q − 1 ) − 1 2 Ω , \gamma_Q(z)\leq\frac{1}{2}+\frac{3}{4}q=\frac{5}{4}+\frac{3}{4}(q-1)\leq\frac{3}{2}+\frac{3}{4}(q-1)-\frac{1}{2\Omega}, γ Q ( z ) ≤ 2 1 + 4 3 q = 4 5 + 4 3 ( q − 1 ) ≤ 2 3 + 4 3 ( q − 1 ) − 2Ω 1 ,
since $\Omega\geq 2. For n ∈ Q n \in Q n ∈ Q we have that γ Q ( z ) = 3 2 + 3 4 ( q − 1 ) \gamma_Q(z)=\frac{3}{2}+\frac{3}{4}(q-1) γ Q ( z ) = 2 3 + 4 3 ( q − 1 ) if and only if ∑ i ∈ Q ∖ { n } ω i = Ω \sum_{i\in Q\setminus\{n\}}\omega_i=\Omega ∑ i ∈ Q ∖ { n } ω i = Ω . In particular, if ∑ i ∈ Q ∖ { n } ω i ≠ Ω \sum_{i\in Q\setminus\{n\}}\omega_i\ne\Omega ∑ i ∈ Q ∖ { n } ω i = Ω , we have from the definition of ω i \omega_i ω i and Ω \Omega Ω that
∣ 1 − ∑ i ∈ Q ∖ { n } ω i Ω ∣ = ∣ H − ∑ i ∈ Q ∖ { n } h i Ω ∣ ≥ 1 Ω . \left|1-\sum_{i\in Q\setminus\{n\}}\frac{\omega_i}{\Omega}\right|=\left|\frac{H-\sum_{i\in Q\setminus\{n\}}h_i}{\Omega}\right|\ge\frac{1}{\Omega}. 1 − i ∈ Q ∖ { n } ∑ Ω ω i = Ω H − ∑ i ∈ Q ∖ { n } h i ≥ Ω 1 .
so that
γ Q ( z ) ≤ 3 2 + 3 4 ( q − 1 ) − 1 2 Ω . \gamma_Q(z)\le\frac{3}{2}+\frac{3}{4}(q-1)-\frac{1}{2\Omega}. γ Q ( z ) ≤ 2 3 + 4 3 ( q − 1 ) − 2Ω 1 .
Therefore, there exists Q ∈ Q S e l Q\in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel such that γ Q ( z ) > 3 2 + 3 4 ( q − 1 ) − 1 2 Ω \gamma_Q(z)>\frac{3}{2}+\frac{3}{4}(q-1)-\frac{1}{2\Omega} γ Q ( z ) > 2 3 + 4 3 ( q − 1 ) − 2Ω 1 if and only if there exists I ⊆ [ 2 k ] I\subseteq[2k] I ⊆ [ 2 k ] with ∣ I ∣ = k |I|=k ∣ I ∣ = k such that ∑ i ∈ I ω i = Ω \sum_{i\in I}\omega_i=\Omega ∑ i ∈ I ω i = Ω , which is equivalent to ∑ i ∈ I h i = H \sum_{i\in I}h_i=H ∑ i ∈ I h i = H since ∑ i ∈ I ω i = 2 k ⋅ H + ∑ i ∈ I h i \sum_{i\in I}\omega_i=2k\cdot H+\sum_{i\in I}h_i ∑ i ∈ I ω i = 2 k ⋅ H + ∑ i ∈ I h i and Ω = ( 2 k + 1 ) H \Omega=(2k+1)H Ω = ( 2 k + 1 ) H .
Corollary 2. DDID-Q S e l \mathcal{Q}^{\mathrm{Sel}} Q Sel -Y 2 - S e l \mathcal{Y}^{2\text{-}\mathrm{Sel}} Y 2 - Sel is NP-complete.
Proof. The hardness follows immediately from the Proposition 1, Remark 1 and Theorem 1, as well as the hardness of Equal-Cardinality-Partition. The membership is proved in Corollary 1.
Hence, we conclude that DDID is NP-hard even when Q = Q S e l Q=\mathcal{Q}^{\mathrm{Sel}} Q = Q Sel and ∣ Y ∣ |\mathcal{Y}| ∣ Y ∣ is only O ( n 2 ) O(n^2) O ( n 2 ) .
DDID-Q S e l \mathcal{Q}^{\mathrm{Sel}} Q Sel -Y S e l \mathcal{Y}^{\mathrm{Sel}} Y Sel with equal deviations
In this section, we focus on the optimization variant of DDID-Q S e l \mathcal{Q}^{\mathrm{Sel}} Q Sel -Y S e l \mathcal{Y}^{\mathrm{Sel}} Y Sel , where Q S e l : = { Q ⊆ [ n ] ∣ ∣ Q ∣ = q } \mathcal{Q}^{\mathrm{Sel}}:=\{Q\subseteq[n]\mid|Q|=q\} Q Sel := { Q ⊆ [ n ] ∣ ∣ Q ∣ = q } , and Y S e l : = { Y ⊆ [ n ] ∣ ∣ Y ∣ = p } \mathcal{Y}^{\mathrm{Sel}}:=\{Y\subseteq[n]\mid|Y|=p\} Y Sel := { Y ⊆ [ n ] ∣ ∣ Y ∣ = p } , under the assumption that d i = d j d_i=d_j d i = d j for all i , j ∈ [ n ] i,j\in[n] i , j ∈ [ n ] . We denote this problem by DDID-Q S e l \mathcal{Q}^{\mathrm{Sel}} Q Sel -Y S e l \mathcal{Y}^{\mathrm{Sel}} Y Sel -EqualDev-OPT and show that it can be solved in polynomial time. To establish its polynomial-time solvability, we begin with a simplified reformulation for this case, in which the variables ξ i \xi_i ξ i for all i ∈ Q ‾ i\in\overline{Q} i ∈ Q in the innermost maximization are eliminated. Two observations are then stated that allow us to easily identify a worst-case scenario μ \mu μ for any given Q ∈ Q S e l Q\in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel , as well as an optimal solution y y y for any given Q ∈ Q S e l Q\in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel and μ ∈ Ξ Γ \mu\in\Xi_\Gamma μ ∈ Ξ Γ . Building on these preliminary results, we provide two lemmas to reduce the set of candidate optimal solution Q Q Q to polynomial size, thereby establishing polynomial-time solvability for this case.
For ease of expressions, we assume that the elements are indexed in non-decreasing order of c c c , i.e., c 1 ≤ c 2 ≤ … ≤ c n c_1\le c_2\le\ldots\le c_n c 1 ≤ c 2 ≤ … ≤ c n . Denote d i = d d_i=d d i = d for all i ∈ [ n ] i\in[n] i ∈ [ n ] . Given Q ∈ Q S e l Q\in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel and μ ∈ Ξ Γ \mu\in\Xi_\Gamma μ ∈ Ξ Γ we define function
φ ( Q , μ ) : = min Y ∈ Y S e l max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ( c i + ξ i ) . \varphi(Q,\mu):=\min_{Y\in\mathcal{Y}^{\mathrm{Sel}}}\max_{\xi\in\Xi_\Gamma(Q,\mu)}\sum_{i\in Y}(c_i+\xi_i). φ ( Q , μ ) := Y ∈ Y Sel min ξ ∈ Ξ Γ ( Q , μ ) max i ∈ Y ∑ ( c i + ξ i ) .
We first introduce the following reformulation of φ ( Q , μ ) \varphi(Q,\mu) φ ( Q , μ ) for this special case:
φ ′ ( Q , μ ) : = min Y ∈ Y S e l ∑ i ∈ Y ∩ Q ( c i + μ i ) + ∑ i ∈ Y ∩ Q ‾ c i + d ⋅ min { ∣ Y ∩ Q ‾ ∣ , Γ ‾ Q ( μ ) } . \varphi'(Q,\mu):=\min_{Y\in\mathcal{Y}^{\mathrm{Sel}}}\sum_{i\in Y\cap Q}(c_i+\mu_i)+\sum_{i\in Y\cap\overline{Q}}c_i+d\cdot\min\{|Y\cap\overline{Q}|,\overline{\Gamma}_Q(\mu)\}. φ ′ ( Q , μ ) := Y ∈ Y Sel min i ∈ Y ∩ Q ∑ ( c i + μ i ) + i ∈ Y ∩ Q ∑ c i + d ⋅ min { ∣ Y ∩ Q ∣ , Γ Q ( μ )} .
Lemma 2. For each Q ∈ Q S e l Q\in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel and μ ∈ Ξ Γ \mu\in\Xi_\Gamma μ ∈ Ξ Γ , we have φ ′ ( Q , μ ) = φ ( Q , μ ) \varphi'(Q,\mu)=\varphi(Q,\mu) φ ′ ( Q , μ ) = φ ( Q , μ ) .
Proof. For each Q ∈ Q S e l Q\in\mathcal{Q}^{\mathrm{Sel}} Q ∈ Q Sel and μ ∈ Ξ Γ \mu\in\Xi_\Gamma μ ∈ Ξ Γ , we have
φ ( Q , μ ) = min Y ∈ Y S e l max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ( c i + ξ i ) = min Y ∈ Y S e l max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ∩ Q ( c i + μ i ) + ∑ i ∈ Y ∩ Q ‾ ( c i + ξ i ) . \begin{aligned}
\varphi(Q,\mu)=\min_{Y\in\mathcal{Y}^{\mathrm{Sel}}}\max_{\xi\in\Xi_\Gamma(Q,\mu)}\sum_{i\in Y}(c_i+\xi_i) \\
&=\min_{Y\in\mathcal{Y}^{\mathrm{Sel}}}\max_{\xi\in\Xi_\Gamma(Q,\mu)}\sum_{i\in Y\cap Q}(c_i+\mu_i)+\sum_{i\in Y\cap\overline{Q}}(c_i+\xi_i).
\end{aligned} φ ( Q , μ ) = Y ∈ Y Sel min ξ ∈ Ξ Γ ( Q , μ ) max i ∈ Y ∑ ( c i + ξ i ) = Y ∈ Y Sel min ξ ∈ Ξ Γ ( Q , μ ) max i ∈ Y ∩ Q ∑ ( c i + μ i ) + i ∈ Y ∩ Q ∑ ( c i + ξ i ) .
To prove φ ′ ( Q , μ ) = φ ( Q , μ ) \varphi'(Q,\mu)=\varphi(Q,\mu) φ ′ ( Q , μ ) = φ ( Q , μ ) , it suffices to show that, for any given Y ∈ Y S e l Y\in\mathcal{Y}^{\mathrm{Sel}} Y ∈ Y Sel , max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ∩ Q ‾ ξ i = d ⋅ min { ∣ Y ∩ Q ‾ ∣ , Γ ‾ Q ( μ ) } \max_{\xi\in\Xi_{\Gamma}(Q,\mu)}\sum_{i\in Y\cap\overline{Q}}\xi_i=d\cdot\min\{|Y\cap\overline{Q}|,\overline{\Gamma}_Q(\mu)\} max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ∩ Q ξ i = d ⋅ min { ∣ Y ∩ Q ∣ , Γ Q ( μ )} . Since ξ i ≤ d \xi_i\le d ξ i ≤ d for all i ∈ Y ∩ Q ‾ i\in Y\cap\overline{Q} i ∈ Y ∩ Q , we have ∑ i ∈ Y ∩ Q ‾ ξ i ≤ d ⋅ ∣ Y ∩ Q ‾ ∣ \sum_{i\in Y\cap\overline{Q}}\xi_i\le d\cdot|Y\cap\overline{Q}| ∑ i ∈ Y ∩ Q ξ i ≤ d ⋅ ∣ Y ∩ Q ∣ . Since ∑ i ∈ Q ‾ ξ i ≤ d ⋅ Γ ‾ Q ( μ ) \sum_{i\in\overline{Q}}\xi_i\le d\cdot\overline{\Gamma}_Q(\mu) ∑ i ∈ Q ξ i ≤ d ⋅ Γ Q ( μ ) , we also have ∑ i ∈ Y ∩ Q ‾ ξ i ≤ d ⋅ Γ ‾ Q ( μ ) \sum_{i\in Y\cap\overline{Q}}\xi_i\le d\cdot\overline{\Gamma}_Q(\mu) ∑ i ∈ Y ∩ Q ξ i ≤ d ⋅ Γ Q ( μ ) . Thus, max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ∩ Q ‾ ξ i ≤ d ⋅ min { ∣ Y ∩ Q ‾ ∣ , Γ ‾ Q ( μ ) } \max_{\xi\in\Xi_{\Gamma}(Q,\mu)}\sum_{i\in Y\cap\overline{Q}}\xi_i\le d\cdot\min\{|Y\cap\overline{Q}|,\overline{\Gamma}_Q(\mu)\} max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ∩ Q ξ i ≤ d ⋅ min { ∣ Y ∩ Q ∣ , Γ Q ( μ )} . We next show the reverse inequality. When ∣ Y ∩ Q ‾ ∣ ≤ Γ ‾ Q ( μ ) |Y\cap\overline{Q}|\le\overline{\Gamma}_Q(\mu) ∣ Y ∩ Q ∣ ≤ Γ Q ( μ ) , let ξ i ∗ = d \xi_i^*=d ξ i ∗ = d for i ∈ Y ∩ Q ‾ i\in Y\cap\overline{Q} i ∈ Y ∩ Q and ξ k ∗ = 0 \xi_k^*=0 ξ k ∗ = 0 for k ∈ Q ‾ ∖ Y k\in\overline{Q}\setminus Y k ∈ Q ∖ Y . Then, ∑ i ∈ Y ∩ Q ‾ ξ i ∗ = d ⋅ ∣ Y ∩ Q ‾ ∣ \sum_{i\in Y\cap\overline{Q}}\xi_i^*=d\cdot|Y\cap\overline{Q}| ∑ i ∈ Y ∩ Q ξ i ∗ = d ⋅ ∣ Y ∩ Q ∣ . When ∣ Y ∩ Q ‾ ∣ > Γ ‾ Q ( μ ) |Y\cap\overline{Q}|>\overline{\Gamma}_Q(\mu) ∣ Y ∩ Q ∣ > Γ Q ( μ ) , let ξ i ∗ = d \xi_i^*=d ξ i ∗ = d for i ∈ S i\in S i ∈ S , where S ⊂ ( Y ∩ Q ‾ ) S\subset(Y\cap\overline{Q}) S ⊂ ( Y ∩ Q ) with ∣ S ∣ = ⌊ Γ ‾ Q ( μ ) ⌋ |S|=\lfloor\overline{\Gamma}_Q(\mu)\rfloor ∣ S ∣ = ⌊ Γ Q ( μ )⌋ , ξ j ∗ = d ⋅ ( Γ ‾ Q ( μ ) − ⌊ Γ ‾ Q ( μ ) ⌋ ) \xi_j^*=d\cdot(\overline{\Gamma}_Q(\mu)-\lfloor\overline{\Gamma}_Q(\mu)\rfloor) ξ j ∗ = d ⋅ ( Γ Q ( μ ) − ⌊ Γ Q ( μ )⌋) for some j ∈ ( Y ∩ Q ‾ ) ∖ S j\in(Y\cap\overline{Q})\setminus S j ∈ ( Y ∩ Q ) ∖ S , and ξ k ∗ = 0 \xi_k^*=0 ξ k ∗ = 0 for k ∈ Q ‾ ∖ ( S ∪ { j } ) k\in\overline{Q}\setminus(S\cup\{j\}) k ∈ Q ∖ ( S ∪ { j }) . Then, ∑ i ∈ Y ∩ Q ‾ ξ i ∗ = d ⋅ Γ ‾ Q ( μ ) \sum_{i\in Y\cap\overline{Q}}\xi_i^*=d\cdot\overline{\Gamma}_Q(\mu) ∑ i ∈ Y ∩ Q ξ i ∗ = d ⋅ Γ Q ( μ ) . Thus, max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ∩ Q ‾ ξ i ≥ d ⋅ min { ∣ Y ∩ Q ‾ ∣ , Γ ‾ Q ( μ ) } \max_{\xi\in\Xi_{\Gamma}(Q,\mu)}\sum_{i\in Y\cap\overline{Q}}\xi_i\ge d\cdot\min\{|Y\cap\overline{Q}|,\overline{\Gamma}_Q(\mu)\} max ξ ∈ Ξ Γ ( Q , μ ) ∑ i ∈ Y ∩ Q ξ i ≥ d ⋅ min { ∣ Y ∩ Q ∣ , Γ Q ( μ )} .
Lemma 2 yields the following reformulation of DDID-Q S e l \mathcal{Q}^{\mathrm{Sel}} Q Sel -Y S e l \mathcal{Y}^{\mathrm{Sel}} Y Sel -EqualDev-OPT:
min Q ∈ Q S e l max μ ∈ Ξ Γ min Y ∈ Y S e l ∑ i ∈ Y ∩ Q ( c i + μ i ) + ∑ i ∈ Y ∩ Q ‾ c i + d ⋅ min { ∣ Y ∩ Q ‾ ∣ , Γ ‾ Q ( μ ) } . (34) \min_{Q\in\mathcal{Q}^{\mathrm{Sel}}}\max_{\mu\in\Xi_{\Gamma}}\min_{Y\in\mathcal{Y}^{\mathrm{Sel}}}\sum_{i\in Y\cap Q}(c_i+\mu_i)+\sum_{i\in Y\cap\overline{Q}}c_i+d\cdot\min\{|Y\cap\overline{Q}|,\overline{\Gamma}_Q(\mu)\}. \tag*{(34)} Q ∈ Q Sel min μ ∈ Ξ Γ max Y ∈ Y Sel min i ∈ Y ∩ Q ∑ ( c i + μ i ) + i ∈ Y ∩ Q ∑ c i + d ⋅ min { ∣ Y ∩ Q ∣ , Γ Q ( μ )} . (34)
For ease of notation, we henceforth write Q \mathcal{Q} Q and Y \mathcal{Y} Y instead of Q S e l \mathcal{Q}^{\mathrm{Sel}} Q Sel and Y S e l \mathcal{Y}^{\mathrm{Sel}} Y Sel , respectively. We next state two observations, the first one characterizes a worst-case scenario μ \mu μ , while the second one characterizes an optimal solution Y Y Y for the components in Q ‾ \overline{Q} Q .
Observation 1. Given Q ∈ Q Q\in\mathcal{Q} Q ∈ Q , there always exists a scenario μ ∗ ∈ arg max μ ∈ Ξ Γ φ ( Q , μ ) \mu^*\in\arg\max_{\mu\in\Xi_{\Gamma}}\varphi(Q,\mu) μ ∗ ∈ arg max μ ∈ Ξ Γ φ ( Q , μ ) such that c i + μ i ∗ ≤ c j + μ j ∗ c_i+\mu_i^*\le c_j+\mu_j^* c i + μ i ∗ ≤ c j + μ j ∗ for all i , j ∈ Q i,j\in Q i , j ∈ Q with i < j i<j i < j .
Proof. Define μ ′ ∈ arg max μ ∈ Ξ Γ φ ( Q , μ ) \mu'\in\arg\max_{\mu\in\Xi_{\Gamma}}\varphi(Q,\mu) μ ′ ∈ arg max μ ∈ Ξ Γ φ ( Q , μ ) satisfying that c i + μ i ′ > c j + μ j ′ c_i+\mu_i'>c_j+\mu_j' c i + μ i ′ > c j + μ j ′ . We now construct a scenario μ ∗ \mu^* μ ∗ through
μ j ∗ : = c i − c j + μ i ′ , \mu_j^*:=c_i-c_j+\mu_i', μ j ∗ := c i − c j + μ i ′ ,
μ i ∗ : = μ i ′ + μ j ′ − μ j ∗ and μ k ∗ : = μ k ′ for all k ≠ i , j . \mu_i^*:=\mu_i'+\mu_j'-\mu_j^*\quad\text{and}\quad\mu_k^*:=\mu_k'\text{ for all }k\ne i,j. μ i ∗ := μ i ′ + μ j ′ − μ j ∗ and μ k ∗ := μ k ′ for all k = i , j .
Since 0 ≤ μ j ′ < μ j ∗ ≤ μ i ′ ≤ d 0\le\mu_j'<\mu_j^*\le\mu_i'\le d 0 ≤ μ j ′ < μ j ∗ ≤ μ i ′ ≤ d , 0 ≤ μ j ′ ≤ μ i ∗ < μ i ′ ≤ d 0\le\mu_j'\le\mu_i^*<\mu_i'\le d 0 ≤ μ j ′ ≤ μ i ∗ < μ i ′ ≤ d , and ∑ k ∈ [ n ] μ k ∗ = ∑ k ∈ [ n ] μ k ′ \sum_{k\in[n]}\mu_k^*=\sum_{k\in[n]}\mu_k' ∑ k ∈ [ n ] μ k ∗ = ∑ k ∈ [ n ] μ k ′ , the constructed scenario μ ∗ ∈ Ξ Γ \mu^*\in\Xi_{\Gamma} μ ∗ ∈ Ξ Γ . Then, we have
c i + μ i ∗ = c i + ( μ i ′ + μ j ′ − μ j ∗ ) = c i + ( μ i ′ + μ j ′ − c i + c j − μ i ′ ) = c j + μ j ′ . \begin{aligned}
c_i+\mu_i^*&=c_i+(\mu_i'+\mu_j'-\mu_j^*)\\
&=c_i+(\mu_i'+\mu_j'-c_i+c_j-\mu_i')\\
&=c_j+\mu_j'.
\end{aligned} c i + μ i ∗ = c i + ( μ i ′ + μ j ′ − μ j ∗ ) = c i + ( μ i ′ + μ j ′ − c i + c j − μ i ′ ) = c j + μ j ′ .
Therefore, we have c i + μ i ∗ = c j + μ j ′ < c i + μ i ′ = c j + μ j ∗ c_i+\mu_i^*=c_j+\mu_j'<c_i+\mu_i'=c_j+\mu_j^* c i + μ i ∗ = c j + μ j ′ < c i + μ i ′ = c j + μ j ∗ . Noticing that Γ ‾ Q ( μ ∗ ) = Γ ‾ Q ( μ ′ ) \overline{\Gamma}_Q(\mu^*)=\overline{\Gamma}_Q(\mu') Γ Q ( μ ∗ ) = Γ Q ( μ ′ ) , we conclude that φ ( Q , μ ∗ ) = φ ( Q , μ ′ ) \varphi(Q,\mu^*)=\varphi(Q,\mu') φ ( Q , μ ∗ ) = φ ( Q , μ ′ ) .
Observation 2. Given Q ∈ Q Q\in\mathcal{Q} Q ∈ Q and μ ∈ Ξ Γ \mu\in\Xi_{\Gamma} μ ∈ Ξ Γ , there is an optimal solution Y ∗ Y^* Y ∗ to the minimization problem defining φ ( Q , μ ) \varphi(Q,\mu) φ ( Q , μ ) such that, for all i , j ∈ Q ‾ i,j\in\overline{Q} i , j ∈ Q with i < j i<j i < j , j ∈ Y ∗ j\in Y^* j ∈ Y ∗ implies i ∈ Y ∗ i\in Y^* i ∈ Y ∗ .
Proof. Define Y ′ ∈ Y Y'\in\mathcal{Y} Y ′ ∈ Y by setting i ∉ Y ′ i\notin Y' i ∈ / Y ′ , j ∈ Y ′ j\in Y' j ∈ Y ′ and Y ′ ∖ { i , j } = Y ∗ ∖ { i , j } Y'\setminus\{i,j\}=Y^*\setminus\{i,j\} Y ′ ∖ { i , j } = Y ∗ ∖ { i , j } , where i , j ∈ Q ‾ i,j\in\overline{Q} i , j ∈ Q with i < j i<j i < j . The difference in costs of the solutions Y ′ Y' Y ′ and Y ∗ Y^* Y ∗ is
( ∑ k ∈ Y ′ ∖ { i , j } c k + c j + ∑ r ∈ Y ′ ∩ Q μ r + d ⋅ min { ∣ Y ′ ∩ Q ‾ ∣ , Γ ‾ Q ( μ ) } ) − ( ∑ k ∈ Y ∗ ∖ { i , j } c k + c i + ∑ r ∈ Y ∗ ∩ Q μ r + d ⋅ min { ∣ Y ∗ ∩ Q ‾ ∣ , Γ ‾ Q ( μ ) } ) = c j − c i ≥ 0. \left(\sum_{k\in Y'\setminus\{i,j\}}c_k+c_j+\sum_{r\in Y'\cap Q}\mu_r+d\cdot\min\{|Y'\cap\overline{Q}|,\overline{\Gamma}_Q(\mu)\}\right)
-\left(\sum_{k\in Y^*\setminus\{i,j\}}c_k+c_i+\sum_{r\in Y^*\cap Q}\mu_r+d\cdot\min\{|Y^*\cap\overline{Q}|,\overline{\Gamma}_Q(\mu)\}\right)=c_j-c_i\ge0. k ∈ Y ′ ∖ { i , j } ∑ c k + c j + r ∈ Y ′ ∩ Q ∑ μ r + d ⋅ min { ∣ Y ′ ∩ Q ∣ , Γ Q ( μ )} − k ∈ Y ∗ ∖ { i , j } ∑ c k + c i + r ∈ Y ∗ ∩ Q ∑ μ r + d ⋅ min { ∣ Y ∗ ∩ Q ∣ , Γ Q ( μ )} = c j − c i ≥ 0.
Remark 2. Given Q ∗ ∈ Q Q^* \in\mathcal{Q} Q ∗ ∈ Q and μ ∗ ∈ arg max μ ∈ Ξ Γ φ ( Q ∗ , μ ) \mu^* \in\arg\max_{\mu\in\Xi_\Gamma} \varphi(Q^*,\mu) μ ∗ ∈ arg max μ ∈ Ξ Γ φ ( Q ∗ , μ ) , there always exists an optimal solution Y ∗ Y^* Y ∗ to the minimization problem defining φ ( Q ∗ , μ ∗ ) \varphi(Q^*,\mu^*) φ ( Q ∗ , μ ∗ ) such that Y ∗ Y^* Y ∗ contains the s s s elements with the smallest values of c + μ c+\mu c + μ in Q ∗ Q^* Q ∗ and the first ( p − s ) (p-s) ( p − s ) elements in Q ‾ ∗ \overline{Q}^* Q ∗ , where s ∈ [ min { p , q } ] 0 s \in[\min\{p,q\}]_0 s ∈ [ min { p , q } ] 0 .
Based on the preliminary results stated above, we now establish two essential results, which allow us to eliminate suboptimal solutions Q Q Q , leading to the polynomial-time solvability for this special case. Specifically, among the elements in [ n ] ∖ [ p ] [n]\setminus[p] [ n ] ∖ [ p ] , any solution in which an element of Q ‾ \overline{Q} Q precedes an element of Q Q Q is suboptimal; whereas the reverse ordering holds for the elements in [ p ] [p] [ p ] .
The main idea behind these two proofs is to exchange the first element that violates the prescribed ordering with the closest element that restores the required ordering. We then construct a scenario μ ′ ∈ Ξ Γ \mu' \in\Xi_\Gamma μ ′ ∈ Ξ Γ for the suboptimal solution Q ′ Q' Q ′ based on a worst-case scenario μ ∗ \mu^* μ ∗ for the solution obtained after this exchange, denoted by Q ∗ Q^* Q ∗ . Finally, we show that, for every candidate optimal solution Y ′ Y' Y ′ under Q ′ Q' Q ′ and μ ′ \mu' μ ′ , there exists a feasible solution Y Y Y under Q ∗ Q^* Q ∗ and μ ∗ \mu^* μ ∗ whose objective value is no greater than that of Y ′ Y' Y ′ , thereby proving the suboptimality of Q ′ Q' Q ′ .
Lemma 3. There is an optimal solution Q ∗ ∈ Q Q^* \in\mathcal{Q} Q ∗ ∈ Q such that i < j i<j i < j for all i ∈ Q ∗ ∖ [ p ] i \in Q^*\setminus[p] i ∈ Q ∗ ∖ [ p ] and j ∈ Q ‾ ∗ ∖ [ p ] j \in\overline{Q}^*\setminus[p] j ∈ Q ∗ ∖ [ p ] .
Proof. Denote
Q ′ = { q 1 , … , q 2 , j , q 3 , … , q 4 } , Q'=\{q_1,\ldots,q_2,j,q_3,\ldots,q_4\}, Q ′ = { q 1 , … , q 2 , j , q 3 , … , q 4 } , and
Q ‾ ′ = { q ‾ 1 , … , q ‾ 2 , i , … , j − 1 , q ‾ 3 , … , q ‾ 4 } , \overline{Q}'=\{\overline{q}_1,\ldots,\overline{q}_2,i,\ldots,j-1,\overline{q}_3,\ldots,\overline{q}_4\}, Q ′ = { q 1 , … , q 2 , i , … , j − 1 , q 3 , … , q 4 } , where i , j ∈ [ n ] ∖ [ p ] i,j\in[n]\setminus[p] i , j ∈ [ n ] ∖ [ p ] , i i i is the first element in Q ‾ ′ ∖ [ p ] \overline{Q}'\setminus[p] Q ′ ∖ [ p ] , and j j j is the element in Q ′ Q' Q ′ with the smallest index greater than i i i . Define
Q ∗ = Q ′ ∖ { j } ∪ { i } , and Q ‾ ∗ = Q ‾ ′ ∖ { i } ∪ { j } , Q^*=Q'\setminus\{j\}\cup\{i\},\quad\text{and}\quad\overline{Q}^*=\overline{Q}'\setminus\{i\}\cup\{j\}, Q ∗ = Q ′ ∖ { j } ∪ { i } , and Q ∗ = Q ′ ∖ { i } ∪ { j } , namely
Q ∗ = { q 1 , … , q 2 , i , q 3 , … , q 4 } , Q^*=\{q_1,\ldots,q_2,i,q_3,\ldots,q_4\}, Q ∗ = { q 1 , … , q 2 , i , q 3 , … , q 4 } , and
Q ‾ ∗ = { q ‾ 1 , … , q ‾ 2 , … , j − 1 , j , q ‾ 3 , … , q ‾ 4 } . \overline{Q}^*=\{\overline{q}_1,\ldots,\overline{q}_2,\ldots,j-1,j,\overline{q}_3,\ldots,\overline{q}_4\}. Q ∗ = { q 1 , … , q 2 , … , j − 1 , j , q 3 , … , q 4 } . Let μ ∗ ∈ arg max μ ∈ Ξ Γ φ ( Q ∗ , μ ) \mu^*\in\arg\max_{\mu\in\Xi_\Gamma}\varphi(Q^*,\mu) μ ∗ ∈ arg max μ ∈ Ξ Γ φ ( Q ∗ , μ ) satisfying Observation 1, and, without loss of generality, assume that μ k ∗ = 0 \mu_k^*=0 μ k ∗ = 0 for each k ∈ Q ‾ ∗ k\in\overline{Q}^* k ∈ Q ∗ . We next show that Φ ( Q ∗ ) ≤ Φ ( Q ′ ) \Phi(Q^*)\le\Phi(Q') Φ ( Q ∗ ) ≤ Φ ( Q ′ ) . To do so, we construct a scenario μ ′ ∈ Ξ Γ \mu'\in\Xi_\Gamma μ ′ ∈ Ξ Γ through
μ j ′ : = max { 0 , μ i ∗ + c i − c j } , \mu_j':=\max\{0,\mu_i^*+c_i-c_j\}, μ j ′ := max { 0 , μ i ∗ + c i − c j } , μ k ′ : = μ k ∗ \mu_k':=\mu_k^* μ k ′ := μ k ∗ for all k ∈ Q ′ ∖ { j } k\in Q'\setminus\{j\} k ∈ Q ′ ∖ { j } , and μ k ′ : = 0 \mu_k':=0 μ k ′ := 0 for all k ∈ Q ‾ ′ k\in\overline{Q}' k ∈ Q ′ . Then, we have
c j + μ j ′ ≥ c i + μ i ∗ , and c k + μ k ′ = c k + μ k ∗ , ∀ k ∈ Q ′ ∖ { j } . (35) c_j+\mu_j'\ge c_i+\mu_i^*,\quad\text{and}\quad c_k+\mu_k'=c_k+\mu_k^*,\ \forall k\in Q'\setminus\{j\}. \tag*{(35)} c j + μ j ′ ≥ c i + μ i ∗ , and c k + μ k ′ = c k + μ k ∗ , ∀ k ∈ Q ′ ∖ { j } . (35) Observe that the values of c + μ ′ c+\mu' c + μ ′ remain nondecreasing with respect to the index in Q ′ Q' Q ′ .
Moreover, we obtain
Γ ‾ Q ′ ( μ ′ ) = Γ ‾ Q ∗ ( μ ∗ ) + μ i ∗ − μ j ′ d \overline{\Gamma}_{Q'}(\mu')=\overline{\Gamma}_{Q^*}(\mu^*)+\frac{\mu_i^*-\mu_j'}{d} Γ Q ′ ( μ ′ ) = Γ Q ∗ ( μ ∗ ) + d μ i ∗ − μ j ′ = Γ ‾ Q ∗ ( μ ∗ ) + { μ i ∗ d , if c j > c i + μ i ∗ , c j − c i d , otherwise. =\overline{\Gamma}_{Q^*}(\mu^*)+
\begin{cases}
\frac{\mu_i^*}{d}, & \text{if } c_j>c_i+\mu_i^*,\\
\frac{c_j-c_i}{d}, & \text{otherwise.}
\end{cases} = Γ Q ∗ ( μ ∗ ) + { d μ i ∗ , d c j − c i , if c j > c i + μ i ∗ , otherwise.
We now show that any candidate optimal solution Y ′ Y' Y ′ to the minimization problem defining φ ( Q ′ , μ ′ ) \varphi(Q',\mu') φ ( Q ′ , μ ′ ) has an objective value no smaller than φ ( Q ∗ , μ ∗ ) \varphi(Q^*,\mu^*) φ ( Q ∗ , μ ∗ ) . This can be shown by constructing a feasible solution Y ∗ Y^* Y ∗ to the minimization problem defining φ ( Q ∗ , μ ∗ ) \varphi(Q^*,\mu^*) φ ( Q ∗ , μ ∗ ) whose objective value is no greater than that of Y ′ Y' Y ′ . Denote
Δ : = ∑ k ∈ Y ′ ∩ Q ′ ( c k + μ k ′ ) − ∑ k ∈ Y ∗ ∩ Q ∗ ( c k + μ k ∗ ) + ∑ k ∈ Y ′ ∩ Q ‾ ′ c k − ∑ k ∈ Y ∗ ∩ Q ‾ ∗ c k + d ( min { ∣ Y ′ ∩ Q ‾ ′ ∣ , Γ ‾ Q ′ ( μ ′ ) } − min { ∣ Y ∗ ∩ Q ‾ ∗ ∣ , Γ ‾ Q ∗ ( μ ∗ ) } ) . \Delta:= \sum_{k\in Y'\cap Q'}(c_k+\mu'_k)-\sum_{k\in Y^*\cap Q^*}(c_k+\mu^*_k)
+\sum_{k\in Y'\cap\overline{Q}'}c_k-\sum_{k\in Y^*\cap\overline{Q}^*}c_k+d\left(\min\left\{\lvert Y'\cap\overline{Q}'\rvert,\overline{\Gamma}_{Q'}(\mu')\right\}-\min\left\{\lvert Y^*\cap\overline{Q}^*\rvert,\overline{\Gamma}_{Q^*}(\mu^*)\right\}\right). Δ := k ∈ Y ′ ∩ Q ′ ∑ ( c k + μ k ′ ) − k ∈ Y ∗ ∩ Q ∗ ∑ ( c k + μ k ∗ ) + k ∈ Y ′ ∩ Q ′ ∑ c k − k ∈ Y ∗ ∩ Q ∗ ∑ c k + d ( min { ∣ Y ′ ∩ Q ′ ∣ , Γ Q ′ ( μ ′ ) } − min { ∣ Y ∗ ∩ Q ∗ ∣ , Γ Q ∗ ( μ ∗ ) } ) .
as the difference of their objective value. Note that, in what follows, we only need to consider solutions Y ′ Y' Y ′ satisfying Remark 2. Observe that Remark 2 implies that ∣ Y ′ ∩ { i , j } ∣ ≤ 1 \lvert Y'\cap\{i,j\}\rvert\le1 ∣ Y ′ ∩ { i , j }∣ ≤ 1 .
If i ∉ Y ′ i\notin Y' i ∈ / Y ′ , then we define Y ∗ Y^* Y ∗ such that j ∉ Y ∗ j\notin Y^* j ∈ / Y ∗ , i ∈ Y ∗ ⟺ j ∈ Y ′ i\in Y^*\Longleftrightarrow j\in Y' i ∈ Y ∗ ⟺ j ∈ Y ′ , and k ∈ Y ∗ ⟺ k ∈ Y ′ k\in Y^*\Longleftrightarrow k\in Y' k ∈ Y ∗ ⟺ k ∈ Y ′ for each k ∈ [ n ] ∖ { i , j } k\in[n]\setminus\{i,j\} k ∈ [ n ] ∖ { i , j } . It follows from the fact that Γ ‾ Q ′ ( μ ′ ) ≥ Γ ‾ Q ∗ ( μ ∗ ) \overline{\Gamma}_{Q'}(\mu')\ge\overline{\Gamma}_{Q^*}(\mu^*) Γ Q ′ ( μ ′ ) ≥ Γ Q ∗ ( μ ∗ ) and (22) that Δ ≥ 0 \Delta\ge0 Δ ≥ 0 .
If i ∈ Y ′ i\in Y' i ∈ Y ′ and j ∉ Y ′ j\notin Y' j ∈ / Y ′ , we consider the following subcases. When Γ ‾ Q ′ ( μ ′ ) ≤ ∣ Y ′ ∩ Q ‾ ′ ∣ \overline{\Gamma}_{Q'}(\mu')\le\lvert Y'\cap\overline{Q}'\rvert Γ Q ′ ( μ ′ ) ≤ ∣ Y ′ ∩ Q ′ ∣ and c j + μ j ′ = c i + μ i ∗ c_j+\mu'_j=c_i+\mu^*_i c j + μ j ′ = c i + μ i ∗ , we use the same construction as above and define i ∉ Y ∗ i\notin Y^* i ∈ / Y ∗ , j ∈ Y ∗ j\in Y^* j ∈ Y ∗ and k ∈ Y ∗ ⟺ k ∈ Y ′ k\in Y^*\Longleftrightarrow k\in Y' k ∈ Y ∗ ⟺ k ∈ Y ′ for each k ∈ [ n ] ∖ { i , j } k\in[n]\setminus\{i,j\} k ∈ [ n ] ∖ { i , j } . Then, we have
Δ = c i − c j + d ( Γ ‾ Q ′ ( μ ′ ) − Γ ‾ Q ∗ ( μ ∗ ) ) = c i − c j + c j − c i = 0. \Delta=c_i-c_j+d\left(\overline{\Gamma}_{Q'}(\mu')-\overline{\Gamma}_{Q^*}(\mu^*)\right)=c_i-c_j+c_j-c_i=0. Δ = c i − c j + d ( Γ Q ′ ( μ ′ ) − Γ Q ∗ ( μ ∗ ) ) = c i − c j + c j − c i = 0.
When Γ ‾ Q ′ ( μ ′ ) ≤ ∣ Y ′ ∩ Q ‾ ′ ∣ \overline{\Gamma}_{Q'}(\mu')\le\lvert Y'\cap\overline{Q}'\rvert Γ Q ′ ( μ ′ ) ≤ ∣ Y ′ ∩ Q ′ ∣ and c j > c i + μ i ∗ c_j>c_i+\mu^*_i c j > c i + μ i ∗ , since d ⋅ ( Γ ‾ Q ′ ( μ ′ ) − Γ ‾ Q ∗ ( μ ∗ ) ) d\cdot\left(\overline{\Gamma}_{Q'}(\mu')-\overline{\Gamma}_{Q^*}(\mu^*)\right) d ⋅ ( Γ Q ′ ( μ ′ ) − Γ Q ∗ ( μ ∗ ) ) is not necessarily equal to c j − c i c_j-c_i c j − c i , we consider an alternative construction for Y ∗ Y^* Y ∗ such that ∣ Y ∗ ∩ Q ∗ ∣ = ∣ Y ′ ∩ Q ′ ∣ + 1 \lvert Y^*\cap Q^*\rvert=\lvert Y'\cap Q'\rvert+1 ∣ Y ∗ ∩ Q ∗ ∣ = ∣ Y ′ ∩ Q ′ ∣ + 1 and Remark 2 is satisfied. Let r r r be the smallest index such that r ∉ Y ′ r\notin Y' r ∈ / Y ′ among the elements of Q ′ Q' Q ′ and s s s be the largest index such that s ∈ Y ′ ∩ Q ‾ ′ s\in Y'\cap\overline{Q}' s ∈ Y ′ ∩ Q ′ . Since r ≤ j r\le j r ≤ j , we have
∑ k ∈ Y ′ ∩ Q ′ ( c k + μ k ′ ) − ∑ k ∈ Y ∗ ∩ Q ∗ ( c k + μ k ∗ ) ≥ − c i − μ i ∗ . \sum_{k\in Y'\cap Q'}(c_k+\mu'_k)-\sum_{k\in Y^*\cap Q^*}(c_k+\mu^*_k)\ge-c_i-\mu^*_i. k ∈ Y ′ ∩ Q ′ ∑ ( c k + μ k ′ ) − k ∈ Y ∗ ∩ Q ∗ ∑ ( c k + μ k ∗ ) ≥ − c i − μ i ∗ .
Then, we also have
∑ k ∈ Y ′ ∩ Q ‾ ′ c k − ∑ k ∈ Y ∗ ∩ Q ‾ ∗ c k = c i if s ≤ j − 1 ; = c i + c s − c j if s > j . \sum_{k\in Y'\cap\overline{Q}'}c_k-\sum_{k\in Y^*\cap\overline{Q}^*}c_k=c_i\text{ if }s\le j-1;\ =c_i+c_s-c_j\text{ if }s>j. k ∈ Y ′ ∩ Q ′ ∑ c k − k ∈ Y ∗ ∩ Q ∗ ∑ c k = c i if s ≤ j − 1 ; = c i + c s − c j if s > j .
We thus obtain
Δ ≥ − c i − μ i ∗ + c i + d ( Γ ‾ Q ′ ( μ ′ ) − min { ∣ Y ∗ ∩ Q ‾ ∗ ∣ , Γ ‾ Q ∗ ( μ ∗ ) } ) ≥ − c i − μ i ∗ + c i + d ( Γ ‾ Q ′ ( μ ′ ) − Γ ‾ Q ∗ ( μ ∗ ) ) = − c i − μ i ∗ + c i + μ i ∗ = 0. \begin{aligned}
\Delta&\ge-c_i-\mu^*_i+c_i+d\left(\overline{\Gamma}_{Q'}(\mu')-\min\left\{\lvert Y^*\cap\overline{Q}^*\rvert,\overline{\Gamma}_{Q^*}(\mu^*)\right\}\right)\\
&\ge-c_i-\mu^*_i+c_i+d\left(\overline{\Gamma}_{Q'}(\mu')-\overline{\Gamma}_{Q^*}(\mu^*)\right)\\
&=-c_i-\mu^*_i+c_i+\mu^*_i=0.
\end{aligned} Δ ≥ − c i − μ i ∗ + c i + d ( Γ Q ′ ( μ ′ ) − min { ∣ Y ∗ ∩ Q ∗ ∣ , Γ Q ∗ ( μ ∗ ) } ) ≥ − c i − μ i ∗ + c i + d ( Γ Q ′ ( μ ′ ) − Γ Q ∗ ( μ ∗ ) ) = − c i − μ i ∗ + c i + μ i ∗ = 0.
When ∣ Y ′ ∩ Q ‾ ′ ∣ < Γ ‾ Q ′ ( μ ′ ) \lvert Y'\cap\overline{Q}'\rvert<\overline{\Gamma}_{Q'}(\mu') ∣ Y ′ ∩ Q ′ ∣ < Γ Q ′ ( μ ′ ) , we keep the alternative construction for Y ∗ Y^* Y ∗ such that ∣ Y ∗ ∩ Q ∗ ∣ = ∣ Y ′ ∩ Q ′ ∣ + 1 \lvert Y^*\cap Q^*\rvert=\lvert Y'\cap Q'\rvert+1 ∣ Y ∗ ∩ Q ∗ ∣ = ∣ Y ′ ∩ Q ′ ∣ + 1 . Then, we have
Δ ≥ − c i − μ i ∗ + c i + d ( ∣ Y ′ ∩ Q ‾ ′ ∣ − min { ∣ Y ∗ ∩ Q ‾ ∗ ∣ , Γ ‾ Q ∗ ( μ ∗ ) } ) ≥ − c i − μ i ∗ + c i + d ( ∣ Y ′ ∩ Q ‾ ′ ∣ − ∣ Y ∗ ∩ Q ‾ ∗ ∣ ) = − c i − μ i ∗ + c i + d ≥ 0. \begin{aligned}
\Delta&\ge-c_i-\mu^*_i+c_i+d\left(\lvert Y'\cap\overline{Q}'\rvert-\min\left\{\lvert Y^*\cap\overline{Q}^*\rvert,\overline{\Gamma}_{Q^*}(\mu^*)\right\}\right)\\
&\ge-c_i-\mu^*_i+c_i+d\left(\lvert Y'\cap\overline{Q}'\rvert-\lvert Y^*\cap\overline{Q}^*\rvert\right)\\
&=-c_i-\mu^*_i+c_i+d\ge0.
\end{aligned} Δ ≥ − c i − μ i ∗ + c i + d ( ∣ Y ′ ∩ Q ′ ∣ − min { ∣ Y ∗ ∩ Q ∗ ∣ , Γ Q ∗ ( μ ∗ ) } ) ≥ − c i − μ i ∗ + c i + d ( ∣ Y ′ ∩ Q ′ ∣ − ∣ Y ∗ ∩ Q ∗ ∣ ) = − c i − μ i ∗ + c i + d ≥ 0.
Consequently,
Φ ( Q ′ ) = max μ ∈ Ξ Γ φ ( Q ′ , μ ) ≥ φ ( Q ′ , μ ′ ) ≥ φ ( Q ∗ , μ ∗ ) = Φ ( Q ∗ ) . \Phi(Q')=\max_{\mu\in\Xi_\Gamma}\varphi(Q',\mu)\ge\varphi(Q',\mu')\ge\varphi(Q^*,\mu^*)=\Phi(Q^*). Φ ( Q ′ ) = μ ∈ Ξ Γ max φ ( Q ′ , μ ) ≥ φ ( Q ′ , μ ′ ) ≥ φ ( Q ∗ , μ ∗ ) = Φ ( Q ∗ ) .
Lemma 4. There is an optimal solution Q ∗ ∈ Q Q^* \in\mathcal{Q} Q ∗ ∈ Q such that i < j i<j i < j for all i ∈ Q ‾ ∗ ∩ [ p ] i \in\overline{Q}^* \cap[p] i ∈ Q ∗ ∩ [ p ] and j ∈ Q ∗ ∩ [ p ] j \in Q^* \cap[p] j ∈ Q ∗ ∩ [ p ] .
Proof. Denote
Q ′ = { i , i + 1 , … , j − 1 , q 1 , … , q 2 } , Q'=\{i,i+1,\ldots,j-1,q_1,\ldots,q_2\}, Q ′ = { i , i + 1 , … , j − 1 , q 1 , … , q 2 } ,
and
Q ‾ ′ = { 1 , … , i − 1 , j , q ‾ 1 , … , q ‾ 2 } , \overline{Q}'=\{1,\ldots,i-1,j,\overline{q}_1,\ldots,\overline{q}_2\}, Q ′ = { 1 , … , i − 1 , j , q 1 , … , q 2 } ,
where i , j ∈ [ p ] i,j\in[p] i , j ∈ [ p ] , i i i is the first element in Q ′ Q' Q ′ , and j j j is the smallest element in Q ‾ ′ \overline{Q}' Q ′ greater than i i i . Define
Q ∗ = Q ′ ∖ { i } ∪ { j } , Q ‾ ∗ = Q ‾ ′ ∖ { j } ∪ { i } , Q^*=Q'\setminus\{i\}\cup\{j\},\qquad\overline{Q}^*=\overline{Q}'\setminus\{j\}\cup\{i\}, Q ∗ = Q ′ ∖ { i } ∪ { j } , Q ∗ = Q ′ ∖ { j } ∪ { i } ,
namely,
Q ∗ = { i + 1 , … , j − 1 , j , q 1 , … , q 2 } , Q^*=\{i+1,\ldots,j-1,j,q_1,\ldots,q_2\}, Q ∗ = { i + 1 , … , j − 1 , j , q 1 , … , q 2 } ,
and
Q ‾ ∗ = { 1 , … , i − 1 , i , q ‾ 1 , … , q ‾ 2 } . \overline{Q}^*=\{1,\ldots,i-1,i,\overline{q}_1,\ldots,\overline{q}_2\}. Q ∗ = { 1 , … , i − 1 , i , q 1 , … , q 2 } .
Note that j j j and i i i occupy the same position, namely i i i -th position, in Q ‾ ′ \overline{Q}' Q ′ and Q ‾ ∗ \overline{Q}^* Q ∗ , respectively. Let μ ∗ ∈ arg max μ ∈ Ξ Γ φ ( Q ∗ , μ ) \mu^* \in\arg\max_{\mu\in\Xi_\Gamma}\varphi(Q^*,\mu) μ ∗ ∈ arg max μ ∈ Ξ Γ φ ( Q ∗ , μ ) satisfying Observation 1, and, without loss of generality, assume that μ k ∗ = 0 \mu_k^*=0 μ k ∗ = 0 for each k ∈ Q ‾ ∗ k\in\overline{Q}^* k ∈ Q ∗ . We next show that Φ ( Q ∗ ) ≤ Φ ( Q ′ ) \Phi(Q^*)\leq\Phi(Q') Φ ( Q ∗ ) ≤ Φ ( Q ′ ) . To do so, we construct a scenario μ ′ ∈ Ξ Γ \mu'\in\Xi_\Gamma μ ′ ∈ Ξ Γ through
μ i ′ : = min { d , μ j ∗ + c j − c i , μ j ∗ + d ⋅ Γ ‾ Q ∗ ( μ ∗ ) } , \mu_i':=\min\left\{d,\mu_j^*+c_j-c_i,\mu_j^*+d\cdot\overline{\Gamma}_{Q^*}(\mu^*)\right\}, μ i ′ := min { d , μ j ∗ + c j − c i , μ j ∗ + d ⋅ Γ Q ∗ ( μ ∗ ) } ,
μ k ′ : = μ k ∗ for all k ∈ Q ′ ∖ { i } , μ k ′ : = 0 for all k ∈ Q ‾ ′ . \mu_k':=\mu_k^*\ \text{for all }k\in Q'\setminus\{i\},\qquad\mu_k':=0\ \text{for all }k\in\overline{Q}'. μ k ′ := μ k ∗ for all k ∈ Q ′ ∖ { i } , μ k ′ := 0 for all k ∈ Q ′ .
Observe that c i + μ i ′ ≤ c j + μ j ∗ c_i+\mu_i'\leq c_j+\mu_j^* c i + μ i ′ ≤ c j + μ j ∗ . However, the values of c + μ ′ c+\mu' c + μ ′ are not necessarily nondecreasing with respect to the indices in Q ′ Q' Q ′ , due to the constructed value of c i + μ i ′ c_i+\mu_i' c i + μ i ′ . Furthermore, Γ ‾ Q ′ ( μ ′ ) = Γ ‾ Q ∗ ( μ ∗ ) + μ j ∗ − μ i ′ d \overline{\Gamma}_{Q'}(\mu')=\overline{\Gamma}_{Q^*}(\mu^*)+\frac{\mu_j^*-\mu_i'}{d} Γ Q ′ ( μ ′ ) = Γ Q ∗ ( μ ∗ ) + d μ j ∗ − μ i ′ . Therefore, whenever μ i ′ ≠ μ j ∗ + d ⋅ Γ ‾ Q ∗ ( μ ∗ ) \mu_i'\ne\mu_j^*+d\cdot\overline{\Gamma}_{Q^*}(\mu^*) μ i ′ = μ j ∗ + d ⋅ Γ Q ∗ ( μ ∗ ) , we have
Γ ‾ Q ′ ( μ ′ ) = Γ ‾ Q ∗ ( μ ∗ ) − { 1 − μ j ∗ d , if c j + μ j ∗ > c i + d , c j − c i d , otherwise , \overline{\Gamma}_{Q'}(\mu')=\overline{\Gamma}_{Q^*}(\mu^*)-\begin{cases}
1-\dfrac{\mu_j^*}{d}, & \text{if }c_j+\mu_j^*>c_i+d,\\
\dfrac{c_j-c_i}{d}, & \text{otherwise},
\end{cases} Γ Q ′ ( μ ′ ) = Γ Q ∗ ( μ ∗ ) − ⎩ ⎨ ⎧ 1 − d μ j ∗ , d c j − c i , if c j + μ j ∗ > c i + d , otherwise ,
while Γ ‾ Q ′ ( μ ′ ) = 0 \overline{\Gamma}_{Q'}(\mu')=0 Γ Q ′ ( μ ′ ) = 0 if μ i ′ = μ j ∗ + d ⋅ Γ ‾ Q ∗ ( μ ∗ ) \mu_i'=\mu_j^*+d\cdot\overline{\Gamma}_{Q^*}(\mu^*) μ i ′ = μ j ∗ + d ⋅ Γ Q ∗ ( μ ∗ ) . We now show that any candidate optimal solution Y ′ Y' Y ′ to the minimization problem defining φ ( Q ′ , μ ′ ) \varphi(Q',\mu') φ ( Q ′ , μ ′ ) has an objective value no smaller than φ ( Q ∗ , μ ∗ ) \varphi(Q^*,\mu^*) φ ( Q ∗ , μ ∗ ) . This can be shown by constructing a feasible solution Y ∗ Y^* Y ∗ to the minimization problem defining φ ( Q ∗ , μ ∗ ) \varphi(Q^*,\mu^*) φ ( Q ∗ , μ ∗ ) whose objective value is no greater than that of Y ′ Y' Y ′ . Denote
Δ : = ∑ k ∈ Y ′ ∩ Q ′ ( c k + μ k ′ ) − ∑ k ∈ Y ∗ ∩ Q ∗ ( c k + μ k ∗ ) + ∑ k ∈ Y ′ ∩ Q ‾ ′ c k − ∑ k ∈ Y ∗ ∩ Q ‾ ∗ c k + d ( min { ∣ Y ′ ∩ Q ‾ ′ ∣ , Γ ‾ Q ′ ( μ ′ ) } − min { ∣ Y ∗ ∩ Q ‾ ∗ ∣ , Γ ‾ Q ∗ ( μ ∗ ) } ) \begin{aligned}
\Delta:={}&\sum_{k\in Y'\cap Q'}(c_k+\mu_k')-\sum_{k\in Y^*\cap Q^*}(c_k+\mu_k^*)\\
&+\sum_{k\in Y'\cap\overline{Q}'}c_k-\sum_{k\in Y^*\cap\overline{Q}^*}c_k\\
&+d\left(\min\{|Y'\cap\overline{Q}'|,\overline{\Gamma}_{Q'}(\mu')\}-\min\{|Y^*\cap\overline{Q}^*|,\overline{\Gamma}_{Q^*}(\mu^*)\}\right)
\end{aligned} Δ := k ∈ Y ′ ∩ Q ′ ∑ ( c k + μ k ′ ) − k ∈ Y ∗ ∩ Q ∗ ∑ ( c k + μ k ∗ ) + k ∈ Y ′ ∩ Q ′ ∑ c k − k ∈ Y ∗ ∩ Q ∗ ∑ c k + d ( min { ∣ Y ′ ∩ Q ′ ∣ , Γ Q ′ ( μ ′ )} − min { ∣ Y ∗ ∩ Q ∗ ∣ , Γ Q ∗ ( μ ∗ )} )
as the difference of their objective value. Note that, in what follows, we only need to consider solutions y ′ y' y ′ satisfying Remark 2. Observe that Remark 2 implies that ∣ Y ′ ∩ { i , j } ∣ ≥ 1 |Y'\cap\{i,j\}|\geq1 ∣ Y ′ ∩ { i , j } ∣ ≥ 1 .
We first consider the case μ i ′ ≠ μ j ∗ + d ⋅ Γ ‾ Q ∗ ( μ ∗ ) \mu_i'\ne\mu_j^*+d\cdot\overline{\Gamma}_{Q^*}(\mu^*) μ i ′ = μ j ∗ + d ⋅ Γ Q ∗ ( μ ∗ ) . If i , j ∈ Y ′ i,j\in Y' i , j ∈ Y ′ , then we define Y ∗ : = Y ′ Y^*:=Y' Y ∗ := Y ′ , so
Δ = ( c i + μ i ′ − c j − μ j ∗ ) + c j − c i + d ( min { ∣ Y ′ ∩ Q ‾ ′ ∣ , Γ ‾ Q ′ ( μ ′ ) } − min { ∣ Y ∗ ∩ Q ‾ ∗ ∣ , Γ ‾ Q ∗ ( μ ∗ ) } ) ≥ μ i ′ − μ j ∗ + d ⋅ { ( ∣ Y ′ ∩ Q ‾ ′ ∣ − ∣ Y ∗ ∩ Q ‾ ∗ ∣ ) = 0 , if ∣ Y ′ ∩ Q ‾ ′ ∣ ≤ Γ ‾ Q ′ ( μ ′ ) , ( Γ ‾ Q ′ ( μ ′ ) − Γ ‾ Q ∗ ( μ ∗ ) ) = c i − c j d , if ∣ Y ′ ∩ Q ‾ ′ ∣ > Γ ‾ Q ′ ( μ ′ ) and c j + μ j ∗ = c i + μ i ′ , ( Γ ‾ Q ′ ( μ ′ ) − Γ ‾ Q ∗ ( μ ∗ ) ) = μ j ∗ d − 1 , if ∣ Y ′ ∩ Q ‾ ′ ∣ > Γ ‾ Q ′ ( μ ′ ) and c j + μ j ∗ > c i + d , \begin{aligned}
\Delta=(c_i+\mu_i'-c_j-\mu_j^*)+c_j-c_i+d\left(\min\{|Y'\cap\overline{Q}'|,\overline{\Gamma}_{Q'}(\mu')\}-\min\{|Y^*\cap\overline{Q}^*|,\overline{\Gamma}_{Q^*}(\mu^*)\}\right) \\
&\geq\mu_i'-\mu_j^*+d\cdot\begin{cases}
\left(|Y'\cap\overline{Q}'|-|Y^*\cap\overline{Q}^*|\right)=0, & \text{if }|Y'\cap\overline{Q}'|\leq\overline{\Gamma}_{Q'}(\mu'),\\
\left(\overline{\Gamma}_{Q'}(\mu')-\overline{\Gamma}_{Q^*}(\mu^*)\right)=\dfrac{c_i-c_j}{d}, & \text{if }|Y'\cap\overline{Q}'|>\overline{\Gamma}_{Q'}(\mu')\text{ and }c_j+\mu_j^*=c_i+\mu_i',\\
\left(\overline{\Gamma}_{Q'}(\mu')-\overline{\Gamma}_{Q^*}(\mu^*)\right)=\dfrac{\mu_j^*}{d}-1, & \text{if }|Y'\cap\overline{Q}'|>\overline{\Gamma}_{Q'}(\mu')\text{ and }c_j+\mu_j^*>c_i+d,
\end{cases}
\end{aligned} Δ = ( c i + μ i ′ − c j − μ j ∗ ) + c j − c i + d ( min { ∣ Y ′ ∩ Q ′ ∣ , Γ Q ′ ( μ ′ )} − min { ∣ Y ∗ ∩ Q ∗ ∣ , Γ Q ∗ ( μ ∗ )} ) ≥ μ i ′ − μ j ∗ + d ⋅ ⎩ ⎨ ⎧ ( ∣ Y ′ ∩ Q ′ ∣ − ∣ Y ∗ ∩ Q ∗ ∣ ) = 0 , ( Γ Q ′ ( μ ′ ) − Γ Q ∗ ( μ ∗ ) ) = d c i − c j , ( Γ Q ′ ( μ ′ ) − Γ Q ∗ ( μ ∗ ) ) = d μ j ∗ − 1 , if ∣ Y ′ ∩ Q ′ ∣ ≤ Γ Q ′ ( μ ′ ) , if ∣ Y ′ ∩ Q ′ ∣ > Γ Q ′ ( μ ′ ) and c j + μ j ∗ = c i + μ i ′ , if ∣ Y ′ ∩ Q ′ ∣ > Γ Q ′ ( μ ′ ) and c j + μ j ∗ > c i + d ,
If i ∉ Y ′ i \notin Y' i ∈ / Y ′ and j ∈ Y ′ j \in Y' j ∈ Y ′ , then we define Y ∗ Y^* Y ∗ such that i ∈ Y ∗ i \in Y^* i ∈ Y ∗ , j ∉ Y ∗ j \notin Y^* j ∈ / Y ∗ and k ∈ Y ∗ ⟺ k ∈ Y ′ k \in Y^* \Longleftrightarrow k \in Y' k ∈ Y ∗ ⟺ k ∈ Y ′ for each k ∈ [ n ] ∖ { i , j } k \in[n] \setminus\{i,j\} k ∈ [ n ] ∖ { i , j } . We obtain, by a similar argument to that for the case i , j ∈ Y ′ i,j \in Y' i , j ∈ Y ′ , that
Δ = c j − c i + d ( min { ∣ Y ′ ∩ Q ′ ‾ ∣ , Γ ‾ Q ′ ( μ ′ ) } − min { ∣ Y ∗ ∩ Q ∗ ‾ ∣ , Γ ‾ Q ∗ ( μ ∗ ) } ) ≥ 0. \Delta= c_j-c_i+d\left(\min\{|Y'\cap\overline{Q'}|,\overline{\Gamma}_{Q'}(\mu')\}-\min\{|Y^*\cap\overline{Q^*}|,\overline{\Gamma}_{Q^*}(\mu^*)\}\right)\ge0. Δ = c j − c i + d ( min { ∣ Y ′ ∩ Q ′ ∣ , Γ Q ′ ( μ ′ )} − min { ∣ Y ∗ ∩ Q ∗ ∣ , Γ Q ∗ ( μ ∗ )} ) ≥ 0.
If i ∈ Y ′ i \in Y' i ∈ Y ′ and j ∉ Y ′ j \notin Y' j ∈ / Y ′ , we consider the following cases. When c i + μ i ′ = c j + μ j ∗ c_i+\mu'_i=c_j+\mu^*_j c i + μ i ′ = c j + μ j ∗ and ∣ Y ′ ∩ Q ′ ‾ ∣ ≤ Γ ‾ Q ′ ( μ ′ ) |Y'\cap\overline{Q'}|\le\overline{\Gamma}_{Q'}(\mu') ∣ Y ′ ∩ Q ′ ∣ ≤ Γ Q ′ ( μ ′ ) , we define Y ∗ Y^* Y ∗ such that j ∈ Y ∗ j\in Y^* j ∈ Y ∗ , i ∉ Y ∗ i\notin Y^* i ∈ / Y ∗ , and k ∈ Y ∗ ⟺ k ∈ Y ′ k\in Y^*\Longleftrightarrow k\in Y' k ∈ Y ∗ ⟺ k ∈ Y ′ for each k ∈ [ n ] ∖ { i , j } k\in[n]\setminus\{i,j\} k ∈ [ n ] ∖ { i , j } . Since we have
∑ k ∈ Y ′ ∩ Q ′ ( c k + μ k ′ ) = ∑ k ∈ Y ∗ ∩ Q ∗ ( c k + μ k ∗ ) , \sum_{k\in Y'\cap Q'}(c_k+\mu'_k)=\sum_{k\in Y^*\cap Q^*}(c_k+\mu^*_k), k ∈ Y ′ ∩ Q ′ ∑ ( c k + μ k ′ ) = k ∈ Y ∗ ∩ Q ∗ ∑ ( c k + μ k ∗ ) ,
and k ∈ Y ∗ ⟺ k ∈ Y ′ k\in Y^*\Longleftrightarrow k\in Y' k ∈ Y ∗ ⟺ k ∈ Y ′ for all k ∈ Q ′ ‾ ∩ Q ∗ ‾ k\in\overline{Q'}\cap\overline{Q^*} k ∈ Q ′ ∩ Q ∗ , we obtain
Δ = d ( min { ∣ Y ′ ∩ Q ′ ‾ ∣ , Γ ‾ Q ′ ( μ ′ ) } − min { ∣ Y ∗ ∩ Q ∗ ‾ ∣ , Γ ‾ Q ∗ ( μ ∗ ) } ) = d ( ∣ Y ′ ∩ Q ′ ‾ ∣ − ∣ Y ∗ ∩ Q ∗ ‾ ∣ ) = 0. \begin{aligned}
\Delta=d\left(\min\{|Y'\cap\overline{Q'}|,\overline{\Gamma}_{Q'}(\mu')\}-\min\{|Y^*\cap\overline{Q^*}|,\overline{\Gamma}_{Q^*}(\mu^*)\}\right) \\
&=d\left(|Y'\cap\overline{Q'}|-|Y^*\cap\overline{Q^*}|\right)=0.
\end{aligned} Δ = d ( min { ∣ Y ′ ∩ Q ′ ∣ , Γ Q ′ ( μ ′ )} − min { ∣ Y ∗ ∩ Q ∗ ∣ , Γ Q ∗ ( μ ∗ )} ) = d ( ∣ Y ′ ∩ Q ′ ∣ − ∣ Y ∗ ∩ Q ∗ ∣ ) = 0.
When c i + μ i ′ = c j + μ j ∗ c_i+\mu'_i=c_j+\mu^*_j c i + μ i ′ = c j + μ j ∗ and ∣ Y ′ ∩ Q ′ ‾ ∣ > Γ ‾ Q ′ ( μ ′ ) |Y'\cap\overline{Q'}|>\overline{\Gamma}_{Q'}(\mu') ∣ Y ′ ∩ Q ′ ∣ > Γ Q ′ ( μ ′ ) , we define Y ∗ Y^* Y ∗ such that ∣ Y ∗ ∩ Q ∗ ∣ = ∣ Y ′ ∩ Q ′ ∣ − 1 |Y^*\cap Q^*|=|Y'\cap Q'|-1 ∣ Y ∗ ∩ Q ∗ ∣ = ∣ Y ′ ∩ Q ′ ∣ − 1 and Remark 2 is satisfied. Hence, there is s ∈ ( Q ′ ∩ Q ∗ ) s\in(Q'\cap Q^*) s ∈ ( Q ′ ∩ Q ∗ ) with s > j s>j s > j such that s ∈ Y ′ s\in Y' s ∈ Y ′ and s ∉ Y ∗ s\notin Y^* s ∈ / Y ∗ , and k ∈ Y ∗ ⟺ k ∈ Y ′ k\in Y^*\Longleftrightarrow k\in Y' k ∈ Y ∗ ⟺ k ∈ Y ′ for all k ∈ ( Q ′ ∩ Q ∗ ) ∖ { s } k\in(Q'\cap Q^*)\setminus\{s\} k ∈ ( Q ′ ∩ Q ∗ ) ∖ { s } . Moreover, let r ≤ i r\le i r ≤ i be the largest index such that r ∈ Y ∗ ∩ Q ∗ ‾ r\in Y^*\cap\overline{Q^*} r ∈ Y ∗ ∩ Q ∗ . Then k ∈ Y ∗ ⟺ k ∈ Y ′ k\in Y^*\Longleftrightarrow k\in Y' k ∈ Y ∗ ⟺ k ∈ Y ′ for all k ∈ ( Q ′ ‾ ∩ Q ∗ ‾ ) ∖ { r } k\in(\overline{Q'}\cap\overline{Q^*})\setminus\{r\} k ∈ ( Q ′ ∩ Q ∗ ) ∖ { r } , and r ∉ Y ′ r\notin Y' r ∈ / Y ′ if r ≠ i r\ne i r = i . Therefore,
Δ = c s + μ s ′ − c r + d ( Γ ‾ Q ′ ( μ ′ ) − min { ∣ Y ∗ ∩ Q ∗ ‾ ∣ , Γ ‾ Q ∗ ( μ ∗ ) } ) ≥ c s + μ s ′ − c r + c i − c j ≥ 0 , \begin{aligned}
\Delta=c_s+\mu'_s-c_r+d\left(\overline{\Gamma}_{Q'}(\mu')-\min\{|Y^*\cap\overline{Q^*}|,\overline{\Gamma}_{Q^*}(\mu^*)\}\right) \\
&\ge c_s+\mu'_s-c_r+c_i-c_j\ge0,
\end{aligned} Δ = c s + μ s ′ − c r + d ( Γ Q ′ ( μ ′ ) − min { ∣ Y ∗ ∩ Q ∗ ∣ , Γ Q ∗ ( μ ∗ )} ) ≥ c s + μ s ′ − c r + c i − c j ≥ 0 ,
where we used d ⋅ ( Γ ‾ Q ′ ( μ ′ ) − Γ ‾ Q ∗ ( μ ∗ ) ) = c i − c j d\cdot(\overline{\Gamma}_{Q'}(\mu')-\overline{\Gamma}_{Q^*}(\mu^*))=c_i-c_j d ⋅ ( Γ Q ′ ( μ ′ ) − Γ Q ∗ ( μ ∗ )) = c i − c j in the first inequality, and s > j s>j s > j and r ≤ i r\le i r ≤ i in the second one. When c j + μ j ∗ > c i + d c_j+\mu^*_j>c_i+d c j + μ j ∗ > c i + d (⟹ μ i ′ = d \Longrightarrow\mu'_i=d ⟹ μ i ′ = d ), we also define Y ∗ Y^* Y ∗ such that ∣ Y ∗ ∩ Q ∗ ∣ = ∣ Y ′ ∩ Q ′ ∣ − 1 |Y^*\cap Q^*|=|Y'\cap Q'|-1 ∣ Y ∗ ∩ Q ∗ ∣ = ∣ Y ′ ∩ Q ′ ∣ − 1 . Defining r , s r,s r , s as above, we have
Δ = ( c i + d + c s + μ s ′ − c j − μ j ∗ ) − c r + d ( min { ∣ Y ′ ∩ Q ′ ‾ ∣ , Γ ‾ Q ′ ( μ ′ ) } − min { ∣ Y ∗ ∩ Q ∗ ‾ ∣ , Γ ‾ Q ∗ ( μ ∗ ) } ) ≥ { c i + d − c r + c s + μ s ′ − c j − μ j ∗ − d ≥ 0 , if ∣ Y ′ ∩ Q ′ ‾ ∣ < Γ ‾ Q ′ ( μ ′ ) , c i + d − c r + c s + μ s ′ − c j − μ j ∗ − ( d − μ j ∗ ) ≥ 0 , if ∣ Y ′ ∩ Q ′ ‾ ∣ ≥ Γ ‾ Q ′ ( μ ′ ) , \begin{aligned}
\Delta=(c_i+d+c_s+\mu'_s-c_j-\mu^*_j)-c_r+d\left(\min\{|Y'\cap\overline{Q'}|,\overline{\Gamma}_{Q'}(\mu')\}-\min\{|Y^*\cap\overline{Q^*}|,\overline{\Gamma}_{Q^*}(\mu^*)\}\right) \\
&\ge
\begin{cases}
c_i+d-c_r+c_s+\mu'_s-c_j-\mu^*_j-d\ge0, & \text{if } |Y'\cap\overline{Q'}|<\overline{\Gamma}_{Q'}(\mu'),\\
c_i+d-c_r+c_s+\mu'_s-c_j-\mu^*_j-(d-\mu^*_j)\ge0, & \text{if } |Y'\cap\overline{Q'}|\ge\overline{\Gamma}_{Q'}(\mu'),
\end{cases}
\end{aligned} Δ = ( c i + d + c s + μ s ′ − c j − μ j ∗ ) − c r + d ( min { ∣ Y ′ ∩ Q ′ ∣ , Γ Q ′ ( μ ′ )} − min { ∣ Y ∗ ∩ Q ∗ ∣ , Γ Q ∗ ( μ ∗ )} ) ≥ { c i + d − c r + c s + μ s ′ − c j − μ j ∗ − d ≥ 0 , c i + d − c r + c s + μ s ′ − c j − μ j ∗ − ( d − μ j ∗ ) ≥ 0 , if ∣ Y ′ ∩ Q ′ ∣ < Γ Q ′ ( μ ′ ) , if ∣ Y ′ ∩ Q ′ ∣ ≥ Γ Q ′ ( μ ′ ) ,
because s > j s>j s > j and r ≤ i r\le i r ≤ i .
We now consider the case μ i ′ = μ j ∗ + d ⋅ Γ ‾ Q ∗ ( μ ∗ ) \mu'_i=\mu^*_j+d\cdot\overline{\Gamma}_{Q^*}(\mu^*) μ i ′ = μ j ∗ + d ⋅ Γ Q ∗ ( μ ∗ ) with Γ ‾ Q ′ ( μ ′ ) = 0 \overline{\Gamma}_{Q'}(\mu')=0 Γ Q ′ ( μ ′ ) = 0 . We first have c i + μ i ′ ≤ c j + μ j ∗ c_i+\mu'_i\le c_j+\mu^*_j c i + μ i ′ ≤ c j + μ j ∗ , which implies that c i + d ⋅ Γ ‾ Q ∗ ( μ ∗ ) ≤ c j c_i+d\cdot\overline{\Gamma}_{Q^*}(\mu^*)\le c_j c i + d ⋅ Γ Q ∗ ( μ ∗ ) ≤ c j . If i , j ∈ Y ′ i,j\in Y' i , j ∈ Y ′ , we define Y ∗ : = Y ′ Y^*:=Y' Y ∗ := Y ′ . Then, we have
Δ ≥ c i + μ j ∗ + d ⋅ Γ ‾ Q ∗ ( μ ∗ ) − c j − μ j ∗ + c j − c i − d ⋅ Γ ‾ Q ∗ ( μ ∗ ) = 0. \Delta\ge c_i+\mu^*_j+d\cdot\overline{\Gamma}_{Q^*}(\mu^*)-c_j-\mu^*_j+c_j-c_i-d\cdot\overline{\Gamma}_{Q^*}(\mu^*)=0. Δ ≥ c i + μ j ∗ + d ⋅ Γ Q ∗ ( μ ∗ ) − c j − μ j ∗ + c j − c i − d ⋅ Γ Q ∗ ( μ ∗ ) = 0.
If i ∉ Y ′ i\notin Y' i ∈ / Y ′ and j ∈ Y ′ j\in Y' j ∈ Y ′ , then we define Y ∗ Y^* Y ∗ such that j ∉ Y ∗ j\notin Y^* j ∈ / Y ∗ , i ∈ Y ∗ i\in Y^* i ∈ Y ∗ , and k ∈ Y ∗ ⟺ k ∈ Y ′ k\in Y^*\Longleftrightarrow k\in Y' k ∈ Y ∗ ⟺ k ∈ Y ′ for each k ∈ [ n ] ∖ { i , j } k\in[n]\setminus\{i,j\} k ∈ [ n ] ∖ { i , j } . Then, we have
Δ ≥ c j − c i − d ⋅ Γ ‾ Q ∗ ( μ ∗ ) ≥ 0. \Delta\ge c_j-c_i-d\cdot\overline{\Gamma}_{Q^*}(\mu^*)\ge0. Δ ≥ c j − c i − d ⋅ Γ Q ∗ ( μ ∗ ) ≥ 0.
If i ∈ Y ′ i\in Y' i ∈ Y ′ and j ∉ Y ′ j\notin Y' j ∈ / Y ′ , then we define Y ∗ Y^* Y ∗ such that ∣ Y ∗ ∩ Q ∗ ∣ = ∣ Y ′ ∩ Q ′ ∣ − 1 |Y^*\cap Q^*|=|Y'\cap Q'|-1 ∣ Y ∗ ∩ Q ∗ ∣ = ∣ Y ′ ∩ Q ′ ∣ − 1 . Then, we have
Δ ≥ c i + μ j ∗ + d ⋅ Γ ‾ Q ∗ ( μ ∗ ) + c s + μ s ′ − c j − μ j ∗ − c r − d ⋅ Γ ‾ Q ∗ ( μ ∗ ) ≥ 0 , \Delta\ge c_i+\mu^*_j+d\cdot\overline{\Gamma}_{Q^*}(\mu^*)+c_s+\mu'_s-c_j-\mu^*_j-c_r-d\cdot\overline{\Gamma}_{Q^*}(\mu^*)\ge0, Δ ≥ c i + μ j ∗ + d ⋅ Γ Q ∗ ( μ ∗ ) + c s + μ s ′ − c j − μ j ∗ − c r − d ⋅ Γ Q ∗ ( μ ∗ ) ≥ 0 ,
where s > j s>j s > j and r ≤ i r\le i r ≤ i .
Consequently,
Φ ( Q ′ ) = max μ ∈ Ξ Γ φ ( Q ′ , μ ) ≥ φ ( Q ′ , μ ′ ) ≥ φ ( Q ∗ , μ ∗ ) = Φ ( Q ∗ ) . \Phi(Q')=\max_{\mu\in\Xi_\Gamma}\varphi(Q',\mu)\ge\varphi(Q',\mu')\ge\varphi(Q^*,\mu^*)=\Phi(Q^*). Φ ( Q ′ ) = μ ∈ Ξ Γ max φ ( Q ′ , μ ) ≥ φ ( Q ′ , μ ′ ) ≥ φ ( Q ∗ , μ ∗ ) = Φ ( Q ∗ ) .
Corollary 3. There exists an optimal solution Q ∗ = { k , k + 1 , … , k + q − 1 } Q^* = \{k,k+1,\ldots,k+q-1\} Q ∗ = { k , k + 1 , … , k + q − 1 } for some k ∈ [ n − q + 1 ] k \in[n-q+1] k ∈ [ n − q + 1 ] .
Proof. By lemmas 3 and 4.
Corollary 3 implies that there are at most n n n candidate solutions Q Q Q whose optimality needs to be verified. While it is known from [11 ] that Φ ( Q ) \Phi(Q) Φ ( Q ) can be computed in polynomial time for easy-to-optimize sets Y \mathcal{Y} Y , for the sake of completeness, we detail this reformulation for the special of interest in what follows. Throughout the following reformulations, we use binary decision variables y y y rather than their corresponding set representation Y Y Y , in order to express the problem as a linear program. Therefore, we define Y I P : = { y ∈ { 0 , 1 } n ∣ ∃ Y ∈ Y s.t. y i = 1 ⟺ i ∈ Y } = { y ∈ { 0 , 1 } n ∣ ∑ i ∈ [ n ] y i = p } \mathcal{Y}_{IP}:=\{y\in\{0,1\}^{n}\mid\exists Y\in\mathcal{Y}\text{ s.t. }y_i=1\Longleftrightarrow i\in Y\}=\left\{y\in\{0,1\}^{n}\mid\sum_{i\in[n]}y_i=p\right\} Y I P := { y ∈ { 0 , 1 } n ∣ ∃ Y ∈ Y s.t. y i = 1 ⟺ i ∈ Y } = { y ∈ { 0 , 1 } n ∣ ∑ i ∈ [ n ] y i = p } . First, we derive its epigraphical reformulation from (34) :
Φ ( Q ) = max μ , ω ω (36) \Phi(Q)=\max_{\mu,\omega}\ \omega \tag*{(36)} Φ ( Q ) = μ , ω max ω (36)
s.t. ω ≤ min y ∈ Y I P ∑ i ∈ Q ( c i + μ i ) y i + ∑ i ∈ Q ‾ c i y i + d ⋅ min { ∑ i ∈ Q ‾ y i , Γ − ∑ i ∈ Q μ i d } (37) \text{s.t. }\omega\leq\min_{y\in\mathcal{Y}_{IP}}\sum_{i\in Q}(c_i+\mu_i)y_i+\sum_{i\in\overline{Q}}c_i y_i+d\cdot\min\left\{\sum_{i\in\overline{Q}}y_i,\ \Gamma-\sum_{i\in Q}\frac{\mu_i}{d}\right\} \tag*{(37)} s.t. ω ≤ y ∈ Y I P min i ∈ Q ∑ ( c i + μ i ) y i + i ∈ Q ∑ c i y i + d ⋅ min ⎩ ⎨ ⎧ i ∈ Q ∑ y i , Γ − i ∈ Q ∑ d μ i ⎭ ⎬ ⎫ (37)
μ ∈ Ξ Γ . (38) \mu\in\Xi_\Gamma. \tag*{(38)} μ ∈ Ξ Γ . (38)
Observe that Constraint (24) can be replaced by the following two constraints:
ω ≤ min y ∈ Y I P ∑ i ∈ Q ( c i + μ i ) y i + ∑ i ∈ Q ‾ c i y i + d ⋅ ∑ i ∈ Q ‾ y i (39) \omega\leq\min_{y\in\mathcal{Y}_{IP}}\sum_{i\in Q}(c_i+\mu_i)y_i+\sum_{i\in\overline{Q}}c_i y_i+d\cdot\sum_{i\in\overline{Q}}y_i \tag*{(39)} ω ≤ y ∈ Y I P min i ∈ Q ∑ ( c i + μ i ) y i + i ∈ Q ∑ c i y i + d ⋅ i ∈ Q ∑ y i (39)
ω ≤ min y ∈ Y I P ∑ i ∈ Q ( c i + μ i ) y i + ∑ i ∈ Q ‾ c i y i + d ⋅ ( Γ − ∑ i ∈ Q μ i d ) (40) \omega\leq\min_{y\in\mathcal{Y}_{IP}}\sum_{i\in Q}(c_i+\mu_i)y_i+\sum_{i\in\overline{Q}}c_i y_i+d\cdot\left(\Gamma-\sum_{i\in Q}\frac{\mu_i}{d}\right) \tag*{(40)} ω ≤ y ∈ Y I P min i ∈ Q ∑ ( c i + μ i ) y i + i ∈ Q ∑ c i y i + d ⋅ Γ − i ∈ Q ∑ d μ i (40)
Since the matrix defining Y I P \mathcal{Y}_{IP} Y I P is totally unimodular, the integrality restriction on y y y can be relaxed in the minimization problems in constraints (26) and (27). Dualizing these two linear programs, and removing the maximizations, we obtain
Φ ( Q ) = max μ , ω , α , α ′ , β , β ′ ω s.t. ω ≤ p ⋅ α − ∑ i ∈ [ n ] β i α − β i − μ i ≤ c i , ∀ i ∈ Q α − β i ≤ c i + d , ∀ i ∈ Q ‾ ω ≤ p ⋅ α ′ − ∑ i ∈ [ n ] β i ′ + d ⋅ Γ − ∑ i ∈ Q μ i α ′ − β i ′ − μ i ≤ c i , ∀ i ∈ Q α ′ − β i ′ ≤ c i , ∀ i ∈ Q ‾ μ ∈ Ξ Γ β , β ′ ≥ 0. \begin{aligned}
\Phi(Q)&=\max_{\mu,\omega,\alpha,\alpha',\beta,\beta'}\ \omega\\
\text{s.t. }\quad\omega&\leq p\cdot\alpha-\sum_{i\in[n]}\beta_i\\
\alpha-\beta_i-\mu_i&\leq c_i,\qquad&&\forall i\in Q\\
\alpha-\beta_i&\leq c_i+d,\qquad&&\forall i\in\overline{Q}\\
\omega&\leq p\cdot\alpha'-\sum_{i\in[n]}\beta'_i+d\cdot\Gamma-\sum_{i\in Q}\mu_i\\
\alpha'-\beta'_i-\mu_i&\leq c_i,\qquad&&\forall i\in Q\\
\alpha'-\beta'_i&\leq c_i,\qquad&&\forall i\in\overline{Q}\\
\mu&\in\Xi_\Gamma\\
\beta,\beta'&\geq0.
\end{aligned} Φ ( Q ) s.t. ω α − β i − μ i α − β i ω α ′ − β i ′ − μ i α ′ − β i ′ μ β , β ′ = μ , ω , α , α ′ , β , β ′ max ω ≤ p ⋅ α − i ∈ [ n ] ∑ β i ≤ c i , ≤ c i + d , ≤ p ⋅ α ′ − i ∈ [ n ] ∑ β i ′ + d ⋅ Γ − i ∈ Q ∑ μ i ≤ c i , ≤ c i , ∈ Ξ Γ ≥ 0. ∀ i ∈ Q ∀ i ∈ Q ∀ i ∈ Q ∀ i ∈ Q
Thus, for any given Q ∈ Q Q\in\mathcal{Q} Q ∈ Q , the value of Φ ( Q ) \Phi(Q) Φ ( Q ) can be computed by solving linear program defined above, in which there are O ( n ) O(n) O ( n ) variables and O ( n ) O(n) O ( n ) constraints.
Corollary 4. DDID-QQ ^{\mathcal{Q}} Q Sel-Y \mathcal{Y} Y Sel-EqualDev-OPT can be solved by solving at most n n n linear programs, each with O ( n ) O(n) O ( n ) variables and O ( n ) O(n) O ( n ) constraints.