Package jline.opt.variables
Class ServiceRate
java.lang.Object
jline.opt.variables.DecisionVariable
jline.opt.variables.ServiceRate
Optimize the exponential processing rate of a station for a job class.
Encodes a continuous rate in [minRate, maxRate]. This is a continuous
(differentiable) variable, so it exposes
paramKey() and
decodeJacobian(double[]) for the analytic-gradient path. Mirrors native-Python
ServiceRate.-
Field Summary
Fields inherited from class jline.opt.variables.DecisionVariable
dimension, name -
Constructor Summary
ConstructorsConstructorDescriptionServiceRate(ServiceStation station, JobClass jobclass, double minRate, double maxRate) ServiceRate(ServiceStation station, JobClass jobclass, double minRate, double maxRate, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidApply a decoded value to a (copied) model.decode(double[] x) Decode the encoded slice (lengthDecisionVariable.getDimension()) to a value.doubledecodeJacobian(double[] x) d(decoded rate)/d(encoded x): constant slope of the linear map.double[][]Bounds per encoded dimension, each {low, high}.Type identifier used by decomposition and the gradient dispatcher.paramKey()Sensitivity parameter key this variable controls.Methods inherited from class jline.opt.variables.DecisionVariable
connectionMatrix, getDimension, getName, indexOfNode, resolveClass, resolveNode, unitBounds
-
Constructor Details
-
ServiceRate
-
ServiceRate
public ServiceRate(ServiceStation station, JobClass jobclass, double minRate, double maxRate, String name)
-
-
Method Details
-
getStation
-
getJobClass
-
getBounds
public double[][] getBounds()Description copied from class:DecisionVariableBounds per encoded dimension, each {low, high}. Standard is {0,1}.- Specified by:
getBoundsin classDecisionVariable
-
decode
Description copied from class:DecisionVariableDecode the encoded slice (lengthDecisionVariable.getDimension()) to a value.- Specified by:
decodein classDecisionVariable
-
apply
Description copied from class:DecisionVariableApply a decoded value to a (copied) model.- Specified by:
applyin classDecisionVariable
-
getVariableType
Description copied from class:DecisionVariableType identifier used by decomposition and the gradient dispatcher.- Specified by:
getVariableTypein classDecisionVariable
-
paramKey
Sensitivity parameter key this variable controls. -
decodeJacobian
public double decodeJacobian(double[] x) d(decoded rate)/d(encoded x): constant slope of the linear map.
-