Difference between revisions of "Source Inversion"
(→Reference solution) |
FelixMueller (Talk | contribs) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
= Problem Statement = | = Problem Statement = | ||
− | For the purposes of this discussion, we will restrict ourselves to a one-dimensional setting and assume that the domain under consideration is the interval | + | For the purposes of this discussion, we will restrict ourselves to a one-dimensional setting and assume that the domain under consideration is the interval <math>[0,1]</math>. The Poisson problem with simple Robin-type boundary conditions then takes the following form: |
:<math> | :<math> | ||
Line 78: | Line 78: | ||
= Reference solution = | = Reference solution = | ||
− | The reference solution was generated using finite element discretizations with an equidistant mesh of <math>128</math> cells. Continuous Galerkin elements of degree <math>1</math> were employed. The linear FEM system was generated using FEniCS and used as part of the constraints in a QP that was solved using CasADi's IPOPT interface. The integer solution was determined using a simple Branch and Bound algorithm. The exact code used to solve the problem can be found under [[Source Inversion (FEniCS/ | + | The reference solution was generated using finite element discretizations with an equidistant mesh of <math>128</math> cells. Continuous Galerkin elements of degree <math>1</math> were employed. The linear FEM system was generated using FEniCS and used as part of the constraints in a QP that was solved using CasADi's IPOPT interface. The integer solution was determined using a simple Branch and Bound algorithm. The exact code used to solve the problem alongside detailed solution data can be found under [[Source Inversion (FEniCS/Casadi)]]. The optimal objective function value is <math>0.858837</math>. |
<gallery caption="Reference solution plots" widths="180px" heights="140px" perrow="2"> | <gallery caption="Reference solution plots" widths="180px" heights="140px" perrow="2"> | ||
Line 85: | Line 85: | ||
</gallery> | </gallery> | ||
− | [[Category: | + | = Source Code = |
+ | |||
+ | Model descriptions are available in | ||
+ | |||
+ | * [[:Category: Casadi | Casadi code]] using FEniCS at [[Source Inversion (FEniCS/Casadi)]] | ||
+ | |||
+ | [[Category:MIOCP]] | ||
[[Category:PDE model]] | [[Category:PDE model]] | ||
+ | [[Category:Tracking objective]] | ||
+ | [[Category: Elliptic]] |
Latest revision as of 15:12, 23 February 2016
The source inversion problem is a very basic problem in mixed-integer PDE constrained optimization. It has one PDE constraint equivalent to an inhomogenous Poisson problem with Robin-type boundary conditions. This type of problem arises naturally from the task of finding stationary solutions to the heat equation where the problem domain represents a medium being either heated or cooled and heat is lost to a surrounding medium at a rate proportional to the difference between the temperatures of the domain boundary and the surrounding medium.
The right hand side of Poisson's equation is sometimes referred to as the source term. For the purposes of the source inversion problem, the source term is assumed to be a linear combination of a finite set of predefined terms with coefficients being chosen from . The objective is to find a source term such that the solution of the Poisson problem closely tracks a given function over the domain.
Problem Statement
For the purposes of this discussion, we will restrict ourselves to a one-dimensional setting and assume that the domain under consideration is the interval . The Poisson problem with simple Robin-type boundary conditions then takes the following form:
Here, denotes the source term. For a more general version of Robin-type boundary conditions, refer to the controlled heating problem which discusses the same problem in a multi-dimensional setting. Given a control grid , the elementary source terms are given by:
The parameters and are shared between the individual elementary source terms. Given a reference function , the source inversion problem is given by:
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:
Here, is a suitable space of test functions. The optimization problem then takes the following form:
Parameters
For testing purposes, the following parameters were chosen:
The reference solution is generated as a solution to the Poisson problem using the following source term:
Reference solution
The reference solution was generated using finite element discretizations with an equidistant mesh of cells. Continuous Galerkin elements of degree were employed. The linear FEM system was generated using FEniCS and used as part of the constraints in a QP that was solved using CasADi's IPOPT interface. The integer solution was determined using a simple Branch and Bound algorithm. The exact code used to solve the problem alongside detailed solution data can be found under Source Inversion (FEniCS/Casadi). The optimal objective function value is .
Source Code
Model descriptions are available in
- Casadi code using FEniCS at Source Inversion (FEniCS/Casadi)