A multigrid solver for PDE-constrained optimization with uncertain inputs
Gabriele Ciaramella, Fabio Nobile, Tommaso Vanzan

TL;DR
This paper introduces a multigrid solver tailored for large saddle-point systems in PDE-constrained optimization under uncertainty, demonstrating optimal complexity and robustness across various problem types.
Contribution
The paper develops a novel collective multigrid algorithm with convergence analysis, enabling efficient solutions of large saddle-point systems in uncertain PDE-constrained optimization.
Findings
Optimal $O(N)$ complexity for reduced saddle-point systems
Effective as a solver and preconditioner in diverse PDE optimization problems
Robust performance across different problem settings
Abstract
In this manuscript, we present a collective multigrid algorithm to solve efficiently the large saddle-point systems of equations that typically arise in PDE-constrained optimization under uncertainty, and develop a novel convergence analysis of collective smoothers and collective two-level methods. The multigrid algorithm is based on a collective smoother that at each iteration sweeps over the nodes of the computational mesh, and solves a reduced saddle-point system whose size is proportional to the number of samples used to discretized the probability space. We show that this reduced system can be solved with optimal complexity. The multigrid method is tested both as a stationary method and as a preconditioner for GMRES on three problems: a linear-quadratic problem, possibly with a local or a boundary control, for which the multigrid method is used to solve directly the…
| It. | 18 11 | 19 13 | 19 15 | 19 15 |
|---|
| It. | 17 11 | 20 13 | 26 16 | 26 18 |
|---|
| It. | 17 14 | 22 15 | 23 17 | 21 16 |
|---|
| 0.1 | 0.5 | 1 | 1.5 | |
|---|---|---|---|---|
| It. | 4 22.5 14 | 5 22.6 14.2 | 8 23.0 11.8 | 14.9 22.9 15.0 |
| It. | 2 23.0 14.5 | 5 22.7 14.2 | 17 25.6 15.0 | 50 41.4 17.2 |
|---|---|---|---|---|
| It. | 2 23.0 14.5 | 4 22.7 14.2 | 5 22.25 15.4 | 8 58.8 20.9 |
| () | 161 (2) | 705 (3) | 2945 (4) |
|---|---|---|---|
| It. | 5 62 23.0 13.9 | 6 79 28.0 15.5 | 6 79 26.2 14.8 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Numerical Methods in Computational Mathematics · Matrix Theory and Algorithms · Sparse and Compressive Sensing Techniques
\jyear
2023
[2]Tommaso Vanzan
1]\orgdivMOX, Dipartimento di Matematica, \orgnamePolitecnico di Milano, \countryItaly
[2]\orgdivCSQI Chair, Institute of Mathematics, \orgnameEcole Polytecnique Fédérale de Lausanne, \countrySwitzerland
A multigrid solver for PDE-constrained optimization with uncertain inputs
Gabriele Ciaramella
Fabio Nobile
[
Abstract
We present a multigrid algorithm to solve efficiently the large saddle-point systems of equations that typically arise in PDE-constrained optimization under uncertainty. The algorithm is based on a collective smoother that at each iteration sweeps over the nodes of the computational mesh, and solves a reduced saddle-point system whose size is proportional to the number of samples used to discretized the probability space. We show that this reduced system can be solved with optimal complexity.
We test the multigrid method both as a stationary method and as a preconditioner for GMRES on three problems: a linear-quadratic problem, possibly with a local or a boundary control, for which the multigrid method is used to solve directly the linear optimality system; a nonsmooth problem with box constraints and -norm penalization on the control, in which the multigrid scheme is used as an inner solver within a semismooth Newton iteration; a risk-adverse problem with the smoothed CVaR risk measure where the multigrid method is called within a preconditioned Newton iteration. In all cases, the multigrid algorithm exhibits excellent performances and robustness with respect to the parameters of interest.
keywords:
multigrid, optimization under uncertainty, random PDEs
pacs:
[
MSC Classification]65M55 - 65F10 - 65K10 - 49J55
1 Introduction
In this work, we present a multigrid method to solve the saddle point system
[TABLE]
where , has the block structure
[TABLE]
and all submatrices involved represent the discretization of some differential operators. More details on each block are provided in Section 2. Matrices such as (2) are often encountered while solving PDE-constrained optimization problems under uncertainty of the form
[TABLE]
where is the unknown deterministic control, is the state variable which satisfies a random PDE constraint expressed by for almost every realization of the randomness, is a real-valued quantity of interest (cost functional) and is a risk measure. The vectors and are the discretizations of the state and adjoint variables and at the samples in which the random PDE constraint is collocated. The vector is the discretization of the deterministic control . Problems of the form (3) are increasingly employed in applications. The PDE constraints typically represent some underlying physical model whose behaviour should be optimally controlled, and the randomness in the PDE allows one to take into account the intrisinc variability or lack of knowledge on some parameters entering the model. The introduction of a risk measure in (3) allows one to construct robust controls that take into account the distribution of the cost over all possible realizations of the random parameters. Therefore, the topic has received a lot of attention in the last years, see, e.g. kouri2018optimization ; Kouri_Cvar ; martinez2018optimal ; doi:10.1137/19M1294952 ; geiersbach2020stochastic ; antil2021ttrisk ; nobile_vanzan2 ; eigel2018risk ; ASADPOURE20111131 .
However, few works have focused on efficient solvers for the optimality systems (1). A popular approach is to perform a Schur complement on and solve the reduced system with a Krylov method (possibly with Conjugate Gradient), despite each iteration would then require the solution of PDEs, with and for Kourisparse . For a full-space formulation, block diagonal preconditioners have been proposed in Kouri2018 and analyzed in nobile_vanzan , using both an algebraic approach based on Schur complement approximations and an operator preconditioning framework.
In this manuscript, we present a multigrid method to solve general problems of the form (1) and show how this strategy can be used for the efficient solution of three different Optimal Control Problems Under Uncertainty (OCPUU). First, we consider a linear-quadratic OCPUU and use the multigrid algorithm directly to solve the linear optimality system. Second, we consider a nonsmooth OCPUU with box constraints and regularization on the control. To solve such problem, we use the collective multigrid method as an inner solver within an outer semismooth Newton iteration. Incidentally, we show that the theory developed for the deterministic OCPs with regularization can be naturally extended to the class of OCPUU considered here. Third, we study a risk-adverse OCPUU involving the smoothed Conditional Value at Risk (CVaR) and test the performance of the multigrid scheme in the context of a nonlinear preconditioned Newton method.
The multigrid algorithm is based on a collective smoother borzi2005multigrid ; borzi2009multigrid ; takacs2011convergence that, at each iteration, loops over all nodes of the computational mesh (possibly in parallel), collects all the degrees of freedom related to a node, and updates them collectively by solving a reduced saddle-point problem. For classical (deterministic) PDE-constrained optimization problems with a distributed control, this reduced system has size , thus its solution is immediate borzi2009multigrid . In our context, the reduced problem has size , which can be large when dealing with a large number of samples. Fortunately, we show that it can be solved with optimal complexity. Let us remark that collective multigrid strategies have been applied to OCPUU in Borzi ; Borzi2 and in rosseel2012optimal . This manuscript differs from the mentioned works since, on the one hand, Borzi ; Borzi2 considers a stochastic control , therefore for (almost) every realization of the random parameters a different control is computed through the solution of a standard deterministic OCP. On the other hand, rosseel2012optimal considers a stochastic Galerkin discretization, and hence the correspoding optimality system has a structure which is very different from (2).
The multigrid algorithm presented here assumes that all state and adjoint variables are discretized on the same finite element mesh. The control can instead live on a subregion of the computational mesh, so that the algorithm is applicable also to optimization problems with local or boundary controls.
Finally, we remark that the multigrid solver proposed is based on a hierarchy of spatial discretizations corresponding to different levels of approximation, but the discretization of the probability space remains fixed, that is, the number of samples remains constant across the multigrid hierarchy. The extension of the multigrid algorithm to coarsening procedures also in the probability space will be the subject of future endeavours. We hint at possible approaches and challenges in Section 3 (see Remark 1). Nevertheless, we stress that the multigrid algorithm can already be incorporated within outer optimization routines that take advantange of different levels of approximations of the probability space, see, e.g., Kourisparse ; kouri2014multilevel ; nobile_vanzan2 .
The rest of the manuscript is organized as follows. In Section 2 we introduce the notation, a classical linear-quadratic OCPUU, and interpret (2) as the matrix associated to the optimality system of a discretized OCPUU. In Section 3, we present the collective multigrid algorithm, discuss implementation details and show its performance to solve the linear-quadratic OCPUU. In Section 4, we consider a nonsmooth OCPUU with box constraints and a regularization on the control. Section 5 deals with a risk-adverse OCPUU. For each of these cases, we first show how the multigrid approach can be integrated into the solution process, by detailing concrete algorithms, and then we present extensive numerical experiments to show the efficiency of the proposed framework. Finally, we draw our conclusions in Section 6.
2 A linear-quadratic optimal control problem under uncertainty
Let be a Lipschitz bounded domain, a Sobolev space (e.g. equipped with suitable boundary conditions), and a complete probability space. Given a function belonging to a Hilbert space , we consider the linear elliptic random PDE
[TABLE]
where is a bilinear form and denotes the duality between and . is a continuous control operator allowing possibly for a local control (i.e. a control acting only on a subset or a boundary control (i.e. a control acting as Neumann condition on a subset of ). To assure uniqueness and sufficient integrability of the solution of (4), we make the following additional assumption.
Assumption 1**.**
There exist two random variables and such that
[TABLE]
and further and are in for some .
Under Assumption 1, it is well-known (see, e.g., lord_powell_shardlow_2014 ; Scheichl ) that (4) admits a solution in for , and the solution , interpreted as a function-valued random variable , lies in the Bochner space , , cohn2013measure . We often use the shorthand notation when the dependence on is not needed, or if we wish to highlight the dependence on the control function .
In this manuscript, we consider the minimization of functionals constrained by (4). Let us first focus on the linear-quadratic problem
[TABLE]
where is a target state, , is the expectation operator, , and is the embedding operator from to . Introducing the linear control-to-state map , the reduced formulation of (5) is
[TABLE]
Existence and uniqueness of the minimizer of (6) follows directly from standard variational arguments lions1971optimal ; hinze2008optimization ; troltzsch2010optimal ; kouri2018optimization . Furthermore, due to Assumption 1, the optimal control satisfies the variational equality
[TABLE]
where is the Riesz operator of . The adjoint operator is characterized by where is the solution of the adjoint equation
[TABLE]
The optimality condition (7) can thus be formulated as the optimality system
[TABLE]
To solve numerically (5), we replace the exact expectation operator of the objective functional by a quadrature formula with nodes and positive weights , namely
[TABLE]
Common quadrature formulae are Monte Carlo, Quasi-Monte Carlo and Gaussian formulae. The latter requires that the probability space can be parametrized by a sequence (finite or countable) of random variables , each with distribution , and the existence of a complete basis of tensorized -orthonormal polynomials. Hence for the semi-discrete OCP, the -a.e. PDE-constraint is naturally collocated onto the nodes of the quadrature formula.
Concerning the space domain, we consider a family of regular triangulations of , and a Galerkin projection onto a conforming finite element space of continuous piecewise polynomial functions of degree over . is the dimension of and is a nodal Lagrangian basis. We discretize the state and adjoint variables on the same finite element space. The control variable is discretized on the finite element space , where is possibly strictly smaller than in case of a local or a boundary control.
Once fully discretized, (9) can be expressed as
[TABLE]
where are the stiffness matrices associated to the bilinear forms , and are mass matrices corresponding to the finite element spaces and , is the discretization of the control operator, and are the finite element discretizations of and respectively, while and are the discretizations of and . Notice that the matrix in (10) could be symmetrized by multipling the first and the last rows by the weights . This would be also consistent with the theoretical interpretation of the blocks of the saddle point system as discretizations of continuous inner products. From the numerical point of view, we have not observed relevant advantanges in maintaining the weights. Since for more general problems (see, e.g., Sec. 4) the symmetry of the saddle point system cannot be recovered by multiplying some equations by the quadrature weights, we omit them in our discussion.
3 Collective multigrid scheme
In this section, we describe the multigrid algorithm to solve the full space optimality system (10). First, we consider a distributed control, so that lives on the whole computational mesh and . Local and boundary controls are discussed at the end of the section. Second, for the sake of generality, we consider the more general matrix (2), so that our discussion covers also the different saddle-point matrices obtained in Sections 4 and 5.
For each node of the triangulation, let us introduce the vectors and ,
[TABLE]
which collect the degrees of freedom associated to the -th node, the scalar , and the restriction operators such that
[TABLE]
The prolongation operators are , while the reduced matrices represent a condensed saddle-point matrix on the -th node, and satisfy
[TABLE]
with , , , , where denotes a diagonal matrix with the components of on the main diagonal.
Given an initial vector , a Jacobi-type collective smoothing iteration computes for ,
[TABLE]
where is a damping parameter. Gauss-Seidel variants can straightforwardly be defined. Next, we consider a sequence of meshes , which we assume for simplicity to be nested, and restriction and prolongator operators , which map between grids and . In the numerical experiments, the coarse matrices are defined recursively in a Galerkin fashion starting from the finest one, namely for . Nevertheless it is obviously possible to define as the discretization of the continuous saddle-point system onto the mesh . With this notation, the V-cycle collective multigrid is described by Algorithm 1, which can be repeated until a certain stopping criterium is satisfied. We used the notation Collective_Smoothing to denote possible variants of (12) (e.g. Gauss-Seidel).
Notice that (12) requires to invert the matrices for each computational node. We now show that this can be done with optimal complexity. Indeed, performing a Schur complement on , the system , with can be solved exclusively computing inverses of diagonal matrices and scalar products between vectors through
[TABLE]
Notice that we should guaranteee that admits an inverse and that . This has to be verified case by case, so we now focus on the specific matrix (10). On the one hand, the vectors are strictly positive componentwise, since , (due to Assumption 1). On the other hand, , while a direct calculation shows that
[TABLE]
which implies that the denominator in the first equation of (13) is strictly positive.
The collective smoother can be easily adjusted to accomodate local or boundary controls as discussed in borzi2003multigrid for deterministic OCPs. For all nodes for which a control basis function is present, the smoothing procedure remains that of (13). For all others computational nodes for which there is not a control basis function associated, the smoothing procedure becomes
[TABLE]
which is consistently obtained from (13) setting .
To conclude this section we remark that, if the V-cycle algorithm requires a constant number of iterations to reach a given tolerance as both , and the number of levels increase (so that the size of the coarse problem becomes neglegible in the limit), Algorithm 1 exhibits an overall optimal linear complexity since asymptotically the cost of each iteration is dominated by the relaxation steps, each of a cost proportional to due to the above discussion. In the next numerical experiments sections, we show indeed that the number of iterations remain constant for several test cases.
Remark 1** (Extension to a hierarchy of samples).**
*The multigrid algorithm presented is based on a hierarchy of spatial discretizations. However, the sample to discretize the probability space remains fixed among the levels. If one relies on the stochastic collocation method to discretize the probability space, it is possible to envisage a multigrid algorithm that also involves a coarsening of the sample size, since for each sample one could consider the associated stable interpolator which can then be evaluated onto a coarser or finer set of samples. Nevertheless, it is not clear at the moment the interplay between the smoothing and coarsening procedures, which is key for the efficient behaviour of a multigrid scheme. Future endeavours will investigate this interesting direction. For the rest of the manuscript we restrict oursevels to a hierarchy of spatial discretizations since on the one hand, the multigrid algorithm can already be embedded in other outer optimization algorithms that involve a hierarchy of samples Kourisparse ; kouri2014multilevel ; nobile_vanzan2 ; van2019robust . On the other hand, the reduced system can be solved with optimal linear complexity, so that a coarsening in the number of samples may be superfluous. *
3.1 Numerical experiments
We now show the performance of Alg. 1 and its robustness with respect to several parameters for the solution of (10). We first consider the state equation
[TABLE]
in the L-shaped domain discretized with a regular mesh of squares of edge , which are then decomposed into two right triangles. We choose as an approximated log-normal diffusion field
[TABLE]
where is a mean zero Gaussian field with Covariance function . The parameter tunes the variance of the random field, while denotes the correlation length. The pairs are the eigenpairs of , , and . Assumption 1 is satisfied since and are in for every Charrier . The target state is .
Table 1 shows the number of V-cycle iterations (Alg. 1) and of GMRES iterations preconditioned by the V-cycle to solve (10) up to a tolerance of on the relative (unpreconditioned) residual. Inside the V-cycle algorithm, we use pre- and post-smoothing iterations based on the Jacobi relaxation (12) with a damping parameter (the same value will be used for all numerical experiments in this manuscript). The number of levels of the V-cycle hierachy is denoted with .
The first four subtables are based on a discretization of the probability space using the Stochastic Collocation method babuvska2010stochastic on Gauss-Hermite tensorized quadrature nodes, since for , setting into (16) is enough to preserve of the variance. Remark that the multigrid algorithm has a perfect robustness with respect to all parameters considered. In particular, the convergence does not deteriorate as , which is a well-known troublesome limit for several preconditioners (see, e.g., nobile_vanzan ; rees2010optimal ; pearson2012new ; ciaramella2022iterative and references therein). Further, the third sub-table shows the robustness of the algorithm with respect to the number of levels as the fine grid is refined. The fourth sub-table instead shows that the number of iteration remains constant as the discretization of the probability space is refined. As a complementary experiment, we set and use the Monte Carlo method, since we need to preserve of the variance of the random field, and the Stochastic Collocation method suffers from the curse of dimensionality. The fifth subtable confirms the robustness of the algorithm even for much larger numbers of samples.
Next, we consider the unit square domain and a local control acting on the subset , and a Neumann boundary control acting on . Tables 2 and 3 report the performances of the multigrid algorithm for these two cases. We stress once more the excellent robustness and efficiency of the multigrid algorithm in all regimes.
4 An optimal control problem under uncertainty with box-constraints and penalization
In this section, we consider the nonsmooth OCPUU111To keep a light notation, we omitted the continuous embedding operator from to and from to , see Section 2 and, e.g., (troltzsch2010optimal, , Section 2.13).
[TABLE]
with and . Deterministic OCPs with a penalization lead to optimal controls which are sparse, i.e. they are nonzero only on certain regions of the domain stadler2009elliptic ; casas2017review . Sparse controls can be of great interest in applications, because it is often not desirable, or even impossible, to control the system over the whole domain . For sparse OCPUU, we mention li2019sparse where the authors considered both a simplified version of (17) in which the randomness enters linearly into the state equation as a force term, and a different optimization problem whose goal is to find a stochastic control which has a similar sparsity pattern regardless of the realization . Note further that the assumption does not eliminate the nonsmoothness of the objective functional, but it regularizes the optimal solution , and is needed to use the fast optimation algorithm described in the following.
The well-posedness of (17) follows directly from standard variational arguments troltzsch2010optimal ; hinze2008optimization , being a convex set, a convex function and the objective functional coercive. In particular, the optimal solution satisfies the variational inequality ((ekeland1999convex, , Proposition 2.2))
[TABLE]
Through a pointwise discussion of the box constraints and an analysis of a Lagrange multiplier belonging to the subdifferential of in , stadler2009elliptic showed that (18) can be equivalently formulated as the nonlinear equation , with defined as
[TABLE]
where . Notice that is nonsmooth due to the presence of the Lipschitz functions and . Nevertheless, can be shown to be semismooth hinze2008optimization , provided that is continuously Fréchet differentiable, and further Lipschitz continuous interpreted as map from , with doi:10.1137/1.9781611970692 ; hinze2008optimization . These conditions are satisfied also in our settings since is affine and further the adjoint variable , solution of (8) with , lies in so that , where follows from Sobolev embeddings.
Hence, to solve (19) we use the semismooth Newton method whose iteration reads for until convergence,
[TABLE]
being the generalized derivative of . Using the linearity of and considering the supports of the weak derivatives of and , we obtain that
[TABLE]
where is the charateristic function of the union of the disjoint sets
[TABLE]
It is possible to show that the generalized derivative is invertible with bounded inverse for all , the proof being identical to the deterministic case treated in Stadler2 . This further implies that the semismooth Newton method (20) converges locally superlinearly doi:10.1137/1.9781611970692 . We briefly summarize these results in the following proposition.
Proposition 2**.**
Let the inizialization be sufficiently close to the solution of (17). Then the iterates generated by (20) converge superlinearly to .
Introducing the supporting variables and in , the semismooth Newton equation may be rewritten as the equivalent saddle point system
[TABLE]
Further, if we set and , due to the linearity of and , it holds and similarly . Once fully discretized and using the notation , the optimality condition (19) can be expressed through the nonlinear finite-dimensional map ,
[TABLE]
where the and functions act componentwise. Equation (22) leads to the saddle point system
[TABLE]
where is a diagonal matrix representing the charateristic function , namely
[TABLE]
with
[TABLE]
To derive the expression of , we assumed that a Lagrangian basis is used for the finite element space. Notice that (24) fits into the general form (2), and thus we use the collective multigrid algorithm to solve it. Further, with the notation of (2), it holds
[TABLE]
if , and
[TABLE]
if . The collective multigrid iteration is then well-defined.
The overall semismooth Newton Algorithm is summarized in Algorithm 2. At each iteration we solve (24) using the collective multigrid algorithm (line 4) and update the active sets given the new iteration (line 10). Notice that in order to globalize the convergence, we consider a line-search step (lines 6-8) performed on the merit function martinez1995inexact .
4.1 Numerical experiments
In this section we test the semismooth Newton algorithm for the solution of (19) and the collective multigrid algorithm to solve the related optimality system (24). We consider the random PDE-constraint (15) with the random diffusion coefficient (16) set on the L-squared domain. The semismooth iteration is stopped when . The inner linear solvers are stopped when the relative (unpreconditioned) residual is smaller than .
Table 4 reports the number of semismooth Newton iterations and in brackets the averaged number of iterations of the V-cycle algorithm used as a solver (left) or as preconditioner for GMRES (right). Table 4 confirms the effectiveness of the multigrid algorithm, which requires essentially the same computational effort as in the linear-quadratic case.
More challenging is the limit reported in Table 5. The performance of both the (globalized) semismooth Newton iteration and the inner multigrid solver deteriorates. The convergence of the outer nonlinear algorithm can be improved by performing a continuation method, namely we consider a sequence of , , and we start the -th problem using as initial condition the optimal solution computed for . Concerning the inner solver, the stand-alone multigrid algorithm struggles since for small values of the optimal control is of bang-bang type, that is satisfies , or for almost every point of the mesh (for only five nodes are nonactive at the optimum). The matrices are then close to zero, and the multigrid hierarchy struggles to capture changes at such small scale. Nevertheless, the multigrid algorithm remains a very efficient preconditioner for GMRES even in this challenging limit.
Fig. 1 shows a sequence of optimal controls for different values of with and without box-constraints. The optimal control for and without box-constraints corresponds to the minimizer of the linear-quadratic OCP (5). We observe that penalization indeed induces sparsity, since the optimal controls are more and more localized as increases. Numerically we have verified that for sufficiently large , the optimal control is identically equal to zero, a property shown in stadler2009elliptic .
5 A risk-adverse optimal control problem under uncertainty
In this section we consider an instance of risk-adverse OCPUU. This class of problems has recently drawn lot of attention since in engineering applications it is important to compute a control that minimizes the quantity of interest even in rare, but often troublesome, scenarios Kouri_Cvar ; Kouri_ex ; antil2021ttrisk ; kouri2022primal . As a risk-measure shapiro2014lectures , we use the Conditional Value-At-Risk (CVaR) of confidence level ,
[TABLE]
that is, the expected value of a quantity of interest given that the latter is greater than or equal to its -quantile, here denoted by . Rockafellar and Uryasev rockafellar2000optimization proved that admits the equivalent formulation
[TABLE]
where , if the distribution of does not have an atom at . In order to use tools from smooth optimization, we rely on a smoothing approach proposed in Kouri_Cvar , which consists in replacing with a smooth function , , such that in some functional norm as . Specifically, we choose the -differentiable approximation
[TABLE]
Then, the smoothed risk-adverse OCPUU is
[TABLE]
where and . The well-posedness of (28), the differentiability of its objective functional, as well as bounds for the error introduced by replacing with , have been analyzed in Kouri_Cvar . Further, defining , the optimality conditions form the nonlinear system,
[TABLE]
Approximating and with and , and letting , the finite-dimensional discretization of (29) correponds to the nonlinear system , where ,
[TABLE]
with , , being the identity matrix, is the discretization of , and
[TABLE]
for .
A possible approach to solve (30) is to use a Newton method, which given computes the corrections solution of , where
[TABLE]
with
[TABLE]
for . Unfortunately, can be singular away from the optimum, in particular whenever which implies
[TABLE]
which is not unlikely for small since . Splitting strategies have been proposed (e.g. Markowski2022 in a reduced approach), in which whenever (35) is satisfied, an intermediate value of is computed by solving so to violate (35). In the next section, we discuss a similar splitting approach. To speed up the convergence of the outer nonlinear algorithm, we use a preconditioned Newton method based on nonlinear elimination doi:10.1137/S106482759325154X . At each iteration we will need to invert saddle-point matrices like (2), possibly several times. To do so, we rely on the collective multigrid algorithm.
5.1 Nonlinear preconditioned Newton method
Nonlinear elimination is a nonlinear preconditioning technique based on the identification of variables and equations of (e.g. strong nonlinearities) that slow down the convergence of Newton method. These components are then eliminated through the solution of a local nonlinear problem at every step of an outer Newton. This elimination step provides a better initial guess for the outer iteration, so that a faster convergence is achieved doi:10.1137/S106482759325154X ; doi:10.1137/15M104075X .
In light of the possible singularity of , we split the discretized variables into , and we aim to eliminate the variables to obtain a scalar nonlinear equation only for . To do so, we partition (29) as
[TABLE]
where and . Similarly, is partitioned into
[TABLE]
whose blocks have dimensions , , , and . Notice that is always nonsingular, while , and are identically zero if (35) is verified. Thus allows us to define an implicit map , such that , so that the first set of nonlinear equations in (36) are satisfied. We are then left to solve the nonlinear scalar equation
[TABLE]
To do so using the Newton method, we need the derivative of evaluated at which, using implicit differentiation, can be computed as
[TABLE]
The nonlinear preconditioned Newton method is described in Alg. 3, and consists in solving (37) with Newton method. However, to overcome the possible singularity of , and , we check at each iteration if (35) is satisfied, and in the affermative case we update by solving using Newton method, and update by solving . Notice further, that each iteration of the backtracking line-search requires to solve using Newton method, thus additional linear systems with matrix must be solved.
We report that we also tried to eliminate by computing the map such that , while iterating on the variable . This has the advantage that can be evaluted very cheaply, being a scalar equation. However, we needed many more iterations both of the outer Newton method, and consequently of the inner linear solver. Thus, according to our experience, this second approach was less efficient and appealing.
5.2 Numerical experiments
In this section we report numerical tests to asses the performance of the preconditioned Newton algorithm to solve (37), and of the collective multigrid algorithm to invert the matrix . We consider the random PDE-constraint (15) with the random diffusion coefficient (16). Table 6 reports the number of outer and inner Newton iterations, and the average number of V-cycle iterations and of preconditioned GMRES iterations to solve the linear systems at each (inner/outer) Newton iterations. The outer Newton iteration is stopped when , the inner Newton method to compute is stopped when , and the linear solvers are stopped when the relative (unpreconditioned) residual is smaller than .
In Table 6, the number of outer Newton iterations is stable, while the number of inner Newton iterations varies between five and fifteen iterations per outer iteration. This is essentially due to how difficult it is to compute the nonlinear map by solving in line (5), (8) and (11) of Alg. 3. The average number of inner linear solver iterations is quite stable across all experiments. The most challenging case is the limit in which we used the solution to the optimization problem as a warmed-up initial guess for the next smaller value of . Further, we emphasize that the top left blocks of involve the matrices (see (33)) which contain a dense low-rank term if . As , tends to a Dirac delta, so the dense term become dominant. Multigrid methods based on a pointwise relaxations are expected to be not very efficient for these matrices which may not be diagonally dominant. The standard V-cycle algorithm indeed suffers, however the Krylov acceleration performs better as it handles these low-rank perturbation with smaller effort. For , we sometimes noticed that the GMRES residual stagnates after 20/30 iterations around , due to a loss of orthogonality in the Krylov subspace, and thus resulting in higher number of iterations. We allowed a maximum number of 80 iterations per linear system.
Figure 2 compares the two optimal controls obtained minimizing either or , and the cumulative distribution functions of computed on 8000 out-of-sample realizations. The risk-adverse control indeed minimizes the risk of having large values of . The CVaR of level is respectively for the risk-neutral control and for the risk-adverse control.
6 Conclusion
We have presented a multigrid method to solve the large saddle point linear systems that typically arise in full-space approaches to solve OCPUU. We tested the algorithm as a iterative solver and as a preconditioner on three test cases: a linear-quadratic OCPUU, a nonsmooth OCPUU, and a risk-adverse nonlinear OCPUU. Overall, the multigrid method shows very good performances and robustness with respect to the several parameters of the problems considered.
7 Declarations
Ethical Approval: Not applicable.
Data Availability: The codes used in this study are available from the corresponding author on reasonable request.
Competing interests: The authors declare that they have no conflict of interest.
Funding: Not applicable.
Authors’ contributions: All authors contributed equally to the manuscript.
Acknowledgements: Gabriele Ciaramella and Tommaso Vanzan are members of GNCS (Gruppo Nazionale per il Calcolo Scientifico) of INdAM. The present research is part of the activities of “Dipartimento di Eccellenza 2023-2027".
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1\bibcommenthead
- 2(1) Kouri, D.P., Shapiro, A.: Optimization of PD Es with uncertain inputs. In: Frontiers in PDE-Constrained Optimization, pp. 41–81. Springer, New York (2018)
- 3(2) Kouri, D.P., Surowiec, T.M.: Risk-averse PDE-constrained optimization using the conditional value-at-risk. SIAM Journal on Optimization 26 (1), 365–396 (2016)
- 4(3) Martínez-Frutos, J., Esparza, F.: Optimal Control of PD Es Under Uncertainty: an Introduction with Application to Optimal Shape Design of Structures. Springer, Heidelberg (2018)
- 5(4) Guth, P.A., Kaarnioja, V., Kuo, F., Schillings, C., Sloan, I.H.: A Quasi-Monte Carlo method for optimal control under uncertainty. SIAM/ASA Journal on Uncertainty Quantification 9 (2), 354–383 (2021)
- 6(5) Geiersbach, C., Wollner, W.: A stochastic gradient method with mesh refinement for PDE-constrained optimization under uncertainty. SIAM Journal on Scientific Computing 42 (5), 2750–2772 (2020)
- 7(6) Antil, H., Dolgov, S., Onwunta, A.: TTRISK: Tensor train decomposition algorithm for risk averse optimization. ar Xiv preprint ar Xiv:2111.05180 (2021)
- 8(7) Nobile, F., Vanzan, T.: A combination technique for optimal control problems constrained by random PD Es. ar Xiv preprint ar Xiv:2211.00499 (2022)
