Jump to content

Controlled Heating

From mintOC

The controlled heating problem is a simple problem from the domain of continuous PDE constrained optimal control. The goal is to parametrize the heat equation under Robin-type boundary conditions such that the stationary solution tracks a predefined reference function. This is equivalent to solving Poisson's problem under Robin-type boundary equations. The problem is therefore closely related to the source inversion problem. As opposed to the source inversion problem however, the controlled heating problem does not require the source term to be a linear combination of elementary source terms. The source term can be an arbitrary function which is usually chosen from the same function space as the temperature function.

Problem Statement

Let Ωn be a contiguous domain and let ν:Ωn be an outer unit normal of Ω. The Poisson problem with simple Robin-type boundary conditions then takes the following form:

Δu=fin Ωuν=uon Ω

Here, f denotes the source term. We demand that C1f(x)C2 in Ω. Given a reference function ud, the optimization problem is given by:

minu,fΩ(uud)2dxs.t.Δu(x)=f(x)xΩuν(x)=u(x)xΩf(x)[C1,C2]xΩ

Weak formulation

Some PDE discretization techniques (such as finite element methods) require the use of weak formulations of the original problem. The weak formulation of the Poisson problem with Robin-type boundary conditions as described above is obtained using Green's identities:

Ωu,vdx+Ωuvds(x)=ΩfvdxvV

Here, V is a suitable space of test functions. The optimization problem then takes the following form:

minu,fΩ(uud)2dxs.t.Ωu,vdx+Ωuvds(x)=ΩfvdxvVf(x)[C1,C2]xΩ

Parameters

For testing purposes, we consider Ω=B(0,1)={xn:x<1} with n=2. The reference function is given by:

ud(x)=x2

Additionally, let

(C1,C2):=(10,10).

Reference solution

The reference solution was generated using finite element discretizations. The mesh was generated using FEniCS' mesh generation component with a resolution setting of 100. The function space was constructed using first-degree Lagrangian elements. The optimization problem was solved using CasADi's IPOPT interface. The exact code used to solve the problem alongside solution data can be found under Controlled Heating (FEniCS/Casadi). The optimal objective function value is 0.0145336.

Source Code

Model descriptions are available in