On a primal-dual Newton proximal method for convex quadratic programs
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
De Marchi, Alberto Article — Published Version On a primal-dual Newton proximal method for convex quadratic programs Computational Optimization and Applications Provided in Cooperation with: Springer Nature Suggested Citation: De Marchi, Alberto (2022) : On a primal-dual Newton proximal method for convex quadratic programs, Computational Optimization and Applications, ISSN 1573-2894, Springer US, New York, NY, Vol. 81, Iss. 2, pp. 369-395, https://doi.org/10.1007/s10589-021-00342-y This Version is available at: https://hdl.handle.net/10419/306269 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/
Vol.:(0123456789) Computational Optimization and Applications (2022) 81:369–395 https://doi.org/10.1007/s10589-021-00342-y 1 3 On aprimal‑dual Newton proximal method forconvex quadratic programs AlbertoDeMarchi1 Received: 12 December 2020 / Accepted: 1 December 2021 / Published online: 6 January 2022 © The Author(s) 2022 Abstract This paper introduces QPDO, a primal-dual method for convex quadratic programs which builds upon and weaves together the proximal point algorithm and a damped semismooth Newton method. The outer proximal regularization yields a numerically stable method, and we interpret the proximal operator as the unconstrained minimization of the primal-dual proximal augmented Lagrangian function. This allows the inner Newton scheme to exploit sparse symmetric linear solvers and multi-rank factorization updates. Moreover, the linear systems are always solvable independently from the problem data and exact linesearch can be performed. The proposed method can handle degenerate problems, provides a mechanism for infeasibility detection, and can exploit warm starting, while requiring only convexity. We present details of our open-source C implementation and report on numerical results against state-of- the-art solvers. QPDO proves to be a simple, robust, and efficient numerical method for convex quadratic programming. Keywords Semismooth Newton method· Proximal point method· Regularized primal-dual method· Convex quadratic programming 1 Introduction Quadratic programs (QPs) are one of the fundamental problems in optimization. In this paper, we consider linearly constrained convex QPs, in the form: with 𝐱∈ℝn . 𝐐∈ℝn×n and 𝐪∈ℝn define the objective function, whereas the constraints are encoded by 𝐀∈ℝm×n and 𝐥,𝐮∈ ℝ m . We assume (i) 𝐐 is symmetric (1) min 𝐱 1 2 𝐱⊤𝐐𝐱 +𝐪⊤𝐱,s.t.𝐥≤𝐀𝐱 ≤𝐮 , * Alberto De Marchi [email protected] 1 Universität der Bundeswehr München, 85577Neubiberg/Munich, Germany
370 A.De Marchi 1 3 positive semidefinite, i.e., 𝐐⪰0 , and (ii) 𝐥 and 𝐮 satisfy 𝐥≤𝐮 , 𝐥<+∞ , and 𝐮>−∞ component-wise; cf. [33, 59]. We will refer to the nonempty, closed and convex set as the constraint set. Note that (1) represents a general convex QP, in that it accomodates also equality constraints and bounds. We denote N the sum of the number of nonzero entries in 𝐐 and 𝐀 , i.e., N∶=nnz(𝐐)+nnz(𝐀) . 1.1 Background Optimization problems in the form (1) appear in a variety of applications and are of interest in engineering, statistics, finance and many other fields. QPs often arise as sub-problems in methods for general nonlinear programming [10, 31, 44], and greatly vary in terms of problem size and structure. Convex QPs have been studied since the 1950s [22] and several numerical methods have been developed since then. These differ in how they balance the number of iterations and the cost (e.g., run time) per iteration. Active-set methods for QPs originated from extending the simplex method for linear programs (LPs) [64]. These methods select a set of binding constraints and iteratively adapt it, seeking the set of active constraints at the solution. Active-set algorithms can be easily warm started and can lead to finite convergence. Moreover, by adding and dropping constraints from the set of binding ones, factorization updates can be adopted for solving successive linear systems. However, these methods may require many iterations to identify the correct set of active constraints. Modern solvers based on active-set methods are qpOASES [20] and NASOQ [13]. First-order methods iteratively compute an optimal solution using only first-order information about the cost function [46, 49]. As these methods consist of computationally cheap and simple steps, they are well suited to applications with limited computing resources [59]. However, first-order algorithms usually require many iterations to achieve accurate solutions and may suffer from ill-conditioning of the problem data. Several acceleration schemes have been proposed to improve their behaviour [1, 62]. The open-source solver OSQP [59] offers an implementation based on ADMM [9]. Interior-point methods move the problem constraints to the objective function via barrier functions and solve a sequence of parametric sub-problems [10, Chap. 11], [44, Sect.16.6]. Although not easily warm started, the polynomial complexity makes interior-point methods appealing for large scale problems [29]. They usually require few but rather demanding iterations [31, 44]. Interior-point methods are currently the default algorithms in the commercial solvers GUROBI [32] and MOSEK [43]. Recent developments are found in the regularized method IP-PMM [51]. Semismooth Newton methods apply a nonsmooth version of Newton’s method to the KKT conditions of the original problem [52, 53]. In the strictly convex case, i.e., with 𝐐≻0 , this approach performs very well as long as the underlying linear systems are nonsingular. Regularized, or stabilized, semismooth Newton-type methods, such as QPALM [33, 34] and FBstab [37], overcome these drawbacks. C∶={𝐳∈ℝm∶𝐥≤𝐳≤𝐮}
371 1 3 On aprimal‑dual Newton proximal method forconvex quadratic… The augmented Lagrangian framework [7, 14, 44], semismooth Newton methods [25, 53], and proximal techniques [48, 56] are undergoing a revival, as their seamless combination exhibits valuable properties and provides useful features, such as regularization and numerical stability [6, 33, 37]. These ideas form the basis for our approach. 1.2 Approach In this work we present a numerical method for solving general QPs. The proposed algorithm is based on the proximal point algorithm and a semismooth Newton method for solving the sub-problems, which are always solvable for any choice of problem data. We therefore impose no restrictions such as strict convexity of the cost function or linear independence of the constraints. As such, our algorithm gathers together the benefits of fully regularized primal-dual methods and semismooth Newton methods with active-set structure. Our algorithm can exploit warm starting to reduce the number of iterations, as well as factorization caching and multi-rank update techniques for efficiency, and it can obtain accurate solutions. Our approach, dubbed QPDO from “Quadratic Primal-Dual Optimizer”, is inspired by and shares many characteristics with algorithms that have already been proposed, in particular with QPALM [33] and FBstab [37]. On the other hand, they differ on some key aspects. QPALM relates to the proximal method of multipliers [33, Rem. 2], which in turn is associated to the classical (primal) augmented Lagrangian function [55]. Instead, FBstab and QPDO apply the proximal point method, yielding exact primal-dual regularization. A more detailed comparison is deferred to Sect.5. However, FBstab reformulates the sub-problem via the (penalized) Fischer- Burmeister NCP function [11, 21], and adopts the squared residual norm as a merit function for the inner iterative loop; this prevents the use of symmetric sparse linear solvers. Instead, QPDO adopts the minimum NCP function, which leads to symmetric linear systems with active-set structure. Then, we show the primal-dual proximal augmented Lagrangian function, introduced in [27, 54] and [17], is a suitable merit function for the proximal sub-problem, which allows us to perform an exact linesearch in a fully primal-dual regularized context. Indeed, we believe, the main contribution of this work consists in recognizing this link, exploiting it to bridge the gap between previously proposed methods, and developing a robust and efficient algorithm that possesses their advantages but does not suffer from their disadvantages. Notation ℕ , ℤ , ℝ , ℝ+ , and ℝ++ denote the sets of natural, integer, real, non-nega- tive real, and positive real numbers, respectively. We denote ℝ∶= ℝ ∪ {−∞,∞} the extended real line. The identity matrix and the vector of ones of size n are denoted by 𝐈n and 𝟏n , respectively. We may omit subscripts whenever clear from the context. [a,b], (a,b), [a,b), and (a,b] stand for closed, open, and half-open intervals, respectively, with end points a and b. [a;b], (a;b), [a;b), and (a;b] stand for discrete intervals, e.g., [a;b]=[a,b]∩ℤ . Given a vector 𝐱∈ℝn , 𝐱⊤ and 𝐱i denote its transpose and its i-th component, respectively. We adopt the norms ‖ 𝐱 ‖=‖ 𝐱 ‖2∶=√ 𝐱⊤ 𝐱 and ‖ 𝐱 ‖∞ ∶= max i∈[1;n]� 𝐱 i� . Given a set S, |S| denotes its cardinality. In ℝn , the relations <, ≤ , = , ≥ , and > are understood component-wise. Given a nonempty
372 A.De Marchi 1 3 closed convex set C⊆ℝn , we denote 𝜒C∶ℝn → ℝ∪ {+∞} its characteristic function, namely 𝜒C(𝐱)=0 if 𝐱∈C and 𝜒C(𝐱)=+∞ otherwise, distC∶ℝn → ℝ its distance, namely 𝐱 ↦ min𝐳∈C‖𝐳−𝐱‖ , and its projection ΠC∶ℝn → ℝn , namely 𝐱 ↦ arg min𝐳∈C‖𝐳−𝐱‖ . Thus, it holds distC(𝐱)=‖ΠC(𝐱)−𝐱‖ . The algorithm is described with a nested structure, whose outer iterations are indexed by k∈ℕ . Given an arbitrary vector 𝐱 , 𝐱k denotes that 𝐱 depends on k, and analogously for matrices. We denote y the dual variable associated with the constraints in problem (1). A primal-dual pair (𝐱,𝐲) will be denoted v, and we will refer interchangeably to it as a vector or to its components 𝐱 and y. An optimal solution to (1) will be denoted (𝐱⋆ ,𝐲⋆) , or 𝐯⋆ . Optimal solutions of proximal sub-problems will be denoted using an appropriate subscript, according to the iteration. For example, ( 𝐱 ⋆ k ,𝐱 ⋆ k) , and 𝐱⋆ k , denote the solution to the proximal sub-problem corresponding to the k-th outer iteration. Outline The rest of the paper is organized as follows. Sections2 and 3 develop and present our method in detail. In particular, in Sect. 3.1 we establish our key result, which relates the proximal operator and the primal-dual proximal augmented Lagrangian function. Our algorithmic framework is outlined in Section4 and the convergence properties are analyzed in Sect.4.1, while Sect.5 contrasts QPDO with similar methods. We present details of our implementation in Sect.6 and report on numerical experience in Sect.7. 2 Outer loop: inexact proximal point method Our method solves (1) using the proximal point algorithm with inexact evaluation of the proximal operator. The latter is evaluated by means of a semismooth Newton-type method, which constitutes an inner iterative procedure further investigated in Sect. 3. Here we focus on the outer loop corresponding to the proximal point algorithm, which has been extensively studied in the literature [56]. We recall some important results and refer to [38, 40, 45, 55] for more details. 2.1 Optimality conditions Problem (1) can be equivalently expressed as where are the objective function and the characteristic function of the constraint set C , respectively. The necessary and sufficient first-order optimality conditions of (2), and hence (1), read (2) min 𝐱f(𝐱)+g(𝐀𝐱), f(𝐱)∶= 1 2 𝐱⊤𝐐𝐱 +𝐪⊤𝐱and g(𝐳)∶=𝜒C(𝐳 )
373 1 3 On aprimal‑dual Newton proximal method forconvex quadratic… where 𝜕g∗ denotes the (set-valued) conjugate subdifferential of g [45]. For all i∈[1;m] , (𝜕g∗(𝐲))i=𝐥i if 𝐲i<0 , (𝜕g∗(𝐱))i=[𝐥i ,𝐮i] if 𝐱i=0 , and (𝜕g∗(𝐲))i=𝐮i if 𝐲i>0 . We will refer to T∶ ℝ 𝓁⇉ ℝ 𝓁 , 𝓁∶=n+m , as the KKT operator for (1). However, noticing that, for any 𝛼>0 , the conditions 𝐯=Π C(𝐯+𝛼𝐮) and 𝐯∈𝜕g∗(𝐮) are equivalent [57, Sect.23], conditions in (3) can be reformulated. Choosing 𝛼=1 , we define the (outer) residual 𝐫∶ℝ𝓁→ℝ𝓁 and equivalently express (3) as This reformulation can be obtained also by employing the minimum NCP function [60] and rearranging to obtain the projection operator ΠC . The residual 𝐫 is analogous to the natural residual function 𝝅 investigated in [47]. Since it is an error bound for problem (1), i.e., dist T−1 (𝟎)(𝐯)=O(‖𝐫(𝐯)‖) [47, Thm 18], 𝐫 is a suitable optimality measure and its norm can be adopted as a stopping criterion. Although equivalent, (3) is considered here only as a theoretical tool for developing the proposed method, whereas the outer residual 𝐫 in (4) serves as a computationally practical optimality criterion. 2.2 Proximal point algorithm The proximal point algorithm [56] finds zeros of maximal monotone operators by recursively applying their proximal operator. Since T is a maximal monotone operator [45, 55], the proximal point algorithm converges to an element 𝐯⋆ of the set of primal-dual solutions T−1(𝟎) , if any exists [40, 56]. Starting from an initial guess 𝐯0 , it generates a sequence {𝐯k} of primal-dual pairs by recursively applying the proximal operator Pk : where {𝚺k} is a sequence of non-increasing positive definite matrices, namely, 𝚺k≻0 and 𝚺k−𝚺k+1⪰0 for all k∈ℕ . The matrices 𝚺k control the primal-dual proximal regularization and, similarly to exact penalty methods, these are not required to vanish [55, 56]. Since T is maximal monotone, Pk is well defined and single valued for all 𝐯∈domT= ℝ 𝓁 [40]. Thus, from (5), evaluating Pk at 𝐯k is equivalent to finding the unique 𝐯∈ ℝ 𝓁 that satisfies This is guaranteed to have a unique solution and to satisfy certain useful regularity properties; see Sect.3 below. As a result, we can construct a fast inner solver for these sub-problems based on the semismooth Newton method. (3) 𝟎 ∈T(𝐯)∶= ( 𝐐𝐱 +𝐪+𝐀 ⊤ 𝐲 −𝐀𝐱 +𝜕g∗(𝐲) ), (4) 𝟎 =𝐫(𝐯)∶= ( 𝐐𝐱 +𝐪+𝐀 ⊤ 𝐲 𝐀𝐱 −Π C(𝐀𝐱 +𝐲) ). (5) 𝐯k+1 =P k (𝐯 k ),P k ∶=(𝐈+𝚺 −1 k T) −1, (6) 𝟎∈Tk(𝐯)∶=T(𝐯)+𝚺k(𝐯−𝐯k).
374 A.De Marchi 1 3 2.3 Early termination The proximal point algorithm tolerates errors, namely the inexact evaluation of Pk [56]. Criterion (Ar) in [38] provides conditions for the design of convergent inexact proximal point algorithms [38, Thm 2.1]. Let 𝐯⋆ k ∶= Pk (𝐯 k) denote the unique proximal sub-problem solution and 𝐯k+1 ≈𝐯 ⋆ k the actual recurrence update. The aforementioned criterion requires where r≥0 and {ek} is a summable sequence of nonnegative inner tolerances, i.e., ek ≥ 0 for all k and ∑∞ k=0 e k < +∞ . However, since 𝐯⋆ k is effectively unknown, this criterion is impractical. Instead, in Algorithm1 it is required that 𝐯k+1 satisfy ‖𝐫k(𝐯k+1)‖∞ ≤ 𝜀k . Here, 𝐫k denotes the residual for the k-th sub-problem, and is defined in (14). In Sect.4.1 we will show that this criterion is a simple and viable substitute, which retains the significance of (Ar) . 2.4 Warm starting If a solution 𝐯⋆ exists, the (outer) sequence {𝐯k} generated by (5) converges, by the global convergence of the proximal point algorithm [56]. Then, Pk(𝐯k) and 𝐯k are arbitrarily close to each other for sufficiently large k [37, Sect.4]. This supports the idea of warm starting the inner solver with the current outer estimate 𝐯k , that is, setting 𝐯←𝐯k in Algorithm 2. In practice, for large k, only one or few Newton-type inner iterations are needed to find an approximate sub-problem solution 𝐯k+1 . 2.5 Primal anddual infeasibility Infeasibility detection in convex programming has been studied in [4, 5]. Certifying primal infeasibility of (1) amounts to finding a vector 𝐲∈ℝm such that Similarly, it can be shown that a vector 𝐱∈ℝn satisfying is a certificate of dual infeasibility for (1) [4, Prop. 3.1]. (7) ‖ 𝐯 k+1 −𝐯 ⋆ k‖ ≤e k min � 1, ‖ 𝐯 k+1 −𝐯 k‖r�, (8) 𝐀 ⊤𝐲=𝟎, ∑ i∈[1;m] 𝐮 i ∈ℝ 𝐮imax(𝐲i,0)+ ∑ i∈[1;m] 𝐥 i ∈ℝ 𝐥imin(𝐲i,0)< 0. (9) 𝐐𝐱 =𝟎,𝐪⊤𝐱<0, (𝐀𝐱)i ⎧ ⎪ ⎨ ⎪ ⎩ =0𝐥i,𝐮i∈ℝ, ≥0𝐥i∈ℝ,𝐮i= +∞, ≤0𝐥i= −∞,𝐮i∈ℝ, i∈[1;m] ,
375 1 3 On aprimal‑dual Newton proximal method forconvex quadratic… 3 Inner loop: semismooth Newton method In this section we focus on solving (6) via a semismooth Newton method. For the sake of clarity, and without loss of generality, we consider for some parameters 𝜎k,𝜇k∈ℝ++ . 3.1 Merit function We now derive the simple yet fundamental result that is the key to developing our method. This provides the NCP reformulation of the proximal sub-problem with a suitable merit function. The former yields symmetric active-set linear systems, while the latter leads to exact linesearch. Let us express (6) in the form Similarly to (4), for any given 𝛼>0 , this can be rewritten as where we denote The second condition in (11) can be expressed as 𝟎=𝐰k−Π C(𝐰k)−𝛼𝐱 . Then, we substitute y with [𝐰k−Π C(𝐰k)]∕𝛼 in the first condition in (11), and multiply the second one by (𝛼−𝜇k)∕𝛼 . Hence, for any positive 𝛼≠𝜇k , (11) is equivalent to namely their unique solutions coincide. Now, we observe that the right-hand side of (12) is the gradient of the function By construction, this is a continuously differentiable function whose gradient vanishes at the unique solution of the proximal sub-problem. Furthermore, for any 𝛼∈(0, 𝜇k) , it is strictly convex and hence admits a unique minimizer that must coincide with the unique proximal point. Therefore, (13) is a suitable merit function for 𝚺k∶=blockdiag(𝜎k𝐈n,𝜇k𝐈m). (10) 𝟎 ∈ ( 𝐐𝐱 +𝐪+𝐀 ⊤ 𝐲+𝜎k(𝐱−𝐱k) −𝐀𝐱 +𝜇 k (𝐲−𝐲 k )+𝜕g∗(𝐲) ). (11) 𝟎 = ( 𝐐𝐱 +𝐪+𝐀 ⊤ 𝐲+𝜎k(𝐱−𝐱k) 𝐀𝐱 +𝜇 k (𝐲 k −𝐲)−Π C(𝐰 k ) ), 𝐰k∶=𝐀𝐱 +𝜇k(𝐲k−𝐲)+𝛼𝐲. (12) 𝟎 = ( 𝐐𝐱 +𝐪+1 𝛼𝐀⊤[𝐰k−Π C(𝐰k)] + 𝜎k(𝐱−𝐱k) 𝛼−𝜇k 𝛼 [𝐰k−Π C(𝐰k)] + (𝜇k−𝛼)𝐱 ), (13) f(𝐱)+ 1 2𝛼 dist2 C(𝐰k)+ 𝜎 k 2‖ 𝐱−𝐱k ‖ 2+ 𝜇 k −𝛼 2‖ 𝐲 ‖ 2 .
376 A.De Marchi 1 3 the sub-problem. The particular choice 𝛼∶=𝜇k∕2 inherits all these properties and leads to the inner optimality conditions with 𝐫k∶ ℝ 𝓁 →ℝ 𝓁 the inner residual, and the associated merit function In fact, Mk∶ ℝ 𝓁 → ℝ is the primal-dual proximal augmented Lagrangian function [17, 27, 54]; see Appendix A for a detailed derivation. This underlines once again the strong relationship between the proximal point algorithm and the augmented Lagrangian framework, pioneered in [55]. On the one hand, by (15), the dual regularization parameter 𝜇k controls the constraint penalization [23, Sect.3.2]. On the other hand, it provides an “interpretation of the augmented Lagrangian method as an adaptive constraint regularization process” [3, Sect.2]. The inner residual 𝐫k in (14) is piecewise affine, hence strongly semismooth on ℝ𝓁 [36, 52]. In fact, given 𝜇k bounded away from zero and the unique, bounded, and nonsingular matrix 𝐓k defined by we have the identity ∇Mk(⋅)=𝐓k𝐫k(⋅) . Effectively, ‖𝐫k(⋅)‖ can be employed as stopping criterion in place of ‖∇Mk(⋅)‖ . We prefer the former, since 𝐫k corresponds to a perturbation of the outer residual 𝐫 ; cf. (4). The availability of a suitable merit function allows us to adopt a damped Newton-type method and design a linesearch globalization strategy, in contrast with [25, 37, 50]. Since Mk is continuously differentiable and piecewise quadratic, an exact linesearch procedure can be carried out, which yields finite convergence [61]. Finally, we highlight that the method asymptotically reduces to a sequence of regularized semismooth Newton steps applied to the original, unperturbed optimality system, in the vein of [2]. This closely relates to the concept of exact regularization [24]. In fact, the proximal primal-dual regularization is exact; see Theorem1 and compare with [3, Thm 1]. Proposition 1 Let k∈ℕ be arbitrary. (i) Suppose 𝐯⋆ k solves (14) for 𝐯k ∶=𝐯 ⋆ k and for some 𝜎k ≥ 0 and 𝜇k>0 . Then, 𝐯⋆ k solves (4). (ii) Alternatively, suppose 𝐯⋆ k solves (14) for 𝐲k ∶=𝐲 ⋆ k , 𝜎k∶=0 , and for some 𝜇k>0 . Then, 𝐯⋆ k solves (4). (14) 𝟎 =𝐫k(𝐯)∶= ( 𝐐𝐱 +𝐪+𝐀 ⊤ 𝐲+𝜎k(𝐱−𝐱k) 𝐀𝐱 +𝜇 k (𝐲 k −𝐲)−Π C(𝐀𝐱 +𝜇 k (𝐲 k −𝐲∕2)) ), (15) M k(𝐯)∶=f(𝐱)+ 1 𝜇 k dist2 C(𝐀𝐱 +𝜇k(𝐲k−𝐲∕2)) + 𝜎 k 2 ‖ 𝐱−𝐱k ‖ 2+ 𝜇 k 4 ‖ 𝐲 ‖ 2 . (16) 𝐓 k∶= [ 𝐈2 𝜇k 𝐀⊤ 𝟎−𝐈 ],
383 1 3 On aprimal‑dual Newton proximal method forconvex quadratic… 6.1 Linear solver The linear system (21) is solved with CHOLMOD [12], using a sparse Cholesky factorization. This linear solver is analogous to the one adopted in QPALM [33], for the sake of comparison. Let ( 𝐫dual k ,𝐫 prim k) partition the inner residual 𝐫k in (14). Then, formally solving for 𝛿𝐲 in (21), we obtain the expression (omitting subscripts and arguments) where the second and third lines are due to the binary structure of 𝐏 . Substituting 𝐲 and rearranging, we obtain a linear system for 𝛿𝐱 : which has a symmetric, positive definite coefficient matrix and can be solved by CHOLMOD [12]. On the one hand, this approach allows multi-rank factorization updates [15], thus avoiding the need for a full re-factorization at every inner iteration. On the other hand, sparsity pattern may be lost and significant fill-in may arise due to the matrix-matrix product 𝐀⊤𝐀 . For this reason, the current implementation may benefit from directly solving (21) via sparse symmetric linear solvers, possibly with multi-rank factorization updates. To better exploit the data sparsity pattern and the capabilities of the proposed method, we plan to add other linear solvers in future versions. 6.2 Parameters selection Solving convex QPs via the proximal point algorithm imposes mild restrictions on the sequence of primal-dual regularization parameters {𝚺k} . As mentioned in Sect.2.2, there are no additional requirements other than being non-increas- ing and positive definite. However, similarly to forcing sequences in augmented Lagrangian methods [14], the sequence of regularization parameters greatly affects the behaviour of QPDO, and a careful tuning can positively impact the performance. For instance, although faster convergence rates can be expected if 𝚺k → 𝟎 [38], numerical stability and machine precision should be taken into account. Following [34, Sect.5.3] and [59, Sect.5.2], our implementation considers only diagonal matrices of the form 𝚺k=blockdiag(𝜎k𝐈,diag( 𝝁 k)) , and we refer to the effect of 𝜎k and 𝝁k as primal and dual regularization, respectively. The dual regularization parameter 𝝁k proves critical for the practical performance of the method since it strikes the balance between the number of inner and outer iterations, seeking easy-to-solve sub-problems, effective warm starting, and rapid constraints satisfaction. Therefore, we carefully initialize and update 𝝁k , guided by the interpretation as a constraint penalization offered by the augmented 𝛿 𝐲=𝜇 −1 (𝐈−𝐏∕2) −1[ (𝐈−𝐏)𝐀𝛿𝐱+𝐫 prim] =𝜇−1(𝐈+𝐏) [ (𝐈−𝐏)𝐀𝛿𝐲+𝐫prim ] =𝜇 −1 (𝐈−𝐏)𝐀𝛿𝐱+𝜇 −1 (𝐈+𝐏)𝐫 prim , [ 𝐐+𝜎𝐈+𝜇 −1 𝐀 ⊤ (𝐈−𝐏)𝐀 ] 𝛿𝐱=𝐀 ⊤ 𝐏𝐲 −𝜇 −1 𝐀 ⊤ (𝐈−𝐏)𝐫 prim −𝐫 dual,
384 A.De Marchi 1 3 Lagrangian framework; cf. Sect.3.1. In our implementation, we consider a vector 𝝁k to gain a finer control over the constraint penalization [14]. Given a (primal) initial guess 𝐱0∈ℝn , we initialize as in [8, Sect.12.4]: where 𝜇max 0 ≥𝜇 min 0 > 0 and 𝜅𝜇≥0 . Then, following [34, Sect.5.3], we monitor the primal residual 𝐫prim(𝐯)∶=𝐀𝐱 −Π C (𝐀𝐱 +𝐲) from (4) and update the dual regularization parameter 𝝁k accordingly. If | 𝐫i prim(vk+1) | >max ( 𝜃𝜇 | 𝐫i prim(𝐯k) | ,𝜀opt ) , we set where 𝜃𝜇∈(0, 1) , 𝜇min >0 , and 𝛿𝜇≥0 . Otherwise, we set 𝝁i k+1 =𝝁 i k . These rules adapt the constraint penalization on the current residual, seeking a uniform, steady progression towards feasibility, while making sure the sequences { 𝝁 i k} , i∈[1;m] , are non-increasing and bounded away from zero. In our implementation, the default values are 𝜇min 0 =10 −3 , 𝜇max 0 =10 3 , 𝜅𝜇 =0.1 , 𝜇min =10−9 , 𝛿𝜇 =10 −2 and 𝜃𝜇=0.25 . The primal regularization turns out to be less crucial with respect to the dual counterpart. For this reason, it is associated to a scalar value and tuned independently from the residual. Starting from 𝜎0>0 , we apply where 𝜎min >0 and 𝜅𝜎∈[0, 1] . In our implementation the default values are 𝜎0 =10 −3 , 𝜎min =10 −7 , and 𝜅𝜎 =0.1 . Early termination The inner tolerance 𝜀k also affects the performance of QPDO, since it balances sub-problem accuracy and early termination. In Algorithm1, these aspects relate to the parameters 𝜀0 and 𝜅𝜀 , which drive {𝜀k} to zero. However, finite precision should also be taken into account. In fact, although the semismooth Newton method converges in finitely many iterations, the solution provided is exact up to round-off errors and numerical precision. Therefore, we deviate from Algorithm1 in this respect and employ the update rule where 0≤𝜀min ≤𝜀opt . In our implementation, the default values are 𝜀0=1 , 𝜅𝜀 =0.1 , 𝜀min =0.1𝜀opt , and 𝜀opt =10 −6 . 6.3 Infeasibility detection A routine for detecting primal and dual infeasibility of (1) is included in Algorithm1. This allows the algorithm to terminate with either a primal-dual solution 𝐝 0 ∶=𝐀𝐱 0 −Π C (𝐀𝐱 0 ), 𝝁 i 0∶=Π [ 𝜇min 0,𝜇max 0 ]( 𝜅𝜇 max(1, (𝐝i 0)2∕2) max(1, | f(𝐱0) | ) ) ,i∈[1;m] , 𝝁 i k+1=Π [𝜇min,𝝁i k] � 𝛿𝜇 ‖ 𝐫prim(𝐯k+1) ‖ ∞ � 𝐫i prim (𝐯k+1) � 𝝁i k �, 𝜎k+1=max(𝜎min,𝜅𝜎𝜎k), 𝜀k+1=max(𝜀min,𝜅𝜀𝜀k),
385 1 3 On aprimal‑dual Newton proximal method forconvex quadratic… or a certificate of primal or dual infeasibility, for some given tolerances. We adopt the mechanism developed in [4, Sect.5.2], which holds whenever the proximal point algorithm is employed to solve the KKT conditions (3). Problem (1) is declared primal or dual infeasible based on the conditions given in Sect. 2.5 and the vectors 𝛥𝐱k∶=𝐱k+1−𝐱k and 𝛥𝐲k∶=𝐲k+1−𝐲k , k≥0 . As in [34], we deem the problem primal infeasible if 𝛥𝐲k≠𝟎 and the following two conditions hold where 𝜀pinf >0 is some tolerance level. The problem is considered dual infeasible if 𝛥𝐱k ≠ 𝟎 and the following conditions hold where 𝜀dinf >0 is some tolerance level. In case of primal and/or dual infeasibility, we return the vectors 𝛥𝐲k and 𝛥𝐱k as certificates of primal and infeasibility, respectively. In our implementation, the default values are 𝜀 pinf =𝜀dinf =10 −6 . The reader may refer to [59, Sect.3.4], [33, Sect. V.C], and [37, Sect.4.1], and [51, Sect.4] for analogous applications. 6.4 Preconditioning Preconditioning, or scaling, the problem may alleviate ill-conditioning and mitigate numerical issues, especially when the problem data span across many orders of magnitude. In our implementation, we closely follow [34, Sect.5.2] and scale the problem data by performing the Ruiz’s equilibration procedure [58] on the constraint matrix 𝐀 . This procedure iteratively scales the rows and columns of a matrix in order to make their infinity norms approach one. By default, QPDO performs 10 scaling iterations. Slightly different routines are adopted, e.g., in [59, Sect.5.1] and [51, Sect.5.1.2]. Note that, by default, if the problem is initially scaled, the termination conditions for optimality and infeasibility refer to the original, unscaled, problem. (27a) ‖ 𝐀 ⊤ 𝛥𝐲 k‖∞ ≤𝜀 pinf‖ 𝛥𝐲 k‖∞, (27b) 𝐮⊤ max(𝐲 k ,𝟎)+𝐥 ⊤ min(𝐲 k ,𝟎)≤−𝜀 pinf‖ 𝛥𝐲 k‖∞, (28a) ‖𝐐𝛥𝐱k‖∞ ≤ 𝜀dinf‖𝛥𝐱k‖∞, (28b) 𝐪⊤𝛥𝐱k ≤ −𝜀dinf‖𝛥𝐱k‖∞, (28c) ( 𝐀𝛥𝐱k)i ⎧ ⎪ ⎨ ⎪ ⎩ ∈ [−𝜀dinf,𝜀dinf]‖𝛥𝐱k‖∞𝐮i,𝐥i∈ℝ, ≥−𝜀dinf ‖ 𝛥𝐱k ‖ ∞𝐮i= +∞, ≤𝜀dinf ‖ 𝛥𝐱k ‖ ∞𝐥i= −∞, ,i∈[1;m] ,
386 A.De Marchi 1 3 7 Numerical results We discuss details of our open-source C implementation of QPDO and present computational results on random problems and the Maros-Mészáros set [39]. We test and compare QPDO against the open-source, full-fledged solvers OSQP [59] and QPALM [33, 34], and the commercial interior-point solver MOSEK [43]. Indeed, “the construction of appropriate software is by no means trivial and we wish to make a thorough job of it” [14]; we plan to improve our current implementation, in particular the linear solver discussed in Sect. 6.1, and to report comprehensive numerical results in due time. 7.1 Setup We consider the tolerance 𝜀opt =10 −5 , and set the tolerances for all the solvers accordingly. In addition, we set the maximum run time of each solver to 100s and no limit on the maximum number of iterations. We leave all the other settings to the internal defaults. It is worth mentioning that, since no initial guess is provided, QPDO, OSQP, and QPALM start with 𝐯0=𝟎 . In general it is hard to compare the solution accuracy because the solvers may verify different termination criteria. While QPDO, QPALM and OSQP monitor the residual 𝐫 in (4) and check the condition ‖𝐫(𝐯⋆)‖∞ ≤ 𝜀opt , MOSEK satisfies the complementarity slackness with different metrics and scalings. Therefore, we decided not to include checks on ‖𝐫(𝐯⋆)‖∞ . Instead, we deem optimal a primal-dual pair 𝐯⋆ if it is returned by a solver declaring success, otherwise we consider it a failure. All the experiments were carried out on a desktop running Ubuntu 16.04 LTS with Intel Core i7-8700, 3.20 GHz, and 16 GB RAM. The code for all the numerical examples is available online at [16]. Metrics Let S, P, and ts,p denote the set of solvers, the set of problems, and the time required for solver s∈S to return a solution for problem p∈P . The shifted geometric mean (sgm) t s of the run times for solver s∈S on P is defined by with the shift tshift =1 s [41]. Here, when solver s fails to solve problem p, ts,p is set to the time limit. We also adopt performance profiles [18] to compare the solver timings. These plot the function fr s∶ℝ → [0, 1] , s∈S , defined by Considering ts,p= +∞ when solver s fails on problem p, fr s(𝜏) is the fraction of problems solved by solver s within 𝜏 times the best timing. Note that, although we cannot necessarily assess the performance of one solver relative to another with ts∶= exp ( 1 | P |∑ p∈P ln ( ts,p+tshift )) −t shift fr s(𝜏)∶= | {p∈P∶ts,p≤𝜏t min p} | |P| ,tmin p∶= min s∈Sts,p .
387 1 3 On aprimal‑dual Newton proximal method forconvex quadratic… performance profiles, they still represent a tool for evaluating and comparing the performance of a solver with respect to the best one [30]. However, performance profiles do not provide the percentage of problems that can be solved (for some given tolerance 𝜀opt ) within a given time t. Thus, on the vein of data profiles [42, Sect.2.2], we plot the function fa s∶ℝ → [0, 1] , s∈S , defined by Considering ts,p= +∞ when solver s fails on problem p, fa s(t) is the fraction of problems solved by solver s within the time t. Note that, in contrast to fr s , the time profile t↦fa s(t) is independent from other solvers and displayed with the actual timings of s. 7.2 Random problems We considered QPs in the form (1) with randomly generated problem data. In each problem instance, the number of variables is n=⌈10a⌉ , with a uniformly distributed, and ranges between 102 and 103 , i.e., a∼U(2, 3) . The number of constraints is m=⌈bn⌉ , with b∼U(2, 5) . The linear cost is normally distributed, i.e., 𝐪i∼N(0, 1) . The cost matrix is 𝐐=𝐏𝐏⊤+𝛼𝐈n , where 𝐏∈ℝn×n has 10% nonzero entries 𝐏ij ∼N( 0, 1 ) , and 𝛼=10−6 . The constraint matrix 𝐀∈ℝm×n contains 10% nonzero entries 𝐀ij ∼N( 0, 1 ) . The bounds are uniformly distributed, i.e., 𝐥i∼U(−1, 0) and 𝐮i∼U(0, 1) . We also investigated equality-constrained QPs. For these problems, m=⌈n∕b⌉ , with b∼U(2, 5) , and 𝐥=𝐮=𝐀 𝐱 , where 𝐱i∼N(0, 1) . We generated 500 instances of each problem class. Results Computational results are summarized in Table1 and shown in Figs.1, 2. Both performance and time profiles suggest that, for random QPs, QPALM exhibits the best performance, with OSQP slightly slower and QPDO third. For equality-constrained QPs, instead, OSQP performs best with QPALM and QPDO slightly behind. MOSEK is generally slower than the other solvers and, for random fa s(t)∶= |{p∈P∶t s,p ≤t}| |P|. 124816 0 0.2 0.4 0.6 0.8 1 Performance ratio Fraction of problems solved Random QPs 124816 0 0.2 0.4 0.6 0.8 1 Performanceratio Random Eq. QPs QPDO QPALM OSQP MOSEK Fig. 1 Comparison on random problems with performance profiles
388 A.De Marchi 1 3 QPs, it often declares success with a solution that does not satisfy the condition ‖𝐫(𝐯⋆)‖∞ ≤ 𝜀opt . 7.3 Maros‑Mészáros problems We considered the Maros-Mészáros test set [39] of hard QPs and selected those with n≤103 , due to the limitations mentioned in Sect.6.1. This yields 73 problems, with 2≤n≤1000 , 3≤m≤1750 , and the number of nonzeros 6≤N≤22292 . Results Computational results are summarized in Tables 1, 2 and shown in Figs. 3, 4. On this test set, QPDO demonstrates its robustness, solving all the problems. OSQP is very fast for some problems but has a high failure rate; it fails on 5 of the 20 problems reported in Table2. As a first-order method, OSQP builds upon computationally cheap iterations, but it may take many to cope with illconditioning and the relatively high accuracy requirements. QPALM is still competitive but fails on the VALUES problem, due to linear algebra issues. MOSEK seems to perform better than the other solvers on the larger problems, but it often does not satisfy the condition ‖𝐫(𝐯⋆)‖∞ ≤ 𝜀opt , and fails on many problems. Overall, this proves QPDO is both reliable and effective. 0.001 0.01 0.11 0 0.2 0.4 0.6 0.8 1 Run time [ s ] Fraction of problems solved Random QPs 0.001 0.01 0. 11 0 0.2 0.4 0.6 0.8 1 Run time [ s ] Random Eq.QPs QPDO QPALM OSQP MOSEK Fig. 2 Comparison on random problems with time profiles 110 100 1,000 10,000 0 0.2 0.4 0.6 0.8 1 Performance ratio Fraction of problems solv ed QPDO QPALM OSQP MOSEK Fig. 3 Comparison on Maros-Mészáros problems with performance profiles
389 1 3 On aprimal‑dual Newton proximal method forconvex quadratic… 7.4 Degenerate andinfeasible problems Consider the following parameterized QP, adapted from [37, Sect.5.4]: By varying a, b and c, we can create degenerate or infeasible test problems. First, we consider the degenerate problem obtained by setting a=0 , b=3 , and c=0 . This problem admits primal solutions 𝐱⋆∈ {(1, 𝛼)∣1≤𝛼≤3} . Running with default settings, QPDO signals optimality after 6 proximal iterations and 14 Newton iterations, and returns 𝐱=(1.0, 1.0) , 𝐲=(0.0, −2.0, 0.0) , with residual ‖ 𝐫(𝐯) ‖∞ =1.0 ⋅ 10 −7 . Second, we consider a primal infeasible QP by setting a=1 , b=3 and c=0 . QPDO signals primal infeasibility after 3 proximal iteration and 8 Newton iterations, and returns the certificate 𝛥𝐲=(6.6, −6.6, −6.6)⋅104 . Finally, we consider a dual infeasible QP by setting a=0 , b= +∞ and c=−1 . For such problem, (0,1) is a direction of unbounded descent. QPDO signals dual min 𝐱 1 2 𝐱⊤ � 10 00 � 𝐱+ � 1 c �⊤ 𝐱 s .t. ⎛⎜⎜⎝ −∞ 1 1 ⎞⎟⎟⎠ ≤ ⎡⎢⎢⎣ aa 10 01 ⎤⎥⎥⎦ 𝐱≤ ⎛⎜⎜⎝ 0 3 b ⎞⎟⎟⎠ . Table 1 Comparison on different problem classes with run times, as shifted geometric means (sgm), and failure rates QPDO QPALM OSQP MOSEK Random QPs Run times (sgm) [s] 0.136 0.099 0.116 0.229 Failure rates [ % ] 0 0 0 0 Random Eq. QPs Run times (sgm) [s] 0.065 0.058 0.044 0.210 Failure rates [ % ] 0 0 0 2.400 Maros-Mészáros Run times (sgm) [s] 0.074 0.119 2.993 1.594 Failure rates [ % ] 0 1.370 23.288 20.548 0.00001 0.0001 0.001 0.01 0.1110 100 0 0.2 0.4 0.6 0.8 1 Run time [ s ] Fractionof problems solved QPDO QPALM OSQP MOSEK Fig. 4 Comparison on Maros-Mészáros problems with time profiles
390 A.De Marchi 1 3 infeasibility after 5 proximal iterations and 12 Newton iterations, and returns the certificate 𝛥𝐱=(1.1 ⋅10−5, 1.0 ⋅107) . 8 Conclusions This paper presented a primal-dual Newton-type proximal method for convex quadratic programs. We build upon a simple yet crucial result: a suitable merit function for the proximal sub-problem is found in the proximal primal-dual augmented Lagrangian function. This allows us to effectively weave the proximal point method together with semismooth Newton, yielding structured symmetric linear systems, exact linesearch, and the possibility to apply sparse multi-rank factorization updates. Requiring only convexity, the method is simple and easily warm started, can exploit sparsity, is robust to early termination, and can detect infeasibility. We have implemented our method QPDO in a general-purpose solver, written in open-source C code. We benchmarked it against state-of-the-art Table 2 Comparison on the larger Maros-Mészáros problems ( N≥5000 ) with KKT residual and run time for QPDO, QPALM, and MOSEK Problem n m N Residual ‖ 𝐫 ( 𝐯 )‖∞ Run time [s] QPDO QPALM MOSEK QPDO QPALM MOSEK CVXQP1M 1000 1500 9466 1.7·10 −6 4.4·10 −6 1.0·10 −1 2·10 −1 2·10 −1 1·10 −1 CVXQP2M 1000 1250 8717 2.7·10 −6 6.2·10 −6 5.3·10 −1 2·10 −1 3·10 −1 2·10 −1 CVXQP3M 1000 1750 10215 2.0·10 −6 1.1·10 −6 6.7·10 −1 3·10 −1 3·10 −1 2·10 −1 DUAL1 85 86 7201 8.0·10 −6 5.9·10 −7 1.4·10 −6 2·10 −3 1·10 −3 4·10 −3 DUAL2 96 97 9112 2.6·10 −6 2.6·10 −6 5.3·10 −8 1·10 −3 9·10 −4 6·10 −3 DUAL3 111 112 12327 1.3·10 −6 9.7·10 −7 4.4·10 −4 2·10 −3 1·10 −3 9·10 −3 DUAL4 75 76 5673 2.6·10 −6 3.6·10 −6 8.4·10 −5 1·10 −3 7·10 −4 5·10 −3 KSIP 20 1001 18871 2.9·10 −6 3.5·10 −6 9.2·10 −6 6·10 −3 6·10 −3 10·10 −3 PRIMAL1 325 86 6140 6.9·10 −7 3.6·10 −8 4.8·10 −9 2·10 −2 9·10 −3 1·10 −2 PRIMAL2 649 97 8691 3.9·10 −7 2.6·10 −6 1.0·10 −6 5·10 −2 3·10 −2 7·10 −3 PRIMAL3 745 112 22292 2.0·10 −7 7.4·10 −6 2.1·10 −6 2·10 −1 8·10 −2 2·10 −2 PRIMALC8 520 511 5182 1.6·10 −7 2.5·10 −7 8.2·10 −8 4·10 −2 2·10 −2 4·10 −3 QETAMACR 688 1088 11613 1.7·10 −6 1.3·10 −6 2.3·10 −3 7·10 −1 2·10 −1 3·10 −2 QFFFFF80 854 1378 10635 9.8·10 −7 8.6·10 −7 1.5·10 −1 6·10 −1 5·10 −1 7·10 −2 QFORPLAN 421 582 6112 4.0·10 −6 8.2·10 −7 7.4·10 6 7·10 −1 3·10 −1 3·10 −2 QGROW15 645 945 7227 7.4·10 −6 4.0·10 −7 7.4·10 −2 9·10 −2 2·10 −1 3·10 −2 QGROW22 946 1386 10837 3.7·10 −7 3.1·10 −6 9.5·10 −2 2·10 −1 3·10 −1 4·10 −2 QSCFXM2 914 1574 8285 4.0·10 −6 6.2·10 −6 4.6·10 −1 4·10 −1 3·10 −1 4·10 −2 QSTAIR 467 817 6287 5.0·10 −6 9.8·10 −7 4.5 6·10 −2 10·10 −2 2·10 −2 VALUES 202 203 7846 1.4·10 −6 NaN NaN 1·10 −2 1·10 2 4·10 −4
391 1 3 On aprimal‑dual Newton proximal method forconvex quadratic… QP solvers, comparing run times and failure rates. QPDO proved reliable, effective, and competitive. Appendix A: Primal‑dual proximal augmented Lagrangian function We show that the merit function M in (15) for the sub-problem (14) is indeed the primal-dual proximal augmented Lagrangian function, proposed and investigated in [17, 27, 54]. Let us reformulate (1) as the equivalent problem where 𝐱∈ℝn and 𝐳∈ℝm are decision variables. The Lagrangian Lz , the augmented Lagrangian Lz 𝜇 , and the primal-dual augmented Lagrangian Mz 𝜇 functions for (29) are given by for some given parameter 𝜇>0 and dual estimate 𝐲∈ ℝ m ; cf. [7, 14] and [27, 54]. Introducing a primal proximal regularization, we define for some given parameter 𝜎>0 and primal estimate 𝐱∈ ℝ n . In the context of primal-dual augmented Lagrangian methods, the function Mz 𝜇,𝜎 is to be jointly minimized with respect to 𝐱 , 𝐳 , and y [27, 54]. Following [17], we consider the explicit minimization over the auxiliary variable 𝐳 . The minimizer 𝐳𝜇 of Mz 𝜇,𝜎 in (30) is readily obtained as Considering Mz 𝜇,𝜎 on the manifold defined by 𝐳𝜇 in (31), we get the primal-dual proximal augmented Lagrangian function M𝜇,𝜎 . This yields (29) min 𝐱,𝐳f(𝐱)+g(𝐳)s.t.𝐀𝐱 =𝐳, L z (𝐱,𝐳,𝐲)∶=f(𝐱)+g(𝐳)+𝐲 ⊤ (𝐀𝐱 −𝐳), Lz 𝜇(𝐱,𝐳,𝐲)∶=Lz(𝐱,𝐳,𝐲)+ 1 2𝜇‖𝐀𝐱 −𝐳‖2, M z 𝜇(𝐱,𝐳,𝐲,𝐲)∶=Lz 𝜇(𝐱,𝐳,𝐲)+ 1 2𝜇‖ 𝐳−𝐀𝐱 +𝜇(𝐲−𝐲) ‖ 2 , (30) M z 𝜇,𝜎(𝐱,𝐳,𝐲,𝐱,𝐲)∶=Mz 𝜇(𝐱,𝐳,𝐲,𝐲)+ 𝜎 2‖ 𝐱−𝐱 ‖2 (31) 𝐳𝜇 ( 𝐱,𝐲,𝐲 )∶= arg min𝐳 Mz 𝜇,𝜎 ( 𝐱,𝐲,𝐳,𝐱,𝐲 ) = arg min𝐳�g(𝐳)+𝐲⊤(𝐀𝐱 −𝐳)+ 1 2𝜇‖𝐀𝐱 −𝐳‖2+1 2𝜇‖𝐳−𝐀𝐱 +𝜇(𝐲−𝐲)‖2 � =arg min𝐳�g(𝐳)+ 1 2𝜇‖𝐀𝐱 −𝐳+𝜇𝐲‖2+1 2𝜇‖𝐳−𝐀𝐱 +𝜇(𝐲−𝐲)‖2 � =arg min𝐳�g(𝐳)+ 1 𝜇 ‖ 𝐳−𝐀𝐱 −𝜇(𝐲−𝐲∕2) ‖ 2+𝜇 4 ‖ 𝐲 ‖ 2−𝜇 2 ‖ 𝐲 ‖ 2 � =Π C � 𝐀𝐱 +𝜇(𝐲−𝐲∕2) �.
392 A.De Marchi 1 3 which matches Mk in (15), up to the constant term −𝜇‖𝐲‖2∕2 . Appendix B: Exact linesearch coefficients We prove that the right-hand side of (22) coincides with 𝜓� k(𝜏) for all 𝜏∈ℝ , with the coefficients given in (23). Let 𝐰k∶=𝐀𝐱 +𝜇k(𝐲k−𝐲∕2) and 𝛿𝐰k∶=𝐀𝛿𝐱−𝜇k𝐲∕2 ; cf. (23). Then, from (15), we have Supplementary Information The online version contains supplementary material available at https:// doi. org/ 10. 1007/ s10589- 021- 00342-y. Acknowledgements This work would not have been possible without the support and enthusiasm of my supervisor, Matthias Gerdts. The author would like to thank Axel Dreves, whose comments on an early draft greatly improved the presentation. The two anonymous reviewers are thanked for critically reading the manuscript and providing comments. Funding Open Access funding enabled and organized by Projekt DEAL. Not applicable. Availability of data and material The datasets used, generated, and analyzed during the current study, as well as the associated code for execution and analysis, are available at https:// doi. org/ 10. 5281/ zenodo. 47567 20. Code availability The C code implementation of the solver is openly available on GitHub at https:// github. com/ aldma/ qpdo. Declaration Competing interests The author declares that he has no conflict of interest. M 𝜇,𝜎 (𝐯 , 𝐯)∶=Mz 𝜇,𝜎 (𝐱 , 𝐳 𝜇 (𝐱 , 𝐲 , 𝐲) , 𝐲 , 𝐱 , 𝐲) =f(𝐱)+ 1 𝜇‖𝐳𝜇(𝐱,𝐲,𝐲)−𝐀𝐱 −𝜇(𝐲−𝐲∕2)‖2+𝜇 4‖𝐲‖2−𝜇 2‖𝐲‖2+𝜎 2‖𝐱−𝐱‖ 2 =f(𝐱)+ 1 𝜇 dist2 C�𝐀𝐱 +𝜇(𝐲−𝐲∕2)�+𝜎 2 ‖ 𝐱−𝐱 ‖ 2+𝜇 4 ‖ 𝐲 ‖ 2−𝜇 2 ‖ 𝐲 ‖ 2, 𝜓� (𝜏)=𝛿𝐯 ⊤ ∇M(𝐯+𝜏𝛿𝐯) =�𝛿𝐱 𝛿𝐲�⊤⎛⎜⎜⎝ 𝐐(𝐱+𝜏𝛿𝐱)+𝐪+2 𝜇k 𝐀⊤�𝐰k+𝜏𝛿𝐰k −ΠC�𝐰k+𝜏𝛿𝐰k��+𝜎k(𝐱+𝜏𝛿𝐱−𝐱k) −�𝐀(𝐱+𝜏𝛿𝐱)+𝜇k(𝐲k−𝐲−𝜏𝛿𝐲)−Π C�𝐰k+𝜏𝛿𝐰k��⎞⎟⎟⎠ =𝛿𝐱⊤�𝐐𝐱 +𝐪+𝜎k(𝐱−𝐱k)�+𝜇k 2𝛿𝐲⊤𝐲+𝜏𝛿𝐱⊤�𝐐+𝜎k𝐈�𝛿𝐱+𝜏𝜇k 2𝛿𝐲⊤𝛿 𝐲 +�2 𝜇k 𝐀𝛿𝐱−𝛿𝐲�⊤�𝐰k+𝜏𝛿𝐰k−Π C�𝐰k+𝜏𝛿𝐰k�� =𝛼k𝜏+𝛽k+2 𝜇 k 𝛿𝐰⊤ k � 𝐰k+𝜏𝛿𝐰k−Π C � 𝐰k+𝜏𝛿𝐰k �� .