TPO works from history: what each mechanic, depth and timing did for each product and account, measured against a baseline and net of cannibalization. From that it estimates what a proposed promotion would do, and compares alternatives.
Done honestly, it does not produce “the optimal promotion”. It produces estimates with their confidence shown, refuses options that break a price floor, a margin, a budget or the calendar, and recommends the best of what remains within the limits the business sets — with a person deciding.