Data Science, Causal Inference, Machine Learning, Optimization, Notes From Industry.
budget in zip(products, x, strict=False): L, k = parameters[product] sum_orders += michaelis_menten(budget, L, k) return -1 * sum_orders Finally we can run our optimisation to determine the optimal budget to allocate to each product: # Set initial guess by equally sharing out the total budget