Package jline.opt.variables
Class DecisionVariable
java.lang.Object
jline.opt.variables.DecisionVariable
- Direct Known Subclasses:
ClassPriority,ClassServiceMapping,JobPopulation,RoutingProbabilities,ServerAllocation,ServiceRate,StationReplicas
Abstract base for line-opt decision variables. Mirrors native-Python
line_solver.opt.variables.DecisionVariable: each variable encodes a
tunable model parameter as continuous values in [0, 1] (see
getBounds()), decodes them to the native domain (decode(double[])),
and applies the decoded value to a per-evaluation model copy
(apply(jline.lang.Network, java.lang.Object)). Decision variables hold references to the base model's
objects; because models are deep-copied per evaluation, objects are
re-resolved by name in the target model.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidApply a decoded value to a (copied) model.protected static MatrixconnectionMatrix(Network model) Node-by-node binary connection (adjacency) matrix.abstract Objectdecode(double[] x) Decode the encoded slice (lengthgetDimension()) to a value.abstract double[][]Bounds per encoded dimension, each {low, high}.intgetName()abstract StringType identifier used by decomposition and the gradient dispatcher.protected static intindexOfNode(List<Node> nodes, String nameToFind) protected static JobClassresolveClass(Network model, JobClass jobclass) protected static NoderesolveNode(Network model, Node node) protected static double[][]unitBounds(int dim)
-
Field Details
-
name
-
dimension
protected int dimension
-
-
Constructor Details
-
DecisionVariable
-
-
Method Details
-
getName
-
getDimension
public int getDimension() -
getBounds
public abstract double[][] getBounds()Bounds per encoded dimension, each {low, high}. Standard is {0,1}. -
decode
Decode the encoded slice (lengthgetDimension()) to a value. -
apply
Apply a decoded value to a (copied) model. -
getVariableType
Type identifier used by decomposition and the gradient dispatcher. -
resolveClass
-
resolveNode
-
connectionMatrix
Node-by-node binary connection (adjacency) matrix. -
unitBounds
protected static double[][] unitBounds(int dim) -
indexOfNode
-