minimizing a multivariate, differentiable function using scipy.optimize
问题 I'm trying to minimize the following function with scipy.optimize : whose gradient is this: (for those who are interested, this is the likelihood function of a Bradley-Terry-Luce model for pairwise comparisons. Very closely linked to logistic regression.) It is fairly clear that adding a constant to all the parameters does not change the value of the function. Hence, I let \theta_1 = 0. Here are the implementation the objective functions and the gradient in python (theta becomes x here): def