Class TransformObjectiveShift

All Implemented Interfaces:
AutoCloseable, Problem

public class TransformObjectiveShift extends BBOBTransformation
Transformation that offsets the value of the objective by a fixed amount.
  • Constructor Details

    • TransformObjectiveShift

      public TransformObjectiveShift(BBOBFunction function, double offset)
      Constructs a new instance of the shift objective transformation.
      Parameters:
      function - the inner function
      offset - the fixed offset
  • Method Details

    • evaluate

      public void evaluate(Solution solution)
      Description copied from interface: Problem
      Evaluates 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