Class TransformObjectiveShift
java.lang.Object
org.moeaframework.problem.AbstractProblem
org.moeaframework.problem.BBOB2016.BBOBFunction
org.moeaframework.problem.BBOB2016.BBOBTransformation
org.moeaframework.problem.BBOB2016.TransformObjectiveShift
- All Implemented Interfaces:
AutoCloseable,Named,Problem
Transformation that offsets the value of the objective by a fixed amount.
-
Field Summary
Fields inherited from class org.moeaframework.problem.BBOB2016.BBOBTransformation
functionFields inherited from class org.moeaframework.problem.AbstractProblem
numberOfConstraints, numberOfObjectives, numberOfVariables -
Constructor Summary
ConstructorsConstructorDescriptionTransformObjectiveShift(BBOBFunction function, double offset) Constructs a new instance of the shift objective transformation. -
Method Summary
Methods inherited from class org.moeaframework.problem.BBOB2016.BBOBTransformation
newSolutionMethods inherited from class org.moeaframework.problem.AbstractProblem
close, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables
-
Constructor Details
-
TransformObjectiveShift
Constructs a new instance of the shift objective transformation.- Parameters:
function- the inner functionoffset- the fixed offset
-
-
Method Details
-
evaluate
Description copied from interface:ProblemEvaluates the solution, updating the solution's objectives in place. Algorithms must explicitly call this method when appropriate to evaluate new solutions or reevaluate modified solutions.- Parameters:
solution- the solution to be evaluated
-