Techniques of optimisation for inventory management under mark-up pricing, advertising and various costs