Package jline.opt.variables
Class ClassServiceMapping
java.lang.Object
jline.opt.variables.DecisionVariable
jline.opt.variables.ClassServiceMapping
Optimize the class-to-station mapping by rerouting a job class through a
selected candidate station and bypassing the others, preserving default
routing of every other class. Per-node routing is reconstructed from the
connection matrix (uniform split over outgoing links); for the mapped class
the non-selected candidate columns are zeroed so no traffic enters them.
Mirrors native-Python
ClassServiceMapping.-
Field Summary
Fields inherited from class jline.opt.variables.DecisionVariable
dimension, name -
Constructor Summary
ConstructorsConstructorDescriptionClassServiceMapping(JobClass jobclass, List<Station> stations) ClassServiceMapping(JobClass jobclass, List<Station> stations, 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
-
ClassServiceMapping
-
ClassServiceMapping
-
-
Method Details
-
getJobClass
-
getStations
-
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
-