Package jline.opt.variables
Class LqnDecisionVariable
java.lang.Object
jline.opt.variables.DecisionVariable
jline.opt.variables.LqnDecisionVariable
- Direct Known Subclasses:
ActivityThinkTime,HostDemand,ProcessorMultiplicity,TaskMultiplicity,TaskReplication,TaskThinkTime
Abstract base for LayeredNetwork (LQN) decision variables. Flat decision
variables mutate a
Network; LQN variables mutate a
LayeredNetwork, so the flat apply(Network, Object) is invalid
here and throws, while applyLqn(LayeredNetwork, Object) carries the
LQN mutation. The evaluator branches on problem.isLayered() and calls
applyLqn for LQN variables. Mirrors the LQN variable classes in
native-Python line_solver.opt.variables.-
Field Summary
Fields inherited from class jline.opt.variables.DecisionVariable
dimension, name -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jline.opt.variables.DecisionVariable
connectionMatrix, currentValue, decode, getBounds, getDimension, getLayer, getName, getVariableType, indexOfNode, resolveClass, resolveNode, unitBounds
-
Constructor Details
-
LqnDecisionVariable
-
-
Method Details
-
apply
Invalid for LQN variables: they apply to a LayeredNetwork, not a flat Network. The evaluator's layered path callsapplyLqn(jline.lang.layered.LayeredNetwork, java.lang.Object)instead.- Specified by:
applyin classDecisionVariable
-
applyLqn
Apply a decoded value to a (copied) LayeredNetwork model.
-