Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,899 members, 7,802,912 topics. Date: Saturday, 20 April 2024 at 03:06 AM

[source Code] A Program That Solves A Transportation Problem - By Frank UMEADI - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / [source Code] A Program That Solves A Transportation Problem - By Frank UMEADI (4425 Views)

Beta Testers Needed For New App That Solves ATM Lines / Online Banking Source Code In PHP, MSQL / A Program To Multiply 3 Numbers, 1 Each From 3 Groups With Repetition. (2) (3) (4)

(1) (Reply) (Go Down)

[source Code] A Program That Solves A Transportation Problem - By Frank UMEADI by FraNKAPP(m): 11:14am On Mar 24, 2016
Transportation problem is one of the sub-classes of Linear Programming Problems. The structure of transportation problem involves a large number of shipping routes from several supply origins to several demand destinations. The objective is to determine the number of units which should be shipped from an origin to a destination in order to satisfy the required quantity of goods or services at each demand destination, within the limited quantity of goods or services available at each supply origin, at the minimum transportation cost.

There are several methods available to obtain an initial basic feasible solution but here, we will be using the Least Cost Method as well as C# programming language to write the program.
The Least Cost Method

This method finds a better starting solution by concentrating on the cheapest routes. The method starts by assigning as much as possible to the cell with the smallest unit cost. Next, the satisfied row or column is crossed out and the amounts of supply and demand are adjusted accordingly. If both a row and a column are satisfied simultaneously, only one is crossed out. Next, look for the uncrossed-out cell with the smallest unit cost and repeat the process until exactly one row or column is left uncrossed out, then all the remaining variables are basic and are assigned the only feasible allocation.
Solving Transportation Problem Using Least Cost Method and C# Programming Language

There’s been a lot of hype concerning this topic. Even when you search on Google about a source code of any programming language that can perform this task in question, you will never get any valuable answer apart from an online calculator that solves it but without the source code been made available.

Here in this guide, am giving you a C# source code to a program that can solve a transportation problem using the Least Cost Method (LCM).

The program can solve a transportation problem of 2×2, 2×3, 3×3, 3×4 etc. It also has an Iteration table where it explains how the iteration and solving was done. Most importantly, the program is very accurate and effective.
How it Works (Output)

Whenever you start the program, the first window that shows up is the splash screen. That is the window that shows up while the program loads all the necessary libraries required for it work and it also explain a bit what the program is all about including the name of the program and the company that wrote it.

See Splash screen image below...



After the splash screen, the next window that shows up is the one that asks for the number of rows and columns that you want the program to solve.

See image below...

After entering the values, you will need to click on Start button to create the entering variables and table.

The next window is the form that allows you to enter the values of all the sources, destinations, demands and supplies.

See image below...

After entering the values, you will need to click on Calculate button to begin the solving process.

The next window is the form that displays the result which includes the iteration table and the Total Minimum Cost (Z)

See image below...

You can see everything is made so simple, easy and clear. That is the power of variables and codes.

As aforementioned, this program solves many dimensions of transportation problems.




Source Code

Here is a little source code of this program. The FULL source code will be made available for free to the general public by December 25th, 2017. There is a reason for that. But if you urgently need the source code you can drop a comment below indicating that you need it or send an email to frank.umeadi@frankappweb.com or you can also call/WhatsApp +2348066017971. It attracts a little amount of money, but I assure you, you will get a good value for your money.



private void buttonCalculate_Click(object sender, EventArgs e)

{

if (richTextBoxR11.Text == "" || richTextBoxR12.Text == "" || richTextBoxR13.Text == "" || richTextBoxR21.Text == "" || richTextBoxR22.Text == "" || richTextBoxR23.Text == "" || richTextBoxR31.Text == "" || richTextBoxR32.Text == "" || richTextBoxR33.Text == "" || richTextBoxS1.Text == "" || richTextBoxS2.Text == "" || richTextBoxD1.Text == "" || richTextBoxD2.Text == "" || richTextBoxD3.Text == ""wink

{
MessageBox.Show("Please fill all required fields!", "Incomplete data Input!", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
GetMin();
Iteration1();
timer1.Enabled = true;
}



I hope this guide helps you to keep up with your school assignment or project. If you have any contribution to this program, you can also drop your views here using the comment box. Thanks so much for stopping by.

https://frankappweb.com/source-code-transportation-problem-least-cost-method/

Re: [source Code] A Program That Solves A Transportation Problem - By Frank UMEADI by larisoft: 3:31pm On Mar 24, 2016
I admire the algorithm...

But no thanks about the restricted source code...and asking for a little fee to have said code.

Anyone who knows the value of this algorithm knows how to get it.

1 Like

Re: [source Code] A Program That Solves A Transportation Problem - By Frank UMEADI by FraNKAPP(m): 12:01am On Mar 25, 2016
larisoft:
I admire the algorithm...

But no thanks about the restricted source code...and asking for a little fee to have said code.

Anyone who knows the value of this algorithm knows how to get it.

Thanks for admiring the algorithm bro.


About the restricted source code, I wish to make it available by 25th of April. For now, a lot of Unizik students want it and you won't expect me to give it all out for free after spending some hours of thinking to write it
Re: [source Code] A Program That Solves A Transportation Problem - By Frank UMEADI by yussuf739: 1:00pm On Mar 25, 2016
You did well. Just get in to programming and i started with qbasic.
Re: [source Code] A Program That Solves A Transportation Problem - By Frank UMEADI by FraNKAPP(m): 6:38pm On Mar 26, 2016
yussuf739:
You did well. Just get in to programming and i started with qbasic.

You are welcome. I wish you a good ride in the programming world

(1) (Reply)

Academind Course Collection By Maximilian Schwarzmuller / Open Source Banking Application? / Post Your C#.net Questions Here

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 18
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.