Class DSEEvaluator
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.opt4j.representation.DSEEvaluator
-
- All Implemented Interfaces:
org.opt4j.core.problem.Evaluator<PCMPhenotype>
public class DSEEvaluator extends Object implements 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
Fields Modifier and Type Field Description protected List<ConstraintAndEvaluator>
constraints
protected List<ObjectiveAndEvaluator>
objectives
-
Constructor Summary
Constructors Constructor Description DSEEvaluator(com.google.inject.Provider<DSEObjectives> provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToPhenotypeCache(String genotypeID, DSEObjectives oc)
DSEObjectives
evaluate(PCMPhenotype pheno)
The current implicit assumption is that each candidate is evaluated right after it has been decoded, or never.List<CriterionAndEvaluator>
getCriterionAndEvaluatorList()
List<Exception>
getExceptionList()
IProgressMonitor
getMonitor()
Collection<org.opt4j.core.Objective>
getObjectives()
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 Detail
-
objectives
protected List<ObjectiveAndEvaluator> objectives
-
constraints
protected List<ConstraintAndEvaluator> constraints
-
-
Constructor Detail
-
DSEEvaluator
@Inject public DSEEvaluator(com.google.inject.Provider<DSEObjectives> provider)
-
-
Method Detail
-
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
public DSEObjectives evaluate(PCMPhenotype pheno)
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
public Collection<org.opt4j.core.Objective> getObjectives()
-
getCriterionAndEvaluatorList
public List<CriterionAndEvaluator> getCriterionAndEvaluatorList()
-
addToPhenotypeCache
public void addToPhenotypeCache(String genotypeID, DSEObjectives oc)
-
getMonitor
public IProgressMonitor getMonitor()
-
-