Manolo Martínez
unread,Jun 2, 2012, 5:46:46 AM6/2/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hello, I would like to maximize a function, adding the constraint that a
different function is also big enough. To make it clear, what I would
want to ask Mathematica to do is the following:
NMaximize[{F(a,b,c),F2(a,b,c)>=NMaximize[F2(a,d,e),{d,e}]},{a,b,c}]
I had expected (hoped) that Mathematica would substitute the value of
*a*
it is currently considering for the outer nMax in the inner nMax, but it
doesn't: the inner nMax complains that F2(a,d,e) is not a number at
{d,e}={<number1>,<number2>}
Is there any way I can ask Mathematica to use the same value of *a*
outside and inside?
Thanks
Manolo
--