I have the following optimization problem:
from scipy import optimize import numpy as np def net_profit(x): return -(x[0] / (x[1] + x[2] + x[3]) * 365 *