问题
I need to optimize an objective function F(x1,x2,..xn) subjected to constraints of the type xi=xj. Is there any in-built function in scipy/scikit-learn to implement this? Using SLSQP in scipy.optimize.minimize gives an error saying 'singular matrix C in lsq subproblem'
来源:https://stackoverflow.com/questions/37677673/optimization-with-linear-constraints-in-python