Class AbstractIntegerProblem
java.lang.Object
org.uma.jmetal.problem.AbstractGenericProblem<IntegerSolution>
org.uma.jmetal.problem.integerproblem.impl.AbstractIntegerProblem
- All Implemented Interfaces:
java.io.Serializable,BoundedProblem<java.lang.Integer,IntegerSolution>,IntegerProblem,Problem<IntegerSolution>
public abstract class AbstractIntegerProblem extends AbstractGenericProblem<IntegerSolution> implements IntegerProblem
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractIntegerProblem() -
Method Summary
Modifier and Type Method Description IntegerSolutioncreateSolution()java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer>>getBounds()Deprecated.java.util.List<Bounds<java.lang.Integer>>getBoundsForVariables()java.lang.IntegergetLowerBound(int index)Deprecated.java.lang.IntegergetUpperBound(int index)Deprecated.java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer>>getVariableBounds()Deprecated.USegetBoundsForVariables()instead.voidsetVariableBounds(java.util.List<java.lang.Integer> lowerBounds, java.util.List<java.lang.Integer> 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
-
AbstractIntegerProblem
public AbstractIntegerProblem()
-
-
Method Details
-
getVariableBounds
@Deprecated public java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer>> getVariableBounds()Deprecated.USegetBoundsForVariables()instead. -
getUpperBound
@Deprecated public java.lang.Integer getUpperBound(int index)Deprecated.- Specified by:
getUpperBoundin interfaceBoundedProblem<java.lang.Integer,IntegerSolution>- Parameters:
index- index of the variable- Returns:
- upper bound of the variable
-
getLowerBound
@Deprecated public java.lang.Integer getLowerBound(int index)Deprecated.- Specified by:
getLowerBoundin interfaceBoundedProblem<java.lang.Integer,IntegerSolution>- Parameters:
index- index of the variable- Returns:
- lower bound of the variable
-
setVariableBounds
public void setVariableBounds(java.util.List<java.lang.Integer> lowerBounds, java.util.List<java.lang.Integer> upperBounds) -
createSolution
- Specified by:
createSolutionin interfaceProblem<IntegerSolution>
-
getBounds
@Deprecated public java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer>> getBounds()Deprecated.- Specified by:
getBoundsin interfaceBoundedProblem<java.lang.Integer,IntegerSolution>- Returns:
- A list with pairs
for each of the decision variables
-
getBoundsForVariables
- Specified by:
getBoundsForVariablesin interfaceBoundedProblem<java.lang.Integer,IntegerSolution>- Returns:
- A list with
Boundsfor each of the decision variables
-