MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: NMinimize constraint bug


{$Version,$ReleaseNumber}
NMinimize[{-Log[1-p1]-Log[1-p2],LessEqual[.5,p1,p2,.9]},{p1,p2}]

{5.1 for Microsoft Windows (October 25, 2004),0}

{1.38629,{p1\[Rule]0.5,p2\[Rule]0.5}}

Bobby

On Tue, 14 Dec 2004 05:59:35 -0500 (EST), Joshua A. Solomon <J.A.Solomon at city.ac.uk> wrote:

> In[1]:={$Version, $ReleaseNumber}
> Out[1]={5.0 for Mac OS X (June 10, 2003), 0}
>
> In[2]:= NMinimize[{-Log[ 1-p1]-Log[1-p2],LessEqual[.5,p1,p2,.9]},{p1,p2}]
>
> NMinimize::nrnum: The function value -0.57913-3.14159\\[ImaginaryI] is not a
> \
> real number at {p1,p2} = {2.46921,-0.214585}.
>
> NMinimize::nrnum: The function value -0.57913-3.14159\\[ImaginaryI] is not a
> \
> real number at {p1,p2} = {2.46921,-0.214585}.
>
> NMinimize::nrnum: The function value -0.57913-3.14159\\[ImaginaryI] is not a
> \
> real number at {p1,p2} = {2.46921,-0.214585}.
>
> etc.
>
> Comments?
>
> js



-- 
DrBob at bigfoot.com
www.eclecticdreams.net


  • Prev by Date: Re: pdf[d,x] vs. function(x)
  • Next by Date: Re: NMinimize constraint bug
  • Previous by thread: NMinimize constraint bug
  • Next by thread: Re: NMinimize constraint bug