(self)
| 157 | return self._finalize() |
| 158 | |
| 159 | def next(self) -> None: |
| 160 | |
| 161 | # get the infill solutions |
| 162 | infills = self.infill() |
| 163 | |
| 164 | # call the advance with them after evaluation |
| 165 | if infills is not None: |
| 166 | self.evaluator.eval(self.problem, infills, algorithm=self) |
| 167 | self.advance(infills=infills) |
| 168 | |
| 169 | # if the algorithm does not follow the infill-advance scheme just call advance |
| 170 | else: |
| 171 | self.advance() |
| 172 | |
| 173 | def _initialize(self) -> None: |
| 174 |