Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: NIntegrate with Minimize

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53551] Re: [mg53549] NIntegrate with Minimize
  • From: DrBob <drbob at bigfoot.com>
  • Date: Tue, 18 Jan 2005 05:07:50 -0500 (EST)
  • References: <200501170324.WAA05954@smc.vnet.net>
  • Reply-to: drbob at bigfoot.com
  • Sender: owner-wri-mathgroup at wolfram.com

Try posting that in InputForm, so that we can see the code.

http://www.eclecticdreams.net/DrBob/copy_as_inputform.htm

Bobby

On Sun, 16 Jan 2005 22:24:06 -0500 (EST), Oz <x_download at hotmail.com> wrote:

> Hiya,
>
> I'm having trouble performing a numerical integration that involves a
> Minimize. I think it might have something to do with HoldAll, but am not
> sure how to fix it (couldn't find any actual solutions that worked in
> the archives). Any help most appreciated. Here is a simplified version
> of the code (the function and constraints I'm actually using are more
> complicated):
>
> ff[a_] := First[Minimize[{x + a, 0 � x � 2}, {x}]]
> NIntegrate[ff[a], {a, 0, 6}]
>
> Mathematica raises a Minimize::objv error, complaining that a+x contains
> a nonconstant expression independent of x, and so the NIntegrate fails.
> Ideas?
>
> Thanks,
> Oz
>
>
>
>
>



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


  • Prev by Date: Re: NIntegrate with Minimize
  • Next by Date: Matrix Problem
  • Previous by thread: NIntegrate with Minimize
  • Next by thread: Re: NIntegrate with Minimize