• No results found

Chapter 4 Optimal control of elliptic variational inequalities at points

4.6 Finite element scheme

4.7.2 Adaptive refinement

An alternative to uniform refinement is to use an adaptive finite element method (AFEM) guided by the estimator we derived in Section 4.5.2. This estimator guides the refinement so that less computational effort is needed to find a solution to the discrete stationarity system such that|J(uh, yh)−J(u, y)|is small.

The AFEM can be summarised as follows, and is outlined more precisely in Algorithm 5: Starting with a coarse triangulation, solve (4.15) on the current trian- gulation (as described in Section 4.6.2) then compute the local error indicator (4.22) for each elementT. Mark elements with large local error indicators for refinement, and refine a superset of these. Additional elements are refined in order to keep the triangulation conforming. The process can then be repeated by solving (4.15) again on the new triangulation. The steps of solve, estimate, mark and refine continue until some stopping criterion is met, such as the estimator is sufficiently small, or

1e−08 1e−07 1e−06 1e−05 0.0001 0.001 0.01 0.1 0.01 0.1 h ||u−uγh||L2 |Jˆ(u)−Jˆh(uγh)| O(h) O(h2)

Figure 4.3: Convergence ofuγh for Example 4.13. the complexity of the solve step reaches a certain level.

Algorithm 5AFEM for MPEC Input: Th, y0h, p0h and N >0 1: data←(Ω, ν, f, a, b, I,{gω}ω∈I) 2: (yh, ph)←(y0h, p0h) 3: loop 4: (yh, ph, ξh, λh)←solve(Th, yh, ph,data) 5: {ηT}T∈Th ←estimate(yh, ph, ξh, λh) 6: if |N |> N then break 7: end if 8: Mh←mark(Th,{ηT}T∈Th, θ) . θ= 0.3 9: (Th, yh, ph)←refine(Th,Mh, yh, ph) 10: end loop Output: yh, ph, ξh, λh

As we observed in the previous section, solutions of the discrete stationar- ity system on a given triangulation are in general not good initial values for the Newton method for solving on refined triangulations. So in contrast to the uni- form refinement approach in Algorithm 4, after refining the triangulation we need to dropγ back to a small value. This is not a serious drawback as we have already saved computation time by carefully placing degrees of freedom only where they are needed.

calculates the estimator defined in Section 4.5.2 from the discrete solution. The functionmarkdetermines the set of elements Mh to be refined. In particular, we takeMh to be the set of minimal cardinality such that for a parameter θ∈(0,1),

θηh ≤

X

T∈Mh

ηT.

Larger values ofθlead to inefficiency in the refinement, and smaller values ofθallow the estimator to be skewed by inaccurate values of the local estimators near the point evaluations, which are caused by bad properties of the approximate discrete solution at spikes. The drawback of this marking strategy is that it is hard to implement in parallel. When doing large runs in parallel we mark elements for refinement if

ηT > 0.9τ2 |T| X T∈Th ηT,

where τ is a small number that heuristically is the value of the estimator that we would like to achieve. The sequence of refinements produced by this method are more easily skewed by inaccurate values of local estimators, so it does not perform so well in practice.

The function refine refines all marked elements as well as additional ele- ments in order to ensure the triangulation remains conforming. The refinement rule we use bisects the triangle shaped elements by inserting a new vertex on the longest edge. In addition this function prolongs the discrete solutions in the expected way so they are defined over the refined triangulation, ready to be used as an initial value for the next AFEM loop.

We now show the numerical results from applying the AFEM to two exam- ples. Figure 4.4 shows a solution of the discrete stationary system for Example 4.12 computed on a triangulation with 96448 degrees of freedom (DoFs) that has under- gone 15 levels of adaptive refinement and two additional uniform refinements. Ob- serve that the state is influenced to track the prescribed values: y∗h(0.125.0.125)≈

0.3, y∗h(0.125,0.5) = y∗h(0.5,0.125) ≈ 0.04, yh∗(0.375,0.375) ≈ 0.07. However the control constraintuh ≤b is active (shown by the dark part of the plot ofp∗h), pre- venting y∗h getting closer to the prescribed value of 1 at ω = (0.125,0.125). We see that this example has a biactive set {yh = 0} ∩ {ξh = 0} with positive measure so strict complementarity does not hold. Such problems are typically hard to solve because the active constraint gradients at the solution are linearly dependent (see e.g. the comments in [Hinterm¨uller and Kopacka, 2009]).

Observe that the refinement mostly takes place at the boundary between the inactive setI :={a < uh < b}, active set Ω\I, and biactive set.

(a)yh∗ (b) −p ∗ h (c)ξh∗ (d) λ ∗ h

Figure 4.4: A solution to the discrete stationarity conditions for Example 4.12 com- puted using the AFEM algorithm.

We do not know the exact solution to Example 4.12, so for evaluating the effectiveness of our method we approximate it by solving the discrete stationarity conditions on a grid resulting from two additional uniform refinements of the finest adaptive grid. We denote the value of the objective functional evaluated at the solu- tions computed on this grid byJ∗. We denote the value of the objective functional evaluated on an adaptive grid byJAand on a uniform grid byJU. Figure 4.6 shows the errorJA−J∗

and the estimator ηAon adaptively refined grids, and the error

JU−J∗

on uniformly refined grids. We see that the AFEM gives lower errors for

a given number of degrees of freedom, which is linked to computational cost. In this example we also see that the estimator is reliable (i.e.JA−J∗

Figure 4.5: The refined triangulations for Example 4.12 at levels 0, 5, 10 and 15.

Figure 4.6: Convergence of the AFEM for Example 4.12. (i.e. there existc0, c1 >0 such thatc0 ≤ η

A

|JAJ| ≤c1).

Example 4.14. Let Ω = (−1,1)2\[0,1]2 be an ‘L’ shaped domain, b = −a= ∞

(i.e. no control constraints),A=−∆,

I ={(−0.125,0.125),(−0.25,−0.25),(0,0.5),(−0.5,0),(0.25,0.25),(−0.375,0.375)},

and gω = 1 for ω = (−0.125,0.125) and gω = 0 otherwise. Take ν = 0.003 and

f = 0 as in Example 4.12.

Figure 4.7 show a solution to the discrete stationarity conditions for Ex- ample 4.14 computed a triangulation with 57398 DoFs that had 9 adaptive refine- ments and two additional uniform refinements. We see that this problem also has a biactive set with positive measure. As there are no control constraints u∗h is un- bounded, and the state is able to get closer to the desired values: yh∗(−0.125,0.125)≈

y∗h(−0.375,0.375) ≈ 0.1. A selection of the adaptively refined grids can be seen in Figure 4.8.

Figure 4.9 shows that the AFEM offers not only a lower error but also faster convergence because of the steepness of the solution around (0,0). So the estimator is reliable for this example but not efficient.

(a)yh∗ (b) p ∗ h (c)ξh∗ (d) λ ∗ h

Figure 4.7: A solution to the discrete stationarity conditions for Example 4.14 com- puted using the AFEM algorithm.

Related documents