Package jline.opt.solver
Class LineOptSolverOptions
java.lang.Object
jline.opt.solver.LineOptSolverOptions
Configuration options for
LineOptSolver, mirroring the option dict of
native-Python LineOptSolver.defaultOptions(). Chained setters return
this.-
Field Summary
FieldsModifier and TypeFieldDescriptionintpartial_plus_fd full finite-difference correction period.doubleExplicit layer freezing (LQN only): host/task layer names whose variables are held at the model's current value instead of being optimized.intLayeredNetwork (LQN) gradient source, used only when the model is a LayeredNetwork and the gradient path is taken: 'fd' (whole-model finite difference, robust default), 'partial_sens' (SolverLN per-layer partial derivatives, cheap/biased), or 'partial_plus_fd' (partial with a periodic full-FD correction everyfdRefreshgradient evaluations).intdoubledouble'evolution', 'gradient', or 'auto'.doubleintdouble'worst' (minimax) or 'mean' (weighted) aggregation across scenarios.doubledoubleboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetFdRefresh(int v) Set the partial_plus_fd full finite-difference correction period.setFdStep(double v) setFrozenLayers(List<String> layers) Freeze the given LQN layers (list of host/task layer names).setGradientRestarts(int v) Set the LQN gradient source: 'fd', 'partial_sens', or 'partial_plus_fd'.setMaxIterations(int v) setMutation(double low, double high) setPenaltyWeight(double v) setPopsize(int v) setRecombination(double v) setSeed(long v) setTimeLimit(double v) setTolerance(double v) setVerbose(boolean v)
-
Field Details
-
strategy
-
popsize
public int popsize -
mutationLow
public double mutationLow -
mutationHigh
public double mutationHigh -
recombination
public double recombination -
tol
public double tol -
maxIterations
public int maxIterations -
timeLimit
public double timeLimit -
seed
-
verbose
public boolean verbose -
penaltyWeight
public double penaltyWeight -
scenarioAggregation
'worst' (minimax) or 'mean' (weighted) aggregation across scenarios. -
optimizer
'evolution', 'gradient', or 'auto'. -
fdStep
public double fdStep -
gradientRestarts
public int gradientRestarts -
lqnGradient
LayeredNetwork (LQN) gradient source, used only when the model is a LayeredNetwork and the gradient path is taken: 'fd' (whole-model finite difference, robust default), 'partial_sens' (SolverLN per-layer partial derivatives, cheap/biased), or 'partial_plus_fd' (partial with a periodic full-FD correction everyfdRefreshgradient evaluations). -
fdRefresh
public int fdRefreshpartial_plus_fd full finite-difference correction period. -
frozenLayers
Explicit layer freezing (LQN only): host/task layer names whose variables are held at the model's current value instead of being optimized. Null (or empty) freezes nothing.
-
-
Constructor Details
-
LineOptSolverOptions
public LineOptSolverOptions()
-
-
Method Details
-
setStrategy
-
setPopsize
-
setMutation
-
setRecombination
-
setTolerance
-
setMaxIterations
-
setTimeLimit
-
setSeed
-
setVerbose
-
setPenaltyWeight
-
setScenarioAggregation
-
setOptimizer
-
setFdStep
-
setGradientRestarts
-
setLqnGradient
Set the LQN gradient source: 'fd', 'partial_sens', or 'partial_plus_fd'. -
setFdRefresh
Set the partial_plus_fd full finite-difference correction period. -
setFrozenLayers
Freeze the given LQN layers (list of host/task layer names).
-