scipy-optimize-minimize

Problems with scipy minimize

Problems with scipy minimize Question: I’m trying to use the minimize function to optimize two parameters for a power law fit. I am getting these errors so far. I already obtained variables that I wanted using curve fit, but I specifically wanted to use the minimize function on a chi_square function. Here is the code: …

Total answers: 1

minimizing a function with an array input

minimizing a function with an array input Question: I want to use scipy.optimize.minimize on a function with an array type variable input. This is what I hope to do. I have the following signal, import numpy as np time = np.linspace(0, 1, 501) data = np.cos(2 * np.pi * 4 * time) + np.cos(2 * …

Total answers: 1

How do I code dose-response (4PL) curve fitting with optimize.minimize()

How do I code dose-response (4PL) curve fitting with optimize.minimize() Question: I want to optimize a dose-response curve (4 parameter logistic) using a data set. I need to use the Powell algorithm, therefore, I have to use optimize.minimize() instead of curve_fit or least square. I wrote the following code: import numpy as np from scipy.optimize …

Total answers: 2