Re: Bug in NMaximize?
- To: mathgroup at smc.vnet.net
- Subject: [mg43512] Re: Bug in NMaximize?
- From: Bill Rowe <listuser at earthlink.net>
- Date: Thu, 18 Sep 2003 05:40:08 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 9/17/03 at 8:00 AM, guillerm at aida.usal.es (Guillermo Sanchez) wrote: > Using: > NMaximize[{x^2 + y^2, x^2/9 + y^2/4 <= 1}, {x, y}] > Mathematica 5 gives as solution: > {9., {x -> -3., y -> 3.242576952529308*^-19}}. > Becouse it is a simetric problem (x^2 and y^2 >= 0) the true solution > should be: x -> -3 and x -> +3. > What is wrong? Nothing. Have you read the documentation for NMaximize and NMinimize? Using the defaults as you've done will only cause NMaximize to return only one point at which the function is at a local maximum. To get multiple points look at the example shown in the documentation for NMinimize in the help browser.