Package xal.extension.solver.algorithm
Class InitialAlgorithm
java.lang.Object
xal.extension.solver.algorithm.SearchAlgorithm
xal.extension.solver.algorithm.InitialAlgorithm
- All Implemented Interfaces:
AlgorithmScheduleListener,SolutionJudgeListener
InitialAlgorithm
- Since:
- Sep 20, 2004
- Author:
- tap
-
Field Summary
Fields inherited from class xal.extension.solver.algorithm.SearchAlgorithm
EFFICIENCY_COMPARATOR, problem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Return the label for a search algorithm.intGet the maximum number of evaluations per run.intGet the minimum number of evaluations per run.Return the next trial point.voidperformRun(AlgorithmSchedule schedule) Calculate the next few trial points.Methods inherited from class xal.extension.solver.algorithm.SearchAlgorithm
addSearchAlgorithmListener, algorithmRunExecuted, algorithmRunWillExecute, evaluateTrialPoint, executeRun, foundNewOptimalSolution, getEfficiency, getEvaluationsLeft, removeSearchAlgorithmListener, reset, setProblem, setProposedEvaluations, trialScored, trialVetoed
-
Constructor Details
-
InitialAlgorithm
Constructor
-
-
Method Details
-
getLabel
Return the label for a search algorithm.- Specified by:
getLabelin classSearchAlgorithm- Returns:
- a label for the algorithm
-
performRun
Calculate the next few trial points.- Specified by:
performRunin classSearchAlgorithm- Parameters:
schedule- the schedule of runs
-
nextTrialPoint
Return the next trial point.- Returns:
- a new trial point
-
getMinEvaluationsPerRun
public int getMinEvaluationsPerRun()Get the minimum number of evaluations per run. Subclasses may want to override this method.- Overrides:
getMinEvaluationsPerRunin classSearchAlgorithm- Returns:
- the minimum number of evaluation per run.
-
getMaxEvaluationsPerRun
public int getMaxEvaluationsPerRun()Get the maximum number of evaluations per run. Subclasses may want to override this method.- Overrides:
getMaxEvaluationsPerRunin classSearchAlgorithm- Returns:
- the maximum number of evaluation per run.
-