MathGroup Archive 2008

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

Search the Archive

Re: Minimize

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93575] Re: Minimize
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Sat, 15 Nov 2008 06:03:41 -0500 (EST)

On 11/14/08 at 6:36 AM, grafix at csl.pl (Artur) wrote:

>What Mathematica procedure to use to
>minimize expotential finction e.g. Minimize[Abs[3^d + 5^f - 2^7],
>{d, f}] where we can push: d and f are both Integers

>NMinimize[Abs[3^d + 5^f - 2^7], {d, f}] Mathematica answer is:
>{2.66454*10^-14, {d -> 2.03248, f -> 2.96773}}

Add a constraint to specify d, f are integers, For example

In[3]:= NMinimize[{Abs[3^d + 5^f - 2^7], {d, f} \[Element]
    Integers}, {d, f}]

Out[3]= {0.,{d->1,f->3}}


  • Prev by Date: Re: Stacked Definitions
  • Next by Date: Re: Minimize
  • Previous by thread: Re: specify a color for ErrorBar and remove the point in
  • Next by thread: Re: Minimize