Polynomial argmin approximation of functions
Here is a Matlab prototype of the algorithm described in
D. Henrion, M. Korda, J. B. Lasserre. Polynomial argmin for recovery and approximation of multivariate discontinuous functions, HAL 03986252, February 2023.
Source file polyargmin.m for Matlab - requires the interface YALMIP as well as a semidefinite solver e.g.
MOSEK.
And here are the illustrative examples:
test1dpolyargmin.m for univariate functions
test2dpolyargmin.m for bivariate functions
Last modified in February 2023.