This repository contains Matlab codes implementing the algorithm for computing switching controls of elliptic and parabolic partial differential equations described in the paper A convex analysis approach to optimal controls with switching structure for partial differential equations by Christian Clason, Kazufumi Ito and Karl Kunisch.

If you find this approach useful, you can cite the paper as

@article{switchingcontrol,
    author = {Christian Clason and Kazufumi Ito and Karl Kunisch},
    title = {A convex analysis approach to optimal controls with switching structure for partial differential equations},
    journal = {ESAIM: Control, Optimisation and Calculus of Variations},
    volume = {22},
    year = {2016},
    pages = {581-609},
    doi = {10.1051/cocv/2015017}
}