(self, problem, a=None, b=None, **kwargs)
| 12 | self.a, self.b = a, b |
| 13 | |
| 14 | def _setup(self, problem, a=None, b=None, **kwargs): |
| 15 | msg = "Only problems with one variable, one objective and no constraints can be solved!" |
| 16 | assert ( |
| 17 | problem.n_var == 1 and not problem.has_constraints() and problem.n_obj == 1 |
| 18 | ), msg |
| 19 | self.a, self.b = a, b |
| 20 | |
| 21 | def _initialize_infill(self): |
| 22 |