Package transsys :: Module optim :: Class AbstractObjectiveFunction
[hide private]
[frames] | no frames]

Class AbstractObjectiveFunction

source code

object --+
         |
        AbstractObjectiveFunction

Base class for objective functions.

This is an abstract class, methods just raise exceptions. Subclasses should be callable and take a transsys program as a parameter. The returned value should be an instance of FitnessResult or a subclass.

Instance Methods [hide private]
 
__init__(self)
Abstract constructor method, raises exception.
source code
 
__call__(self, transsys_program)
Abstract call method, raises exception.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Abstract constructor method, raises exception.

Overrides: object.__init__

__call__(self, transsys_program)
(Call operator)

source code 

Abstract call method, raises exception.

Parameters:
  • transsys_program - the transsys program to be evaluated