Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Remove discontinuity from plot of NArgmax' topicStudent Support Forum > General > "Remove discontinuity from plot of NArgmax"

Next Comment >Help | Reply To Topic
Author Comment/Response
luigi
07/24/12 05:48am

Hi guys,
I have a problem.

I have a certain function f[x,y] and I want to plot the y which maximises f given x when 0 <= x <= 1 (The function f[] is very complex).
Then I simply define f[] and then:

Plot[
NArgMax[{f[x,y], 0 <= y <= 1}, y],
{x, 0, 1}]

However I know that there is a discontinuity in a certain point (say point u). In this point f[0,u] = f[1,u] > f[t,u] for all 0< t < 1.

Then there is a discontinuity and I would like to exclude it from the graph.
I tried to do the following (I tried several things):


Plot[
NArgMax[{f[x,y], 0 <= y <= 1}, y],
{x, 0, 1}, Exclusions -> {f[1,x] == f[0,x], f[1,x] > f[0.34, x]}]

But no results, what I can do?
It is possible to define a list of coordinates {y,x} which maximise f[] and then plot it?

I know what is the point to exclude, but I don't want to do in this way because for certain parameters that discontinuity does not exist.

Thank you

URL: ,

Subject (listing for 'Remove discontinuity from plot of NArgmax')
Author Date Posted
Remove discontinuity from plot of NArgmax luigi 07/24/12 05:48am
Re: Remove discontinuity from plot of NArgmax Michael 07/26/12 9:22pm
Next Comment >Help | Reply To Topic