Simultaneous optimization of two different functions to provide a universal solution for both
问题 I asked a similar question in January that @Miłosz Wieczór was kind enough to answer. Now, I am faced with a similar but different challenge since I need to fit two parameters ( fc and alpha ) simultaneously on two datasets ( e_exp and iq_exp ). I basically need to find the values of fc and alpha that are the best fits to both data e_exp and iq_exp . import numpy as np import math from scipy.optimize import curve_fit, least_squares, minimize f_exp = np.array([1, 1.6, 2.7, 4.4, 7.3, 12, 20, 32