mirror of
https://github.com/apache/commons-math.git
synced 2025-03-03 23:19:05 +00:00
optimizers should not be serializable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@795978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
77b5519151
commit
4cf9d99208
@ -77,7 +77,7 @@ import org.apache.commons.math.optimization.SimpleScalarValueChecker;
|
||||
* performed by the derived classes according to the implemented
|
||||
* algorithms.</p>
|
||||
*
|
||||
* implements MultivariateRealOptimizer, Serializable since 2.0
|
||||
* implements MultivariateRealOptimizer since 2.0
|
||||
*
|
||||
* @see MultivariateRealFunction
|
||||
* @see NelderMead
|
||||
|
@ -17,7 +17,6 @@
|
||||
|
||||
package org.apache.commons.math.optimization.direct;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Comparator;
|
||||
|
||||
import org.apache.commons.math.FunctionEvaluationException;
|
||||
@ -27,18 +26,11 @@ import org.apache.commons.math.optimization.RealPointValuePair;
|
||||
/**
|
||||
* This class implements the multi-directional direct search method.
|
||||
*
|
||||
* implements Serializable since 2.0
|
||||
*
|
||||
* @version $Revision$ $Date$
|
||||
* @see NelderMead
|
||||
* @since 1.2
|
||||
*/
|
||||
public class MultiDirectional extends DirectSearchOptimizer implements Serializable {
|
||||
// TODO: Add Serializable documentation
|
||||
// TODO: Check Serializable implementation
|
||||
|
||||
/** Serializable version identifier. */
|
||||
private static final long serialVersionUID = -5347711305645019145L;
|
||||
public class MultiDirectional extends DirectSearchOptimizer {
|
||||
|
||||
/** Expansion coefficient. */
|
||||
private final double khi;
|
||||
|
@ -17,7 +17,6 @@
|
||||
|
||||
package org.apache.commons.math.optimization.direct;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Comparator;
|
||||
|
||||
import org.apache.commons.math.FunctionEvaluationException;
|
||||
@ -27,18 +26,11 @@ import org.apache.commons.math.optimization.RealPointValuePair;
|
||||
/**
|
||||
* This class implements the Nelder-Mead direct search method.
|
||||
*
|
||||
* implements Serializable since 2.0
|
||||
*
|
||||
* @version $Revision$ $Date$
|
||||
* @see MultiDirectional
|
||||
* @since 1.2
|
||||
*/
|
||||
public class NelderMead extends DirectSearchOptimizer implements Serializable {
|
||||
// TODO: Add Serializable documentation
|
||||
// TODO: Check Serializable implementation
|
||||
|
||||
/** Serializable version identifier. */
|
||||
private static final long serialVersionUID = -5810365844886183056L;
|
||||
public class NelderMead extends DirectSearchOptimizer {
|
||||
|
||||
/** Reflection coefficient. */
|
||||
private final double rho;
|
||||
|
@ -17,11 +17,9 @@
|
||||
|
||||
package org.apache.commons.math.optimization.general;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.apache.commons.math.FunctionEvaluationException;
|
||||
import org.apache.commons.math.linear.DecompositionSolver;
|
||||
import org.apache.commons.math.linear.BlockRealMatrix;
|
||||
import org.apache.commons.math.linear.DecompositionSolver;
|
||||
import org.apache.commons.math.linear.InvalidMatrixException;
|
||||
import org.apache.commons.math.linear.LUDecompositionImpl;
|
||||
import org.apache.commons.math.linear.QRDecompositionImpl;
|
||||
@ -44,10 +42,7 @@ import org.apache.commons.math.optimization.VectorialPointValuePair;
|
||||
*
|
||||
*/
|
||||
|
||||
public class GaussNewtonOptimizer extends AbstractLeastSquaresOptimizer implements Serializable {
|
||||
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = 7011643996279553223L;
|
||||
public class GaussNewtonOptimizer extends AbstractLeastSquaresOptimizer {
|
||||
|
||||
/** Indicator for using LU decomposition. */
|
||||
private final boolean useLU;
|
||||
|
@ -16,7 +16,6 @@
|
||||
*/
|
||||
package org.apache.commons.math.optimization.general;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.apache.commons.math.FunctionEvaluationException;
|
||||
@ -100,10 +99,7 @@ import org.apache.commons.math.optimization.VectorialPointValuePair;
|
||||
* @since 2.0
|
||||
*
|
||||
*/
|
||||
public class LevenbergMarquardtOptimizer extends AbstractLeastSquaresOptimizer implements Serializable {
|
||||
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = 8851282236194244323L;
|
||||
public class LevenbergMarquardtOptimizer extends AbstractLeastSquaresOptimizer {
|
||||
|
||||
/** Number of solved point. */
|
||||
private int solvedCols;
|
||||
|
Loading…
x
Reference in New Issue
Block a user