public class SubgradientInfo extends Object
Constructor and Description |
---|
SubgradientInfo(int[] staffing,
double[] sl,
double[][] subg)
Holds the information on a subgradient of the service level function.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getServiceLevel()
The service level of
getStaffing() . |
int[] |
getStaffing()
The staffing vector where the subgradient
getSubgradient() was estimated. |
double[][] |
getSubgradient()
Returns the subgradient matrix.
|
public SubgradientInfo(int[] staffing, double[] sl, double[][] subg)
staffing
- the point where this subgradient is estimatedsl
- the service level at point staffing
subg
- the subgradient matrix of dimension [sl.length][staffing.length]
.
This can either be the global subgradient (in this case sl.length == 1
), or
every call type (in this case sl.length ==
number of call types), but not both at the same time.public double[][] getSubgradient()
[sl.length][staffing.length]
.
This can either be the global subgradient (in this case sl.length == 1
), or
every call type (in this case sl.length ==
number of call types), but
not both at the same time.
No defensive copy returned.public double[] getServiceLevel()
getStaffing()
.
No defensive copy returned.public int[] getStaffing()
getSubgradient()
was estimated.
No defensive copy returned.