http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/nonstiff/HighamHall54StepInterpolatorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/nonstiff/HighamHall54StepInterpolatorTest.java b/src/test/java/org/apache/commons/math4/ode/nonstiff/HighamHall54StepInterpolatorTest.java index 7962e94..78e90df 100644 --- a/src/test/java/org/apache/commons/math4/ode/nonstiff/HighamHall54StepInterpolatorTest.java +++ b/src/test/java/org/apache/commons/math4/ode/nonstiff/HighamHall54StepInterpolatorTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.nonstiff; +package org.apache.commons.math4.ode.nonstiff; import java.io.ByteArrayInputStream; @@ -25,16 +25,17 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Random; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.ContinuousOutputModel; -import org.apache.commons.math3.ode.TestProblem3; -import org.apache.commons.math3.ode.sampling.StepHandler; -import org.apache.commons.math3.ode.sampling.StepInterpolator; -import org.apache.commons.math3.ode.sampling.StepInterpolatorTestUtils; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.ContinuousOutputModel; +import org.apache.commons.math4.ode.TestProblem3; +import org.apache.commons.math4.ode.nonstiff.HighamHall54Integrator; +import org.apache.commons.math4.ode.sampling.StepHandler; +import org.apache.commons.math4.ode.sampling.StepInterpolator; +import org.apache.commons.math4.ode.sampling.StepInterpolatorTestUtils; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test;
http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/nonstiff/LutherIntegratorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/nonstiff/LutherIntegratorTest.java b/src/test/java/org/apache/commons/math4/ode/nonstiff/LutherIntegratorTest.java index e3c5fe2..3c40b74 100644 --- a/src/test/java/org/apache/commons/math4/ode/nonstiff/LutherIntegratorTest.java +++ b/src/test/java/org/apache/commons/math4/ode/nonstiff/LutherIntegratorTest.java @@ -15,25 +15,27 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.nonstiff; - - -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.FirstOrderDifferentialEquations; -import org.apache.commons.math3.ode.FirstOrderIntegrator; -import org.apache.commons.math3.ode.TestProblem1; -import org.apache.commons.math3.ode.TestProblem3; -import org.apache.commons.math3.ode.TestProblem5; -import org.apache.commons.math3.ode.TestProblemAbstract; -import org.apache.commons.math3.ode.TestProblemFactory; -import org.apache.commons.math3.ode.TestProblemHandler; -import org.apache.commons.math3.ode.events.EventHandler; -import org.apache.commons.math3.ode.sampling.StepHandler; -import org.apache.commons.math3.ode.sampling.StepInterpolator; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.ode.nonstiff; + + +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.FirstOrderDifferentialEquations; +import org.apache.commons.math4.ode.FirstOrderIntegrator; +import org.apache.commons.math4.ode.TestProblem1; +import org.apache.commons.math4.ode.TestProblem3; +import org.apache.commons.math4.ode.TestProblem5; +import org.apache.commons.math4.ode.TestProblemAbstract; +import org.apache.commons.math4.ode.TestProblemFactory; +import org.apache.commons.math4.ode.TestProblemHandler; +import org.apache.commons.math4.ode.events.EventHandler; +import org.apache.commons.math4.ode.nonstiff.LutherIntegrator; +import org.apache.commons.math4.ode.nonstiff.RungeKuttaIntegrator; +import org.apache.commons.math4.ode.sampling.StepHandler; +import org.apache.commons.math4.ode.sampling.StepInterpolator; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/nonstiff/LutherStepInterpolatorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/nonstiff/LutherStepInterpolatorTest.java b/src/test/java/org/apache/commons/math4/ode/nonstiff/LutherStepInterpolatorTest.java index d29fe20..a5a9db5 100644 --- a/src/test/java/org/apache/commons/math4/ode/nonstiff/LutherStepInterpolatorTest.java +++ b/src/test/java/org/apache/commons/math4/ode/nonstiff/LutherStepInterpolatorTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.nonstiff; +package org.apache.commons.math4.ode.nonstiff; import java.io.ByteArrayInputStream; @@ -25,14 +25,15 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Random; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.ContinuousOutputModel; -import org.apache.commons.math3.ode.TestProblem3; -import org.apache.commons.math3.ode.sampling.StepHandler; -import org.apache.commons.math3.ode.sampling.StepInterpolatorTestUtils; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.ContinuousOutputModel; +import org.apache.commons.math4.ode.TestProblem3; +import org.apache.commons.math4.ode.nonstiff.LutherIntegrator; +import org.apache.commons.math4.ode.sampling.StepHandler; +import org.apache.commons.math4.ode.sampling.StepInterpolatorTestUtils; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/nonstiff/MidpointIntegratorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/nonstiff/MidpointIntegratorTest.java b/src/test/java/org/apache/commons/math4/ode/nonstiff/MidpointIntegratorTest.java index 0b01ddf..179574d 100644 --- a/src/test/java/org/apache/commons/math4/ode/nonstiff/MidpointIntegratorTest.java +++ b/src/test/java/org/apache/commons/math4/ode/nonstiff/MidpointIntegratorTest.java @@ -15,24 +15,25 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.nonstiff; - - -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.FirstOrderDifferentialEquations; -import org.apache.commons.math3.ode.FirstOrderIntegrator; -import org.apache.commons.math3.ode.TestProblem1; -import org.apache.commons.math3.ode.TestProblem5; -import org.apache.commons.math3.ode.TestProblemAbstract; -import org.apache.commons.math3.ode.TestProblemFactory; -import org.apache.commons.math3.ode.TestProblemHandler; -import org.apache.commons.math3.ode.events.EventHandler; -import org.apache.commons.math3.ode.sampling.StepHandler; -import org.apache.commons.math3.ode.sampling.StepInterpolator; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.ode.nonstiff; + + +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.FirstOrderDifferentialEquations; +import org.apache.commons.math4.ode.FirstOrderIntegrator; +import org.apache.commons.math4.ode.TestProblem1; +import org.apache.commons.math4.ode.TestProblem5; +import org.apache.commons.math4.ode.TestProblemAbstract; +import org.apache.commons.math4.ode.TestProblemFactory; +import org.apache.commons.math4.ode.TestProblemHandler; +import org.apache.commons.math4.ode.events.EventHandler; +import org.apache.commons.math4.ode.nonstiff.MidpointIntegrator; +import org.apache.commons.math4.ode.sampling.StepHandler; +import org.apache.commons.math4.ode.sampling.StepInterpolator; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/nonstiff/MidpointStepInterpolatorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/nonstiff/MidpointStepInterpolatorTest.java b/src/test/java/org/apache/commons/math4/ode/nonstiff/MidpointStepInterpolatorTest.java index 0f32602..690ac6c 100644 --- a/src/test/java/org/apache/commons/math4/ode/nonstiff/MidpointStepInterpolatorTest.java +++ b/src/test/java/org/apache/commons/math4/ode/nonstiff/MidpointStepInterpolatorTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.nonstiff; +package org.apache.commons.math4.ode.nonstiff; import java.io.ByteArrayInputStream; @@ -25,15 +25,16 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Random; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.ContinuousOutputModel; -import org.apache.commons.math3.ode.TestProblem1; -import org.apache.commons.math3.ode.TestProblem3; -import org.apache.commons.math3.ode.sampling.StepHandler; -import org.apache.commons.math3.ode.sampling.StepInterpolatorTestUtils; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.ContinuousOutputModel; +import org.apache.commons.math4.ode.TestProblem1; +import org.apache.commons.math4.ode.TestProblem3; +import org.apache.commons.math4.ode.nonstiff.MidpointIntegrator; +import org.apache.commons.math4.ode.sampling.StepHandler; +import org.apache.commons.math4.ode.sampling.StepInterpolatorTestUtils; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/nonstiff/StepProblem.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/nonstiff/StepProblem.java b/src/test/java/org/apache/commons/math4/ode/nonstiff/StepProblem.java index b4c8235..5a52597 100644 --- a/src/test/java/org/apache/commons/math4/ode/nonstiff/StepProblem.java +++ b/src/test/java/org/apache/commons/math4/ode/nonstiff/StepProblem.java @@ -15,10 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.nonstiff; +package org.apache.commons.math4.ode.nonstiff; -import org.apache.commons.math3.ode.FirstOrderDifferentialEquations; -import org.apache.commons.math3.ode.events.EventHandler; +import org.apache.commons.math4.ode.FirstOrderDifferentialEquations; +import org.apache.commons.math4.ode.events.EventHandler; public class StepProblem http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesIntegratorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesIntegratorTest.java b/src/test/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesIntegratorTest.java index ffc33c4..9de0fbe 100644 --- a/src/test/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesIntegratorTest.java +++ b/src/test/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesIntegratorTest.java @@ -15,25 +15,26 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.nonstiff; - - -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.FirstOrderDifferentialEquations; -import org.apache.commons.math3.ode.FirstOrderIntegrator; -import org.apache.commons.math3.ode.TestProblem1; -import org.apache.commons.math3.ode.TestProblem3; -import org.apache.commons.math3.ode.TestProblem5; -import org.apache.commons.math3.ode.TestProblemAbstract; -import org.apache.commons.math3.ode.TestProblemFactory; -import org.apache.commons.math3.ode.TestProblemHandler; -import org.apache.commons.math3.ode.events.EventHandler; -import org.apache.commons.math3.ode.sampling.StepHandler; -import org.apache.commons.math3.ode.sampling.StepInterpolator; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.ode.nonstiff; + + +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.FirstOrderDifferentialEquations; +import org.apache.commons.math4.ode.FirstOrderIntegrator; +import org.apache.commons.math4.ode.TestProblem1; +import org.apache.commons.math4.ode.TestProblem3; +import org.apache.commons.math4.ode.TestProblem5; +import org.apache.commons.math4.ode.TestProblemAbstract; +import org.apache.commons.math4.ode.TestProblemFactory; +import org.apache.commons.math4.ode.TestProblemHandler; +import org.apache.commons.math4.ode.events.EventHandler; +import org.apache.commons.math4.ode.nonstiff.ThreeEighthesIntegrator; +import org.apache.commons.math4.ode.sampling.StepHandler; +import org.apache.commons.math4.ode.sampling.StepInterpolator; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesStepInterpolatorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesStepInterpolatorTest.java b/src/test/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesStepInterpolatorTest.java index 965bf6b..879ad96 100644 --- a/src/test/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesStepInterpolatorTest.java +++ b/src/test/java/org/apache/commons/math4/ode/nonstiff/ThreeEighthesStepInterpolatorTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.nonstiff; +package org.apache.commons.math4.ode.nonstiff; import java.io.ByteArrayInputStream; @@ -25,14 +25,15 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Random; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.ContinuousOutputModel; -import org.apache.commons.math3.ode.TestProblem3; -import org.apache.commons.math3.ode.sampling.StepHandler; -import org.apache.commons.math3.ode.sampling.StepInterpolatorTestUtils; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.ContinuousOutputModel; +import org.apache.commons.math4.ode.TestProblem3; +import org.apache.commons.math4.ode.nonstiff.ThreeEighthesIntegrator; +import org.apache.commons.math4.ode.sampling.StepHandler; +import org.apache.commons.math4.ode.sampling.StepInterpolatorTestUtils; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/sampling/DummyStepInterpolator.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/sampling/DummyStepInterpolator.java b/src/test/java/org/apache/commons/math4/ode/sampling/DummyStepInterpolator.java index a7f1aa7..f2953fc 100644 --- a/src/test/java/org/apache/commons/math4/ode/sampling/DummyStepInterpolator.java +++ b/src/test/java/org/apache/commons/math4/ode/sampling/DummyStepInterpolator.java @@ -15,13 +15,16 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.sampling; +package org.apache.commons.math4.ode.sampling; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.apache.commons.math3.ode.EquationsMapper; +import org.apache.commons.math4.ode.EquationsMapper; +import org.apache.commons.math4.ode.sampling.AbstractStepInterpolator; +import org.apache.commons.math4.ode.sampling.StepHandler; +import org.apache.commons.math4.ode.sampling.StepInterpolator; /** This class is a step interpolator that does nothing. * @@ -51,7 +54,7 @@ public class DummyStepInterpolator * should be called before using the instance in order to initialize * the internal arrays. This constructor is used only in order to delay * the initialization in some cases. As an example, the {@link - * org.apache.commons.math3.ode.nonstiff.EmbeddedRungeKuttaIntegrator} uses + * org.apache.commons.math4.ode.nonstiff.EmbeddedRungeKuttaIntegrator} uses * the prototyping design pattern to create the step interpolators by * cloning an uninitialized model and latter initializing the copy. */ http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/sampling/DummyStepInterpolatorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/sampling/DummyStepInterpolatorTest.java b/src/test/java/org/apache/commons/math4/ode/sampling/DummyStepInterpolatorTest.java index 3f4ad37..69a1d55 100644 --- a/src/test/java/org/apache/commons/math4/ode/sampling/DummyStepInterpolatorTest.java +++ b/src/test/java/org/apache/commons/math4/ode/sampling/DummyStepInterpolatorTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.sampling; +package org.apache.commons.math4.ode.sampling; import java.io.ByteArrayInputStream; @@ -24,8 +24,9 @@ import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.ode.sampling.AbstractStepInterpolator; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/sampling/NordsieckStepInterpolatorTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/sampling/NordsieckStepInterpolatorTest.java b/src/test/java/org/apache/commons/math4/ode/sampling/NordsieckStepInterpolatorTest.java index f11df71..57a3466 100644 --- a/src/test/java/org/apache/commons/math4/ode/sampling/NordsieckStepInterpolatorTest.java +++ b/src/test/java/org/apache/commons/math4/ode/sampling/NordsieckStepInterpolatorTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.sampling; +package org.apache.commons.math4.ode.sampling; import java.io.ByteArrayInputStream; @@ -25,14 +25,15 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Random; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.ContinuousOutputModel; -import org.apache.commons.math3.ode.TestProblem1; -import org.apache.commons.math3.ode.TestProblem3; -import org.apache.commons.math3.ode.nonstiff.AdamsBashforthIntegrator; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.ContinuousOutputModel; +import org.apache.commons.math4.ode.TestProblem1; +import org.apache.commons.math4.ode.TestProblem3; +import org.apache.commons.math4.ode.nonstiff.AdamsBashforthIntegrator; +import org.apache.commons.math4.ode.sampling.StepHandler; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/sampling/StepInterpolatorTestUtils.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/sampling/StepInterpolatorTestUtils.java b/src/test/java/org/apache/commons/math4/ode/sampling/StepInterpolatorTestUtils.java index 9a98a59..1738961 100644 --- a/src/test/java/org/apache/commons/math4/ode/sampling/StepInterpolatorTestUtils.java +++ b/src/test/java/org/apache/commons/math4/ode/sampling/StepInterpolatorTestUtils.java @@ -14,16 +14,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.ode.sampling; - - -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.FirstOrderIntegrator; -import org.apache.commons.math3.ode.TestProblemAbstract; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.ode.sampling; + + +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.FirstOrderIntegrator; +import org.apache.commons.math4.ode.TestProblemAbstract; +import org.apache.commons.math4.ode.sampling.StepHandler; +import org.apache.commons.math4.ode.sampling.StepInterpolator; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; public class StepInterpolatorTestUtils { http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputOverlapTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputOverlapTest.java b/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputOverlapTest.java index a1a7da3..0497423 100644 --- a/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputOverlapTest.java +++ b/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputOverlapTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.sampling; +package org.apache.commons.math4.ode.sampling; /** Step normalizer output tests, for problems where the first and last points * are overlap fixed points. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputTest.java b/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputTest.java index 8063e99..2518185 100644 --- a/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputTest.java +++ b/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputTest.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.sampling; +package org.apache.commons.math4.ode.sampling; /** Step normalizer output tests, for problems where the first and last points * are not fixed points. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputTestBase.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputTestBase.java b/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputTestBase.java index f862dad..0013052 100644 --- a/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputTestBase.java +++ b/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerOutputTestBase.java @@ -15,20 +15,24 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.sampling; +package org.apache.commons.math4.ode.sampling; import org.junit.Assert; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.FirstOrderDifferentialEquations; -import org.apache.commons.math3.ode.FirstOrderIntegrator; -import org.apache.commons.math3.ode.nonstiff.GraggBulirschStoerIntegrator; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.FirstOrderDifferentialEquations; +import org.apache.commons.math4.ode.FirstOrderIntegrator; +import org.apache.commons.math4.ode.nonstiff.GraggBulirschStoerIntegrator; +import org.apache.commons.math4.ode.sampling.FixedStepHandler; +import org.apache.commons.math4.ode.sampling.StepNormalizer; +import org.apache.commons.math4.ode.sampling.StepNormalizerBounds; +import org.apache.commons.math4.ode.sampling.StepNormalizerMode; import org.junit.Test; /** Base class for step normalizer output tests. */ http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerTest.java b/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerTest.java index 08096fe..3a8ba4b 100644 --- a/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerTest.java +++ b/src/test/java/org/apache/commons/math4/ode/sampling/StepNormalizerTest.java @@ -15,16 +15,18 @@ * limitations under the License. */ -package org.apache.commons.math3.ode.sampling; +package org.apache.commons.math4.ode.sampling; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.MaxCountExceededException; -import org.apache.commons.math3.exception.NoBracketingException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.ode.FirstOrderIntegrator; -import org.apache.commons.math3.ode.TestProblem3; -import org.apache.commons.math3.ode.nonstiff.DormandPrince54Integrator; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MaxCountExceededException; +import org.apache.commons.math4.exception.NoBracketingException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.ode.FirstOrderIntegrator; +import org.apache.commons.math4.ode.TestProblem3; +import org.apache.commons.math4.ode.nonstiff.DormandPrince54Integrator; +import org.apache.commons.math4.ode.sampling.FixedStepHandler; +import org.apache.commons.math4.ode.sampling.StepNormalizer; +import org.apache.commons.math4.util.FastMath; import org.junit.After; import org.junit.Assert; import org.junit.Before; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/PointValuePairTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/PointValuePairTest.java b/src/test/java/org/apache/commons/math4/optim/PointValuePairTest.java index 7146d15..c070d00 100644 --- a/src/test/java/org/apache/commons/math4/optim/PointValuePairTest.java +++ b/src/test/java/org/apache/commons/math4/optim/PointValuePairTest.java @@ -14,9 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim; +package org.apache.commons.math4.optim; -import org.apache.commons.math3.TestUtils; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.optim.PointValuePair; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/PointVectorValuePairTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/PointVectorValuePairTest.java b/src/test/java/org/apache/commons/math4/optim/PointVectorValuePairTest.java index 427bac0..534ce07 100644 --- a/src/test/java/org/apache/commons/math4/optim/PointVectorValuePairTest.java +++ b/src/test/java/org/apache/commons/math4/optim/PointVectorValuePairTest.java @@ -15,9 +15,10 @@ * limitations under the License. */ -package org.apache.commons.math3.optim; +package org.apache.commons.math4.optim; -import org.apache.commons.math3.TestUtils; +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.optim.PointVectorValuePair; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/SimplePointCheckerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/SimplePointCheckerTest.java b/src/test/java/org/apache/commons/math4/optim/SimplePointCheckerTest.java index f5b057a..e363214 100644 --- a/src/test/java/org/apache/commons/math4/optim/SimplePointCheckerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/SimplePointCheckerTest.java @@ -14,9 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim; +package org.apache.commons.math4.optim; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.SimplePointChecker; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/SimpleValueCheckerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/SimpleValueCheckerTest.java b/src/test/java/org/apache/commons/math4/optim/SimpleValueCheckerTest.java index f4b7f2f..64ff78c 100644 --- a/src/test/java/org/apache/commons/math4/optim/SimpleValueCheckerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/SimpleValueCheckerTest.java @@ -14,9 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim; +package org.apache.commons.math4.optim; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.SimpleValueChecker; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/SimpleVectorValueCheckerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/SimpleVectorValueCheckerTest.java b/src/test/java/org/apache/commons/math4/optim/SimpleVectorValueCheckerTest.java index c9dcedc..3704da7 100644 --- a/src/test/java/org/apache/commons/math4/optim/SimpleVectorValueCheckerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/SimpleVectorValueCheckerTest.java @@ -14,9 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim; +package org.apache.commons.math4.optim; -import org.apache.commons.math3.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.exception.NotStrictlyPositiveException; +import org.apache.commons.math4.optim.PointVectorValuePair; +import org.apache.commons.math4.optim.SimpleVectorValueChecker; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/linear/SimplexSolverTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/linear/SimplexSolverTest.java b/src/test/java/org/apache/commons/math4/optim/linear/SimplexSolverTest.java index 0728be1..b112ac7 100644 --- a/src/test/java/org/apache/commons/math4/optim/linear/SimplexSolverTest.java +++ b/src/test/java/org/apache/commons/math4/optim/linear/SimplexSolverTest.java @@ -14,17 +14,27 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.linear; +package org.apache.commons.math4.optim.linear; import java.util.ArrayList; import java.util.Collection; import java.util.List; -import org.apache.commons.math3.exception.TooManyIterationsException; -import org.apache.commons.math3.optim.MaxIter; -import org.apache.commons.math3.optim.nonlinear.scalar.GoalType; -import org.apache.commons.math3.optim.PointValuePair; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.math4.exception.TooManyIterationsException; +import org.apache.commons.math4.optim.MaxIter; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.linear.LinearConstraint; +import org.apache.commons.math4.optim.linear.LinearConstraintSet; +import org.apache.commons.math4.optim.linear.LinearObjectiveFunction; +import org.apache.commons.math4.optim.linear.NoFeasibleSolutionException; +import org.apache.commons.math4.optim.linear.NonNegativeConstraint; +import org.apache.commons.math4.optim.linear.PivotSelectionRule; +import org.apache.commons.math4.optim.linear.Relationship; +import org.apache.commons.math4.optim.linear.SimplexSolver; +import org.apache.commons.math4.optim.linear.SolutionCallback; +import org.apache.commons.math4.optim.linear.UnboundedSolutionException; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; +import org.apache.commons.math4.util.Precision; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/linear/SimplexTableauTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/linear/SimplexTableauTest.java b/src/test/java/org/apache/commons/math4/optim/linear/SimplexTableauTest.java index 358416a..e0c99da 100644 --- a/src/test/java/org/apache/commons/math4/optim/linear/SimplexTableauTest.java +++ b/src/test/java/org/apache/commons/math4/optim/linear/SimplexTableauTest.java @@ -14,12 +14,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.linear; +package org.apache.commons.math4.optim.linear; import java.util.ArrayList; import java.util.Collection; -import org.apache.commons.math3.TestUtils; -import org.apache.commons.math3.optim.nonlinear.scalar.GoalType; + +import org.apache.commons.math4.TestUtils; +import org.apache.commons.math4.optim.linear.LinearConstraint; +import org.apache.commons.math4.optim.linear.LinearObjectiveFunction; +import org.apache.commons.math4.optim.linear.Relationship; +import org.apache.commons.math4.optim.linear.SimplexTableau; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultiStartMultivariateOptimizerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultiStartMultivariateOptimizerTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultiStartMultivariateOptimizerTest.java index ba03ef1..cdaf3b9 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultiStartMultivariateOptimizerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultiStartMultivariateOptimizerTest.java @@ -14,22 +14,26 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.scalar; +package org.apache.commons.math4.optim.nonlinear.scalar; -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.geometry.euclidean.twod.Vector2D; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.PointValuePair; -import org.apache.commons.math3.optim.SimpleValueChecker; -import org.apache.commons.math3.optim.nonlinear.scalar.gradient.CircleScalar; -import org.apache.commons.math3.optim.nonlinear.scalar.gradient.NonLinearConjugateGradientOptimizer; -import org.apache.commons.math3.optim.nonlinear.scalar.noderiv.NelderMeadSimplex; -import org.apache.commons.math3.optim.nonlinear.scalar.noderiv.SimplexOptimizer; -import org.apache.commons.math3.random.GaussianRandomGenerator; -import org.apache.commons.math3.random.JDKRandomGenerator; -import org.apache.commons.math3.random.RandomVectorGenerator; -import org.apache.commons.math3.random.UncorrelatedRandomVectorGenerator; +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.geometry.euclidean.twod.Vector2D; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.SimpleValueChecker; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; +import org.apache.commons.math4.optim.nonlinear.scalar.GradientMultivariateOptimizer; +import org.apache.commons.math4.optim.nonlinear.scalar.MultiStartMultivariateOptimizer; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunction; +import org.apache.commons.math4.optim.nonlinear.scalar.gradient.CircleScalar; +import org.apache.commons.math4.optim.nonlinear.scalar.gradient.NonLinearConjugateGradientOptimizer; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.NelderMeadSimplex; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.SimplexOptimizer; +import org.apache.commons.math4.random.GaussianRandomGenerator; +import org.apache.commons.math4.random.JDKRandomGenerator; +import org.apache.commons.math4.random.RandomVectorGenerator; +import org.apache.commons.math4.random.UncorrelatedRandomVectorGenerator; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultivariateFunctionMappingAdapterTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultivariateFunctionMappingAdapterTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultivariateFunctionMappingAdapterTest.java index 932f362..ed67a63 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultivariateFunctionMappingAdapterTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultivariateFunctionMappingAdapterTest.java @@ -14,15 +14,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.scalar; - -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.PointValuePair; -import org.apache.commons.math3.optim.nonlinear.scalar.noderiv.AbstractSimplex; -import org.apache.commons.math3.optim.nonlinear.scalar.noderiv.NelderMeadSimplex; -import org.apache.commons.math3.optim.nonlinear.scalar.noderiv.SimplexOptimizer; +package org.apache.commons.math4.optim.nonlinear.scalar; + +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; +import org.apache.commons.math4.optim.nonlinear.scalar.MultivariateFunctionMappingAdapter; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunction; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.AbstractSimplex; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.NelderMeadSimplex; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.SimplexOptimizer; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java index 5b14f5e..0c02844 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java @@ -14,16 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.scalar; - -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.PointValuePair; -import org.apache.commons.math3.optim.SimplePointChecker; -import org.apache.commons.math3.optim.nonlinear.scalar.noderiv.SimplexOptimizer; -import org.apache.commons.math3.optim.nonlinear.scalar.noderiv.AbstractSimplex; -import org.apache.commons.math3.optim.nonlinear.scalar.noderiv.NelderMeadSimplex; +package org.apache.commons.math4.optim.nonlinear.scalar; + +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.SimplePointChecker; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; +import org.apache.commons.math4.optim.nonlinear.scalar.MultivariateFunctionPenaltyAdapter; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunction; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.AbstractSimplex; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.NelderMeadSimplex; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.SimplexOptimizer; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/CircleScalar.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/CircleScalar.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/CircleScalar.java index 1b55014..4c2acaa 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/CircleScalar.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/CircleScalar.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.scalar.gradient; +package org.apache.commons.math4.optim.nonlinear.scalar.gradient; import java.util.ArrayList; -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; -import org.apache.commons.math3.geometry.euclidean.twod.Vector2D; -import org.apache.commons.math3.optim.nonlinear.scalar.ObjectiveFunction; -import org.apache.commons.math3.optim.nonlinear.scalar.ObjectiveFunctionGradient; +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.geometry.euclidean.twod.Vector2D; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunction; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunctionGradient; /** * Class used in the tests. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/NonLinearConjugateGradientOptimizerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/NonLinearConjugateGradientOptimizerTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/NonLinearConjugateGradientOptimizerTest.java index bf22542..1298778 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/NonLinearConjugateGradientOptimizerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/gradient/NonLinearConjugateGradientOptimizerTest.java @@ -15,22 +15,24 @@ * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.scalar.gradient; - -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; -import org.apache.commons.math3.exception.MathUnsupportedOperationException; -import org.apache.commons.math3.geometry.euclidean.twod.Vector2D; -import org.apache.commons.math3.linear.BlockRealMatrix; -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.optim.PointValuePair; -import org.apache.commons.math3.optim.SimpleValueChecker; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.SimpleBounds; -import org.apache.commons.math3.optim.nonlinear.scalar.ObjectiveFunction; -import org.apache.commons.math3.optim.nonlinear.scalar.GoalType; -import org.apache.commons.math3.optim.nonlinear.scalar.ObjectiveFunctionGradient; +package org.apache.commons.math4.optim.nonlinear.scalar.gradient; + +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.geometry.euclidean.twod.Vector2D; +import org.apache.commons.math4.linear.BlockRealMatrix; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.SimpleBounds; +import org.apache.commons.math4.optim.SimpleValueChecker; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunction; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunctionGradient; +import org.apache.commons.math4.optim.nonlinear.scalar.gradient.NonLinearConjugateGradientOptimizer; +import org.apache.commons.math4.optim.nonlinear.scalar.gradient.Preconditioner; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java index f2f36e9..2bb5cb6 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java @@ -14,23 +14,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.scalar.noderiv; +package org.apache.commons.math4.optim.nonlinear.scalar.noderiv; import java.util.Arrays; import java.util.Random; -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.nonlinear.scalar.ObjectiveFunction; -import org.apache.commons.math3.optim.nonlinear.scalar.GoalType; -import org.apache.commons.math3.optim.PointValuePair; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.SimpleBounds; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.SimpleBounds; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunction; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.BOBYQAOptimizer; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/CMAESOptimizerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/CMAESOptimizerTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/CMAESOptimizerTest.java index aade822..b6c5622 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/CMAESOptimizerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/CMAESOptimizerTest.java @@ -14,27 +14,28 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.scalar.noderiv; +package org.apache.commons.math4.optim.nonlinear.scalar.noderiv; import java.util.Arrays; import java.util.Random; -import org.apache.commons.math3.Retry; -import org.apache.commons.math3.RetryRunner; -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.exception.NumberIsTooLargeException; -import org.apache.commons.math3.exception.NumberIsTooSmallException; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.NotPositiveException; -import org.apache.commons.math3.exception.OutOfRangeException; -import org.apache.commons.math3.optim.nonlinear.scalar.GoalType; -import org.apache.commons.math3.optim.PointValuePair; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.SimpleBounds; -import org.apache.commons.math3.optim.nonlinear.scalar.ObjectiveFunction; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.random.MersenneTwister; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.Retry; +import org.apache.commons.math4.RetryRunner; +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.NotPositiveException; +import org.apache.commons.math4.exception.NumberIsTooLargeException; +import org.apache.commons.math4.exception.NumberIsTooSmallException; +import org.apache.commons.math4.exception.OutOfRangeException; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.SimpleBounds; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunction; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.CMAESOptimizer; +import org.apache.commons.math4.random.MersenneTwister; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/PowellOptimizerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/PowellOptimizerTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/PowellOptimizerTest.java index 708f77b..4d0be63 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/PowellOptimizerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/PowellOptimizerTest.java @@ -14,18 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.scalar.noderiv; - -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.analysis.SumSincFunction; -import org.apache.commons.math3.optim.PointValuePair; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.SimpleBounds; -import org.apache.commons.math3.optim.nonlinear.scalar.GoalType; -import org.apache.commons.math3.optim.nonlinear.scalar.ObjectiveFunction; -import org.apache.commons.math3.exception.MathUnsupportedOperationException; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.optim.nonlinear.scalar.noderiv; + +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.analysis.SumSincFunction; +import org.apache.commons.math4.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.SimpleBounds; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunction; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.PowellOptimizer; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/SimplexOptimizerMultiDirectionalTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/SimplexOptimizerMultiDirectionalTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/SimplexOptimizerMultiDirectionalTest.java index 931c226..8f5c726 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/SimplexOptimizerMultiDirectionalTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/SimplexOptimizerMultiDirectionalTest.java @@ -15,18 +15,21 @@ * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.scalar.noderiv; +package org.apache.commons.math4.optim.nonlinear.scalar.noderiv; -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.PointValuePair; -import org.apache.commons.math3.optim.SimpleValueChecker; -import org.apache.commons.math3.optim.SimpleBounds; -import org.apache.commons.math3.optim.nonlinear.scalar.GoalType; -import org.apache.commons.math3.optim.nonlinear.scalar.ObjectiveFunction; -import org.apache.commons.math3.exception.MathUnsupportedOperationException; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.SimpleBounds; +import org.apache.commons.math4.optim.SimpleValueChecker; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunction; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.MultiDirectionalSimplex; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.NelderMeadSimplex; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.SimplexOptimizer; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/SimplexOptimizerNelderMeadTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/SimplexOptimizerNelderMeadTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/SimplexOptimizerNelderMeadTest.java index d51025d..4f01d75 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/SimplexOptimizerNelderMeadTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/scalar/noderiv/SimplexOptimizerNelderMeadTest.java @@ -15,23 +15,25 @@ * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.scalar.noderiv; - - -import org.apache.commons.math3.exception.TooManyEvaluationsException; -import org.apache.commons.math3.exception.MathUnsupportedOperationException; -import org.apache.commons.math3.analysis.MultivariateFunction; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; -import org.apache.commons.math3.linear.Array2DRowRealMatrix; -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.SimpleBounds; -import org.apache.commons.math3.optim.PointValuePair; -import org.apache.commons.math3.optim.nonlinear.scalar.GoalType; -import org.apache.commons.math3.optim.nonlinear.scalar.ObjectiveFunction; -import org.apache.commons.math3.optim.nonlinear.scalar.LeastSquaresConverter; -import org.apache.commons.math3.util.FastMath; +package org.apache.commons.math4.optim.nonlinear.scalar.noderiv; + + +import org.apache.commons.math4.analysis.MultivariateFunction; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.linear.Array2DRowRealMatrix; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointValuePair; +import org.apache.commons.math4.optim.SimpleBounds; +import org.apache.commons.math4.optim.nonlinear.scalar.GoalType; +import org.apache.commons.math4.optim.nonlinear.scalar.LeastSquaresConverter; +import org.apache.commons.math4.optim.nonlinear.scalar.ObjectiveFunction; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.NelderMeadSimplex; +import org.apache.commons.math4.optim.nonlinear.scalar.noderiv.SimplexOptimizer; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/MultiStartMultivariateVectorOptimizerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/MultiStartMultivariateVectorOptimizerTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/MultiStartMultivariateVectorOptimizerTest.java index af565e5..70b3f95 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/MultiStartMultivariateVectorOptimizerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/MultiStartMultivariateVectorOptimizerTest.java @@ -14,23 +14,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.vector; - -import org.apache.commons.math3.analysis.MultivariateMatrixFunction; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; -import org.apache.commons.math3.linear.BlockRealMatrix; -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.OptimizationData; -import org.apache.commons.math3.optim.PointVectorValuePair; -import org.apache.commons.math3.optim.SimpleBounds; -import org.apache.commons.math3.optim.SimpleVectorValueChecker; -import org.apache.commons.math3.optim.nonlinear.vector.jacobian.GaussNewtonOptimizer; -import org.apache.commons.math3.random.GaussianRandomGenerator; -import org.apache.commons.math3.random.JDKRandomGenerator; -import org.apache.commons.math3.random.RandomVectorGenerator; -import org.apache.commons.math3.random.UncorrelatedRandomVectorGenerator; +package org.apache.commons.math4.optim.nonlinear.vector; + +import org.apache.commons.math4.analysis.MultivariateMatrixFunction; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.linear.BlockRealMatrix; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.OptimizationData; +import org.apache.commons.math4.optim.PointVectorValuePair; +import org.apache.commons.math4.optim.SimpleBounds; +import org.apache.commons.math4.optim.SimpleVectorValueChecker; +import org.apache.commons.math4.optim.nonlinear.vector.JacobianMultivariateVectorOptimizer; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunction; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunctionJacobian; +import org.apache.commons.math4.optim.nonlinear.vector.MultiStartMultivariateVectorOptimizer; +import org.apache.commons.math4.optim.nonlinear.vector.Target; +import org.apache.commons.math4.optim.nonlinear.vector.Weight; +import org.apache.commons.math4.optim.nonlinear.vector.jacobian.GaussNewtonOptimizer; +import org.apache.commons.math4.random.GaussianRandomGenerator; +import org.apache.commons.math4.random.JDKRandomGenerator; +import org.apache.commons.math4.random.RandomVectorGenerator; +import org.apache.commons.math4.random.UncorrelatedRandomVectorGenerator; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerAbstractTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerAbstractTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerAbstractTest.java index 7a9c9eb..e2814fc 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerAbstractTest.java @@ -14,26 +14,27 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.vector.jacobian; +package org.apache.commons.math4.optim.nonlinear.vector.jacobian; import java.io.IOException; import java.util.Arrays; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; -import org.apache.commons.math3.analysis.MultivariateMatrixFunction; -import org.apache.commons.math3.exception.ConvergenceException; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.geometry.euclidean.twod.Vector2D; -import org.apache.commons.math3.linear.BlockRealMatrix; -import org.apache.commons.math3.linear.RealMatrix; -import org.apache.commons.math3.optim.PointVectorValuePair; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.nonlinear.vector.Target; -import org.apache.commons.math3.optim.nonlinear.vector.Weight; -import org.apache.commons.math3.optim.nonlinear.vector.ModelFunction; -import org.apache.commons.math3.optim.nonlinear.vector.ModelFunctionJacobian; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.MultivariateMatrixFunction; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.exception.ConvergenceException; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.geometry.euclidean.twod.Vector2D; +import org.apache.commons.math4.linear.BlockRealMatrix; +import org.apache.commons.math4.linear.RealMatrix; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointVectorValuePair; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunction; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunctionJacobian; +import org.apache.commons.math4.optim.nonlinear.vector.Target; +import org.apache.commons.math4.optim.nonlinear.vector.Weight; +import org.apache.commons.math4.optim.nonlinear.vector.jacobian.AbstractLeastSquaresOptimizer; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerTest.java index 92ad195..aad5e43 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerTest.java @@ -11,17 +11,18 @@ * KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.vector.jacobian; +package org.apache.commons.math4.optim.nonlinear.vector.jacobian; import java.io.IOException; import java.util.Arrays; -import org.apache.commons.math3.optim.PointVectorValuePair; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.nonlinear.vector.Target; -import org.apache.commons.math3.optim.nonlinear.vector.Weight; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointVectorValuePair; +import org.apache.commons.math4.optim.nonlinear.vector.Target; +import org.apache.commons.math4.optim.nonlinear.vector.Weight; +import org.apache.commons.math4.optim.nonlinear.vector.jacobian.AbstractLeastSquaresOptimizer; +import org.apache.commons.math4.util.FastMath; import org.junit.Test; import org.junit.Assert; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerTestValidation.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerTestValidation.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerTestValidation.java index 575b95c..9235e6b 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerTestValidation.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/AbstractLeastSquaresOptimizerTestValidation.java @@ -11,21 +11,22 @@ * KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.vector.jacobian; +package org.apache.commons.math4.optim.nonlinear.vector.jacobian; import java.util.Arrays; import java.util.List; import java.util.ArrayList; import java.awt.geom.Point2D; -import org.apache.commons.math3.optim.PointVectorValuePair; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.nonlinear.vector.Target; -import org.apache.commons.math3.optim.nonlinear.vector.Weight; -import org.apache.commons.math3.stat.descriptive.SummaryStatistics; -import org.apache.commons.math3.stat.descriptive.StatisticalSummary; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointVectorValuePair; +import org.apache.commons.math4.optim.nonlinear.vector.Target; +import org.apache.commons.math4.optim.nonlinear.vector.Weight; +import org.apache.commons.math4.optim.nonlinear.vector.jacobian.AbstractLeastSquaresOptimizer; +import org.apache.commons.math4.stat.descriptive.StatisticalSummary; +import org.apache.commons.math4.stat.descriptive.SummaryStatistics; +import org.apache.commons.math4.util.FastMath; import org.junit.Test; import org.junit.Assert; @@ -33,7 +34,7 @@ import org.junit.Assert; * This class demonstrates the main functionality of the * {@link AbstractLeastSquaresOptimizer}, common to the * optimizer implementations in package - * {@link org.apache.commons.math3.optimization.general}. + * {@link org.apache.commons.math4.optimization.general}. * <br/> * Not enabled by default, as the class name does not end with "Test". * <br/> http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/CircleProblem.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/CircleProblem.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/CircleProblem.java index fe2c3bc..9458fe8 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/CircleProblem.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/CircleProblem.java @@ -14,16 +14,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.vector.jacobian; +package org.apache.commons.math4.optim.nonlinear.vector.jacobian; import java.util.ArrayList; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; -import org.apache.commons.math3.analysis.MultivariateMatrixFunction; -import org.apache.commons.math3.util.MathUtils; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.optim.nonlinear.vector.ModelFunction; -import org.apache.commons.math3.optim.nonlinear.vector.ModelFunctionJacobian; +import org.apache.commons.math4.analysis.MultivariateMatrixFunction; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunction; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunctionJacobian; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.MathUtils; /** * Class that models a circle. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/CircleVectorial.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/CircleVectorial.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/CircleVectorial.java index 2f63547..7b6a310 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/CircleVectorial.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/CircleVectorial.java @@ -15,15 +15,15 @@ * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.vector.jacobian; +package org.apache.commons.math4.optim.nonlinear.vector.jacobian; import java.util.ArrayList; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; -import org.apache.commons.math3.analysis.MultivariateMatrixFunction; -import org.apache.commons.math3.geometry.euclidean.twod.Vector2D; -import org.apache.commons.math3.optim.nonlinear.vector.ModelFunction; -import org.apache.commons.math3.optim.nonlinear.vector.ModelFunctionJacobian; +import org.apache.commons.math4.analysis.MultivariateMatrixFunction; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.geometry.euclidean.twod.Vector2D; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunction; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunctionJacobian; /** * Class used in the tests. http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/GaussNewtonOptimizerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/GaussNewtonOptimizerTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/GaussNewtonOptimizerTest.java index ee3d00f..7e73a9a 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/GaussNewtonOptimizerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/GaussNewtonOptimizerTest.java @@ -15,19 +15,21 @@ * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.vector.jacobian; +package org.apache.commons.math4.optim.nonlinear.vector.jacobian; import java.io.IOException; -import org.apache.commons.math3.exception.ConvergenceException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; -import org.apache.commons.math3.exception.MathUnsupportedOperationException; -import org.apache.commons.math3.optim.SimpleVectorValueChecker; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.SimpleBounds; -import org.apache.commons.math3.optim.nonlinear.vector.Target; -import org.apache.commons.math3.optim.nonlinear.vector.Weight; +import org.apache.commons.math4.exception.ConvergenceException; +import org.apache.commons.math4.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.SimpleBounds; +import org.apache.commons.math4.optim.SimpleVectorValueChecker; +import org.apache.commons.math4.optim.nonlinear.vector.Target; +import org.apache.commons.math4.optim.nonlinear.vector.Weight; +import org.apache.commons.math4.optim.nonlinear.vector.jacobian.AbstractLeastSquaresOptimizer; +import org.apache.commons.math4.optim.nonlinear.vector.jacobian.GaussNewtonOptimizer; import org.junit.Test; /** http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizerTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizerTest.java index 9a27089..641f4d4 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizerTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/LevenbergMarquardtOptimizerTest.java @@ -15,28 +15,30 @@ * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.vector.jacobian; +package org.apache.commons.math4.optim.nonlinear.vector.jacobian; import java.util.ArrayList; import java.util.List; -import org.apache.commons.math3.optim.PointVectorValuePair; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.SimpleBounds; -import org.apache.commons.math3.optim.nonlinear.vector.Target; -import org.apache.commons.math3.optim.nonlinear.vector.Weight; -import org.apache.commons.math3.optim.nonlinear.vector.ModelFunction; -import org.apache.commons.math3.optim.nonlinear.vector.ModelFunctionJacobian; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; -import org.apache.commons.math3.analysis.MultivariateMatrixFunction; -import org.apache.commons.math3.exception.DimensionMismatchException; -import org.apache.commons.math3.exception.TooManyEvaluationsException; -import org.apache.commons.math3.exception.MathUnsupportedOperationException; -import org.apache.commons.math3.geometry.euclidean.twod.Vector2D; -import org.apache.commons.math3.linear.SingularMatrixException; -import org.apache.commons.math3.util.FastMath; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.math4.analysis.MultivariateMatrixFunction; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.exception.DimensionMismatchException; +import org.apache.commons.math4.exception.MathUnsupportedOperationException; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.geometry.euclidean.twod.Vector2D; +import org.apache.commons.math4.linear.SingularMatrixException; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointVectorValuePair; +import org.apache.commons.math4.optim.SimpleBounds; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunction; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunctionJacobian; +import org.apache.commons.math4.optim.nonlinear.vector.Target; +import org.apache.commons.math4.optim.nonlinear.vector.Weight; +import org.apache.commons.math4.optim.nonlinear.vector.jacobian.AbstractLeastSquaresOptimizer; +import org.apache.commons.math4.optim.nonlinear.vector.jacobian.LevenbergMarquardtOptimizer; +import org.apache.commons.math4.util.FastMath; +import org.apache.commons.math4.util.Precision; import org.junit.Assert; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/commons-math/blob/e4e1ac23/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/MinpackTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/MinpackTest.java b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/MinpackTest.java index 898dbdd..c3486c0 100644 --- a/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/MinpackTest.java +++ b/src/test/java/org/apache/commons/math4/optim/nonlinear/vector/jacobian/MinpackTest.java @@ -15,21 +15,22 @@ * limitations under the License. */ -package org.apache.commons.math3.optim.nonlinear.vector.jacobian; +package org.apache.commons.math4.optim.nonlinear.vector.jacobian; import java.util.Arrays; -import org.apache.commons.math3.exception.TooManyEvaluationsException; -import org.apache.commons.math3.analysis.MultivariateVectorFunction; -import org.apache.commons.math3.analysis.MultivariateMatrixFunction; -import org.apache.commons.math3.optim.PointVectorValuePair; -import org.apache.commons.math3.optim.InitialGuess; -import org.apache.commons.math3.optim.MaxEval; -import org.apache.commons.math3.optim.nonlinear.vector.Target; -import org.apache.commons.math3.optim.nonlinear.vector.Weight; -import org.apache.commons.math3.optim.nonlinear.vector.ModelFunction; -import org.apache.commons.math3.optim.nonlinear.vector.ModelFunctionJacobian; -import org.apache.commons.math3.util.FastMath; +import org.apache.commons.math4.analysis.MultivariateMatrixFunction; +import org.apache.commons.math4.analysis.MultivariateVectorFunction; +import org.apache.commons.math4.exception.TooManyEvaluationsException; +import org.apache.commons.math4.optim.InitialGuess; +import org.apache.commons.math4.optim.MaxEval; +import org.apache.commons.math4.optim.PointVectorValuePair; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunction; +import org.apache.commons.math4.optim.nonlinear.vector.ModelFunctionJacobian; +import org.apache.commons.math4.optim.nonlinear.vector.Target; +import org.apache.commons.math4.optim.nonlinear.vector.Weight; +import org.apache.commons.math4.optim.nonlinear.vector.jacobian.LevenbergMarquardtOptimizer; +import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test;