help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optimization: Replace NaN by Inf


From: Etienne Grossmann
Subject: Optimization: Replace NaN by Inf
Date: Mon, 06 Aug 2001 18:14:19 +0100
User-agent: WEMI/1.13.7 (Shimada) FLIM/1.13.2 (Kasanui) Emacs/20.7 (i386-debian-linux-gnu) (with unibyte mode)

  Hello,

  when optimizing a function 'f', I am tempted to replace any NaNs
that it returns by Infs. This way, the returned value can be compared
w/ other values, and the optimization algorithm is happy.

  Can anyone think of a reason not to replace NaNs by Infs inside an
optimization algorithm?

  If not, I'll have my various optimization functions do the
replacement. 

  Etienne



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]