ML, Optimisation, Convex Optimization, Price Optimization.
profit is calculate as: profit = (price — cost)*volume def cal_profit(price): volume = mod_vol.predict([1, price]) cost = mod_cost.predict([1, volume]) profit = (price — cost)*volume return profit ###### The main objective function for the minimisation. def objective(price): return