Class DefaultBinarySolution
java.lang.Object
org.uma.jmetal.solution.AbstractSolution<BinarySet>
org.uma.jmetal.solution.binarysolution.impl.DefaultBinarySolution
- All Implemented Interfaces:
Serializable,BinarySolution,Solution<BinarySet>
This defines an implementation of a binary solution. These solutions are composed of a number
of variables containing
BinarySet objects.- Author:
- Antonio J. Nebro
- See Also:
-
Field Summary
FieldsFields inherited from class org.uma.jmetal.solution.AbstractSolution
attributes -
Constructor Summary
ConstructorsConstructorDescriptionDefaultBinarySolution(List<Integer> bitsPerVariable, int numberOfObjectives) ConstructorDefaultBinarySolution(List<Integer> bitsPerVariable, int numberOfObjectives, int numberOfConstraints) ConstructorDefaultBinarySolution(DefaultBinarySolution solution) Copy constructor -
Method Summary
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
-
numberOfBitsPerVariable
-
-
Constructor Details
-
DefaultBinarySolution
-
DefaultBinarySolution
-
DefaultBinarySolution
Copy constructor
-
-
Method Details
-
numberOfBitsPerVariable
- Specified by:
numberOfBitsPerVariablein interfaceBinarySolution
-
copy
-
totalNumberOfBits
public int totalNumberOfBits()- Specified by:
totalNumberOfBitsin interfaceBinarySolution
-