Package jline.opt.variables
Class ClassPriority
java.lang.Object
jline.opt.variables.DecisionVariable
jline.opt.variables.ClassPriority
Optimize the priority of job classes. In 'levels' mode each class gets an
integer priority in [minPriority, maxPriority] (one encoded dimension per
class); in 'permutation' mode the encoded random keys induce a priority
ordering (n-1 dimensions). Mirrors native-Python
ClassPriority.-
Field Summary
Fields inherited from class jline.opt.variables.DecisionVariable
dimension, name -
Constructor Summary
ConstructorsConstructorDescriptionClassPriority(List<JobClass> jobclasses) ClassPriority(List<JobClass> jobclasses, String mode, int minPriority, int maxPriority, 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}.getMode()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
-
ClassPriority
-
ClassPriority
-
-
Method Details
-
getJobClasses
-
getMode
-
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
-