Package jline.opt.variables
Class RoutingProbabilities
java.lang.Object
jline.opt.variables.DecisionVariable
jline.opt.variables.RoutingProbabilities
Optimize the routing probabilities of a job class from a source node to a
list of target nodes. Uses stick-breaking encoding (dimension = targets - 1)
so probabilities sum to 1. On apply, default routing is reconstructed from
the connection matrix for every class (a uniform split over outgoing links,
reproducing LINE's link() semantics), then the overridden (class, source) row
is replaced with the decoded probabilities. Mirrors native-Python
RoutingProbabilities.-
Field Summary
Fields inherited from class jline.opt.variables.DecisionVariable
dimension, name -
Constructor Summary
Constructors -
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
-
RoutingProbabilities
-
RoutingProbabilities
-
-
Method Details
-
getJobClass
-
getSource
-
getTargets
-
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
-