Sensitivity Analysis and Programmatic Verification of Transportation Problems: A Comparison Between Manual Method and Software Solutions Using R and python: An Applied Study on Abnaa Al-Mashat Cement Brick Factory

Authors

  • Dr. Halima Ibrahim Elfaqhihe Department of Statistics, Faculty of Science, University of Zawia, Zawia City, State of Libya Author
  • Danya Al-Taher Department of Statistics, Faculty of Science, University of Zawia, Zawia City, State of Libya Author

DOI:

https://doi.org/10.65421/jibas.v2i3.139

Keywords:

Operations Research, Linear Programming, Transportation Problems, Simplex Algorithm, Sensitivity Analysis, R Language, Python Language, Shadow Prices

Abstract

The transportation problem is one of the most important applications of linear programming in operations research, aiming to determine the optimal distribution plan that achieves the minimum possible cost while adhering to supply and demand constraints, making it an effective tool for supporting logistical decisions in industrial enterprises. This study aims to validate the manual solutions of the transportation problem and compare them with programmatic solutions using R and Python, in addition to conducting sensitivity analysis to assess the stability of the optimal solution and extract shadow prices and reduced costs, thereby supporting decision-making under potential changes in model data.

The study relied on a transportation model applied at the Abnaa Al-Mashat factory for cement brick manufacturing, utilizing supply, demand, and transportation cost data derived from a previous study (Alfaqihe-Alshrefe, 2025). The model was solved manually using the Northwest Corner, Least Cost, and Vogel's Approximation methods, in addition to the Two-Phase Simplex algorithm, and then verified programmatically using the lpSolve library in R and the PuLP library in Python.

The results showed a complete match between the manual and programmatic solutions, with the minimum total transportation cost reaching 155,650 monetary units. Sensitivity analysis also evaluated shadow prices and reduced costs and tested the stability of the optimal solution, showing that the optimal solution possesses a good degree of stability, and the shadow prices provided quantitative indicators to assess the impact of changes in resources and demand on the total cost.

Downloads

Published

2026-07-16

Issue

Section

Articles

How to Cite

Sensitivity Analysis and Programmatic Verification of Transportation Problems: A Comparison Between Manual Method and Software Solutions Using R and python: An Applied Study on Abnaa Al-Mashat Cement Brick Factory. (2026). Journal of Insights in Basic and Applied Sciences, 2(3), 136-147. https://doi.org/10.65421/jibas.v2i3.139