source: framspy/evolalg/repair/remove/function.py @ 1138

Last change on this file since 1138 was 1113, checked in by Maciej Komosinski, 4 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.