My problem is minimizing the difference between the two (let's call them f(x) and g(x)) functions. I do not have analytical expressions for the functions, however, I do have values (outputs) of f(x) and g(x), as well as x.
Since we can look at functions as infinite-dimensional vectors, I was wondering how to solve this optimization problem in CVXPY.
Thank you in advance!