Supposed I have two functions as below:
from scipy.optimize import minimize from scipy.optimize import LinearConstraint from scipy.optimize import NonlinearCo