Package jline.opt.variables
Class TaskMultiplicity
java.lang.Object
jline.opt.variables.DecisionVariable
jline.opt.variables.LqnDecisionVariable
jline.opt.variables.TaskMultiplicity
Optimize the multiplicity (thread/instance count) of an LQN Task (integer).
Mirrors native-Python
TaskMultiplicity.-
Field Summary
Fields inherited from class jline.opt.variables.DecisionVariable
dimension, name -
Constructor Summary
ConstructorsConstructorDescriptionTaskMultiplicity(String taskName, int minValue, int maxValue) TaskMultiplicity(String taskName, int minValue, int maxValue, String name) TaskMultiplicity(Task task, int minValue, int maxValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyLqn(LayeredNetwork model, Object value) Apply a decoded value to a (copied) LayeredNetwork model.currentValue(Object model) The variable's current (decoded) value in the given model, or null.decode(double[] x) Decode the encoded slice (lengthDecisionVariable.getDimension()) to a value.double[][]Bounds per encoded dimension, each {low, high}.LQN layer name(s) this variable perturbs, or null for flat-network variables.Type identifier used by decomposition and the gradient dispatcher.Methods inherited from class jline.opt.variables.LqnDecisionVariable
applyMethods inherited from class jline.opt.variables.DecisionVariable
connectionMatrix, getDimension, getName, indexOfNode, resolveClass, resolveNode, unitBounds
-
Constructor Details
-
TaskMultiplicity
-
TaskMultiplicity
-
TaskMultiplicity
-
-
Method Details
-
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
-
applyLqn
Description copied from class:LqnDecisionVariableApply a decoded value to a (copied) LayeredNetwork model.- Specified by:
applyLqnin classLqnDecisionVariable
-
getVariableType
Description copied from class:DecisionVariableType identifier used by decomposition and the gradient dispatcher.- Specified by:
getVariableTypein classDecisionVariable
-
getLayer
Description copied from class:DecisionVariableLQN layer name(s) this variable perturbs, or null for flat-network variables. Used by layer freezing (both explicitfrozen_layersand adaptiveauto_freeze): a variable whose layer set intersects the frozen set is held fixed. The model argument is the LayeredNetwork the variable is applied to. LQN variable subclasses override this.- Overrides:
getLayerin classDecisionVariable
-
currentValue
Description copied from class:DecisionVariableThe variable's current (decoded) value in the given model, or null. Used by layer freezing to hold a variable at the model's existing parameter value. Flat and non-introspectable variables return null. LQN variable subclasses override this.- Overrides:
currentValuein classDecisionVariable
-