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.04, 22 Aug 97
Author:
Mance E. Harmon, Leemon Baird

Constructor Index

 o ConjGrad()

Method Index

 o getParameters(int)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
 o initialize(int)
Initialize, either partially or completely.
 o runOneStep()
repeatedly change x until f(x) reaches a local minimum.
 o setWatchManager(WatchManager, String)
Register all variables with this WatchManager.

Constructors

 o ConjGrad
 public ConjGrad()

Methods

 o getParameters
 public Object[][] getParameters(int lang)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.

Overrides:
getParameters in class GradDesc
See Also:
getParameters
 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 runOneStep
 public boolean runOneStep()
repeatedly change x until f(x) reaches a local minimum. This runs one step of the simulation. The function returns true when the simulation is completely done. As the simulation is running, it should call the watchManager.update() function when varaibles change so all the display windows can be updated.

Overrides:
runOneStep 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