Supply chain management (SCM) is considered at the forefront of many organizations in the delivery of their products. Various optimization methods are applied in the SCM to improve the efficiency of the process. In this research, the projected stochastic gradient (PSG) method was proposed to increase the efficiency of the SCM analysis. The key objective of an efficient supply chain is to find the best flow patterns for the best products in order to select the suppliers to different customers. Hence, the focus of this research is on developing an efficient multi-echelon supply chain using factors such as cost, time, and risk. In the convex case, the proposed method has the advantage of a weakly convergent sequence of iterates to a point in the set of minimizers with probability one. The developed method achieves strong sequence convergence to the unique optimum, with probability one. The SCM dataset was utilized to assess the proposed method’s performance. The proposed PSG method has the advantage of considering the holding cost in the profit analysis of the company. The results of the developed PSG method are analyzed according to the product’s profit, stock, and demand. The proposed PSG method also provides the prediction of demand to increase profit.