"Simplex.TransformFactory" must extend "OptimizationData".

This commit is contained in:
Gilles Sadowski 2021-08-09 10:31:07 +02:00
parent c04dd79f0f
commit 1bc6e8de25
4 changed files with 4 additions and 7 deletions

View File

@ -54,8 +54,7 @@ import org.apache.commons.math4.legacy.optim.OptimizationData;
* "SSA" algorithm in the above paper.
*/
public class HedarFukushimaTransform
implements Simplex.TransformFactory,
OptimizationData {
implements Simplex.TransformFactory {
/** Shrinkage coefficient. */
private final double sigma;
/** Sampler for reflection coefficient. */

View File

@ -30,8 +30,7 @@ import org.apache.commons.math4.legacy.optim.OptimizationData;
* Multi-directional search method.
*/
public class MultiDirectionalTransform
implements Simplex.TransformFactory,
OptimizationData {
implements Simplex.TransformFactory {
/** Reflection coefficient. */
private static final double ALPHA = 1;
/** Default value for {@link #gamma}: {@value}. */

View File

@ -28,8 +28,7 @@ import org.apache.commons.math4.legacy.optim.OptimizationData;
* <a href="https://en.wikipedia.org/wiki/Nelder%E2%80%93Mead_method">Nelder-Mead method</a>.
*/
public class NelderMeadTransform
implements Simplex.TransformFactory,
OptimizationData {
implements Simplex.TransformFactory {
/** Default value for {@link #alpha}: {@value}. */
private static final double DEFAULT_ALPHA = 1;
/** Default value for {@link #gamma}: {@value}. */

View File

@ -249,7 +249,7 @@ public final class Simplex implements OptimizationData {
* @see NelderMeadTransform
* @see HedarFukushimaTransform
*/
public interface TransformFactory {
public interface TransformFactory extends OptimizationData {
/**
* Creates a simplex transformation.
*