Manuscript Offprint
arXiv:2610.20422On the Complexity of Linear Programs with Parametric Constraint Matrices
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
While sensitivity analysis for linear programs with parametric right-hand side vectors is well established, cases involving parametric constraint matrices remain less explored. To address this gap, we investigate linear programs where the constraint matrix depends linearly on a scalar parameter. Our goal is to compute the minimum and maximum optimal values of these parametric linear programs within a fixed parameter range. This corresponds to solving two bilevel programs. We show that both decision versions of these optimization problems are NP-complete by proving both NP-hardness and membership in NP. We additionally identify three sufficient conditions on the parametric matrix under which the bilevel programs are no longer NP-hard. We introduce a reformulation for both problems, together with a Farkas-based certificate for the lower-level feasibility condition, and compare the execution time for solving them on standard benchmark instances. The experiments highlight a practical dichotomy. Although both bilevel optimizations are NP-hard, computing the parameter value corresponding to the minimum of the linear program is fast, whereas computing the value corresponding to the maximum is not. We relate this asymmetry to the parametric equality constraints, whose free dual variables leave the relaxation of the maximum reformulation unbounded.
Keywords: Parametric linear programming, Bilevel optimization, Computational complexity, NP-completeness, Sensitivity analysis
1 Introduction
Parametric linear programming studies how the optimal value of a linear program evolves under perturbations. While classical settings consider perturbations of the objective or the right-hand side, much less is known when the constraint matrix itself is affected. In this work, we study linear programs parameterized by a single scalar parameter varying over a given interval , where the parameter linearly modifies some coefficients of the constraint matrix. For a given realization of , we denote the corresponding linear program by and formalize it as
(\mathcal{P}(\lambda))
where is the decision vector, is the nominal constraint matrix, is the perturbation matrix associated with and is the right-hand side vector. The function is called the value function of the parametric linear program. For instance, this setting appears when a single physical or economic parameter influences multiple constraints simultaneously. In time-indexed models of production or energy systems, parameters such as efficiency or resource availability appear repeatedly across constraints at each time period. Therefore, varying such a parameter affects multiple coefficients in the constraint matrix.
In such models, the objective typically represents total operating or investment costs, or a performance metric. Understanding how the objective value evolves with respect to the parameter is interesting to assess the impact of uncertainty on the objective value and to identify the worst-case and best-case scenario. In particular, determining the global extrema of the associated value function over a given interval,
where , provides exact bounds on the achievable cost or performance as the parameter varies. These extrema lead to bilevel formulations, where is selected at the upper level and the linear program is solved at the lower level. However, the function may be neither convex nor concave, making these problems difficult to solve. An illustrative example is shown in Figure 1, which depicts the value function of the following parametric linear program over :
This function has two local minima, around and , separated by a local maximum at . Hence, is neither convex nor concave, and not even quasi-convex or quasi-concave.

Figure 1: Value function of the illustrative example over : is neither convex nor concave.
Parametric and sensitivity analysis in linear programming study how optimal solutions and objective values evolve when problem data are perturbed. Studies mainly focus on variations in the objective coefficients or in the right-hand side. Perturbations on the constraint matrix have received less attention. Among the works that explicitly consider parameter-dependent constraint matrices, Zuidwijk [22] studies linear programs whose constraint matrix depends on a scalar parameter and derives local expressions for the evolution of the optimal value. Zuidwijk's analysis relies on the characterization of regions in which a given basis remains optimal, leading to a piecewise description of the value function. Similarly, Khalilpour and Karimi [14] consider uncertainty on the left-hand side and propose a parametric solution approach based on basis-dependent computations.
More recently, Derval et al. [7] propose bounding procedures to estimate the value function over a parameter interval, yielding computable upper and lower bounds. Derval et al. [8] study the evaluation of optimal solutions and objective values for a finite set of parameter values and develop warm-start strategies to accelerate repeated solves. Both works consider the same parametric model as the present paper, but focus primarily on its computational treatment. Their contributions are complementary to ours, which studies the computational complexity of optimizing the value function over an entire parameter interval and develops exact single-level reformulations for computing its minimum and maximum.
A related line of research is robust optimization [2], whose goal is to find a solution that optimizes the objective function under the worst-case realization of uncertain data while remaining feasible across all potential data realizations. This framework is also heavily motivated by parameter uncertainty within the constraint matrix coefficients, e.g., see [19, 1, 3]. In contrast to this focus on identifying a robust decision, our objective is to characterize the best- and worst-case values reached by the optimal value function of the linear program when the scalar parameter varies over a given interval.
Our work is also connected to bilevel optimization. Indeed, optimizing the value function with respect to the parameter yields a bilevel formulation, where the upper-level variable is the scalar parameter and the lower level corresponds to a linear program. From a complexity perspective, the decision version of bilevel linear optimization problems is NP-complete; Jeroslow [12] established NP-hardness and Buchheim [5] showed inclusion in NP. This NP-hardness persists under other restrictive settings, such as min-max variants of bilevel linear optimization problems [11]. Moreover, bilevel optimization problems remain NP-hard even when the upper level involves a single decision variable [20], or when considering the pessimistic variant with a fixed number of lower-level variables [13]. Despite this, our problem does not fall directly into the class of bilevel linear optimization problems. Indeed, the dependence on appears in the constraint matrix of the lower-level problem and breaks the linearity. Thus, existing complexity results for bilevel linear optimization cannot be directly transferred to our setting. Related complexity analyses have been conducted for bilevel problems involving bilinear terms, such as bilevel quadratic programs, toll-pricing and combinatorial pricing [13, 18, 6, 9]. In these formulations, the bilinearities arise in the objective function from interactions between upper- and lower-level decision variables, whereas in our setting they involve a single scalar parameter that affects the feasible region.
1.2 Our contributions
In this paper, we study parametric linear programs in which the constraint matrix depends linearly on a scalar parameter. As formalized in Section 2, we investigate the problem of computing the parameter values that minimize and maximize the optimal value of the resulting linear program over a given interval. In Section 3, we prove that both decision versions of the optimization problems are NP-complete by establishing polynomial-time verifiable certificates together with polynomial reductions from known NP-complete problems. We then identify three sufficient conditions on the parametric matrix under which both bilevel problems become polynomially solvable. In Section 4, we derive single-level reformulations for both problems. To this end, dualization of the lower-level is standard, but here it is valid only over parameter values where the lower-level is feasible and bounded. We therefore pair the strong duality reformulation of the maximum problem with a Farkas-based certificate. Finally, in Section 5, we confront the theoretical complexity picture with practice on benchmark instances proposed by Derval et al. [7]. Although both problems are NP-hard, the minimum reformulation can be solved efficiently, whereas computing the maximum remains significantly more challenging. Section 6 concludes the paper.
2 Problem statement
We consider the parametric linear optimization problem . We are interested in computing its global extrema over the interval . This leads to the following optimization problems:
and
These formulations can be interpreted as bilevel optimization problems in which the upper level selects the parameter , while the lower level solves the linear program .
Remark 1. We note that for such that the lower-level is unbounded, our min-min problem (1) is unbounded. Moreover, for such that the lower-level is infeasible, our max-min problem (2) is unbounded. However, if the lower-level was formalized instead as the following constraint within our bilevel programs:
a such that (i) the lower-level is unbounded would result in min-min problem (1) being infeasible, and (ii) the lower-level is infeasible would result in max-min problem (2) being infeasible. We adopt the formulations (1) and (2) because our goal is to bound the value function over : they return and as the correct extrema, whereas the argmin-constrained formulation would instead declare the bilevel problem infeasible. This detail is relevant for the NP membership and algorithmic approaches considered in this paper.
2.1 Auxiliary reformulations
We first observe that the min-min problem (1) can be rewritten as a single-level problem. Since the upper and lower levels have the same objective function, the bilevel formulation reduces to a joint minimization over :
(\mathcal{P}_{\min})
In contrast, the max-min problem cannot be reduced to a joint optimization problem, since the lower-level variable must be optimal for the value of chosen at the upper level. To handle this structure, we rely on a dual reformulation of the lower-level problem. Its dual is
If we assume that the linear program is feasible for all and has a finite optimal value, by strong duality, we therefore have
These two auxiliary reformulations of the lower-level (i.e., primal and dual representations) will be used throughout the paper. The joint reformulation of the min-min problem is used in the complexity analysis and in the computational experiments. The dual reformulation of the lower-level problem is used in the complexity analysis of the max-min problem and in the derivation of its single-level formulation.
3 Complexity
Given a rational threshold K, the decision versions of min-min (1) and max-min (2) are, respectively
(D-min)
and
(D-max)
In this section, we show the following main theorem:
Theorem 1. The decision problems D-min and D-max are NP-complete.
In Sections 3.1 and 3.2, we prove NP-hardness by showing that min-min (1) and max-min (2) contain as a special case the linear multiplicative programming problem. In Section 3.3, we show membership of D-min and D-max in NP. We then, in Section 3.4, identify restricted assumptions on D under which the problems are polynomially solvable.
3.1 NP-hardness of the min-min problem
As shown in Section 2.1, the bilevel formulation (1) is equivalent to the reformulation ( ). Therefore, it is sufficient to prove NP-hardness of this single-level formulation.
Theorem 2. The min-min problem is NP-hard.
Proof. We show that every member of Matsui's NP-hard family of linear multiplicative programs [15] can be rewritten in polynomial time as an instance of with the same optimal value. This family of linear multiplicative programs is therefore a special case of , from which NP-hardness follows. Matsui's family is
(P_{1}(M))
with decision variables
subject to
where M is an binary matrix with and .
We now write as an instance of with decision vector
and parameter representing . The objective is .
All linear constraints (3)–(9) and (11) are included in , together with enforced by , . The auxiliary variable is needed because enters only through the products ; the product therefore plays the role of itself.
The relation (10) is encoded as
i.e.,
The epigraph constraint
enforces .
From the bounds on u and v, we obtain
For , this yields and we set , . These bounds preserve all feasible values arising from . Moreover, and are polynomially encodable, since [15].
Given any feasible solution of , define and . Then, is feasible for and , hence
Conversely, let be any feasible solution for . Then, and the constraints imply
Setting , we obtain a feasible solution of whose objective value satisfies , by the epigraph constraint. Since this holds for every feasible solution of ,
Thus, and NP-hardness follows.
3.2 NP-hardness of the max-min problem
In contrast with the min-min formulation, which reduces to a single-level optimization problem, a similar reduction is not possible at first glance for the max-min formulation, which remains bilevel. Thus, we expect the max-min problem, which involves a “true” bilevel structure, to be at least NP-hard. The following theorem establishes this result.
Theorem 3. The max-min program (2) is NP-hard.
Proof. We show that the specific min-min instance built in the proof of Theorem 2 can in turn be rewritten in polynomial time as an instance of (2) whose optimal value is its negative. Composing the two constructions, every linear multiplicative program is rewritten as an instance of (2), from which NP-hardness follows.
Consider the min-min instance built in the proof of Theorem 2, written as
Since the feasible region of is nonempty and bounded [15, Corollary 2.3], this instance is feasible and its optimal value is finite. Note also that , since the objective of that instance is the single variable . Consider now the max-min problem
For a fixed value of , the inner minimization problem is a linear program. Using the dual reformulation introduced in Section 2.1 and the change of variables , its dual can be expressed as
We now choose the data so that this dual problem coincides with the min-min instance above. Setting
and keeping the same interval , the dual of the inner problem becomes
(μ-problem)
Fix and consider the -problem obtained by fixing in the min-min instance, whose feasible set is . Whenever this set is nonempty, the -problem is bounded: its objective is the variable , the epigraph constraint gives , and and are bounded, the latter because the construction of Theorem 2 preserves the feasible points of , whose feasible region is bounded [15, Corollary 2.3]. Two cases arise. If the feasible set is nonempty, the -problem has a finite optimal value; the same then holds for its dual, which is the inner problem of the max-min instance, and strong duality yields
If instead the feasible set is empty, the -problem is infeasible and the right-hand side above equals , under the convention that a minimization over an empty feasible set equals . The left-hand side equals as well: the point is feasible for the inner problem since , and an infeasible dual then forces the inner problem to be unbounded. The identity above therefore holds for every .
By substituting this expression into the max-min formulation, we have
The constructed max-min instance therefore has optimal value by Theorem 2, and computing it is NP-hard.
3.3 Membership in NP
We now show that the decision versions of Problems (1) and (2) introduced at the beginning of this section belong to NP.
Theorem 4. The decision problems D-min and D-max belong to NP.
Our proof builds on the certificate approach used by Buchheim [5] to establish membership in NP for bilevel linear programming. In that setting, an optimal basis of the lower-level problem serves as a certificate, and once the basis is fixed, verification reduces to checking the feasibility of a system of linear constraints. Two additional difficulties arise in our setting. First, because the lower-level constraint matrix depends on , fixing a basis yields rational conditions in , which become univariate polynomial constraints. Second, as observed in Remark 1, the lower-level problem may be unbounded or infeasible for some values of , in which case an optimal basis certificate need not exist. We therefore extend the strategy of [5] by showing that the resulting univariate polynomial conditions can be verified in polynomial time and by using ray certificates to handle unboundedness and infeasibility.
Proof. We rewrite the lower-level linear program in standard form by introducing slack variables . Setting , , and , the value function becomes
3.3.1 Proof for D-min
Problem D-min is a YES-instance if and only if there exists such that and either or .
The nondeterministic polynomial-time machine for D-min operates as follows:
(i) Nondeterministically guess a basis with , and an indicator , where .
(ii) If , verify whether there exists such that yields a basic feasible solution satisfying .
(iii) If , verify whether there exists such that is primal feasible and induces an unbounded recession ray certifying .
(iv) Accept if the verification in either step (ii) or step (iii) succeeds.
To perform the verification, let be the submatrix of corresponding to . By Cramer's rule, the basic variables and the components of the direction vector are the rational functions in
where and , with and obtained by replacing the i-th column of with and , respectively. By Lemma 13 in Appendix A, the polynomials , , and have degree at most with polynomially bounded coefficients.
For , step (ii) checks the feasibility over of
For , step (iii) sets and for , and checks the feasibility over of
Write , where and . Multiplying the objective inequality by and then the inequalities in (12) and (13) by clears all denominators without altering inequality signs. To enforce , we include the strict inequality . In either step, this yields an equivalent system of univariate polynomial inequalities in of degree at most with coefficients of polynomial encoding length. By Lemma 14 in Appendix A, the resulting system can be transformed in polynomial time into an equivalent system of univariate polynomial constraints with integer coefficients. Therefore, Lemma 15 in Appendix A applies and feasibility of this resulting system can be decided in polynomial time. This completes the proof that D-min belongs to NP.
3.3.2 Proof for D-max
By Remark 1, if the lower-level problem is infeasible, holds trivially. Otherwise, for any lower-level dual feasible solution satisfying , weak duality implies . Hence, D-max is a YES-instance if and only if there exists at which the dual program of is feasible with optimal value at least , or is infeasible. Thus, the rest of the proof follows a logic similar to the one for D-min, with step (ii) being adapted to focus on the optimality of the dual basis and with step (iii) being adapted to focus on the infeasibility of the lower-level.
We express the dual of in standard form by introducing slack variables and defining , namely
where . Let be the dual constraint matrix.
The nondeterministic polynomial-time machine for D-max operates as follows:
(i) Nondeterministically guess a dual basis with , and an indicator , where .
(ii) If , verify whether there exists such that yields a dual basic feasible solution satisfying .
(iii) If , verify whether there exists such that induces a ray in the homogeneous dual system certifying primal infeasibility via Farkas' Lemma.
(iv) Accept if the verification in either step (ii) or step (iii) succeeds.
Let be the submatrix of corresponding to . By Cramer's rule, the dual basic variables and the basic components of the dual direction vector are rational functions in with common denominator determinant .
For , step (ii) checks the feasibility over of
For , step (iii) sets and for , certifying primal infeasibility by checking the feasibility over of
Write , where and . Multiplying the objective inequality by and then the inequalities in (14) and (15) by clears all denominators without altering inequality signs, and enforcing guarantees non-singularity. This converts both conditions into equivalent systems of univariate polynomial inequalities in of degree at most with coefficients of polynomial encoding length. By Lemma 14 in Appendix A, the resulting system can be transformed in polynomial time into an equivalent system of univariate polynomial constraints with integer coefficients. Therefore, Lemma 15 in Appendix A applies and feasibility over is decidable in polynomial time. This completes the proof that D-max belongs to NP.
Proof of Theorem 1. The statement follows directly by combining the NP-hardness results, Theorems 2 and 3, with the membership one in Theorem 4.
3.4 Tractable cases
We now identify restricted assumptions on D under which the problem of finding either the minimum or the maximum is no longer NP-hard.
3.4.1 Uniform sign in D
We consider the case where all coefficients of have the same sign. In this setting, the value function is monotone on the interval . Then, the optimal values are attained at the endpoints of the interval.
Proposition 5. Assume that all entries of D have the same sign.
• If , then is nondecreasing on .
• If , then is nonincreasing on .
Proof. Let with .
Assume first that . Since , we have and therefore
Hence,
It follows that every feasible solution for is also feasible for , i.e.,
where denotes the feasible set of . Therefore,
showing that is nondecreasing on .
The case follows similarly and yields that is nonincreasing on .
Corollary 6. Assume that all entries of D have the same sign.
• If , then
• If , then
Consequently, problems (1) and (2) are polynomially solvable, since computing for a single value of can be done in polynomial time.
Observation: Having all coefficients of D with the same sign cannot occur for models with parametric equality constraints, since such an equality is written as two inequalities whose coefficients have opposite signs to match the canonical model we consider in this paper.
3.4.2 Exactly one non-zero row in D
We consider the case where has exactly one non-zero row. This implies that only one constraint, denoted by , is affected by the parameter . The problem can then be written as
(\mathcal{P}_{\min,\text{row}})
In this setting, we prove that the value function is quasi-concave on . As a consequence, the minimum over is reached at one of the bounds or . The maximum can also be found in polynomial time, but requires a bisection procedure.
Definition 1. A function is quasi-concave on an interval if for any in the interval and any ,
Proposition 7. If has exactly one non-zero row, then the value function is quasi-concave on .
Proof. Let and define
Let be an optimal solution at . Then,
Suppose, by contradiction, that is infeasible for both and . Then,
Multiplying the first inequality by and the second by , and summing, leads to
which contradicts feasibility at .
Hence, is feasible for at least one of the problems associated with or . If it is feasible for , then by optimality of in a minimization problem,
Similarly, if it is feasible for , then
Therefore,
which proves quasi-concavity.
Observation: the proof extends to the mixed-integer case since it relies on the same solution and does not construct new solutions through convex combinations. Hence, any integrality constraints satisfied by are preserved.
Corollary 8. Suppose has exactly one non-zero row. Then, the minimum value of over is attained at one of the endpoints, namely
Corollary 9. Suppose has exactly one non-zero row. Then, a maximum of over can be approximated within accuracy by applying the standard bisection method for quasiconvex optimization to (see [4]). In particular, given an initial interval containing the optimal value of , the method terminates in
iterations, each iteration requiring to solve one LP.
Observation: In this case again, having exactly one non-zero row in D cannot occur for models with parametric equality constraints, since such an equality is written as two inequalities to match the canonical model considered in this paper.
3.4.3 Exactly one non-zero column in D
We consider the case where has exactly one non-zero column. This implies that only one variable, denoted by , is affected by the parameter . We decompose the variable vector as , where . Let denote the corresponding column of and the non-zero column of . The problem can then be written as
(\mathcal{P}_{\min,\text{col}})
In this setting, the value function is quasi-convex on , which implies that the problems (1) and (2) are no longer NP-hard.
Definition 2. A function is called quasi-convex if its domain and all its sublevel sets
are convex.
Proposition 10. If has exactly one non-zero column, then the value function is quasi-convex on .
Proof. Let
We show that is convex.
Take . Then, and . Hence, there exist feasible solutions for and for , such that
and
Let and let . To prove that , we must find a feasible solution for parameter with objective value at most .
The idea is to construct such a solution from the feasible solutions associated with and . For this purpose, we introduce the coefficient
Set
By construction,
Moreover,
On the other hand,
Thus,
This identity allows the nonlinear term to be expressed as a convex combination of the corresponding terms associated with and . We now verify feasibility, i.e.,
Using the definitions above,
Since
we obtain
Because both vectors inside the parentheses satisfy the constraints
their convex combination also satisfies them. Therefore,
Hence, is feasible for .
Finally,
Thus, is a feasible solution for whose objective does not exceed t. Consequently,
which implies that .
Since every convex combination of two points in remains in , the set is convex. Therefore every sublevel set of is convex, and hence is quasi-convex.
Remark. If , the definition of is not valid. However, in this case the bilinear term disappears and feasibility follows directly by convexity of the remaining linear constraints.
Observation: The proof does not extend to the mixed-integer case. The constructed point is obtained as a convex combination of two feasible solutions. Hence, even if the initial solutions are integer, there is no guarantee that is integer as well. This observation can be illustrated on the following instance:
Here, only one column of is non-zero, namely the column associated with the integer variable . The continuous relaxation satisfies the quasi-convexity property proved above. However, in the mixed-integer case, this property may fail. Indeed, the value function is not quasi-convex, as illustrated in Figure 2.

Figure 2: Evolution of the value function for the mixed-integer instance with one non-zero column in D.
Corollary 11. Suppose has exactly one non-zero column. Then, the maximum value of over is attained at one of the endpoints, namely
Corollary 12. Suppose has exactly one non-zero column. Then, a minimum of over can be approximated within accuracy by applying the standard bisection method for quasiconvex optimization (see [4]).
In particular, given an initial interval containing the optimal value of , the method terminates in
iterations, each iteration involving just the computation of one LP.
Observation: Having exactly one non-zero column in D can occur in models with parametric equality constraints, since the two inequalities encoding such an equality have their non-zero coefficients in the same column of D.
4 Single-level Reformulations
The bilevel formulations (1) and (2) are not directly usable by standard optimization solvers. We therefore rely on the reformulations introduced in Section 2.1 to derive equivalent single-level problems that can be handled by nonlinear optimization solvers.
The min-min problem (1) requires no further work. As shown in Section 2.1, it is already equivalent to the single-level problem .
We then consider the max-min problem (2). Unlike the min-min case, the formulation remains bilevel and cannot be directly reduced to a single-level optimization problem. Our reformulation relies on the lower-level problem being feasible for all values of in the interval and having a finite optimal value. To verify feasibility, we use Farkas' lemma [21], which provides a certificate of infeasibility. Applying the lemma to the system
we obtain that infeasibility occurs for some if and only if there exist and y such that
The lower-level problem is therefore feasible for all if and only if the feasibility problem
(F)
is infeasible. Indeed, when is infeasible, no certificate of infeasibility exists and the lower-level problem is feasible for every .
Assume furthermore that the lower-level problem has a finite optimal value for every . Strong duality then allows the lower level to be replaced by its dual representation, which yields the single-level formulation
(\mathcal{P}_{\max})
Under these two assumptions, namely that is infeasible and that the lower-level problem is bounded for every , the max-min problem is equivalent to .
5 Experiments
This section reports a computational study of the three single-level models derived in Section 4. These are the min-min formulation ( ), the Farkas feasibility problem ( ) and the max-min reformulation ( ). We report the joint solver outcomes of the three models and their running times. We compare these running times with the lower-level problem solved at a fixed value of . We then show that parametric equality constraints make ( ) hard in practice. Finally, we study the effect of explicit bounds on the dual variables.
5.1 Benchmark and setup
We use the parametric linear instances proposed by Derval et al. [7], which are derived from the Netlib collection. The constraints of the problems are of the forms
with 100 constraints depending on the parameter . These 100 constraints are split between equalities and inequalities, the number of each type ranging from 0 to 100 across the collection. For each instance, we consider the same interval for the parameter , namely . Table 1 summarizes the size distribution.
On eleven of the 191 instances, the min-min model ( ) is infeasible, so the lower-level problem admits no feasible point at any and the max-min value is by Remark 1. All numbers below refer to the remaining 180 instances. On those, the nominal problem ( ) is solved to optimality in a median of 0.005 seconds, a mean of 0.020 seconds and a maximum of 0.154 seconds. A single linear program at a fixed value of the parameter is
| Statistics | Min | Median | Mean | Max |
|---|---|---|---|---|
| Vars. | 79 | 1 175 | 2 028 | 13 525 |
| Total Constr. | 153 | 1 966 | 3 240 | 24 025 |
| 0 | 287 | 495 | 3,115 | |
| 14 | 1 486 | 2 644 | 21 025 | |
| 0 | 18 | 35 | 100 | |
| 0 | 82 | 65 | 100 |
Table 1: Size statistics for the 191 benchmark instances.
thus computationally negligible and the running times we report below are the cost of optimizing over the interval .
All models are implemented in Python and solved with Gurobi Optimizer 12.0.3 on a machine running Linux Mint 22.3 with an AMD Ryzen 7 5825U processor (8 physical cores, 16 logical processors) and 35 GiB of usable RAM. Gurobi is allowed to use all 16 threads, and each run is given a time limit of 1 200 seconds.
Bilinear terms are passed to the solver through auxiliary variables. We introduce for the min-min model and for and , add the defining bilinear equalities, and let Gurobi handle the resulting non-convex quadratic constraints through its spatial branch-and-bound. No relaxation of these products is performed on our side.
5.2 Results
For each instance we solve the min-min model , then , and then the max-min model unless returned a certificate. When reaches the time limit, lower-level feasibility over is undecided but we still solve .
| Minimum | Lower-level feasibility | Maximum | #instances | % |
|---|---|---|---|---|
| optimal | feasible for all | optimal | 83 | 46.1 |
| optimal | time limit | time limit | 42 | 23.3 |
| optimal | feasible for all | time limit | 34 | 18.9 |
| optimal | time limit | unbounded | 12 | 6.7 |
| optimal | feasible for all | suboptimal | 3 | 1.7 |
| optimal | infeasible for some | skipped | 3 | 1.7 |
| optimal | feasible for all | unbounded | 2 | 1.1 |
| suboptimal | feasible for all | time limit | 1 | 0.6 |
Table 2: Joint solver outcomes for the min-min formulation, the feasibility check (), and the max-min formulation over the 180 retained instances.
Table 2 summarizes the joint outcomes. The min-min problem reaches a proven finite optimum on every instance but one, which terminates with an incumbent the solver could not certify within tolerances. The feasibility check is decided on 70% of the instances and reaches the time limit on the rest. The max-min reformulation is the bottleneck. It reaches a proven finite optimum on only 46.1% of them.
On three instances (F) is feasible and returns a Farkas certificate that the lower-level problem is infeasible at some , namely at , and . The max-min value is on these three, and is not solved. Figure 3 shows their value function over . On each of them the lower level is infeasible on a whole subinterval rather than at an isolated point, and is feasible at .

— f(λ) lower level infeasible --- certified λ nominal λ = 0
Figure 3: Value function over on the three instances for which returns a certificate. The hatched band is the set of at which the lower-level problem is infeasible, obtained by solving it at 1601 equally spaced values of . The dashed line is the value certified by .
On two instances, certifies that the lower-level problem is feasible for every while ends with an unbounded status. Under our assumptions, the max-min value must be finite, making the unbounded status returned by Gurobi 12.0.3 for inconsistent with this certificate. On both instances, Gurobi finds an incumbent whose objective value equals the maximum of over , but does not certify its optimality. Further investigation shows that the solver BARON also reports an unbounded status, whereas Gurobi 13 certifies a finite optimal solution on both instances. Both instances contain parametric equality constraints, whose free dual variables enter bilinear terms in . These observations suggest difficulties in handling the resulting nonconvex formulation.
Table 3 reports the running-time distribution of each model. When the exact formulations terminate, they are fast. The median solved run of takes 0.33 seconds, slightly more than the min-min model. A run therefore either terminates quickly or reaches the time limit, with little in between. The optimality gaps show the same thing: of the 77 runs that reach the time limit, 67 still have an infinite gap, the solver having produced no finite dual
| Model | Status | #runs | Median | Mean | Max |
|---|---|---|---|---|---|
| Nominal problem () | optimal | 180 | 0.005 | 0.020 | 0.154 |
| min-min () | optimal | 179 | 0.23 | 2.11 | 53.0 |
| suboptimal | 1 | 0.27 | 0.27 | 0.27 | |
| () | feasible for all | 123 | 0.06 | 10.7 | 667.0 |
| certificate found | 3 | 0.25 | 0.84 | 2.20 | |
| time limit | 54 | 1200 | 1200 | 1200 | |
| max-min () | optimal | 83 | 0.33 | 3.97 | 203.0 |
| suboptimal | 3 | 98.9 | 109.9 | 230.5 | |
| unbounded | 14 | 349.0 | 442.4 | 1185.6 | |
| time limit | 77 | 1200 | 1200 | 1200 | |
| skipped | 3 | - | - | - |
Table 3: Running times in seconds, by model and termination status, over the 180 retained instances.
bound at all. The feasibility check is not a cheap side computation either, with 54 time limits and a worst terminating run of 667 seconds.
5.3 Why the max-min reformulation is hard
Both single-level models contain bilinear terms or , which Gurobi relaxes by McCormick envelopes [16, 10]. In , is bounded. In , the dual variable is free when the primal has equality constraints, so the relaxation can be unbounded and the solver might find no finite dual bound. This is the case in the 67 runs that end with an infinite gap. All except one of the 77 time limits of occur on an instance with at least one parametric equality (Table 4).
The magnitude of the dual variables is a candidate explanation for the practical difference between the two models. We explore it by re-solving the 77 time-limit instances after adding a box on every dual variable. We take and a reduced time limit of 120 seconds. On the 35 instances on which proved the lower-level problem feasible for all , the box is decisive. Every one of them reaches a proven optimum, in a median of 0.73 seconds, where 1 200 seconds had left most of them without even a finite dual bound.
| Parametric equalities | min–min () | () | max–min () | |||
|---|---|---|---|---|---|---|
| solved | time limit | solved | time limit | solved | time limit | |
| none (63) | 63 | 0 | 63 | 0 | 58 | 1 |
| at least one (117) | 116 | 0 | 63 | 54 | 25 | 76 |
Table 4: Solver outcomes split by whether the instance has at least one parametric equality constraint , over the 180 retained instances. Only two of the possible outcomes are reported.
| feasible for all λ (35) | time limit (42) | |||
|---|---|---|---|---|
| no bounds1 200 s | 120 s | no bounds1 200 s | 120 s | |
| Proven optimal | 0 | 35 | 0 | 34 |
| Finite dual bound obtained | 10 | 35 | 0 | 42 |
| Infinite gap at termination | 25 | 0 | 42 | 0 |
| Median running time (s) | 1200 | 0.73 | 1200 | 18.0 |
| Box active at the returned solution | — | 24/35 | — | 36/42 |
Table 5: Effect of an explicit box on the dual variables, on the 77 instances for which reaches the 1200-second time limit without bounds. The boxed model is given only 120 seconds. The two groups differ in whether proved the lower-level problem feasible for all within its own time limit.
The box, however, modifies the problem being solved. By linear programming duality, bounding on an equality row adds a slack variable to that row in the lower-level problem. The slack is priced at per unit of violation. The boxed model therefore solves a relaxation in which every equality may be violated at a large but finite cost. A dual variable sitting at its bound means that this slack is used. That equality is then expensive to satisfy exactly. The boxed value is only a lower bound on the max-min value. This happens on 24 of these 35 instances. On the 11 others the box is inactive at both and . The returned value is then the max-min value itself.
6 Conclusion
In this paper, we consider parametric linear programs with constraint matrices depending linearly on a scalar parameter. We study the problem of computing the minimum and maximum of the associated value function over a bounded interval. We prove that both corresponding decision versions of the bilevel problems are NP-complete, and we identify restricted assumptions under which the bilevel programs are no longer NP-hard.
The min-min problem reduces directly to a single-level bilinear program, whereas the max-min problem requires a strong-duality reformulation that is valid only when the lower level is feasible over the whole parameter interval. Rather than assuming this condition, as is common in the bilevel literature, we certify it through a Farkas-based feasibility problem.
The computational study on 180 instances derived from Netlib reveals a clear practical asymmetry between the two problems. The min-min formulation is solved on all but one instance, with a median running time below one second. In contrast, the max-min reformulation reaches a proven optimum on less than half of the instances, and the feasibility check itself reaches the time limit on 54 of them. The difficult instances are almost exclusively those carrying a parametric equality constraint. Their dual variables are free, the McCormick relaxation of the corresponding bilinear terms is then unbounded, and the solver terminates without any finite dual bound. Imposing bounds on these variables restores a finite relaxation and lets the solver terminate, but the bounded model is no longer exact.
Several questions remain open. Bounds on the dual variables that are valid rather than imposed would keep the reformulation exact and make its relaxation informative. A second direction is algorithmic. The problem depends on a single scalar parameter, and a dedicated method could branch on this parameter alone.
Statements and Declarations
• Competing Interests. The authors declare that they have no conflict of interest.
• Data Availability. The benchmark instances used in this study come from Derval et al. [7] and are publicly available on Zenodo at https://zenodo.org/records/18804576.
• Funding. No funding was received for conducting this study.
Appendix A Auxiliary results used in the proof of Theorem 4
Lemma 13. Let be an matrix whose entries are affine functions of with rational coefficients. Then, the following holds:
(i) is a polynomial of degree at most m;
(ii) the coefficients of can be computed in polynomial time in the encoding length of M;
(iii) the coefficients of have encoding length polynomial in the encoding length of M.
Proof. By the Leibniz formula, we have
where is the permutation group. Each factor is affine in , hence every product has degree at most , proving assertion (i).
Next, we prove assertions (ii) and (iii). By assertion (i), the polynomial has degree at most . Hence, it is uniquely determined by its values at any distinct points. For each integer , the matrix can be constructed in polynomial time and has integer entries of polynomial encoding length. Therefore, each determinant can be computed in polynomial time using any polynomial-time algorithm for the determinant of an integer matrix.
Having computed the values , the coefficients of the unique polynomial of degree at most are recovered by polynomial interpolation on these evaluation points, which can be performed in polynomial time using standard polynomial interpolation algorithms. Hence, these coefficients have encoding length polynomial in the encoding length of M.
Lemma 14. Let
be univariate polynomials. Then there exist other univariate polynomials
that can be computed in polynomial time such that, for every ,
Proof. Fix a polynomial
where and . Let
and define
Since , multiplication by preserves all comparison relations with zero. Moreover, the binary encoding length of is the sum of the encoding lengths of the denominators , and therefore is polynomial in the encoding length of . Consequently, the coefficients of also have polynomial encoding length.
Lemma 15 (Renegar [17, Theorem 1.1]). Let
be univariate polynomials of degree at most d, whose coefficients have binary encoding length at most L. Then, the feasibility of a system of polynomial constraints
can be decided in time polynomial in s, d and L.
Proof. The result is an immediate specialization of Theorem 1.1 of Renegar [17] to the case of a single real variable.
References
[1] Aharon Ben-Tal and Arkadi Nemirovski. Robust solutions of uncertain linear programs. Operations research letters, 25(1):1–13, 1999.
[2] Aharon Ben-Tal, Arkadi Nemirovski, and Laurent El Ghaoui. Robust optimization. Princeton university press, 2009.
[3] Dimitris Bertsimas and Melvyn Sim. The price of robustness. Operations research, 52(1):35–53, 2004.
[4] Stephen Boyd and Lieven Vandenberghe. Convex optimization, chapter 4. Cambridge university press, 2004.
[5] Christoph Buchheim. Bilevel linear optimization belongs to NP and admits polynomial-size KKT-based reformulations. Operations Research Letters, 51(6):618–622, 2023.
[6] Quang Minh Bui, Margarida Carvalho, and José Neto. Asymmetry in the complexity of the multi-commodity network pricing problem. Mathematical Programming, 208, 2024.
[7] Guillaume Derval, Damien Ernst, Quentin Louveaux, and Bardhyl Miftari. Sensitivity analysis for linear changes of the constraint matrix of a linear program. arXiv preprint arXiv:2410.14443, 2024.
[8] Guillaume Derval, Bardhyl Miftari, Damien Ernst, and Quentin Louveaux. Efficient lp warmstarting for linear modifications of the constraint matrix. arXiv preprint arXiv:2501.04151, 2025.
[9] Christoph Grüne, Dorothee Henke, Eva Rotenberg, and Lasse Wulf. The complexity of stackelberg pricing games. arXiv preprint arXiv:2511.05700, 2025.
[10] Gurobi Optimization. MINLP FAQ: Practical mixed-integer nonlinear modeling, 2025. Accessed 17 September 2026.
[11] Pierre Hansen, Brigitte Jaumard, and Gilles Savard. New branch-and-bound rules for linear bilevel programming. SIAM Journal on scientific and Statistical Computing, 13(5):1194–1217, 1992.
[12] Robert G Jeroslow. The polynomial hierarchy and a simple model for competitive analysis. Mathematical programming, 32(2):146–164, 1985.
[13] Sergey S Ketkov and Oleg A Prokopyev. On the complexity of bilevel linear and quadratic programs in fixed dimensions. arXiv preprint arXiv:2511.15592, 2025.
[14] Rajab Khalilpour and IA Karimi. Parametric optimization with uncertainty on the left hand side of linear programs. Computers & chemical engineering, 60:31–40, 2014.
[15] Tomomi Matsui. NP-hardness of linear multiplicative programming and related problems. Journal of Global Optimization, 9(2):113–119, 1996.
[16] Garth P. McCormick. Computability of global solutions to factorable nonconvex programs: Part I — convex underestimating problems. Mathematical Programming, 10(1):147–175, 1976.
[17] James Renegar. On the computational complexity and geometry of the first-order theory of the reals. part i: Introduction. preliminaries. the geometry of semi-algebraic sets. the decision problem for the existential theory of the reals. Journal of symbolic computation, 13(3):255–299, 1992.
[18] Sébastien Roch, Gilles Savard, and Patrice Marcotte. An approximation algorithm for stackelberg network pricing. Networks: An International Journal, 46(1):57–67, 2005.
[19] Allen L Soyster. Convex programming with set-inclusive constraints and applications to inexact linear programming. Operations research, 21(5):1154–1157, 1973.
[20] Nagisa Sugishita and Margarida Carvalho. Complexity of bilevel linear programming with a single upper-level variable. In International Conference on Integer Programming and Combinatorial Optimization, pages 426–440. Springer, 2026.
[21] David P. Williamson. Orie 6300: Mathematical programming i - lecture 7, 2008. Course lecture notes.
[22] Rob Zuidwijk. Linear parametric sensitivity analysis of the constraint coefficient matrix in linear programs. Technical Report ERS-2005-055-LIS, Erasmus Research Institute of Management, 2005.