Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Optimization Multiple conditions' topicStudent Support Forum > General > "Optimization Multiple conditions"

Next Comment >Help | Reply To Topic
Author Comment/Response
Shaun Hooper
03/28/12 8:41pm

Hi,

I am trying to figure out how to use NMinimize or FindMinimum to minimize a function (lets call it g) that is a function of multiple variables.

NMinimize[ { g[10, f1, f2, 1500], 10 < f1 < f2 < < 1500}, {f1, f2} ]

But when I use this. it does a few iterations and then gives me the error,
NMinimize::nrnum: "The function value 1.19029*10^11-1.80599*10^6\ I is not a real number at {f1,f2} = {11.9762,-105.355}"

So it doesn't look like it obeys the contraint?

URL: ,

Subject (listing for 'Optimization Multiple conditions')
Author Date Posted
Optimization Multiple conditions Shaun Hooper 03/28/12 8:41pm
Re: Optimization Multiple conditions toen 03/30/12 10:14am
Re: Re: Optimization Multiple conditions Shaun Hooper 04/01/12 10:02pm
Re: Optimization Multiple conditions toen 04/02/12 1:27pm
Re: Optimization Multiple conditions Bill Simpson 04/03/12 02:44am
Next Comment >Help | Reply To Topic