|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cilib.problem.OptimisationSolution
public class OptimisationSolution
This class represents a solution to an OptimisationProblem.
It is responsible for keeping track of the optimisation problem and position of the solution within the search
space.
| Constructor Summary | |
|---|---|
OptimisationSolution(Type position,
Fitness fitness)
Constructs a new instance of OptimisationSolution. |
|
| Method Summary | |
|---|---|
int |
compareTo(OptimisationSolution other)
|
boolean |
equals(Object other)
|
Fitness |
getFitness()
Returns the fitness of this solution according to OptimisationProblem.getFitness(Type, boolean). |
Type |
getPosition()
Returns the position of this solution within the search space of the problem. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptimisationSolution(Type position,
Fitness fitness)
OptimisationSolution.
position - The position of the solution within the search space of the problem.fitness - The fitness of the optimisation solution.| Method Detail |
|---|
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Type getPosition()
public Fitness getFitness()
OptimisationProblem.getFitness(Type, boolean).
Calling this function does not contribute to the number of fitness evaulations maintained by
OptimisationProblem.
public int compareTo(OptimisationSolution other)
compareTo in interface Comparable<OptimisationSolution>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||