Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2012

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

Search the Archive

Re: Maximisation question

  • To: mathgroup at
  • Subject: [mg126562] Re: Maximisation question
  • From: Bill Rowe <readnews at>
  • Date: Sat, 19 May 2012 05:45:13 -0400 (EDT)
  • Delivered-to:

On 5/18/12 at 5:23 AM, jack.j.jepper at (J.Jack.J.)

>For any integer j, suppose we have a function f(j). Then how would I
>find the highest f(i) such that 100 <= f(i) <0 ? With thanks in

Use NMaximize. For example:

In[14]:= NMaximize[{4 x - .57 x^2, x \[Element] Integers}, {x}]

Out[14]= {6.88,{x->4}}

and by doing

In[15]:= Solve[D[4 x - .57 x^2, x] == 0, x]

Out[15]= {{x->3.50877}}

you can see the true maximum is not an integer

  • Prev by Date: Re: Maximisation question
  • Next by Date: Tubes renders zero-dimensional objects
  • Previous by thread: Re: Maximisation question
  • Next by thread: Re: Maximisation question