diff --git a/simopt/solvers/neldmd.py b/simopt/solvers/neldmd.py index 84ae2c67..8fc93855 100644 --- a/simopt/solvers/neldmd.py +++ b/simopt/solvers/neldmd.py @@ -192,8 +192,7 @@ def solve(self, problem: Problem) -> None: # noqa: D102 sol_0_x = np.array(sort_sol[0].x) # pyrefly: ignore for i in range(1, len(sort_sol)): p_new = ( - self.factors["delta"] - * np.array(sort_sol[i].x) # pyrefly: ignore + self.factors["delta"] * np.array(sort_sol[i].x) # pyrefly: ignore + (1 - self.factors["delta"]) * sol_0_x ) p_new = self._check_const(p_new, sol_0_x)