source:
framspy/evolalg/repair/remove/function.py
@
1138
Last change on this file since 1138 was 1113, checked in by , 4 years ago | |
---|---|
File size: 250 bytes |
Line | |
---|---|
1 | |
2 | |
3 | from evolalg.repair.remove.remove import Remove |
4 | class 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.