This Java program provides a solution to transportation problems using three different methods: the North-West Corner Method, Vogel's Approximation Method, and Russell's Approximation Method.
- Java Development Kit (JDK) installed
-
Compile the code:
javac Main.java TransportationProblem.java
-
Run the program:
java Main
-
Follow the on-screen prompts to input the number of suppliers, demand coefficients, supply coefficients, and the cost matrix.
-
The program will display the transportation table, and provide solutions using the North-West Corner Method, Vogel's Approximation Method, and Russell's Approximation Method.
- The main class responsible for user input and interaction.
- Collects information about the transportation problem from the user, creates a
TransportationProbleminstance, and displays the results of various solution methods.
- Represents a transportation problem with methods to solve it using different approaches.
- Three solution methods are implemented:
- North-West Corner Method
- Vogel's Approximation Method
- Russell's Approximation Method
- The class also contains methods for checking if the problem is balanced, calculating penalties, and printing the transportation table.
- Implements the North-West Corner Method for solving transportation problems.
- Implements Vogel's Approximation Method for solving transportation problems.
- Implements Russell's Approximation Method for solving transportation problems.
- Calculates the cost of a given solution.
- Prints the transportation table.
- Aliya Bogapova
- Mikita Drazdou
- Egor Meganov
- Egor Solodovnikov
This project is licensed under the MIT License - see the LICENSE file for details.