Open Access
Shipra Aggarwal,
- Director of Finance, Pelham Community Pharmacy, Waltham, Massachusetts, USA
Abstract
Profit maximization under resource constraints is a classic challenge. Small manufacturers face tight margins and scarce capital every day. This paper tackles that problem using four Python-based methods. The case study is Bintang Bakery in Bandar Lampung, Indonesia. The bakery makes three bread types and faces 18 resource constraints. Data comes from Anggoro et al. Methods tested include LP revised simplex, Differential Evolution, PSO, and ANN Surrogate. General-purpose scipy minimizers fail when all 18 constraints are active. The linprog function with revised simplex converges in just two iterations. All three ML methods independently reach the same optimal solution. The optimal plan is 3,740 flavored, 1,300 mattress, and 520 bargain packs. Monthly profit reaches Rp. 19,750,000, which is Rp. 250,000 above current output. Beyond algorithm comparison, three financial planning bridges are developed. First, shadow price analysis quantifies each resource constraint’s marginal value. The labor constraint carries a dual value of Rp. 138,461 per labor-hour. This figure is the break-even ceiling for any overtime investment decision. Second, working capital analysis tracks the incremental inputs required. Moving to the optimal mix needs only 1.806 extra labor-hours. The monthly free cash flow gain is Rp. 250,000, or Rp. 3,000,000 annually. Third, sensitivity analysis identifies three actionable financial thresholds. Flour supply must fall more than 8.82% before it constrains the plan. The flavored bread price must drop below Rp. 1,867 before the mix shifts. Each extra labor-hour adds exactly Rp. 138,461 to monthly profit. DE and PSO serve as dynamic recalculation tools when these inputs change. All calculations are verified, with full Python code and nine figures.
Keywords: Linear programming for profit optimization in small-scale manufacturing: A python-based simplex and ML approach
[This article belongs to Research & Reviews : Journal of Statistics ]
Shipra Aggarwal. Linear Programming for Profit Optimization in Small-Scale Manufacturing: A Python-Based Simplex and Machine Learning Approach. Research & Reviews : Journal of Statistics. 2026; 15(02):01-12.
Shipra Aggarwal. Linear Programming for Profit Optimization in Small-Scale Manufacturing: A Python-Based Simplex and Machine Learning Approach. Research & Reviews : Journal of Statistics. 2026; 15(02):01-12. Available from: https://journals.stmjournals.com/rrjost/article=2026/view=250345
References
- Anggoro BS, et al. Profit optimization using simplex methods on home industry Bintang Bakery. J Phys Conf Ser. 2019;1155:012010.
- Dantzig GB. Linear Programming and Extensions. Princeton (NJ): Princeton University Press; 1963.
- McKinney W. Python for Data Analysis. Sebastopol (CA): O’Reilly Media; 2012.
- Nocedal J, Wright SJ. Numerical Optimization. 2nd ed. New York (NY): Springer; 2006.
- Aggarwal M. Sustainable aviation fuel: Powering the future of clean air travel. Hydrocarb Process. 2025;104(10):pages as published.
- Kantorovich LV. Mathematical Methods in the Organization and Planning of Production. Leningrad: Leningrad State University; 1939.
- Bertsimas D, Tsitsiklis JN. Introduction to Linear Optimization. Belmont (MA): Athena Scientific; 1997.
- Karmarkar N. A new polynomial-time algorithm for linear programming. Combinatorica. 1984;4(4):373–395.
- Hillier FS, Lieberman GJ. Introduction to Operations Research. 11th ed. New York (NY): McGraw-Hill; 2021.
- Taha HA. Operations Research: An Introduction. 10th ed. Harlow: Pearson; 2017.
- Winston WL. Operations Research: Applications and Algorithms. 4th ed. Belmont (CA): Thomson Brooks/Cole; 2004.
- Luenberger DG, Ye Y. Linear and Nonlinear Programming. 4th ed. Cham: Springer; 2016.
- Akpan NP, Iwok IA. Application of linear programming for optimal use of raw materials in bakery. Int J Math Stat Invent. 2016;4(8):51–57.
- Storn R, Price K. Differential evolution—A simple and efficient heuristic for global optimization over continuous spaces. J Glob Optim. 1997;11(4):341–359.
- Kennedy J, Eberhart R. Particle swarm optimization. In: Proceedings of the IEEE International Conference on Neural Networks (ICNN); 1995. p. 1942–1948.
- Virtanen P, Gommers R, Oliphant TE, et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat Methods. 2020;17(3):261–272.
- Hart WE, Watson JP, Woodruff DL. Pyomo: Modeling and solving mathematical programs in Python. Math Program Comput. 2011;3(3):219–260.
- Bynum ML, Hackebeil GA, Hart WE, Laird CD, Nicholson BL, Siirola JD, et al. Pyomo—Optimization Modeling in Python. 3rd ed. Cham: Springer; 2021.
- Aggarwal M. Laws and regulations governing the chemical process industries in the U.S. Chem Eng Prog. 2025;121(5):pages as published.

Research & Reviews : Journal of Statistics
| Volume | 15 | |
| Issue | 02 | |
| Received | 17/06/2026 | |
| Accepted | 23/06/2026 | |
| Published | 10/07/2026 | |
| Publication Time | 23 Days |