| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | class BaseFunction: |
||
| 2 | """ |
||
| 3 | Abstract base class for defining optimization functions. |
||
| 4 | |||
| 5 | Methods |
||
| 6 | ------- |
||
| 7 | objective_function(para) |
||
| 8 | Should be implemented to evaluate the objective function for given parameters. |
||
| 9 | |||
| 10 | search_space() |
||
| 11 | Should be implemented to define the parameter search space. |
||
| 12 | """ |
||
| 13 | |||
| 14 | def objective_function(self, para): |
||
| 15 | raise NotImplementedError |
||
| 16 | |||
| 17 | def search_space(self): |
||
| 18 | raise NotImplementedError |
||
| 19 |