Source code for optimeed.optimize.characterization.interfaceCharacterization

from abc import ABCMeta, abstractmethod


[docs]class InterfaceCharacterization(metaclass=ABCMeta): """Interface for the evaluation of a device""" @abstractmethod
[docs] def compute(self, theDevice): """ Action to perform to characterize (= compute the objective function) of the device. :param theDevice: the device to characterize """ pass
[docs] def __str__(self): return "Characterization - No name given"