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 solverminMetros- fewest metros a design could havemaxMetros- most metros a design could haveevaluated- portfolios examined (within the admitted field)feasible- portfolios that satisfied every constraintfrontier- Pareto-optimal optionsexact-truewhen every portfolio in range was examinedelapsedMillis- 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
ConstructorsConstructorDescriptionSolveStatistics(int candidates, int minMetros, int maxMetros, long evaluated, long feasible, int frontier, boolean exact, long elapsedMillis) Creates an instance of aSolveStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecandidatesrecord component.longReturns the value of theelapsedMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theevaluatedrecord component.booleanexact()Returns the value of theexactrecord component.longfeasible()Returns the value of thefeasiblerecord component.intfrontier()Returns the value of thefrontierrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxMetrosrecord component.intReturns the value of theminMetrosrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aSolveStatisticsrecord class.- Parameters:
candidates- the value for thecandidatesrecord componentminMetros- the value for theminMetrosrecord componentmaxMetros- the value for themaxMetrosrecord componentevaluated- the value for theevaluatedrecord componentfeasible- the value for thefeasiblerecord componentfrontier- the value for thefrontierrecord componentexact- the value for theexactrecord componentelapsedMillis- the value for theelapsedMillisrecord component
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
candidates
public int candidates()Returns the value of thecandidatesrecord component.- Returns:
- the value of the
candidatesrecord component
-
minMetros
-
maxMetros
-
evaluated
-
feasible
-
frontier
-
exact
-
elapsedMillis
public long elapsedMillis()Returns the value of theelapsedMillisrecord component.- Returns:
- the value of the
elapsedMillisrecord component
-