source: framspy/evolalg/repair/remove/remove.py @ 1113

Last change on this file since 1113 was 1113, checked in by Maciej Komosinski, 3 years ago

Added a framework for evolutionary algorithms cooperating with FramsticksLib?.py

File size: 287 bytes
Line 
1from abc import abstractmethod
2from evolalg.base.step import Step
3
4
5
6class Remove(Step):
7    def __init__(self):
8        pass
9
10    @abstractmethod
11    def remove(self, individual):
12        pass
13
14    def call(self, population):
15        return [_ for _ in population if not self.remove(_)]
Note: See TracBrowser for help on using the repository browser.