Package jline.opt.variables
Class StationReplicas
java.lang.Object
jline.opt.variables.DecisionVariable
jline.opt.variables.StationReplicas
Optimize the number of identical copies (replicas) of a station. N replicas
of a load-balanced identical station are represented as a single multiserver
station with N times the base server count (an M/M/c-equivalent reduction),
keeping topology and node names fixed. Mirrors native-Python
StationReplicas.-
Field Summary
Fields inherited from class jline.opt.variables.DecisionVariable
dimension, name -
Constructor Summary
ConstructorsConstructorDescriptionStationReplicas(Station station, int minReplicas, int maxReplicas) StationReplicas(Station station, int minReplicas, int maxReplicas, 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.double[][]Bounds per encoded dimension, each {low, high}.Type identifier used by decomposition and the gradient dispatcher.Methods inherited from class jline.opt.variables.DecisionVariable
connectionMatrix, getDimension, getName, indexOfNode, resolveClass, resolveNode, unitBounds
-
Constructor Details
-
StationReplicas
-
StationReplicas
-
-
Method Details
-
getStation
-
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
-