Data Science, Machine Learning, Causal Inference, AI, Linear Programming.
range(num_treatments) for i in range(num_custs)]) >= min_cost) # Objective objective_terms = [] for i in range(num_custs): for j in range(num_treatments): objective_terms.append((order_value[i][j] * x[i, j] - costs[i][j] * x[i, j] )) solver.Maximize(solver.Sum(objective_terms)) # Solve status =