All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sim.gradDesc.ConjGrad

java.lang.Object
   |
   +----sim.Experiment
           |
           +----sim.gradDesc.GradDesc
                   |
                   +----sim.gradDesc.ConjGrad

public class ConjGrad
extends GradDesc
Conjugate Gradient.

This code is (c) 1996 Mance Harmon <harmonme@aa.wpafb.af.mil>, http://www.aa.wpafb.af.mil/~harmonme
The source and object code may be redistributed freely. If the code is modified, please state so in the comments.

Version:
1.03, 29 May 97
Author:
Mance E. Harmon

Variable Index

 o abscissa_step
step size for the initial abscissas used in the mnbrack method
 o beta
the factor used to create a new search direction
 o errFun
the error function to minimize
 o error
the error being gradient descended on
 o logError
the log base 10 of error
 o mode
the method used to calculate conjugate direction: Polak-Ribiere (0) or Fletcher-Reeves (1)
 o time
current time (increments once per weight change
 o tolerance
stop learning when smoothed error < tolerance

Constructor Index

 o ConjGrad()

Method Index

 o BNF(int)
Return the BNF description of how to parse the parameters of this object.
 o initialize(int)
Initialize, either partially or completely.
 o parse(Parser, int)
Parse the input file to get the parameters for this object.
 o run()
repeatedly change x until f(x) reaches a local minimum
 o setWatchManager(WatchManager, String)
Register all variables with this WatchManager.
 o unparse(Unparser, int)
Output a description of this object that can be parsed with parse().

Variables

 o errFun
 protected ErrFun errFun
the error function to minimize

 o beta
 protected double beta
the factor used to create a new search direction

 o error
 protected PDouble error
the error being gradient descended on

 o logError
 protected PDouble logError
the log base 10 of error

 o tolerance
 protected NumExp tolerance
stop learning when smoothed error < tolerance

 o time
 protected PInt time
current time (increments once per weight change

 o abscissa_step
 protected NumExp abscissa_step
step size for the initial abscissas used in the mnbrack method

 o mode
 protected NumExp mode
the method used to calculate conjugate direction: Polak-Ribiere (0) or Fletcher-Reeves (1)

Constructors

 o ConjGrad
 public ConjGrad()

Methods

 o setWatchManager
 public void setWatchManager(WatchManager wm,
                             String name)
Register all variables with this WatchManager. This will be called after all parsing is done.

Overrides:
setWatchManager in class GradDesc
 o run
 public void run()
repeatedly change x until f(x) reaches a local minimum

Overrides:
run in class GradDesc
 o BNF
 public String BNF(int lang)
Return the BNF description of how to parse the parameters of this object.

Overrides:
BNF in class GradDesc
 o unparse
 public void unparse(Unparser u,
                     int lang)
Output a description of this object that can be parsed with parse().

Overrides:
unparse in class GradDesc
See Also:
Parsable
 o parse
 public Object parse(Parser p,
                     int lang) throws ParserException
Parse the input file to get the parameters for this object.

Throws: ParserException
parser didn't find the required token
Overrides:
parse in class GradDesc
 o initialize
 public void initialize(int level)
Initialize, either partially or completely.

Overrides:
initialize in class Experiment
See Also:
initialize

All Packages  Class Hierarchy  This Package  Previous  Next  Index