Optimization with linear constraints in python

社会主义新天地 提交于 2019-12-11 05:39:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!