|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.problem.OptimisationProblemAdapter net.sourceforge.cilib.problem.CooperativeOptimisationProblemAdapter
public class CooperativeOptimisationProblemAdapter
TODO test this class.
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.problem.OptimisationProblemAdapter |
---|
dataSetBuilder, fitnessEvaluations |
Constructor Summary | |
---|---|
CooperativeOptimisationProblemAdapter(CooperativeOptimisationProblemAdapter copy)
|
|
CooperativeOptimisationProblemAdapter(OptimisationProblem p,
CooperativeEntity c,
int d,
int o)
Creates an OptimisationProblemAdapter that has the specified dimension starting at the given offset (index) position of the full given problem. |
Method Summary | |
---|---|
protected Fitness |
calculateFitness(Type solution)
Determine the Fitness of the current Problem instance
based on the provided solution . |
DomainRegistry |
getBehaviouralDomain()
Returns the domain component that describes the search space of the needed behavioral characteristics of the problem. |
CooperativeOptimisationProblemAdapter |
getClone()
Create a cloned copy of the current object and return it. |
int |
getDimension()
|
DomainRegistry |
getDomain()
Returns the domain component that describes the search space for this problem. |
int |
getOffset()
|
void |
updateContext(CooperativeEntity c)
|
Methods inherited from class net.sourceforge.cilib.problem.OptimisationProblemAdapter |
---|
accept, changeEnvironment, getChangeStrategy, getDataSetBuilder, getFitness, getFitnessEvaluations, setChangeStrategy, setDataSetBuilder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CooperativeOptimisationProblemAdapter(OptimisationProblem p, CooperativeEntity c, int d, int o)
p
- problem the full problem that is being split upc
- Reference to the CooperativeEntity
d
- dimension the dimension that that this sub-problem should beo
- offset the offset (index) position in the full-problem where this sub-problem should
startpublic CooperativeOptimisationProblemAdapter(CooperativeOptimisationProblemAdapter copy)
Method Detail |
---|
public CooperativeOptimisationProblemAdapter getClone()
OptimisationProblem
getClone
in interface OptimisationProblem
getClone
in interface Problem
getClone
in interface Cloneable
getClone
in class OptimisationProblemAdapter
Object.clone()
public int getDimension()
public int getOffset()
public void updateContext(CooperativeEntity c)
protected Fitness calculateFitness(Type solution)
OptimisationProblemAdapter
Fitness
of the current Problem
instance
based on the provided solution
.
calculateFitness
in class OptimisationProblemAdapter
solution
- The Type
representing the candidate solution.
Fitness
of the solution
in the current Problem.OptimisationProblemAdapter.getFitness(Type, boolean)
public DomainRegistry getDomain()
OptimisationProblem
DomainRegistry
object representing the search space.public DomainRegistry getBehaviouralDomain()
OptimisationProblem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |