Class SQPoptimizer.OptimizationResult
java.lang.Object
neqsim.process.util.optimizer.SQPoptimizer.OptimizationResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
SQPoptimizer
Optimization result container.
- Version:
- 1.0
- Author:
- NeqSim
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanWhether the optimizer converged.private final intNumber of iterations performed.private final doubleFinal KKT error.private final double[]Optimal point.private final doubleOptimal objective value.private static final longSerialization version UID. -
Constructor Summary
ConstructorsConstructorDescriptionOptimizationResult(double[] optimalPoint, double optimalValue, int iterations, boolean converged, double kktError) Constructor for OptimizationResult. -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of iterations.doubleGet the final KKT error.double[]Get the optimal point.doubleGet the optimal objective value.booleanCheck if the optimizer converged.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
optimalPoint
private final double[] optimalPointOptimal point. -
optimalValue
private final double optimalValueOptimal objective value. -
iterations
private final int iterationsNumber of iterations performed. -
converged
private final boolean convergedWhether the optimizer converged. -
kktError
private final double kktErrorFinal KKT error.
-
-
Constructor Details
-
OptimizationResult
public OptimizationResult(double[] optimalPoint, double optimalValue, int iterations, boolean converged, double kktError) Constructor for OptimizationResult.- Parameters:
optimalPoint- optimal variable valuesoptimalValue- optimal objective valueiterations- number of iterationsconverged- whether convergedkktError- final KKT error
-
-
Method Details
-
getOptimalPoint
public double[] getOptimalPoint()Get the optimal point.- Returns:
- optimal variable values
-
getOptimalValue
public double getOptimalValue()Get the optimal objective value.- Returns:
- minimum objective value found
-
getIterations
public int getIterations()Get the number of iterations.- Returns:
- iteration count
-
isConverged
public boolean isConverged()Check if the optimizer converged.- Returns:
- true if converged to tolerance
-
getKktError
public double getKktError()Get the final KKT error.- Returns:
- KKT optimality error
-