The perishable nature of vegetable commodities poses challenges for superstores, as reselling them is often unfeasible due to their short freshness period. Reliable market demand analysis is crucial for boosting revenue. This study simplifies the pricing and replenishment decision-making process by making reasonable assumptions about the selling time, wastage rate, and replenishment time for vegetable commodities. A single-objective planning model with the objective of profit maximization was constructed by fitting historical data using the nonparametric method of support vector regression (SVR). The study reveals a specific relationship between sales volume and cost-plus pricing for each category and predicts future cost changes using an LSTM model. Combining these findings, we substitute the relationship between sales volume and pricing as well as the LSTM prediction data into the model, and solve it using genetic algorithms in machine learning to derive the optimal replenishment volume and pricing strategy. Practical results show that the method can provide reasonable pricing and replenishment strategies for vegetable superstores, and after careful accounting, we arrive at an expected profit of RMB 22,703.14. The actual profit of the supermarket was RMB 19,732.89. The method, therefore, increases the profit of the vegetable superstore by 13.08%. By optimizing inventory management and pricing decisions, the superstore can better meet the challenges of vegetable commodities and achieve sustainable development.