Skip to content

Commit 210204a

Browse files
author
hudde
committed
bugfix
1 parent 33b8da4 commit 210204a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nonlinear_programming.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def add_gradient_descent_surface(self, x0, function, grad, gamma=1, iterations=1
112112
f_x = np.zeros(iterations + 1)
113113
x[0, :] = np.array(x0)
114114
f_x[0] = np.round(function(x[0, :]), 3)
115-
for i in range(Iterationen):
115+
for i in range(iterations):
116116
x[i + 1] = -gamma * grad(x[i, :]) + x[i, :]
117117
f_x[i + 1] = np.round(function(x[i + 1, :]), 3)
118118
self.add_scatter3d(

0 commit comments

Comments
 (0)