Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

CacucoH/Optimization_Assignment_3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ WARNING! This repo is archived, since updates are no longer needed.

Important

This code might be usefult for those who are searching for code vesion of North-West, Vogel’s and Russell’s approximation methods

Assignment 3

Write a computer program in any programming language (e.g. Python, C++) to find initial basic feasible solution for given transportation problem by using (a) North-West corner method, (b) Vogel’s approximation method, (c) Russell’s approximation method.

Solution

The final version of a program combined_version.py solves a problem using 3 methods requested by the task and prints all necessary information.

In case of problem invalidity returns:

  • ”The method is not applicable!” - If, for example, costs matrix contains value <= 0
  • ”The problem is not balanced!” - If problem is unbalanced

Example of inputs

Program asks for Supply, Demand and Costs. Example of inserting this problem:

example table

Enter the supply values (space-separated): 7 9 18
Enter the demand values (space-separated): 5 8 7 14
Enter the cost matrix (3 rows, 4 columns):
Enter the costs for supply point 1: 19 30 50 10
Enter the costs for supply point 2: 70 30 40 60
Enter the costs for supply point 3: 40 8 70 20

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages