Price optimization with demand forecast
First, You may model the sale or demand as a function of price. You can use a regression model to control for controls. This regression will provide you with price elasticity of demand which show how your demand is sensitive to a change in price.
Then, you may use the above relationship to plug in for sale in the optimization step. This way you only solve for the optimum price.