Class AbstractDoubleProblem
java.lang.Object
org.uma.jmetal.problem.AbstractGenericProblem<DoubleSolution>
org.uma.jmetal.problem.doubleproblem.impl.AbstractDoubleProblem
- All Implemented Interfaces:
java.io.Serializable,BoundedProblem<java.lang.Double,DoubleSolution>,DoubleProblem,Problem<DoubleSolution>
- Direct Known Subclasses:
DummyDoubleProblem
public abstract class AbstractDoubleProblem extends AbstractGenericProblem<DoubleSolution> implements DoubleProblem
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractDoubleProblem() -
Method Summary
Modifier and Type Method Description DoubleSolutioncreateSolution()java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Double,java.lang.Double>>getBounds()Deprecated.java.util.List<Bounds<java.lang.Double>>getBoundsForVariables()java.lang.DoublegetLowerBound(int index)Deprecated.java.lang.DoublegetUpperBound(int index)Deprecated.java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Double,java.lang.Double>>getVariableBounds()Deprecated.UsegetBoundsForVariables()instead.voidsetVariableBounds(java.util.List<java.lang.Double> lowerBounds, java.util.List<java.lang.Double> upperBounds)Methods inherited from class org.uma.jmetal.problem.AbstractGenericProblem
getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, setName, setNumberOfConstraints, setNumberOfObjectives, setNumberOfVariablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.uma.jmetal.problem.Problem
evaluate, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables
-
Field Details
-
Constructor Details
-
AbstractDoubleProblem
public AbstractDoubleProblem()
-
-
Method Details
-
getVariableBounds
@Deprecated public java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Double,java.lang.Double>> getVariableBounds()Deprecated.UsegetBoundsForVariables()instead. -
getUpperBound
@Deprecated public java.lang.Double getUpperBound(int index)Deprecated.- Specified by:
getUpperBoundin interfaceBoundedProblem<java.lang.Double,DoubleSolution>- Parameters:
index- index of the variable- Returns:
- upper bound of the variable
-
getLowerBound
@Deprecated public java.lang.Double getLowerBound(int index)Deprecated.- Specified by:
getLowerBoundin interfaceBoundedProblem<java.lang.Double,DoubleSolution>- Parameters:
index- index of the variable- Returns:
- lower bound of the variable
-
setVariableBounds
public void setVariableBounds(java.util.List<java.lang.Double> lowerBounds, java.util.List<java.lang.Double> upperBounds) -
createSolution
- Specified by:
createSolutionin interfaceProblem<DoubleSolution>
-
getBounds
@Deprecated public java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Double,java.lang.Double>> getBounds()Deprecated.- Specified by:
getBoundsin interfaceBoundedProblem<java.lang.Double,DoubleSolution>- Returns:
- A list with pairs
for each of the decision variables
-
getBoundsForVariables
- Specified by:
getBoundsForVariablesin interfaceBoundedProblem<java.lang.Double,DoubleSolution>- Returns:
- A list with
Boundsfor each of the decision variables
-