diff --git a/src/main/java/org/apache/commons/math/linear/ConjugateGradient.java b/src/main/java/org/apache/commons/math/linear/ConjugateGradient.java index 6dfb4e63b..b83aa2960 100644 --- a/src/main/java/org/apache/commons/math/linear/ConjugateGradient.java +++ b/src/main/java/org/apache/commons/math/linear/ConjugateGradient.java @@ -194,6 +194,8 @@ public class ConjugateGradient final IterativeLinearSolverEvent event; event = new ConjugateGradientEvent(this) { + private static final long serialVersionUID = 756911840348776676L; + public RealVector getResidual() { return ArrayRealVector.unmodifiableRealVector(r); } diff --git a/src/main/java/org/apache/commons/math/linear/SymmLQ.java b/src/main/java/org/apache/commons/math/linear/SymmLQ.java index 1ee08d352..7c4fd926a 100644 --- a/src/main/java/org/apache/commons/math/linear/SymmLQ.java +++ b/src/main/java/org/apache/commons/math/linear/SymmLQ.java @@ -1216,6 +1216,8 @@ public class SymmLQ final IterativeLinearSolverEvent event; event = new IterativeLinearSolverEvent(this) { + private static final long serialVersionUID = 3656926699603081076L; + @Override public RealVector getRightHandSideVector() { return bb; diff --git a/src/main/java/org/apache/commons/math/optimization/direct/BOBYQAOptimizer.java b/src/main/java/org/apache/commons/math/optimization/direct/BOBYQAOptimizer.java index 88bb2a7f7..2159bbd84 100644 --- a/src/main/java/org/apache/commons/math/optimization/direct/BOBYQAOptimizer.java +++ b/src/main/java/org/apache/commons/math/optimization/direct/BOBYQAOptimizer.java @@ -2470,6 +2470,8 @@ public class BOBYQAOptimizer * If the path becomes explored, it should just be removed from the code. */ class PathIsExploredException extends RuntimeException { + private static final long serialVersionUID = 745350979634801853L; + private static final String PATH_IS_EXPLORED = "If this exception is thrown, just remove it from the code";