Package xal.extension.solver
Class Objective
java.lang.Object
xal.extension.solver.Objective
- Direct Known Subclasses:
MinimiseOscillationsEvaluator.MinimizeOscillationsObjective
Objective represents a goal to achieve in optimization. An objective
corresponds to some specified measure and determines that satisfaction
achieved by a particular value of the measure.
- Author:
- ky6, t6p
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of this objective.abstract double
satisfaction
(double value) Determines how satisfied the user is with the specified value for this objective.toString()
A description of this objective.
-
Field Details
-
name
the name of the objective
-
-
Constructor Details
-
Objective
Constructor- Parameters:
name
- the name to assign the objective
-
-
Method Details
-
satisfaction
public abstract double satisfaction(double value) Determines how satisfied the user is with the specified value for this objective.- Parameters:
value
- The value associated with this objective for a particular trial- Returns:
- the user satisfaction for the specified value
-
getName
Get the name of this objective.- Returns:
- The name of this objective.
-
toString
A description of this objective.
-