Problem documentation.
This commit is contained in:
parent
f01258fff1
commit
76bbf3ca2f
@ -572,24 +572,17 @@ public abstract class AbstractProblemDouble extends AbstractOptimizationProblem
|
|||||||
return isShowing;
|
return isShowing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Parameter(description = "Produce an exemplary 2D plot of the function (dimensional cut at x_i=0 for n>1).")
|
||||||
public void setShowPlot(boolean showP) {
|
public void setShowPlot(boolean showP) {
|
||||||
if (!isShowing && showP) {
|
if (!isShowing && showP) {
|
||||||
TopoPlot plot = new TopoPlot(getName(), "x1", "x2");
|
TopoPlot plot = new TopoPlot(getName(), "x1", "x2");
|
||||||
plot.setParams(60, 60, ColorBarCalculator.BLUE_TO_RED);
|
plot.setParams(100, 100, ColorBarCalculator.BLUE_TO_RED);
|
||||||
this.initializeProblem();
|
this.initializeProblem();
|
||||||
plot.setTopology(this, makeRange(), true);
|
plot.setTopology(this, makeRange(), true);
|
||||||
if (this instanceof InterfaceMultimodalProblemKnown
|
if (this instanceof InterfaceMultimodalProblemKnown && ((InterfaceMultimodalProblemKnown) this).fullListAvailable()) {
|
||||||
&& ((InterfaceMultimodalProblemKnown) this)
|
plot.drawPopulation("Opt", ((InterfaceMultimodalProblemKnown) this).getRealOptima());
|
||||||
.fullListAvailable()) {
|
|
||||||
plot.drawPopulation("Opt",
|
|
||||||
((InterfaceMultimodalProblemKnown) this)
|
|
||||||
.getRealOptima());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
isShowing = showP;
|
isShowing = showP;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String showPlotTipText() {
|
|
||||||
return "Produce an exemplary 2D plot of the function (dimensional cut at x_i=0 for n>1).";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,8 @@ import eva2.util.annotation.Description;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Levy function.
|
||||||
|
*
|
||||||
* The Levy-function, from Levy, A., and Montalvo, A. (1985). Also described in
|
* The Levy-function, from Levy, A., and Montalvo, A. (1985). Also described in
|
||||||
* "A Trust-Region Algorithm for Global Optimization", Bernardetta Addisy and Sven Leyfferz, 2004/2006.
|
* "A Trust-Region Algorithm for Global Optimization", Bernardetta Addisy and Sven Leyfferz, 2004/2006.
|
||||||
*/
|
*/
|
||||||
@ -69,6 +71,6 @@ public class F15Problem extends AbstractProblemDouble implements Serializable, I
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "F15Problem";
|
return "Levy function";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ import eva2.tools.math.Mathematics;
|
|||||||
import eva2.util.annotation.Description;
|
import eva2.util.annotation.Description;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* F1 Sphere Problem
|
* Sphere Problem
|
||||||
*/
|
*/
|
||||||
@Description(value ="Sphere Problem")
|
@Description(value ="Sphere Problem")
|
||||||
public class F1Problem extends AbstractProblemDoubleOffset implements Interface2DBorderProblem, InterfaceHasInitRange, java.io.Serializable, InterfaceFirstOrderDerivableProblem {
|
public class F1Problem extends AbstractProblemDoubleOffset implements Interface2DBorderProblem, InterfaceHasInitRange, java.io.Serializable, InterfaceFirstOrderDerivableProblem {
|
||||||
|
@ -4,7 +4,7 @@ import eva2.optimization.strategies.InterfaceOptimizer;
|
|||||||
import eva2.util.annotation.Description;
|
import eva2.util.annotation.Description;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* F22 Schwefel 2.22 Problem
|
* Schwefel 2.22 function
|
||||||
*/
|
*/
|
||||||
@Description(value ="Schwefel 2.22")
|
@Description(value ="Schwefel 2.22")
|
||||||
public class F22Problem extends AbstractProblemDoubleOffset implements InterfaceHasInitRange, java.io.Serializable {
|
public class F22Problem extends AbstractProblemDoubleOffset implements InterfaceHasInitRange, java.io.Serializable {
|
||||||
|
@ -5,6 +5,9 @@ import eva2.optimization.population.Population;
|
|||||||
import eva2.optimization.strategies.GradientDescentAlgorithm;
|
import eva2.optimization.strategies.GradientDescentAlgorithm;
|
||||||
import eva2.util.annotation.Description;
|
import eva2.util.annotation.Description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generalized Rosenbrock's Function
|
||||||
|
*/
|
||||||
@Description(value ="Generalized Rosenbrock's function.")
|
@Description(value ="Generalized Rosenbrock's function.")
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public class F2Problem extends AbstractProblemDoubleOffset implements InterfaceLocalSearchable, InterfaceMultimodalProblem, java.io.Serializable, InterfaceFirstOrderDerivableProblem {
|
public class F2Problem extends AbstractProblemDoubleOffset implements InterfaceLocalSearchable, InterfaceMultimodalProblem, java.io.Serializable, InterfaceFirstOrderDerivableProblem {
|
||||||
|
@ -4,7 +4,7 @@ import eva2.optimization.individuals.ESIndividualDoubleData;
|
|||||||
import eva2.util.annotation.Description;
|
import eva2.util.annotation.Description;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Step function
|
||||||
*/
|
*/
|
||||||
@Description("Step function.")
|
@Description("Step function.")
|
||||||
public class F3Problem extends AbstractProblemDoubleOffset implements java.io.Serializable {
|
public class F3Problem extends AbstractProblemDoubleOffset implements java.io.Serializable {
|
||||||
|
@ -5,7 +5,7 @@ import eva2.util.annotation.Description;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Quadratic function with noise.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@Description("Quadratic Function with noise.")
|
@Description("Quadratic Function with noise.")
|
||||||
|
@ -5,7 +5,7 @@ import eva2.util.annotation.Description;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Schwefel's 1.2
|
||||||
*/
|
*/
|
||||||
@Description("Schwefel's 1.2 Function.")
|
@Description("Schwefel's 1.2 Function.")
|
||||||
public class F5Problem extends AbstractProblemDoubleOffset implements Serializable {
|
public class F5Problem extends AbstractProblemDoubleOffset implements Serializable {
|
||||||
|
@ -9,7 +9,7 @@ import eva2.util.annotation.Parameter;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Sphere with changing environment
|
||||||
*/
|
*/
|
||||||
@Description("Sphere Model, changing Environment.")
|
@Description("Sphere Model, changing Environment.")
|
||||||
public class F7Problem extends AbstractProblemDoubleOffset implements Serializable {
|
public class F7Problem extends AbstractProblemDoubleOffset implements Serializable {
|
||||||
|
@ -11,7 +11,6 @@ import eva2.util.annotation.Description;
|
|||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ackley's function.
|
* Ackley's function.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user