public class Fonseca2 extends AbstractProblem implements AnalyticalProblem
Properties:
References:
numberOfConstraints, numberOfObjectives, numberOfVariables
Constructor and Description |
---|
Fonseca2()
Constructs the Fonseca (2) problem with
3 decision variables. |
Fonseca2(int numberOfVariables)
Constructs the Fonseca (2) problem with the specified number of decision
variables.
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate(Solution solution)
Evaluates the solution, updating the solution's objectives in place.
|
Solution |
generate()
Returns a randomly-generated solution using the analytical solution to
this problem.
|
Solution |
newSolution()
Returns a new solution for this problem.
|
close, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, isType
public Fonseca2()
3
decision variables.public Fonseca2(int numberOfVariables)
numberOfVariables
- the number of decision variablespublic void evaluate(Solution solution)
Problem
public Solution newSolution()
Problem
newSolution
in interface Problem
public Solution generate()
AnalyticalProblem
NondominatedPopulation
to remove dominated solutions prior to
using the generated reference set.
The generated solutions should be spread uniformly across the entire Pareto frontier; however, this is a suggestion and is not a requirement of this interface.
generate
in interface AnalyticalProblem
Copyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.