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