Record Class SensitivityReport
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.solve.SensitivityReport
- Record Components:
recommended- the recommended portfolio keyweightRanges- per weighted objective, the weight range that keeps the recommendationnearest- the closest other frontier option, ornullwhen the frontier has one optionconstraints- per constraint, whether removing it would change the recommendationnotes- caveats (incomplete relaxation, narrowed search)
public record SensitivityReport(String recommended, List<SensitivityReport.WeightRange> weightRanges, SensitivityReport.NearestAlternative nearest, List<SensitivityReport.BindingConstraint> constraints, List<String> notes)
extends Record
How firm the recommendation is. Built by
SensitivityAnalysis from the solver's own evidence,
without searching again.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordWhether a constraint decides the answer.static final recordThe frontier option nearest the recommendation in normalised-score space.static final recordThe range of one objective's share of the total weight over which the recommendation stays the same, the other weights keeping their proportions to each other. -
Constructor Summary
ConstructorsConstructorDescriptionSensitivityReport(String recommended, List<SensitivityReport.WeightRange> weightRanges, SensitivityReport.NearestAlternative nearest, List<SensitivityReport.BindingConstraint> constraints, List<String> notes) Makes the lists immutable. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nearest()Returns the value of thenearestrecord component.notes()Returns the value of thenotesrecord component.Returns the value of therecommendedrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theweightRangesrecord component.
-
Constructor Details
-
SensitivityReport
public SensitivityReport(String recommended, List<SensitivityReport.WeightRange> weightRanges, SensitivityReport.NearestAlternative nearest, List<SensitivityReport.BindingConstraint> constraints, List<String> notes) Makes the lists immutable.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
recommended
Returns the value of therecommendedrecord component.- Returns:
- the value of the
recommendedrecord component
-
weightRanges
Returns the value of theweightRangesrecord component.- Returns:
- the value of the
weightRangesrecord component
-
nearest
-
constraints
Returns the value of theconstraintsrecord component.- Returns:
- the value of the
constraintsrecord component
-
notes
-