net.sourceforge.cilib.functions.discrete
Class KnightCoverageProblem

java.lang.Object
  extended by net.sourceforge.cilib.problem.OptimisationProblemAdapter
      extended by net.sourceforge.cilib.functions.discrete.KnightCoverageProblem
All Implemented Interfaces:
Serializable, OptimisationProblem, Problem, Cloneable

Deprecated.

@Deprecated
public class KnightCoverageProblem
extends OptimisationProblemAdapter

Author:
otter Problem description : place the minimun amount of knights on a standard 8 by 8 square board, such that every block is covered by a valid move. This problem is an OptimisationProblem and thus based on the OptimisationProblem interface
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.problem.OptimisationProblemAdapter
dataSetBuilder, fitnessEvaluations
 
Constructor Summary
KnightCoverageProblem(KnightCoverageProblem copy)
          Deprecated.  
 
Method Summary
protected  Fitness calculateFitness(Type solution)
          Deprecated. Returns the fitness of a potential solution to this problem.
 DomainRegistry getBehaviouralDomain()
          Deprecated. Returns the domain component that describes the search space of the needed behavioral characteristics of the problem.
 KnightCoverageProblem getClone()
          Deprecated. Create a cloned copy of the current object and return it.
 DomainRegistry getDomain()
          Deprecated. Returns the domain component that describes the search space for this problem.
 void setDomain(String representation)
          Deprecated. Sets the domain of the function.
 
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

KnightCoverageProblem

public KnightCoverageProblem(KnightCoverageProblem copy)
Deprecated. 
Method Detail

getClone

public KnightCoverageProblem getClone()
Deprecated. 
Description copied from interface: OptimisationProblem
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface OptimisationProblem
Specified by:
getClone in interface Problem
Specified by:
getClone in interface Cloneable
Specified by:
getClone in class OptimisationProblemAdapter
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

calculateFitness

protected Fitness calculateFitness(Type solution)
Deprecated. 
Returns the fitness of a potential solution to this problem. The solution object is described by the domain of this problem, see getDomain(). An instance of InferiorFitness should be returned if the solution falls outside the search space of this problem.

Specified by:
calculateFitness in class OptimisationProblemAdapter
Parameters:
solution - The potential solution found by the optimisation algorithm.
count - True if this call should contribute to the fitness evaluation count, see OptimisationProblemAdapter.getFitnessEvaluations().
Returns:
The fitness of the solution.
See Also:
OptimisationProblemAdapter.getFitness(Type, boolean)

getDomain

public DomainRegistry getDomain()
Deprecated. 
Returns the domain component that describes the search space for this problem.

Returns:
A net.sourceforge.cilib.Domain.Component object representing the search space.

setDomain

public void setDomain(String representation)
Deprecated. 
Sets the domain of the function. See net.sourceforge.cilib.Domain.Component.

Parameters:
representation - the string representation for the function domain.

getBehaviouralDomain

public DomainRegistry getBehaviouralDomain()
Deprecated. 
Description copied from interface: OptimisationProblem
Returns the domain component that describes the search space of the needed behavioral characteristics of the problem. This is mainly used for ECs, however, the use of behavioral parameters with PSO will be investigated.

Returns:
The domain of the behavioral component


Copyright © 2009 CIRG. All Rights Reserved.