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.int
Get the maximum number of evaluations per run.int
Get the minimum number of evaluations per run.Return the next trial point.void
performRun
(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:
getLabel
in classSearchAlgorithm
- Returns:
- a label for the algorithm
-
performRun
Calculate the next few trial points.- Specified by:
performRun
in 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:
getMinEvaluationsPerRun
in 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:
getMaxEvaluationsPerRun
in classSearchAlgorithm
- Returns:
- the maximum number of evaluation per run.
-