I have a problem with form similar to the following:
I have a set of equations that is f(x, y) = 0
. For each x
, I can use FindRoot
to find a value of y
. Suppose I want to select the x
such that the implied value of y
is minimises something like (y- y*)^2
.
I feel like I want to combine NMinimize
or FindMinimum
with FindRoot
but have difficulty achieving this.