source: framspy/evolalg/repair/remove/function.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: 250 bytes
Line 
1
2
3from evolalg.repair.remove.remove import Remove
4class LambdaRemove(Remove):
5    def __init__(self, func):
6        super(LambdaRemove, self).__init__()
7        self.func = func
8
9    def remove(self, individual):
10        return self.func(individual)
Note: See TracBrowser for help on using the repository browser.