org.apache.commons.math3.optimization.general
Class GaussNewtonOptimizerTest

java.lang.Object
  extended by org.apache.commons.math3.optimization.general.AbstractLeastSquaresOptimizerAbstractTest
      extended by org.apache.commons.math3.optimization.general.GaussNewtonOptimizerTest

public class GaussNewtonOptimizerTest
extends AbstractLeastSquaresOptimizerAbstractTest

Some of the unit tests are re-implementations of the MINPACK file17 and file22 test files. The redistribution policy for MINPACK is available here, for convenience, it is reproduced below.

Minpack Copyright Notice (1999) University of Chicago. All rights reserved
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment: This product includes software developed by the University of Chicago, as Operator of Argonne National Laboratory. Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear.
  4. WARRANTY DISCLAIMER. THE SOFTWARE IS SUPPLIED "AS IS" WITHOUT WARRANTY OF ANY KIND. THE COPYRIGHT HOLDER, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF ENERGY, AND THEIR EMPLOYEES: (1) DISCLAIM ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT, (2) DO NOT ASSUME ANY LEGAL LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF THE SOFTWARE, (3) DO NOT REPRESENT THAT USE OF THE SOFTWARE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS, (4) DO NOT WARRANT THAT THE SOFTWARE WILL FUNCTION UNINTERRUPTED, THAT IT IS ERROR-FREE OR THAT ANY ERRORS WILL BE CORRECTED.
  5. LIMITATION OF LIABILITY. IN NO EVENT WILL THE COPYRIGHT HOLDER, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF ENERGY, OR THEIR EMPLOYEES: BE LIABLE FOR ANY INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL OR PUNITIVE DAMAGES OF ANY KIND OR NATURE, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS OR LOSS OF DATA, FOR ANY REASON WHATSOEVER, WHETHER SUCH LIABILITY IS ASSERTED ON THE BASIS OF CONTRACT, TORT (INCLUDING NEGLIGENCE OR STRICT LIABILITY), OR OTHERWISE, EVEN IF ANY OF SAID PARTIES HAS BEEN WARNED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGES.

    Author:
    Argonne National Laboratory. MINPACK project. March 1980 (original fortran minpack tests), Burton S. Garbow (original fortran minpack tests), Kenneth E. Hillstrom (original fortran minpack tests), Jorge J. More (original fortran minpack tests), Luc Maisonobe (non-minpack tests and minpack tests Java translation)

    Constructor Summary
    GaussNewtonOptimizerTest()
               
     
    Method Summary
     AbstractLeastSquaresOptimizer createOptimizer()
               
     void testCircleFittingBadInit()
               
     void testHahn1()
               
     void testMaxEvaluations()
               
     void testMoreEstimatedParametersSimple()
               
     void testMoreEstimatedParametersUnsorted()
               
     
    Methods inherited from class org.apache.commons.math3.optimization.general.AbstractLeastSquaresOptimizerAbstractTest
    doTestStRD, testCircleFitting, testCircleFittingGoodInit, testIllConditioned, testInconsistentEquations, testInconsistentSizes1, testInconsistentSizes2, testKirby2, testNoDependency, testNonInvertible, testOneSet, testQRColumnsPermutation, testRedundantEquations, testTrivial, testTwoSets
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    GaussNewtonOptimizerTest

    public GaussNewtonOptimizerTest()
    Method Detail

    createOptimizer

    public AbstractLeastSquaresOptimizer createOptimizer()
    Specified by:
    createOptimizer in class AbstractLeastSquaresOptimizerAbstractTest

    testMoreEstimatedParametersSimple

    public void testMoreEstimatedParametersSimple()
    Overrides:
    testMoreEstimatedParametersSimple in class AbstractLeastSquaresOptimizerAbstractTest

    testMoreEstimatedParametersUnsorted

    public void testMoreEstimatedParametersUnsorted()
    Overrides:
    testMoreEstimatedParametersUnsorted in class AbstractLeastSquaresOptimizerAbstractTest

    testMaxEvaluations

    public void testMaxEvaluations()
                            throws Exception
    Throws:
    Exception

    testCircleFittingBadInit

    public void testCircleFittingBadInit()
    Overrides:
    testCircleFittingBadInit in class AbstractLeastSquaresOptimizerAbstractTest

    testHahn1

    public void testHahn1()
                   throws IOException
    Overrides:
    testHahn1 in class AbstractLeastSquaresOptimizerAbstractTest
    Throws:
    IOException


    Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.