ML, Optimisation, Convex Optimization, Price Optimization.
function can be found here: result = optimize.minimize(fun=objective, x0=initial, method=’SLSQP’, constraints=cons, options={‘maxiter’:100, ‘disp’: True}) fun:The objective function to be minimised. In our case we want to maximise the profit. Hence that would mean minimisation of ‘-profit’, where