Record Class SolveRun

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.solve.SolveRun
Record Components:
solution - what the solver returned
objectiveIds - objective ids, in the order of every values row
directions - objective directions, same order
weights - the weights used, same order (not necessarily summing to 1)
feasible - every feasible portfolio, in enumeration order
rejectedOnlyBy - per constraint id, the portfolios that failed that constraint and no other
relaxationComplete - false when portfolios containing a metro that a constraint prunes per metro were not enumerated (the extended field exceeded the ceiling), so the binding analysis of those constraints is incomplete
candidates - metros offered to the solver
elapsedMillis - wall-clock time of the search, ms

public record SolveRun(DesignSolution solution, List<String> objectiveIds, Direction[] directions, ValueScale[] scales, double[] weights, List<SolveRun.Evaluated> feasible, Map<String, List<SolveRun.Evaluated>> rejectedOnlyBy, boolean relaxationComplete, int candidates, long elapsedMillis) extends Record
A DesignSolution plus the evidence behind it, kept so the answer can be interrogated without searching again: every feasible portfolio with its raw objective values, and every portfolio that failed exactly one constraint (grouped by that constraint). SensitivityAnalysis re-ranks these sets under other weights, or with one constraint removed, using the solver's own Ranking rules, so its answers are exact for the portfolios searched.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • solution

      public DesignSolution solution()
      Returns the value of the solution record component.
      Returns:
      the value of the solution record component
    • objectiveIds

      public List<String> objectiveIds()
      Returns the value of the objectiveIds record component.
      Returns:
      the value of the objectiveIds record component
    • directions

      public Direction[] directions()
      Returns the value of the directions record component.
      Returns:
      the value of the directions record component
    • scales

      public ValueScale[] scales()
      Returns the value of the scales record component.
      Returns:
      the value of the scales record component
    • weights

      public double[] weights()
      Returns the value of the weights record component.
      Returns:
      the value of the weights record component
    • feasible

      public List<SolveRun.Evaluated> feasible()
      Returns the value of the feasible record component.
      Returns:
      the value of the feasible record component
    • rejectedOnlyBy

      public Map<String, List<SolveRun.Evaluated>> rejectedOnlyBy()
      Returns the value of the rejectedOnlyBy record component.
      Returns:
      the value of the rejectedOnlyBy record component
    • relaxationComplete

      public boolean relaxationComplete()
      Returns the value of the relaxationComplete record component.
      Returns:
      the value of the relaxationComplete record component
    • candidates

      public int candidates()
      Returns the value of the candidates record component.
      Returns:
      the value of the candidates record component
    • elapsedMillis

      public long elapsedMillis()
      Returns the value of the elapsedMillis record component.
      Returns:
      the value of the elapsedMillis record component