From d98349aa80f053d0b207895eb5fe4926ded568d8 Mon Sep 17 00:00:00 2001 From: Ferran Brosa Planella Date: Mon, 25 Mar 2024 14:43:11 +0000 Subject: [PATCH] #223 rename example --- examples/scripts/{gitt_scipymin.py => gitt.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename examples/scripts/{gitt_scipymin.py => gitt.py} (96%) diff --git a/examples/scripts/gitt_scipymin.py b/examples/scripts/gitt.py similarity index 96% rename from examples/scripts/gitt_scipymin.py rename to examples/scripts/gitt.py index 13d0cd50f..792436d90 100644 --- a/examples/scripts/gitt_scipymin.py +++ b/examples/scripts/gitt.py @@ -9,7 +9,7 @@ ) # Generate data -sigma = 0.001 +sigma = 0.005 t_eval = np.arange(0, 150, 2) values = model.predict(t_eval=t_eval) corrupt_values = values["Voltage [V]"].data + np.random.normal(0, sigma, len(t_eval)) @@ -63,7 +63,7 @@ cost = pybop.RootMeanSquaredError(problem) # Build the optimisation problem -optim = pybop.Optimisation(cost=cost, optimiser=pybop.SciPyMinimize) +optim = pybop.Optimisation(cost=cost, optimiser=pybop.PSO, verbose=True) # Run the optimisation problem x, final_cost = optim.run()