Open Wajiharfaoui opened 10 months ago
Ah I think I understand the question. Essentially allocating a penalty of CO2 emissions by channel. Then when optimizing, the model ensures you don't exceed a carbon emissions constraint?
@Wajiharfaoui There's two ways to do this:
I looked a bit at the code and it doesn't seem like it allows for this flexiblity. You would have to change the objective function https://github.com/pymc-labs/pymc-marketing/blob/main/pymc_marketing/mmm/budget_optimizer.py#L74. Perhaps you can monkey-patch your own. Ultimately it would be better if this was an argument to the budget optimizer.
CC @carlosagostini
Hello, is there a way to include constraints, other than budget bounds in the budget optimization ? like for example including the carbon emission ... Thank you