Package jline.opt
Class OptimizationProblem
java.lang.Object
jline.opt.OptimizationProblem
Declarative specification of a queueing-network optimization problem: a LINE
model, decision variables, an objective, constraints, optional fixed
variables (for decomposition) and optional workload scenarios (for robust
optimization). Mirrors native-Python
line_solver.opt.problem.OptimizationProblem.
The model may be a flat Network or a LayeredNetwork (LQN);
an LQN takes the SolverLN evaluation path and accepts LQN decision variables
only (see LqnAdapter). Workload scenarios are supported for flat
models only.
-
Constructor Summary
ConstructorsConstructorDescriptionOptimizationProblem(LayeredNetwork lqnModel) OptimizationProblem(Network model) -
Method Summary
Modifier and TypeMethodDescriptionaddConstraint(Constraint constraint) addScenario(Network scenarioModel, double weight) addVariable(DecisionVariable variable) Create a decomposition workflow for this problem.The LQN model, or null when the problem is flat.getModel()The flat network model, or null when the problem is layered.booleanTrue if the model is a LayeredNetwork (LQN).booleanisValid()setFixedVariables(List<Pair<DecisionVariable, Object>> pairs) setObjective(Objective objective) solve()solve(LineOptSolverOptions options) validate()
-
Constructor Details
-
OptimizationProblem
-
OptimizationProblem
-
-
Method Details
-
isLayered
public boolean isLayered()True if the model is a LayeredNetwork (LQN). -
getModel
The flat network model, or null when the problem is layered. -
getLqnModel
The LQN model, or null when the problem is flat. -
getVariables
-
getObjective
-
getConstraints
-
addVariable
-
setObjective
-
addConstraint
-
setFixedVariables
-
getFixedVariables
-
addScenario
-
getScenarios
-
validate
-
isValid
public boolean isValid() -
solve
-
solve
-
decompose
Create a decomposition workflow for this problem.
-