How can I determine which element of Min[]
is being selected in a NMaximize[{Min[...], constraints},{vars}]
problem? For example,
NMaximize[{Min[x, 1/(x - 1)], x >= 0, x <= 2}, {x}]
{1.61803, {x -> 1.61803}}
which is true for both elements. This is a very contrived example, though. In reality the space of elements is highly non-convex so I can't just use the answer and find the element using Select[]
, Position[]
, etc. for example. Somehow returning the position in Min[]
in situ (and not post hoc) is something I was hoping for.
Addendum: I've tried using Monitor[]
and Trace[]
to gain some insight to what is going on but to no luck.