Class TransformVariablesShift

All Implemented Interfaces:
AutoCloseable, Problem

public class TransformVariablesShift extends BBOBTransformation
Transformation that shifts all decision variables by a given offset.
  • Constructor Details

    • TransformVariablesShift

      public TransformVariablesShift(BBOBFunction function, double[] offset)
      Constructs a transformation that shifts all decision variables by a given offset.
      Parameters:
      function - the inner function
      offset - the 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