Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'ArgMax' topicStudent Support Forum > General > "ArgMax"

Next Comment >Help | Reply To Topic
Author Comment/Response
John
12/05/12 8:02pm

Hi,
I have defined a function f(x,y,parameters) in Mathematica.
I'm trying to write a new function g(parameters) that yields (x,y) that maximizes f(x,y,parameters) for fixed parameters.
Here, (x,y) can be (1,0), (0,1), or (1,1), that is, x,y are each 0 or 1 and they cannot be both 0.
The function f(x,y,parameters) work perfectly fine when I feed it (1,0), (0,1), or (1,1), plus parameters.
I'm playing around with g[parameters_]:=ArgMax[{f,(x==0||x==1)&&(y==0||y==1)&&x+y>=1},{x,y}], but it simply doesn't work...
I would be very grateful for your help!

URL: ,

Subject (listing for 'ArgMax')
Author Date Posted
ArgMax John 12/05/12 8:02pm
Re: ArgMax Michael 12/09/12 08:20am
Next Comment >Help | Reply To Topic