|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmetal.core.Problem
jmetal.problems.OneZeroMax
public class OneZeroMax
Class representing problem OneZeroMax. The problem consist of maximizing the number of '1's and '0's in a binary string.
Field Summary |
---|
Fields inherited from class jmetal.core.Problem |
---|
length_, lowerLimit_, numberOfConstraints_, numberOfObjectives_, numberOfVariables_, problemName_, solutionType_, upperLimit_ |
Constructor Summary | |
---|---|
OneZeroMax(java.lang.String solutionType)
Creates a new OneZeroMax problem instance |
|
OneZeroMax(java.lang.String solutionType,
java.lang.Integer numberOfBits)
Creates a new OneZeroMax problem instance |
Method Summary | |
---|---|
void |
evaluate(Solution solution)
Evaluates a solution |
Methods inherited from class jmetal.core.Problem |
---|
evaluateConstraints, getLength, getLowerLimit, getName, getNumberOfBits, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, getPrecision, getPrecision, getSolutionType, getUpperLimit, setNumberOfVariables, setPrecision, setSolutionType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OneZeroMax(java.lang.String solutionType) throws java.lang.ClassNotFoundException
solutionType
- Solution type
java.lang.ClassNotFoundException
public OneZeroMax(java.lang.String solutionType, java.lang.Integer numberOfBits)
solutionType
- Solution typenumberOfBits
- Length of the problemMethod Detail |
---|
public void evaluate(Solution solution)
evaluate
in class Problem
solution
- The solution to evaluate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |