Re: Bug in NMinimize?
- To: mathgroup at smc.vnet.net
- Subject: [mg108447] Re: Bug in NMinimize?
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Thu, 18 Mar 2010 04:32:12 -0500 (EST)
On 3/17/10 at 4:42 AM, janostothmeister at gmail.com (janos) wrote:
>I am sorry to let you know that
>NMinimize[{1, x + y >= 1, 2 x + 2 y <= 0, Element[x, Integers]}, {x,
>y}]
>does give a result:
>{1., {x -> 1, y -> 0.}}
>Any commands or advice?
You have asked Mathematica to find a numerical minimum for the
integer 1. Additionally, you have set up constraints on x an y
that have no solution. That is if
x + y >= 1 then
2 x + 2 y >= 2 which is clearly incompatible with your 2 x + 2 y
<= 0.
So, you've asked Mathematica to do the impossible and are
surprised you get a nonsense answer?