I used NSolve on a partial differential equation with boundary conditions to get a numerical solution that Mathematica says is of the form InterpolatingFunction. I then defined a function f(x,y) which evaluates this solution for a given (x,y). I want to be able to retrieve all of the values of (x,y) such that f(x,y) = C for a given constant C, and then pick the (x,y) in this set that maximizes a different (non-interpolative) function g(x,y). Is this possible? If so, how?
Asked
Active
Viewed 136 times
Maximize[{g[x,y], f[x,y]==C}, {x,y}]? OrNMaximizeetc. Hard to tell without some code to play with. – Michael E2 Feb 25 '14 at 23:38NDSolve(notNSolve)? For finding zeros of interpolating functions, see this answer. – Szabolcs Feb 26 '14 at 01:09WhenEvent.) – Michael E2 May 28 '19 at 13:48