Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/quocslib/optimizationalgorithms/ADAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ def inner_run(self):
initial_variation = random_variation * self.controls.get_sigma_variation()
# Define the initial
init_xx = self.controls.get_mean_value() + initial_variation

# Initialize the best xx vector for this SI
self.best_xx = self.controls.get_mean_value().copy()

def get_gradient(x):
return np.array(jax.jit(jax.grad(self.get_gradient))(x))

Expand Down
Loading