Feasibility Evaluation of Quadratic Programs for Constrained Control Panagiotis Rousseas, Dimitra Panagou Abstract This paper presents a computationally-efficient method for evaluating the feasibility of Quadratic Programs (QPs) for online constrained control. Based on the duality principle, we first show that the feasibility of a QP can be determined by the solution of a properly-defined Linear Program (LP). Our analysis yields a LP that can be solved more efficiently compared to the original QP problem, and more importantly, is simpler in form and can be solved more efficiently compared to existing methods that assess feasibility via LPs. The computational efficiency of the proposed method compared to existing methods for feasibility evaluation is demonstrated in comparative case studies as well as a feasible-constraint selection problem, indicating its promise for online feasibility evaluation of optimization-based controllers. I INTRODUCTION Constrained optimization and control have been extensively studied in the literature [ 1 ] , motivated in part by real-world problems that operate under limitations. In the context of constrained control synthesis in particular, optimization-based control formulations such as Model Predictive Control (MPC) [ 2 ] and Nonlinear MPC (NMPC) have been widely adopted, while more recently, Control Barrier Functions (CBFs) [ 3 ] enable the formulation of constraints that act as safety filters in Quadratic Programs (QPs) that compute safe controllers. In all cases, feasibility of the underlying optimization problems is necessary for the derivation of control actions. These problems become particularly challenging in the presence of multiple constraints, since the latter might render the underlying problem infeasible. This paper considers the problem of assessing the feasibility of QPs for online control synthesis, motivated in part by the wide range of constrained control techniques that fall into this optimization form. We are particularly interested in finding algorithms for feasibility assessment that are computationally efficient, since online control synthesis typically requires the ability to find a solution and close the loop fast enough (e.g., in the order of milliseconds for certain applications). To this end, we adopt a duality principle viewpoint to characterize the feasibility of the QP in terms of the boundedness of the solution of the dual problem. More specifically, we show in Section III-A that the boundedness of the solution of a properly-defined LP is necessary and sufficient for the feasibility of the original QP. We then show in Section III-B that feasibility of the original QP can be evaluated by solving a properly-defined LP that is simpler compared to the LPs formulated in existing methods that determine the feasibility of a set of linear constraints [ 4 , 5 ] . Numerical evaluations in Section IV-A indicate the computational efficiency of our proposed method compared to existing approaches, which is crucial for online feasibility evaluation for control synthesis. We then consider and demonstrate how our feasibility assessment method can be applied to the problem of selecting a subset of compatible constraints when the original set of constraints is incompatible (and therefore the original problem is infeasible) and the constraints can be considered soft. Finding the maximal subset of feasible constraints (called the maxFS problem) [ 6 ] is known to be NP-hard and is addressed with heuristic approaches [ 7 , 8 , 9 , 10 ] or predetermined priority specifications [ 11 ] . However, these methods do not evaluate the feasibility of the original problem, which is what our method addresses. A concept similar to feasibility assessment arises in chance-constrained optimization problems (CCPs) [ 12 ] ; specifically, quantifying the feasibility of the optimal solution w.r.t. constraint removal, along with algorithms on how to disregard the constraints, have been recently addressed in [ 13 , 14 ] . However, in this context, feasibility refers to the probability that the stochastic constraint will be violated via finite samples of the random variables, and hence is not related to non-emptiness of the constrained convex set; in other words, the existence and uniqueness of the solution to the corresponding scenario approach-optimization problems is still assumed. To show the potential of applying our method to online feasibility assessment for constrained control synthesis, in Section IV-B we demonstrate that the derived LP can be used for selecting compatible constraints online when the original problem is found to be infeasible. Finally, we conclude our paper in Section V with some thoughts for future work. II PROBLEM FORMULATION Consider the following QP: \begin{split}u^{\star}=&\underset{u\in\mathbb{R}^{m}}{\textrm{arg}\min}\left\{u^{\top}Hu+F^{\top}u\right\}\triangleq\underset{u\in\mathbb{R}^{m}}{\textrm{arg}\min}\left\{\omega(u)\right\},\\ &\textrm{s.t.:}\quad A^{\top}u\leq B,\end{split} (1) where \omega:\mathbb{R}^{m}{\rightarrow}\mathbb{R} , H\in\mathbb{R}^{m\times m} is a symmetric positive definite matrix, F\in\mathbb{R}^{m} , A\in\mathbb{R}^{m\times C},B\in\mathbb{R}^{C} , with C\in\mathbb{N} denoting the number of constraints. We further denote the constraint index set as \mathcal{C}=\left\{1,\cdots,C\right\} , which is assumed to consist of two subsets, namely: the set of indexes \mathcal{C}_{h}\subset\mathcal{C} that denote hard constraints, and the set of indexes \mathcal{C}_{s}\subset\mathcal{C} that denote soft constraints, so that \mathcal{C}_{s}\cup\mathcal{C}_{h}=\mathcal{C} and \mathcal{C}_{s}\cap\mathcal{C}_{h}=\emptyset . Hard constraints must be satisfied, while soft constraints should be satisfied as long as they do not cause Problem ( 1 ) to become infeasible (e.g., they can be thought of as non-critical specifications). Assumption 1 . Problem ( 1 ) is feasible when only the hard constraints are considered: \mathcal{U}_{h}=\left\{u\in\mathbb{R}^{m}|A_{h}^{\top}u\leq B_{h}\right\}\neq\emptyset, where A_{h}\triangleq\left[A_{i_{1}},A_{i_{2}},\cdots,A_{i_{C_{h}}}\right]\in\mathbb{R}^{m\times C_{h}} and B_{h}\triangleq\left[B_{i_{1}},B_{i_{2}},\cdots,B_{i_{C_{h}}}\right]^{\top}\in\mathbb{R}^{C_{h}} with \mathcal{C}_{h}=\left\{i_{1},i_{2},\cdots,i_{C_{h}}\right\} denoting the index set of hard constraints, C_{h}=\left|\mathcal{C}_{h}\right| is the cardinality of the set and A_{i}\in\mathbb{R}^{m},\ i\in\mathcal{C} , denotes the i -th column of the matrix A\in\mathbb{R}^{m\times C} in ( 1 ). Problem Statement . Given Assumption 1 , find a method for evaluating the feasibility of Problem ( 1 ), where in the latter some/all of the constraints may be allowed to be violated. Our approach is to (i) introduce a method based on the duality principle for assessing the feasibility of Problem ( 1 ), and (ii) if Problem ( 1 ) is infeasible, formalize QPs that incorporate the violation of soft constraints, through the notion of a constraint configuration (which will be defined in the sequel) and which is introduced to explicitly account for such constraints that may be violated. Remark 1 . Problem ( 1 ) covers a wide range of constrained control synthesis problems; e.g., convergence and safety specifications can be encoded via Control Lyapunov Functions (CLFs) [ 15 ] and CBFs [ 3 ] respectively, which lead to QP formulations. Furthermore, linearly-constrained MPC problems also assume a QP formulation. Remark 2 . An illustrative example corresponding to a CBF-QP controller with time-varying constraints will be presented in the results (see Sec. IV-B ). III METHODOLOGY III-A A duality approach for assessing feasibility of ( 1 ) We reformulate Problem ( 1 ), termed Primal Problem (PP), using Lagrange multipliers (LMs) \lambda\in\mathbb{R}^{C} and constructing the augmented objective function {\bar{d}}:\mathbb{R}^{m}\times\mathbb{R}^{C}{\rightarrow}\mathbb{R} as: \begin{matrix}\textrm{{PP:}}&\begin{split}u^{\star}=&\ \underset{u\in\mathbb{R}^{m}}{\textrm{arg}\min}\ \underset{\lambda\geq 0}{\max}\left\{\omega(u)+\left(A^{\top}u-B\right)^{\top}\lambda\right\}\\ \triangleq&\ \underset{u\in\mathbb{R}^{m}}{\textrm{arg}\min}\ \underset{\lambda\geq 0}{\max}\left\{{\bar{d}}(u,\lambda)\right\}.\end{split}\end{matrix} (2) The corresponding Dual Problem (DP) [ 1 ] is formulated as: \begin{matrix}\textrm{{DP:}}&\lambda^{\star}&=\underset{\lambda\geq 0}{\textrm{arg}\max}\ \underset{u\in\mathbb{R}^{m}}{\min}\left\{{\bar{d}}(u,\lambda)\right\}.\end{matrix} (3) The Karush-Kuhn-Tucker (KKT) condition for ( 3 ) is: \begin{split}\left.\frac{\partial d}{\partial u}\right|_{\left(u^{\star},\lambda\right)}&=0\overset{\eqref{eq:opt_prob_kkt}}{\Rightarrow}2Hu^{\star}+F+A\lambda=0\Rightarrow\\ \quad\quad\ \mathbb{R}^{m}\ni u^{\star}&=-\tfrac{1}{2}H^{-1}\left(F+A\lambda\right),\end{split} (4) while substituting ( 4 ) in {\bar{d}} after some algebraic calculations yields the dual cost function d:\mathbb{R}^{C}\rightarrow\mathbb{R} : \begin{split}&d(\lambda)\triangleq{\bar{d}}\left(u^{\star}(\lambda),\lambda\right)=\\ &-\tfrac{1}{4}\|\sqrt{H^{-1}}A\lambda\|^{2}-\left(\tfrac{1}{2}F^{\top}H^{-1}A+B^{\top}\right)\lambda-\tfrac{1}{4}F^{\top}H^{-1}F,\end{split} with \sqrt{\cdot} denoting the square root of a positive definite matrix (note that H^{-1} is also positive definite). Therefore, omitting the constant term, the DP ( 3 ) becomes: \begin{split}\lambda^{\star}=\underset{\lambda\geq 0}{\textrm{arg}\max}\left\{-\tfrac{1}{4}\|\sqrt{H^{-1}}A\lambda\|^{2}-\left(\tfrac{1}{2}F^{\top}H^{-1}A+B^{\top}\right)\lambda\right\}.\end{split} ( 3 *) Furthermore, the following holds for the elements of the LM vector \lambda=\left[\lambda_{1},\lambda_{2},\cdots,\lambda_{C}\right]^{\top} [ 4 ] : \lambda_{i}=\left\{\begin{matrix}0&A_{i}^{\top}{\color[rgb]{0,0,0}u^{\star}_{\textrm{unc}}}\leq B_{i}\\ {\lambda}^{\star}_{i}&A_{i}^{\top}{\color[rgb]{0,0,0}u^{\star}_{\textrm{unc}}}>B_{i}\end{matrix}\right.,\quad i\in\mathcal{C}, (5) where {\lambda}^{\star}_{i}>0 , u^{\star}_{\textrm{unc}}=-\tfrac{1}{2}H^{-1}F\in\mathbb{R}^{m} is the unconstrained optimal solution to the PP and A_{i}\in\mathbb{R}^{m} denotes the i -th column of A while B_{i}\in\mathbb{R} denotes the i -th element of B\in\mathbb{R}^{C} , for i\in\mathcal{C} . Theorem 1 . The PP ( 1 ) is feasible iff the maximum value d^{\star}=d({\tilde{\lambda}}) to the following LP: {\tilde{\lambda}}\in\arg\underset{\lambda\in\Lambda}{\max}\left\{-B^{\top}\lambda\right\}, (6) is bounded, i.e., d^{\star}<\infty , where in ( 6 ) \Lambda=\left\{\left.x\in\textrm{null}(A)\subset\mathbb{R}^{C}\right|x\geq 0\right\} . Proof. We begin the proof by decomposing the LM vector into two components: \mathbb{R}^{C}\ni\lambda=\lambda_{1}+\lambda_{2} , where \lambda_{1}\in\textrm{col}(A),\lambda_{2}\in\textrm{null}(A) . Hence, ( * ‣ III-A ) becomes: \begin{split}\left(\lambda_{1}^{\star},\lambda^{\star}_{2}\right)=\underset{\lambda_{1}+\lambda_{2}\geq 0}{\textrm{arg}\max}\left\{T_{1}(\lambda_{1})+T_{2}(\lambda_{2})\right\},\end{split} ( * ‣ III-A *) where T_{1}(\lambda_{1})\triangleq-\tfrac{1}{4}\|\sqrt{H^{-1}}A\lambda_{1}\|^{2}-\left(\tfrac{1}{2}F^{\top}H^{-1}A+B^{\top}\right)\lambda_{1} and T_{2}(\lambda_{2})\triangleq-B^{\top}\lambda_{2} . The functions T_{1},T_{2} can be maximized independently as long as \lambda_{1}+\lambda_{2}\geq 0 . Finally, consider the set \Lambda_{+}(\lambda_{1})=\{x\in\textrm{null}(A):x\geq-\lambda_{1}\} . We distinguish two cases: 1) \textrm{null}(A)\bigcap\{\lambda\geq 0\}=\{0\} . Then T_{2} in ( * ‣ III-A ) vanishes and owing to convexity of T_{1} and \{\lambda\geq 0\} ( * ‣ III-A ) admits a unique maximum \lambda^{\star}=\lambda_{1}^{\star} thus ( 1 ) also admits a unique minimizer through ( 4 ). 2) \textrm{null}(A)\bigcap\{\lambda>0\}\neq\emptyset . ( Sufficiency: ) Assume that the maximum d^{\star} of ( 6 ) is bounded. Consider now the following problem, equivalent to ( * ‣ III-A ): \underset{\lambda_{2}\geq-\lambda_{1}^{\star},\lambda_{2}\in\textrm{null}(A)}{\max}\left\{\underset{\lambda_{1}\in\textrm{col}(A)}{\max}\left\{T_{1}(\lambda_{1})+T_{2}(\lambda_{2})\right\}\right\} . Concerning the inner optimization problem w.r.t. \lambda_{1}\in\textrm{col}(A) , we have that \lambda_{1}={N}_{A}s , where {N}_{A}\in\mathbb{R}^{C\times K_{A}},s\in\mathbb{R}^{K_{A}} , K_{A}=C-\textrm{dim}(\textrm{ker}(A)) such that AN_{A}s\neq 0,\forall s\in\mathbb{R}^{K_{A}} . Thus, T_{1}(\lambda_{1})=T_{1}(N_{A}s) is concave w.r.t. s , owing to its quadratic form and its maximization yields a single maximizer s^{\star}:\lambda_{1}^{\star}=N_{A}s^{\star} . Hence, ( * ‣ III-A ) becomes: \underset{\lambda_{2}\in\Lambda_{+}(\lambda_{1}^{\star})}{\max}\left\{T_{2}(\lambda_{2})\right\} , which we will show admits a bounded maximum, that corresponds to a set of maximizers \lambda_{2}^{\star} such that T_{2}(\lambda_{2}^{\star})\leq 0 . First, we show boundedness. Assume that T_{2} is unbounded on the set \Lambda_{+}(\lambda_{1}^{\star}) . It is easy to see that \Lambda_{+}(\lambda_{1}^{\star})\bigcap\Lambda\neq\emptyset , hence unboundedness of T_{2} on \Lambda_{+}(\lambda_{1}^{\star}) implies its unboundedness on \Lambda , leading to a contradiction (we have assumed that ( 6 ) is bounded). To show that T_{2}(\lambda_{2}^{\star})\leq 0 , consider the function \beta(\theta)=(-B^{\top}\lambda_{2}^{\star})\theta\in\textrm{null}(A),\theta\in\mathbb{R} . Since \lambda_{2}^{\star}\in\Lambda_{+}(\lambda_{1}^{\star}),\lambda_{2}^{\star}\neq\lambda_{1}^{\star} , then \exists\theta\in\mathbb{R}:\theta\lambda_{2}^{\star}\in\Lambda_{+}(\lambda_{1}^{\star}) . Assuming for contradiction that (-B^{\top}\lambda_{2}^{\star})>0 , its derivative is \tfrac{\textrm{d}\beta}{\textrm{d}\theta}=(-B^{\top}\lambda_{2}^{\star})>0 . This implies that \beta(\theta) can be increased, and thus T_{2}(\theta\lambda_{2}^{\star})=-B^{\top}(\theta\lambda_{2}^{\star}) can also be increased, leading to a contradiction as \exists\theta\in\mathbb{R}:T_{2}(\theta\lambda_{2}^{\star})>T_{2}(\lambda_{2}^{\star}) implying that \lambda_{2}^{\star} is not a maximizer. Thus, ( * ‣ III-A ) attains a bounded maximum at the set of maximizers \lambda^{\star}=\lambda_{1}^{\star}+\lambda_{2}^{\star} and the PP solution is u^{\star}=-\tfrac{1}{2}H^{-1}\left(F+A\lambda^{\star}\right)=-\tfrac{1}{2}H^{-1}\left(F+A\lambda_{1}^{\star}\right) , where \lambda_{2}^{\star} is not necessarily unique. To show that this is indeed a feasible minimizer to ( 1 ), the following holds from ( 4 ): {d}(\lambda_{1}^{\star}+\lambda_{2}^{\star})=\omega(u^{\star})-B^{\top}\lambda_{2}^{\star}\Rightarrow\omega(u^{\star})\geq{d}(\lambda^{\star}) , since (-B^{\top}\lambda_{2}^{\star})<0 . Thus, the weak duality principle (Thm. 12.11 in [ 5 ] ) is satisfied and u^{\star} is indeed a feasible solution to ( 1 ). ( Necessity: ) Assume now that ( 1 ) is feasible, implying that a single maximizer u^{\star}\in\mathbb{R}^{m} to ( 1 ) exists. Therefore, \exists\lambda^{\star}=\lambda_{1}^{\star}+\lambda_{2} such that ( 4 ) holds, for any \lambda_{2}\in\textrm{null}(A) . Due to the uniqueness of u^{\star} in ( 4 ), \lambda_{1}^{\star}\in\textrm{col}(A) is unique. Thus, Eq. ( * ‣ III-A ) becomes: \lambda_{2}^{\star}\in\underset{\lambda_{2}\in\Lambda_{+}(\lambda_{1}^{\star})}{\textrm{arg}\max}\left\{T_{1}(\lambda_{1}^{\star})+T_{2}(\lambda_{2})\right\}=\underset{\lambda_{2}\in\Lambda_{+}(\lambda_{1}^{\star})}{\textrm{arg}\max}\left\{T_{2}(\lambda_{2})\right\} . By the weak duality principle (Thm. 12.11 in [ 5 ] ), since ( 1 ) is by assumption feasible (thus its minimum is bounded), then ( * ‣ III-A ) is also bounded, rendering \underset{\lambda\in\Lambda_{+}(\lambda_{1}^{\star})}{\max}\left\{T_{2}(\lambda)\right\} bounded as well. Assume for the sake of contradiction that the solution to ( 6 ) is unbounded , i.e., T_{2} is unbounded on \Lambda . However, it is easy to see that \Lambda_{+}(\lambda_{1}^{\star})\bigcap\Lambda\neq\emptyset . Therefore, if T_{2} is unbounded on \Lambda , it is necessarily unbounded on \Lambda_{+}(\lambda_{1}^{\star}) , contradicting the weak duality principle. Therefore, the solution to ( 6 ) is bounded, concluding the proof. ∎ III-B A Linear Program for evaluating feasibility Consider the PP ( 1 ), where the constraint matrices are split into hard and soft constraint ones, i.e.: A=\left[A_{h},A_{s}\right]\in\mathbb{R}^{m\times C},\ B=\left[B_{h}^{\top},B_{s}^{\top}\right]^{\top}\in\mathbb{R}^{C} and A_{h}\in\mathbb{R}^{m\times C_{h}},A_{s}\in\mathbb{R}^{m\times C_{s}},B_{h}\in\mathbb{R}^{C_{h}},B_{s}\in\mathbb{R}^{C_{s}} . The hard constraints must always be enforced, while the soft constraints can be disregarded if they compromise the feasibility of ( 1 ). Definition 1 ( Disregarded Constraint ) . Consider Problem ( 1 ). A constraint \bar{A}^{\top}u\leq\bar{B} , where \bar{A}\in\mathbb{R}^{m} and \bar{B}\in\mathbb{R} , is defined as disregarded if its complementary set is enforced as a constraint in Problem ( 1 ) instead, i.e.: -\bar{A}^{\top}u\leq-\bar{B}. In order to account for disregarded soft constraints, we employ the following notation. Given a set of soft constraints indexed by the set \mathcal{C}_{s}\subset\mathcal{C} with cardinality \mathbb{N}\ni C_{s}=\left|\mathcal{C}_{s}\right| , consider the vector P_{i}=\left[p_{1}^{i},p_{2}^{i},\cdots,p_{C}^{i}\right]^{\top}\in\mathcal{P}\triangleq\{-1,+1\}^{C},i\in\mathcal{C}_{p} with \mathcal{C}_{p}=\{1,\cdots,C_{p}\} , with C_{p}=2^{C} , whose elements are given by: p_{j}^{i}=\left\{\begin{matrix}-1,&\textrm{if constraint $j$ is disregarded}\\ +1,&\textrm{if constraint $j$ is {not} disregarded}\end{matrix}\right., for some j\in\{1,\cdots,C\} and i\in\mathcal{C}_{p} . This vector encodes any permutation of disregarded soft constraints for the original PP ( 1 ). Definition 2 . Given the PP ( 1 ), the vector P_{i}\in\mathcal{P},\textrm{ where }i\in\mathcal{C}_{p}, is called the configuration vector, or simply configuration, for ( 1 ). Furthermore, the level of the configuration is defined as: \mathbb{N}\ni L(P_{i})\triangleq\underset{j\in\mathcal{C}}{\sum}\max\{p^{i}_{j},0\} . The level counts the number of constraints in a configuration that are not disregarded. Finally, a configuration P_{i}\in\mathcal{P},i\in\mathcal{C}_{p} is termed feasible if the following modified PP is feasible: \begin{split}&u^{\star}=\underset{u\in\mathbb{R}^{m}}{\textrm{arg}\min}\left\{\omega(u)\right\},\\ &\textrm{s.t.:}\quad\ S(P_{i})A^{\top}u\leq S(P_{i})B,\end{split} ( 1 *) where: S(P_{i})\triangleq\textrm{diag}\{P_{i}\}\in\mathbb{R}^{C\times C}, and \textrm{diag}(\cdot) denotes the square matrix with zero entries everywhere except for the diagonal, while its entries are the elements of the configuration vector P_{i} for some i\in\mathcal{C}_{p} . The matrix S(P_{i}) flips the signs of the disregarded soft constraints, compared to ( 1 ). Remark 3 . The elements of the configuration vector that correspond to hard constraints are always set equal to 1 : p_{j}^{i}=1,\ i\in\mathcal{C}_{p},\ j\in\mathcal{C}_{h}. To demonstrate how this formulation is useful, we prove the following lemma: Lemma 1 . Consider the PP ( 1 ) consisting of the set of hard and soft constraints indexed by \mathcal{C}_{h}\subset\mathcal{C} and \mathcal{C}_{s}\subset\mathcal{C} respectively. Assume two configurations P_{\textrm{feas}},P_{\textrm{inf}}\in\{-1,+1\}^{C_{s}} , where P_{\textrm{feas}} is assumed to be feasible, while P_{\textrm{inf}} is infeasible. Further assume w.l.o.g. that the two configurations differ 1 1 1 Note that for the infeasible configuration to become feasible, some of the constraints need to be disregarded. Hence, for some p_{id}^{inf} of the infeasible problem that correspond to non-disregrded constraints (and thus p_{id}^{inf}=1 ), the associated constraints need to be disregarded, thus set to p_{id}^{feas}=-1 . over the index set \mathcal{C}_{d}\subseteq\mathcal{C}_{s} and p^{\textrm{feas}}_{i_{d}}=-1 and p^{\textrm{inf}}_{i_{d}}=1,\forall i_{d}\in\mathcal{C}_{d} . The common indices are denoted as \mathcal{C}_{c}=\mathcal{C}-\mathcal{C}_{d} . Finally, consider two PPs: the original PP ( 1 ) where the constraints indexed by \mathcal{C}_{d} are dropped from the matrices A,B , and the modified PP ( * ‣ III-B ) for configuration P_{\textrm{feas}} . Then, these two PPs admit the same minimizer. Proof. Consider the augmented cost function for Prob. ( 1 ): d(u,\lambda)=\omega(u)+\underset{i\in\mathcal{C}_{c}}{\sum}\left((A_{s}^{i})^{\top}u-B_{s}^{i}\right)^{\top}\lambda_{i}, (7) where each \lambda_{i}\in\mathbb{R}_{+},i\in\mathcal{C}_{c} obeys ( 5 ). The optimal solution to this PP is denoted by the tuple (u_{1}^{\star},{\tilde{\lambda}}_{1}) , and the optimal augmented cost function is denoted by d^{\star}_{1}=d(u_{1}^{\star},{\tilde{\lambda}}_{1}) . Note that the minimizer (u_{1}^{\star},{\tilde{\lambda}}_{1}) is unique, owing to convexity of the PP ( 1 ) . Since the configuration P_{\textrm{inf}} is infeasible, then for the minimizer of ( 7 ) (u_{1}^{\star},{\tilde{\lambda}}_{1}) : -(A_{s}^{i_{d}})^{\top}u^{\star}_{1}<-B_{s}^{i_{d}},\ \forall i_{d}\in\mathcal{C}_{d}. (8) To see this, if there existed an optimal solution to ( 1 ) such that: -(A_{s}^{i_{d}})^{\top}u^{\star}_{1}\geq-B_{s}^{i_{d}}\Leftrightarrow(A_{s}^{i_{d}})^{\top}u^{\star}_{1}\leq B_{s}^{i_{d}} , \forall i_{d}\in\overline{\mathcal{C}}_{d} , for any \overline{\mathcal{C}}_{d}\subseteq\mathcal{C}_{d} , this would imply that the configuration P_{\textrm{inf}} is not infeasible, leading to a contradiction. Thus, constraint ( 8 ) can be incorporated into the augmented function ( 7 ). Since it holds, its associated LMs are \lambda_{i_{d}}=0,\ \forall i_{d}\in\overline{\mathcal{C}}_{d} . Thus: \begin{split}d_{1}^{\star}=d(u,\tilde{\lambda}_{1})-\underset{i_{d}\in\mathcal{C}_{d}}{\sum}\underbrace{\left((A_{s}^{i_{d}})^{\top}u^{\star}-B_{s}^{i_{d}}\right)^{\top}\lambda_{i_{d}}}_{=0},\end{split} (9) where ({\tilde{\lambda}}_{1})_{i}\in\mathbb{R}_{+} denotes the i -th component of the vector {\tilde{\lambda}}_{1} . However, note that the augmented cost function for Problem ( * ‣ III-B ) given the configuration P_{\textrm{feas}} is identical to d_{1}^{\star} ( 9 ). Thus, they share the same LM minimizer with the exception of \#\left(\mathcal{C}_{d}\right) additional terms for Problem ( * ‣ III-B ): {\tilde{\lambda}}_{2}=\left[({\tilde{\lambda}}_{1})^{\top},0,\cdots,0\right]^{\top} , where {\tilde{\lambda}_{2}\in\mathbb{R}^{C}} denotes the LM vector minimizer for Problem ( * ‣ III-B ). ∎ Remark 4 . Lem. 1 demonstrates that switching the sign of the constraints (disregarding them) that render Problem ( 1 ) infeasible is equivalent to solving the same QP with the constraints completely omitted. The following theorem is our main result and outlines the proposed LP for feasibility evaluation. Theorem 2 . Problem ( * ‣ III-B ) under the configuration P_{i}\in\mathcal{P},i\in\mathcal{C}_{p} (See Def. 2 ) is feasible iff the following LP admits a bounded maximum, i.e, d^{\star}<\infty : \begin{split}&\hskip 80.0ptd^{\star}=\underset{\lambda\in\Lambda_{i}}{\max}\left\{-B^{\top}\lambda\right\},\\ &\textrm{where the bounds for the elements $\lambda_{j}\in\mathbb{R}$ of $\lambda\in\mathbb{R}^{C}$ are:}\\ &\Lambda_{i}=\left\{\left.\lambda\in\textrm{null}(A)\subset\mathbb{R}^{C}\right|\lambda_{j}\in\left\{\begin{matrix}(-\infty,0],&\textrm{if }p^{i}_{j}=-1\\ [0,+\infty),&\textrm{if }p^{i}_{j}=+1\end{matrix}\right.\right\},\end{split} ( 6 *) where P_{i}=\left[p_{1}^{i},p_{2}^{i},\cdots,p_{C}^{i}\right]^{\top}\in\mathcal{P},i\in\mathcal{C}_{p} and \textrm{null}(\cdot) denotes the nullspace of a matrix. Proof. According to Lem. 1 , disregarding a constraint is equivalent to negating the sign of a constraint. However, negating the sign of a constraint is equivalent to restricting the associated LM to lie on the interval \lambda\in(-\infty,0] . To see this, consider the problem with the negated constraints ( * ‣ III-B ). According to Thm. 1 , Prob. ( * ‣ III-B ) is feasible iff the solution to the LP: d^{\star}=\underset{\lambda\in\Lambda}{\max}\left\{-B^{\top}S(P_{i})\lambda\right\}, (10) is bounded, i.e., d^{\star}<\infty , where \Lambda=\left\{\left.\lambda\in\textrm{null}(AS(P_{i}))\subset\mathbb{R}^{C}\right|\lambda\geq 0\right\} . Consider the transformation \mu=S(P_{i})\lambda . Then, ( 10 ) becomes d^{\star}=\underset{\mu\in M}{\max}\left\{-B^{\top}\mu\right\}, (11) where \lambda\in\textrm{null}(AS(P_{i}))\Rightarrow AS(P_{i})\lambda=0\Rightarrow A\mu=0\Rightarrow\mu\in\textrm{null}(A) . At the same time, \lambda\geq 0 implies that: \mu_{j}\in\left\{\begin{matrix}(-\infty,0],&\textrm{if }p^{i}_{j}=-1\\ [0,+\infty),&\textrm{if }p^{i}_{j}=+1\end{matrix}\right. , which yields: M_{i}=\left\{\left.\mu\in\textrm{null}(A)\subset\mathbb{R}^{C}\right|\mu_{j}\in\left\{\begin{matrix}(-\infty,0],&\textrm{if }p^{i}_{j}=-1\\ [0,+\infty),&\textrm{if }p^{i}_{j}=+1\end{matrix}\right.\right\} . However, problem ( 11 ) along with the definition of the set M_{i} is exactly problem ( * ‣ 2 ), which concludes the proof. ∎ Remark 5 . The Problem Statement evidently can be reformulated only in terms of (non)emptiness of the feasible set \{u\in\mathbb{R}^{m}|A^{\top}u\leq B\} , for which solutions exist [ 4 , 5 ] . Our analysis begins with the CBF-QP inspired PP ( 1 ), which leads to the QP DP ( * ‣ III-A ). The quadratic form of ( * ‣ III-A ) enables extracting condition ( * ‣ 2 ) that assesses feasibility of ( 1 ), implying non-emptiness of the feasible set. Our approach exhibits decreased execution time, which is supported theoretically (see the following remark) and validated through numerical simulations (see Section IV ). Remark 6 . The proposed LP ( * ‣ 2 ) consists of C decision variables and is subject to m linear equality constraints, and C inequality constraints for the bounds of the LMs. In contrast, consider the LP proposed in [ 4 , 5 ] : \begin{split}&\underset{u\in\mathbb{R}^{m},z\in\mathbb{R}^{C}}{\min}c^{\top}z\\ &\mathrm{s.t.:}\quad A^{\top}u-z\leq B,\ z\geq 0,\end{split} (12) which consists of m+C decision variables and is subject to 2C linear inequalities and C inequalities for the bounds of the auxiliary variable z\in\mathbb{R}^{C} . Note that LP time complexity (see [ 16 ] for a recent result) is dependent on the number of variables/constraints. This theoretically indicates that the proposed method is expected to be solved faster than the LP ( 12 ) due to fewer decision variables and constraints, which is supported by the numerical analysis that follows and further justifies the motivation and theoretical work that is the backbone of our approach. IV METHODOLOGY EVALUATION In the section we present two simulation case studies. The first study compares the computational load of our method ( * ‣ 2 ) against several different approaches. The second study illustrates an academic example inspired by CBF-QP controllers, demonstrating the applicability of our method in finding compatible constraints for online control synthesis. IV-A Computational Load Comparison Numerical evaluation to highlight the computational efficiency of the proposed method (i.e., Eq. ( * ‣ 2 )) is included in Figs. 1 , 2 . More specifically, Fig. 1 illustrates the feasibility evaluation time for the proposed method using the GLPK LP solver https://www.gnu.org/software/glpk/ (last sub-figure) compared against the solution of the PP (first sub-figure), the DP (second sub-figure), and Chinneck’s method [ 9 ] with relaxation variables (third sub-figure) using MATLAB’s QP solver. This comparison demonstrates that the pre-solution feasibility check of MATLAB’s QP solver is slower than ( * ‣ 2 ). In Fig. 2 the proposed method is presented both for a MATLAB implementation and a GLPK one (second and last sub-figures) versus a “Phase 1” LP-based method [ 4 , 5 ] for feasibility evaluation, i.e. Eq. ( 12 ). The execution times are depicted through the colormap as a function of the number of constraints (varying up to 1000) and the number of dimensions of the PP’s decision variables (varying up to 50). The relevant constraint matrices are generated randomly and thus the PP is probably infeasible as the number of constraints grows. Ten trials are executed for every problem instance for statistical significance, and the mean values are plotted. The proposed method is significantly faster than the rest of the approaches. Since the PP is probably infeasible, the times in Fig. 1 reflect how fast the respective methods evaluate infeasibility, demonstrating the superiority of our method. Concerning Fig. 2 , the method described in Rem. 6 is timed in two programming languages. Our approach is faster in both executions, corroborating the claim of Rem. 6 . Fig. 1: Several QP solvers compared to the proposed method. The PP (first sub-figure) the DP (second sub-figure), Chinneck’s method [ 9 ] (third sub-figure) and Proposed method ( * ‣ 2 ) (fourth sub-figure). The execution times are depicted through the colormaps in [s] . Fig. 2: LP approaches compared to the proposed method. MATLAB implementations of ( 12 ) (first sub-figure) and the proposed one ( * ‣ 2 ) (second sub-figure), GLPK implementations of ( 12 ) (third sub-figure) and the proposed one ( * ‣ 2 ) (fourth sub-figure). The execution times are depicted through the colormaps in [s] . IV-B Constraint Selection Example The aim of this subsection is to demonstrate our feasibility evaluation method, i.e., Eq. ( * ‣ 2 ), in the context of control synthesis, and specifically for CBF-QP controllers (see Rem. 2 ). The constraints as well as the matrices of problem ( 1 ) are evolving in time; however, for simplicity, we drop the time argument, i.e., we denote H:\mathbb{R}_{+}{\rightarrow}\mathbb{R}^{m\times m} a symmetric positive definite matrix, F:\mathbb{R}_{+}{\rightarrow}\mathbb{R}^{m} , A:\mathbb{R}_{+}{\rightarrow}\mathbb{R}^{m\times C},B:\mathbb{R}_{+}{\rightarrow}\mathbb{R}^{C} . The decision variable corresponds to a two-dimensional input vector and the hard constraints correspond to time-varying input bounds (see also the left subfigure of Fig. 3 , where a snapshot of the QP is depicted). Furthermore, five soft constraints correspond to CBF/CLF conditions that can be disregarded in favor of satisfying the input bounds. The feasibility evaluation method ( * ‣ 2 ) is implemented at discrete time instances to choose a feasible configuration. In this example we solve the maxFS problem [ 6 ] , i.e., maximize the level of the configuration at discrete time instances. We thus begin by introducing a structure onto the space of permutations \mathcal{P} defined in subsection III-B . Let \mathcal{G}=\left\{\mathcal{V},\mathcal{E}\right\} denote a graph, where \mathcal{V}=\left\{P_{i}\;|\;i\in\mathcal{C}_{p}\right\} denotes the vertex set and \mathcal{E} denotes the edge set with (i,j)\in\mathcal{E} iff: \left\|P_{i}-P_{j}\right\|_{1}=2,\ i\neq j,\ i,j\in\mathcal{C}_{P}, where \|\cdot\|_{1} denotes the 1-norm. In other words, two vertices of \mathcal{G} are connected if the corresponding configurations differ at a single element, i.e., a single constraint changes between disregarded/not disregarded between two neighboring configurations P_{i},P_{j} . The configuration graph for this example at a specific time instance is also presented in the right subfigure of Fig. 3 , where the links between two nodes indicate that the corresponding configurations differ at a single constraint. In order to choose among the feasible configurations, we employ two algorithms, one exhaustive and one heuristic. These algorithms are not novel, i.e., are not part of the contribution of the paper, but rather are used to demonstrate the applicability of the method to feasible constraint selection. IV-B 1 Greedy Approach A greedy approach consists of evaluating the feasibility of all possible configurations, and choosing the constraint with the maximal level. It is implemented at each time instance to choose an appropriate set of constraints to be disregarded in terms of Problem ( 1 ). Since all possible configurations are evaluated, this algorithm scales according to \mathcal{O}(2^{C}N(C)) , where N(C) is the execution time for evaluating a configuration of C constraints and C\in\mathbb{N} is the number of constraints. IV-B 2 Heuristic Search The heuristic method restricts the search to neighbors of the current configuration of \mathcal{G} . Since each node is connected to nodes whose permutation vector differs at a single digit, this yields C neighbors in total. The algorithm only evaluates the neighbors of the current vertex of the graph, and therefore it scales according to \mathcal{O}(N(C)C) . However, it does not necessarily provide the optimal configuration. These two search methods are employed to choose the configuration of feasible constraints and the results are presented in Fig. 3 and the video: https://vimeo.com/1021254998?share=copy#t=0 , which reveal that the method accurately labels the configurations as feasible/infeasible. More specifically in Fig. 3 , soft constraints 3,4 are not compatible with the hard constraints and the relevant configurations are thus infeasible (see graph in right figure). Any other configuration is feasible since constraints 1, 2 and 5 are compatible with the hard constraints. The maximal level configuration is selected, disregarding constraints 3 and 4. Fig. 3: An example of a constrained QP problem over the decision variable space with hard constraints (solid lines), not-disregarded soft constraints (dashed blue lines) and disregarded soft constraints (red dashed lines) is depicted in the left figure. The arrows point to the half-plane of the respective constraint. The unconstrained optimal solution (magenta star) and the constrained optimal solution (magenta circle) are also depicted. Each soft constraint is labeled through numbers from one to five. The corresponding configuration graph is depicted in the right figure, with the feasible configurations highlighted in blue, the infeasible configurations highlighted in red and the selected configuration highlighted in magenta. For readability, the configurations are depicted as binary numbers, where “0” in the i -th digit denotes that the i -th constraint is disregarded and “1” is employed otherwise. V CONCLUSION In this paper, a method for evaluating the feasibility of any configuration of soft constraints in QP problems is presented, using duality principle and a properly defined LP that can be solved more efficiently than LPs in similar existing methodologies. The proposed approach can serve as a basis for assessing the feasibility of online constrained-control techniques such as MPC and CBF-QPs. In our future work, we aim to develop planners to recursively maintain or minimally-relax feasibility based on our approach, along with more complex optimization criteria than the cardinality of the constraint set, e.g., accounting for constraint hierarchy.