public class SimplexSearchAlgorithm extends SearchAlgorithm
_eventProxy, _messageCenter, _problem
Constructor and Description |
---|
SimplexSearchAlgorithm()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
foundNewOptimalSolution(SolutionJudge source,
java.util.List<Trial> solutions,
Trial solution)
Send a message that a new optimal solution has been found.
|
java.lang.String |
getLabel()
Get the label for this search algorithm.
|
int |
getMaxEvaluationsPerRun()
Get the maximum number of evaluations per run.
|
int |
getMinEvaluationsPerRun()
Get the minimum number of evaluations per run.
|
int |
globalRating()
Get the rating for this algorithm which in an integer between 0 and 10 and
indicates how well this algorithm performs on global searches.
|
int |
localRating()
Get the rating for this algorithm which in an integer between 0 and 10 and
indicates how well this algorithm performs on local searches.
|
void |
performRun(AlgorithmRun algorithmRun)
Calculate the next few trial points.
|
void |
reset()
Reset this algorithm.
|
void |
setProblem(Problem problem)
Set the specified problem to solve.
|
void |
trialScored(AlgorithmSchedule schedule,
Trial trial)
Handle a message that a trial has been scored.
|
void |
trialVetoed(AlgorithmSchedule schedule,
Trial trial)
Handle a message that a trial has been vetoed.
|
addSearchAlgorithmListener, removeSearchAlgorithmListener, strategyExecuted, strategyWillExecute
public void setProblem(Problem problem)
setProblem
in class SearchAlgorithm
problem
- the problem to solvepublic void reset()
reset
in class SearchAlgorithm
public java.lang.String getLabel()
getLabel
in class SearchAlgorithm
public void performRun(AlgorithmRun algorithmRun)
performRun
in class SearchAlgorithm
algorithmRun
- the algorithm run to perform the evaluationpublic int getMinEvaluationsPerRun()
getMinEvaluationsPerRun
in class SearchAlgorithm
public int getMaxEvaluationsPerRun()
getMaxEvaluationsPerRun
in class SearchAlgorithm
public int globalRating()
public int localRating()
public void trialScored(AlgorithmSchedule schedule, Trial trial)
trialScored
in interface AlgorithmScheduleListener
trialScored
in class SearchAlgorithm
schedule
- Description of the Parametertrial
- Description of the Parameterpublic void trialVetoed(AlgorithmSchedule schedule, Trial trial)
trialVetoed
in interface AlgorithmScheduleListener
trialVetoed
in class SearchAlgorithm
schedule
- Description of the Parametertrial
- Description of the Parameterpublic void foundNewOptimalSolution(SolutionJudge source, java.util.List<Trial> solutions, Trial solution)
foundNewOptimalSolution
in interface SolutionJudgeListener
foundNewOptimalSolution
in class SearchAlgorithm
source
- The source of the new optimal solution.solutions
- The list of solutions.solution
- The new optimal solution.