Package jline.solvers
Class NetworkBoundsTable
java.lang.Object
jline.solvers.AvgTable
jline.solvers.NetworkBoundsTable
Table of bound brackets produced by SolverBA, in the layout of
NetworkAvgTable.
Each row is a station-class pair carrying the lower and upper side of a
bound family: queue length (Qlower, Qupper) and throughput
(Tlower, Tupper). The two sides bracket the exact solution.
One-sided families (cub is upper-only, mbjb and ldbcmp are lower-only) carry NaN on the missing side. NaN is preserved rather than replaced by zero, so a reader can tell "no bound on this side" apart from "the bound is zero".
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the job class names, one per row.Returns the queue-length lower bounds.Returns the queue-length upper bounds.Returns the station names, one per row.Returns the throughput lower bounds.Returns the throughput upper bounds.voidprint()Prints the table using the options attached to it.voidprint(SolverOptions options) Prints the table.voidPrints the table using the options attached to it.voidprintTable(SolverOptions options) Prints the table.voidsetClassNames(List<String> classNames) Sets the job class names, one per row.voidsetNumberOfDigits(int nd) Sets the number of decimal digits used when printing.voidsetOptions(SolverOptions options) Sets the solver options associated with this table.voidsetStationNames(List<String> stationNames) Sets the station names, one per row.
-
Constructor Details
-
NetworkBoundsTable
public NetworkBoundsTable(List<Double> Qlower, List<Double> Qupper, List<Double> Tlower, List<Double> Tupper) Creates a bounds table from the four bracket columns.- Parameters:
Qlower- list of queue-length lower boundsQupper- list of queue-length upper boundsTlower- list of throughput lower boundsTupper- list of throughput upper bounds
-
-
Method Details
-
getQlower
Returns the queue-length lower bounds.- Returns:
- the Qlower column
-
getQupper
Returns the queue-length upper bounds.- Returns:
- the Qupper column
-
getTlower
Returns the throughput lower bounds.- Returns:
- the Tlower column
-
getTupper
Returns the throughput upper bounds.- Returns:
- the Tupper column
-
getClassNames
Returns the job class names, one per row.- Returns:
- the class names
-
setClassNames
Sets the job class names, one per row.- Parameters:
classNames- the class names
-
getStationNames
Returns the station names, one per row.- Returns:
- the station names
-
setStationNames
Sets the station names, one per row.- Parameters:
stationNames- the station names
-
setNumberOfDigits
public void setNumberOfDigits(int nd) Sets the number of decimal digits used when printing.- Parameters:
nd- number of decimal digits
-
setOptions
Sets the solver options associated with this table.- Overrides:
setOptionsin classAvgTable- Parameters:
options- the solver options
-
print
public void print()Prints the table using the options attached to it. -
print
Prints the table.Unlike
NetworkAvgTable.print(), no row is suppressed on the grounds of being all-zero: a bound of zero is a meaningful result, and a one-sided family would otherwise lose rows whose only present side is zero. Row filtering happens once, in SolverBA.getBoundsTable.- Parameters:
options- the solver options controlling verbosity
-
printTable
public void printTable()Prints the table using the options attached to it. -
printTable
Prints the table.- Parameters:
options- the solver options controlling verbosity
-