public class OneMax extends AbstractBinaryProblem
| Constructor and Description |
|---|
OneMax()
Constructor
|
OneMax(Integer numberOfBits)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
BinarySolution |
createSolution() |
void |
evaluate(BinarySolution solution)
Evaluate() method
|
protected int |
getBitsPerVariable(int index) |
getNumberOfBits, getTotalNumberOfBitsgetName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, setName, setNumberOfConstraints, setNumberOfObjectives, setNumberOfVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariablespublic OneMax()
public OneMax(Integer numberOfBits)
protected int getBitsPerVariable(int index)
getBitsPerVariable in class AbstractBinaryProblempublic BinarySolution createSolution()
createSolution in interface Problem<BinarySolution>createSolution in class AbstractBinaryProblempublic void evaluate(BinarySolution solution)
Copyright © 2018. All rights reserved.