I have a financial constraint which states that:
spend on x cannot exceed 15% of total spend, where spend on x is part of the sum of total spend, ie:
`total spend` = `spend on x` + `spend on y` + ...
but
`spend on x` <= 15% * `total spend`
Given the total spend and spend on x, how could I calculate capped spend on x?
If we start by calculating
spend_on_other:therefore
Now we want to solve for
capped_spend_on_xby assuming thatspend_on_xis the maximum value (ie 15%), it follows thatspend_on_otherwill be 85%. Since there is no cap onspend_on_otherit follows thatGiven capped_total_spend is t,
therefore
therefore
Having then the total capped_total_spend, we need only substitute
therefore
therefore