Class DefaultIntegerSolution
java.lang.Object
org.uma.jmetal.solution.AbstractSolution<java.lang.Integer>
org.uma.jmetal.solution.integersolution.impl.DefaultIntegerSolution
- All Implemented Interfaces:
java.io.Serializable,IntegerSolution,Solution<java.lang.Integer>
public class DefaultIntegerSolution extends AbstractSolution<java.lang.Integer> implements IntegerSolution
Defines an implementation of an integer solution
- Author:
- Antonio J. Nebro
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DefaultIntegerSolution(int numberOfObjectives, int numberOfConstraints, java.util.List<Bounds<java.lang.Integer>> boundsList)ConstructorDefaultIntegerSolution(int numberOfObjectives, java.util.List<Bounds<java.lang.Integer>> bounds)ConstructorDefaultIntegerSolution(java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer>> bounds, int numberOfObjectives)Deprecated.UseDefaultIntegerSolution(int, List)instead.DefaultIntegerSolution(java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer>> bounds, int numberOfObjectives, int numberOfConstraints)Deprecated.UseDefaultIntegerSolution(int, int, List)instead.DefaultIntegerSolution(DefaultIntegerSolution solution)Copy constructor -
Method Summary
Modifier and Type Method Description DefaultIntegerSolutioncopy()Bounds<java.lang.Integer>getBounds(int index)It is often the case that we use both bounds together.java.lang.IntegergetLowerBound(int index)Deprecated.UsegetBounds(int).getLowerBound()instead.java.lang.IntegergetUpperBound(int index)Deprecated.UsegetBounds(int).getUpperBound()instead.Methods inherited from class org.uma.jmetal.solution.AbstractSolution
attributes, constraints, equals, hashCode, objectives, toString, variablesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.uma.jmetal.solution.Solution
attributes, constraints, objectives, variables
-
Field Details
-
Constructor Details
-
DefaultIntegerSolution
@Deprecated public DefaultIntegerSolution(java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer>> bounds, int numberOfObjectives, int numberOfConstraints)Deprecated.UseDefaultIntegerSolution(int, int, List)instead.Constructor -
DefaultIntegerSolution
public DefaultIntegerSolution(int numberOfObjectives, int numberOfConstraints, java.util.List<Bounds<java.lang.Integer>> boundsList)Constructor -
DefaultIntegerSolution
@Deprecated public DefaultIntegerSolution(java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.Integer>> bounds, int numberOfObjectives)Deprecated.UseDefaultIntegerSolution(int, List)instead.Constructor -
DefaultIntegerSolution
public DefaultIntegerSolution(int numberOfObjectives, java.util.List<Bounds<java.lang.Integer>> bounds)Constructor -
DefaultIntegerSolution
Copy constructor
-
-
Method Details
-
getLowerBound
@Deprecated public java.lang.Integer getLowerBound(int index)Deprecated.UsegetBounds(int).getLowerBound()instead.- Specified by:
getLowerBoundin interfaceIntegerSolution
-
getUpperBound
@Deprecated public java.lang.Integer getUpperBound(int index)Deprecated.UsegetBounds(int).getUpperBound()instead.- Specified by:
getUpperBoundin interfaceIntegerSolution
-
getBounds
Description copied from interface:IntegerSolutionIt is often the case that we use both bounds together. Searching twice the same index may be counter productive in this case. This methods allows to offer this optimization, although its default implementation just delegates to the separate methods.- Specified by:
getBoundsin interfaceIntegerSolution
-
copy
-