Besides the lower and upper bounds for the variables, I also have a constraint, that the sum of the variables must be limited to a certain value.
In scipy I would define it as follows:
x0=[2.5,2.5]
cons = {'type':'eq', 'fun':lambda x0: 5 - sum(x0)}
How can this be realized with the package?