Class DSEEvaluator
java.lang.Object
de.uka.ipd.sdq.dsexplore.opt4j.representation.DSEEvaluator
- All Implemented Interfaces:
org.opt4j.core.problem.Evaluator<PCMPhenotype>
The Evaluator is responsible for determining the objective functions values
for an individual based on the phenotype (i.e. the PCM instance). Thus, it
calls the simulation or LQN solver for performance and also a cost evaluator.
It is a singleton
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ConstraintAndEvaluator>
protected List<ObjectiveAndEvaluator>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToPhenotypeCache
(String genotypeID, DSEObjectives oc) evaluate
(PCMPhenotype pheno) The current implicit assumption is that each candidate is evaluated right after it has been decoded, or never.Collection<org.opt4j.core.Objective>
void
init
(List<IAnalysis> evaluators, IProgressMonitor monitor, de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard, boolean stopOnInitialFailure) void
reset()
void
retrieveCriterion
(PCMPhenotype pheno, DSEObjectives obj, CriterionAndEvaluator criterionAndEvaluator)
-
Field Details
-
objectives
-
constraints
-
-
Constructor Details
-
DSEEvaluator
-
-
Method Details
-
init
public void init(List<IAnalysis> evaluators, IProgressMonitor monitor, de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard, boolean stopOnInitialFailure) -
reset
public void reset() -
evaluate
The current implicit assumption is that each candidate is evaluated right after it has been decoded, or never.- Specified by:
evaluate
in interfaceorg.opt4j.core.problem.Evaluator<PCMPhenotype>
-
retrieveCriterion
public void retrieveCriterion(PCMPhenotype pheno, DSEObjectives obj, CriterionAndEvaluator criterionAndEvaluator) throws CoreException, de.uka.ipd.sdq.workflow.jobs.UserCanceledException, de.uka.ipd.sdq.workflow.jobs.JobFailedException, AnalysisFailedException - Throws:
CoreException
de.uka.ipd.sdq.workflow.jobs.UserCanceledException
de.uka.ipd.sdq.workflow.jobs.JobFailedException
AnalysisFailedException
-
getObjectives
-
getCriterionAndEvaluatorList
-
getExceptionList
-
addToPhenotypeCache
-
getMonitor
-