MathGroup Archive 2007

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

Search the Archive

Help with NMinimize

  • To: mathgroup at
  • Subject: [mg82264] Help with NMinimize
  • From: Flavio <flavio.cimolin at>
  • Date: Tue, 16 Oct 2007 03:35:24 -0400 (EDT)

Hi everybody, I can't figure out how to solve this problem with
NMinimize, which I want to use in order to test the Nelder and Mead
algorithm with an externally evaluated function.

I consider the following five argument function (of course this is not
my actual minimization function):


Now, if I compute


I get the correct answer "14", and a file named "1.txt" is created,
exactly as expected.

But if I use the NMinimize command in this way:


with these constraints:


The minimization is performed, but only a single file, named "x1.txt"
is created.

The x1 argument in the fuction seems to have the value "x1" rather
than its effective value? Can somebody explain me which is the problem
with my code, and how can I actually use the value inside the
I need to use this value because the function g should be replaced by
a function that creates a file with the arguments, evaluate a command,
and then reads the values obtained by the external program.

Thank you very much for your help.

Flavio Cimolin

  • Prev by Date: ND's implementation is slow
  • Next by Date: Re: Recursion limit: a good idea to ignore?
  • Previous by thread: ND's implementation is slow
  • Next by thread: Re: Help with NMinimize