Package jline.opt
Class LineEvaluator
java.lang.Object
jline.opt.LineEvaluator
Interface between the optimizer and LINE's SolverAUTO. Applies decision
variable values to a per-evaluation model copy, solves, and extracts per-
(station, class) and system metrics into an
EvaluationResult. Mirrors
native-Python line_solver.opt.evaluator.LineEvaluator.
Because a copied model carries a cached NetworkStruct that scalar setters
do not invalidate, evaluateValues(java.util.Map<java.lang.String, java.lang.Object>) forces refreshStruct after
applying variables so the solve reflects the mutated configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionLineEvaluator(Network model, List<DecisionVariable> variables, List<Pair<DecisionVariable, Object>> fixedVariables) -
Method Summary
Modifier and TypeMethodDescriptiondecodeVariables(double[] x) Decode the full vector to a name -> decoded-value map.evaluate(double[] x) evaluateValues(Map<String, Object> values) evaluateValuesWithCache(Map<String, Object> values, Map<String, EvaluationResult> cache) evaluateWithCache(double[] x, Map<String, EvaluationResult> cache) double[][]Concatenated per-dimension bounds for the full optimization vector.intgetModel()int
-
Constructor Details
-
LineEvaluator
public LineEvaluator(Network model, List<DecisionVariable> variables, List<Pair<DecisionVariable, Object>> fixedVariables)
-
-
Method Details
-
getModel
-
getVariables
-
getFixedVariables
-
getTotalDimension
public int getTotalDimension() -
getEvaluationCount
public int getEvaluationCount() -
getBounds
public double[][] getBounds()Concatenated per-dimension bounds for the full optimization vector. -
decodeVariables
Decode the full vector to a name -> decoded-value map. -
copyModel
-
evaluate
-
evaluateValues
-
evaluateValuesWithCache
public EvaluationResult evaluateValuesWithCache(Map<String, Object> values, Map<String, EvaluationResult> cache) -
evaluateWithCache
-