public class DefaultBinarySolution extends AbstractGenericSolution<BinarySet,BinaryProblem> implements BinarySolution
attributes, problem, randomGenerator| Constructor and Description |
|---|
DefaultBinarySolution(BinaryProblem problem)
Constructor
|
DefaultBinarySolution(DefaultBinarySolution solution)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
DefaultBinarySolution |
copy() |
int |
getNumberOfBits(int index) |
int |
getTotalNumberOfBits() |
String |
getVariableValueString(int index) |
equals, getAttribute, getNumberOfObjectives, getNumberOfVariables, getObjective, getVariableValue, hashCode, initializeObjectiveValues, setAttribute, setObjective, setVariableValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttribute, getNumberOfObjectives, getNumberOfVariables, getObjective, getVariableValue, setAttribute, setObjective, setVariableValuepublic DefaultBinarySolution(BinaryProblem problem)
public DefaultBinarySolution(DefaultBinarySolution solution)
public int getNumberOfBits(int index)
getNumberOfBits in interface BinarySolutionpublic DefaultBinarySolution copy()
public int getTotalNumberOfBits()
getTotalNumberOfBits in interface BinarySolutionpublic String getVariableValueString(int index)
getVariableValueString in interface Solution<BinarySet>Copyright © 2018. All rights reserved.