Class ValueRef

java.lang.Object
xal.extension.solver.ValueRef

public class ValueRef extends Object
ValueRef class is a reference to the current value for a single variable in the current trial point. Value reference provides an alternative way for models to evaluate the trial points. Instead of having to copy values from the latest trial point, evaluators may alternatively choose to simply get the value references up front and then use them directly in the model.
Author:
ky6
  • Field Details

    • value

      protected double value
      the current value
  • Constructor Details

    • ValueRef

      public ValueRef()
  • Method Details

    • setValue

      protected void setValue(double value)
      Set the current value.
      Parameters:
      value - The new value
    • getValue

      public double getValue()
      Get the current value.
      Returns:
      the current value