diff --git a/pypesto/result/optimize.py b/pypesto/result/optimize.py index 99399163f..8d2742ad9 100644 --- a/pypesto/result/optimize.py +++ b/pypesto/result/optimize.py @@ -156,7 +156,7 @@ def summary(self, full: bool = False, show_hess: bool = True) -> str: f"* message: {self.message} \n" f"* number of evaluations: {self.n_fval}\n" f"* time taken to optimize: {self.time:0.3f}s\n" - f"* startpoint: {self.x0 if full else self.x0[self.free_indices]}\n" + f"* startpoint: {self.x0 if full or self.x0 is None else self.x0[self.free_indices]}\n" f"* endpoint: {self.x if full else self.x[self.free_indices]}\n" ) # add fval, gradient, hessian, res, sres if available