Class AbstractIntegerProblem
java.lang.Object
org.uma.jmetal.problem.integerproblem.impl.AbstractIntegerProblem
- All Implemented Interfaces:
Serializable,IntegerProblem,Problem<IntegerSolution>
- Direct Known Subclasses:
FakeIntegerProblem
Abstract class to be extended by implementations of interface
>- Author:
- Antonio J. Nebro (ajnebro@uma.es)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname()voidintvoidnumberOfConstraints(int numberOfConstraints) intvoidnumberOfObjectives(int numberOfObjectives) intvoidvariableBounds(List<Integer> lowerBounds, List<Integer> upperBounds)
-
Field Details
-
bounds
-
numberOfObjectives
protected int numberOfObjectives -
numberOfConstraints
protected int numberOfConstraints -
name
-
-
Constructor Details
-
AbstractIntegerProblem
public AbstractIntegerProblem()
-
-
Method Details
-
numberOfVariables
public int numberOfVariables()- Specified by:
numberOfVariablesin interfaceProblem<IntegerSolution>
-
numberOfObjectives
public int numberOfObjectives()- Specified by:
numberOfObjectivesin interfaceProblem<IntegerSolution>
-
numberOfObjectives
public void numberOfObjectives(int numberOfObjectives) -
numberOfConstraints
public void numberOfConstraints(int numberOfConstraints) -
name
- Specified by:
namein interfaceProblem<IntegerSolution>
-
name
-
numberOfConstraints
public int numberOfConstraints()- Specified by:
numberOfConstraintsin interfaceProblem<IntegerSolution>
-
variableBounds
-
createSolution
- Specified by:
createSolutionin interfaceProblem<IntegerSolution>
-
variableBounds
- Specified by:
variableBoundsin interfaceIntegerProblem
-