All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.epfl.lcvm.mccc.PowellHybridNative

java.lang.Object
   |
   +----CH.epfl.lcvm.mccc.PowellHybridNative

public class PowellHybridNative
extends Object
implements RootFinder
A interface which calles a Powell Hybrid root finder. This root finder is defined as a native method and the source code for it can be found in hybrd.f.


Constructor Index

 o PowellHybridNative(Function)
Creates a PowellHybrid root finder for the given function

Method Index

 o findRoot(Matrix)
Returns a root of the function given the inputed initial guess
 o main(String[])
Exercise the class by trying the various functions
 o setTolerance(double)
Sets the tolerance for the newton solver

Constructors

 o PowellHybridNative
 public PowellHybridNative(Function func)
Creates a PowellHybrid root finder for the given function

Parameters:
func - The function for which to find roots

Methods

 o findRoot
 public Matrix findRoot(Matrix value) throws MCCCException
Returns a root of the function given the inputed initial guess

Parameters:
value - Initial guess to the root finder
Returns:
the value of the root
Throws: MCCCException
In case the method doesn't converge it throws this exception
 o setTolerance
 public void setTolerance(double tolerance)
Sets the tolerance for the newton solver

Parameters:
tolerance - The new tolerance
 o main
 public static void main(String argv[]) throws MCCCException
Exercise the class by trying the various functions

Throws: MCCCException
Thrown when numerics fail

All Packages  Class Hierarchy  This Package  Previous  Next  Index