MathGroup Archive 2009

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

Search the Archive

Re: Minimize goes into infinite loop?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98317] Re: Minimize goes into infinite loop?
  • From: ADL <alberto.dilullo at tiscali.it>
  • Date: Sun, 5 Apr 2009 06:41:19 -0400 (EDT)
  • References: <gr6c7p$pri$1@smc.vnet.net>

I included all the vars in Minimize and changed the conditions to
avoid divisions by zero:

In:= Minimize[{m1 w1 + m2 w2,
  w1 > 0 && p1 - m2 p1 + p2 - m1 p2 == (1 + m) (-1 + m1) (-1 + m2) &&
   m1 >= 0 && m2 > m1 && w2 > 0 && w1 + w2 == 1 && 1 > m > 0 &&
   p1 > 0 && p2 > 0 && p1 + p2 == 1}, {m, m1, m2, p1, p2, w1, w2}]

During evaluation of In[16]:= Minimize::wksol: Warning: There is no
minimum in the region in which the objective function is defined and
the constraints are satisfied; returning a result on the boundary. >>

Out= {0,{m->0,m1->0,m2->0,p1->1,p2->0,w1->1,w2->0}}


Does this make sense for your problem?

ADL


On 4 Apr, 03:13, Andrey <andrey.si... at gmail.com> wrote:
> Hello group,
>
> I wonder why the following problem force Mathematica to run into
> infinite loop?
>
> Minimize[
>  {m1*w1 + m2*w2
>   , w1 > 0 && w2 > 0 && w1 + w2 == 1
>  && (p1/(1 - m1) + p2/(1 - m2) - 1 - m) == 0
>  && m1 >= 0 &&  m2 > m1 && 1 > m > 0
> && p1 > 0 && p2 > 0 && p1 + p2 == 1
>   }, {m1, m2}, Reals
>  ]
>
> Regards,
> -Andrey



  • Prev by Date: Re: help in constructing a binomial consequence
  • Next by Date: Re: passing an array variable as a file name string to FindList
  • Previous by thread: Re: Minimize goes into infinite loop?
  • Next by thread: cell bracket symbols