pycellga.problems package

Subpackages

Submodules

pycellga.problems.abstract_problem module

class pycellga.problems.abstract_problem.AbstractProblem[source]

Bases: object

An abstract base class for optimization problems.

f(x)[source]

Evaluates the fitness of a given solution x.

f(x)[source]

Evaluate the fitness of a given solution x.

Parameters:

x (list) – A list representing a candidate solution.

Returns:

The fitness value of the candidate solution.

Return type:

float

Raises:

NotImplementedError – If the method is not implemented by a subclass.

Module contents