Package xal.extension.solver
Class ValueRef
java.lang.Object
xal.extension.solver.ValueRef
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
protected double valuethe 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
-