gov.sns.tools.optimizer
Class SimplexSearchAlgorithm

java.lang.Object
  |
  +--gov.sns.tools.optimizer.SearchAlgorithm
        |
        +--gov.sns.tools.optimizer.SimplexSearchAlgorithm

public class SimplexSearchAlgorithm
extends SearchAlgorithm


Constructor Summary
SimplexSearchAlgorithm()
          Creates a new instance of SimplexSearchAlgorithm
 
Method Summary
protected  boolean acceptProxyForFitting(ParameterProxy pr)
          returns true if the step of finding is more than 0.
protected  double getBestScore()
          returns the best score after step
 double getContraction()
           
 double getExpansion()
           
 double getReflection()
           
 double getShinkage()
           
 int getShrinkageMax()
           
 int getType()
          returns the type of the algorithm - SearchAlgorithmConstants.SIMPLEX_ALGORITHM.
protected  boolean makeStep()
          make one step in the search.
protected  void reset()
          reset for searching from scratch; forget history
 void setContraction(double gamma)
           
 void setExpansion(double chi)
           
 void setReflection(double rho)
           
 void setShinkage(double sigma)
           
 void setShrinkageMax(int nShrinkMax)
           
 
Methods inherited from class gov.sns.tools.optimizer.SearchAlgorithm
accept, getBestSolutionMap, getNumVariables, getScorer, getVariables, getWantToStop, setScorer, setVariables, setWantToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplexSearchAlgorithm

public SimplexSearchAlgorithm()
Creates a new instance of SimplexSearchAlgorithm

Method Detail

reset

protected void reset()
reset for searching from scratch; forget history

Specified by:
reset in class SearchAlgorithm

acceptProxyForFitting

protected boolean acceptProxyForFitting(ParameterProxy pr)
returns true if the step of finding is more than 0. It overrides superclass method.

Overrides:
acceptProxyForFitting in class SearchAlgorithm

makeStep

protected boolean makeStep()
make one step in the search. It returns ShouldStop boolean.

Specified by:
makeStep in class SearchAlgorithm

getBestScore

protected double getBestScore()
returns the best score after step

Specified by:
getBestScore in class SearchAlgorithm

getType

public int getType()
returns the type of the algorithm - SearchAlgorithmConstants.SIMPLEX_ALGORITHM.

Specified by:
getType in class SearchAlgorithm

setReflection

public void setReflection(double rho)

setExpansion

public void setExpansion(double chi)

setContraction

public void setContraction(double gamma)

setShinkage

public void setShinkage(double sigma)

getReflection

public double getReflection()

getExpansion

public double getExpansion()

getContraction

public double getContraction()

getShinkage

public double getShinkage()

setShrinkageMax

public void setShrinkageMax(int nShrinkMax)

getShrinkageMax

public int getShrinkageMax()