optimization
Class Fmin

java.lang.Object
  extended by optimization.Fmin

public class Fmin
extends java.lang.Object

This class was translated by a statistician from the FORTRAN version of fmin. It is NOT an official translation. When public domain Java optimization routines become available from professional numerical analysts, then THE CODE PRODUCED BY THE NUMERICAL ANALYSTS SHOULD BE USED.

Meanwhile, if you have suggestions for improving this code, please contact Steve Verrill at steve@www1.fpl.fs.fed.us.

Fmin.java copyright claim:

This software is based on the public domain fmin routine. The FORTRAN version can be found at: www.netlib.org

This software was translated from the FORTRAN version to Java by a US government employee on official time. Thus this software is also in the public domain.

The translator's mail address is:

Steve Verrill USDA Forest Products Laboratory 1 Gifford Pinchot Drive Madison, Wisconsin 53705 steve@www1.fpl.fs.fed.us

DISCLAIMER OF WARRANTIES:

THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. THE TRANSLATOR DOES NOT WARRANT, GUARANTEE OR MAKE ANY REPRESENTATIONS REGARDING THE SOFTWARE OR DOCUMENTATION IN TERMS OF THEIR CORRECTNESS, RELIABILITY, CURRENTNESS, OR OTHERWISE. THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY YOU. IN NO CASE WILL ANY PARTY INVOLVED WITH THE CREATION OR DISTRIBUTION OF THE SOFTWARE BE LIABLE FOR ANY DAMAGE THAT MAY RESULT FROM THE USE OF THIS SOFTWARE.

Version:
.5 --- March 24, 1998
Author:
Steve Verrill

Constructor Summary
Fmin()
           
 
Method Summary
static double fmin(double a, double b, Fmin_methods minclass, double tol)
          This method performs a 1-dimensional minimization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fmin

public Fmin()
Method Detail

fmin

public static double fmin(double a,
                          double b,
                          Fmin_methods minclass,
                          double tol)
This method performs a 1-dimensional minimization. It implements Brent's method which combines a golden-section search and parabolic interpolation. The introductory comments from the FORTRAN version are provided below.

This method is a translation from FORTRAN to Java of the Netlib function fmin. In the Netlib listing no author is given.

Translated by Steve Verrill, March 24, 1998.

Parameters:
a - Left endpoint of initial interval
b - Right endpoint of initial interval
minclass - A class that defines a method, f_to_minimize, to minimize. The class must implement the Fmin_methods interface (see the definition in Fmin_methods.java). See FminTest.java for an example of such a class. f_to_minimize must have one double valued argument.
tol - Desired length of the interval in which the minimum will be determined to lie (This should be greater than, roughly, 3.0e-8.)