Record Class SolveStatistics

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.optimizer.model.SolveStatistics
Record Components:
candidates - metros in the catalogue offered to the solver
minMetros - fewest metros a design could have
maxMetros - most metros a design could have
evaluated - portfolios examined (within the admitted field)
feasible - portfolios that satisfied every constraint
frontier - Pareto-optimal options
exact - true when every portfolio in range was examined
elapsedMillis - wall-clock time of the search, ms

public record SolveStatistics(int candidates, int minMetros, int maxMetros, long evaluated, long feasible, int frontier, boolean exact, long elapsedMillis) extends Record
How the search went.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SolveStatistics(int candidates, int minMetros, int maxMetros, long evaluated, long feasible, int frontier, boolean exact, long elapsedMillis)
    Creates an instance of a SolveStatistics record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the candidates record component.
    long
    Returns the value of the elapsedMillis record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the evaluated record component.
    boolean
    Returns the value of the exact record component.
    long
    Returns the value of the feasible record component.
    int
    Returns the value of the frontier record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the maxMetros record component.
    int
    Returns the value of the minMetros record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SolveStatistics

      public SolveStatistics(int candidates, int minMetros, int maxMetros, long evaluated, long feasible, int frontier, boolean exact, long elapsedMillis)
      Creates an instance of a SolveStatistics record class.
      Parameters:
      candidates - the value for the candidates record component
      minMetros - the value for the minMetros record component
      maxMetros - the value for the maxMetros record component
      evaluated - the value for the evaluated record component
      feasible - the value for the feasible record component
      frontier - the value for the frontier record component
      exact - the value for the exact record component
      elapsedMillis - the value for the elapsedMillis record component
  • 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. All components in this record class 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.
    • candidates

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

      public int minMetros()
      Returns the value of the minMetros record component.
      Returns:
      the value of the minMetros record component
    • maxMetros

      public int maxMetros()
      Returns the value of the maxMetros record component.
      Returns:
      the value of the maxMetros record component
    • evaluated

      public long evaluated()
      Returns the value of the evaluated record component.
      Returns:
      the value of the evaluated record component
    • feasible

      public long feasible()
      Returns the value of the feasible record component.
      Returns:
      the value of the feasible record component
    • frontier

      public int frontier()
      Returns the value of the frontier record component.
      Returns:
      the value of the frontier record component
    • exact

      public boolean exact()
      Returns the value of the exact record component.
      Returns:
      the value of the exact record component
    • elapsedMillis

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