SlideShare una empresa de Scribd logo
1 de 15
Solving a Transportation Planning Problem
Through the Programming Language “C”

Presented by
Yousuf Mahid(0615012)
Shahadat Hossain Shakil(0615020)
Khadija Akhter(0615027)
Calculation of Inter-Zonal Trips (Gravity Model)
 Problem:Calculation of inter-zonal trips in a town.(Gravity Model)
 Example: A self-contained town consists of four residential areas A, B, C

and D and two industrial areas X and Y. Generation equations show that
for the design year the trips from home to work generated by each
residential area per day are A=1000, B=2250, C=1750 and D=3200. There
are 3700 jobs in X and 4500 jobs in Y. The frictional factor is inversely
proportional to the travel time between zones as tabulated below and the
value of exponent is 2.
Travel time between the zones in minutes
Zones

Y

A

15

20

B

15

10

C

10

10

D
Page  2

X

15

20
Calculation of Inter-Zonal Trips (Gravity Model)
Destination

Y

A

TAX

TAY

B

Origin

X

TBX

TBY

TCX

TCY

TDX

TDY

3700

4500

C
D
Total

Total
1000
2250
1750
3200
8200

We have to determine the correct value of the T AX, TAY, TBX, …………. TDY, until
justifying both the column and the row total by continuous calculation through
iteration.
Page  3
Calculation of Inter-Zonal Trips (Gravity Model)
 Solution:The most typical version of gravity model used in the
transportation planning application is
Tij= (Oi × Djfij) ∕ ( ∑ Djfij)
Where
 Tij = no. of trips from zone i to zone j.
 Oi = total no. of trips produced in zone i.
 Dj = total no. of trips attracted to zone j.
 b = an exponential constant whose value is usually found between 1 and 2.
 The frictional factor is an inverse function of the travel cost (time, distance,
monetary cost).
 fij = 1 / Cijb

Page  4
Calculation of Inter-Zonal Trips (Gravity Model)
 TAX = 1000 × (3700/152) / (3700/152 + 4500/202) = 592
 TAY = 1000 × (4500/202) / (3700/152 + 4500/202) = 407
………………………………………………………………
 TDX = 3200 × (3700/152) / (3700/152 + 4500/202) = 1896
 TDY = 3200 × (4500/152) / (3700/152 + 4500/202) = 1303
X
Y
Total
Destination

Origin
A

592

407

1000

B

590

1659

2250

C

789

960

1750

D

1896

1303

3200

Calculated Attraction

3867

4329

8196

Projected Attraction

3700

4500

8200

Page  5
Calculation of Inter-Zonal Trips (Gravity Model)
The adjusted attraction = Projected attraction × (The attraction used in the previous
iteration ∕ Calculated attraction in the previous iteration)
D1X = 3700 × (3700 ∕ 3867) = 3540
D1Y = 4500 × (4500 ∕ 4329) = 4677
 TAX = 1000 × (3540/152) / (3540/152 + 4677/202) = 576
………………………………………………………….
 TDY = 3200 × (4677/152) / (3540/152 + 4677/202) = 1353
Destination
X
Y

Total

Origin
A

423

1000

B

553

1696

2250

C

756

993

1750

D

1846

1353

3200

Calculated Attraction

3731

4465

8196

Projected Attraction
Page  6

576

3700

4500

8200
Calculation of Inter-Zonal Trips (Gravity Model)
Again the adjusted attractions after second iteration is
D2X = 3700 × (3540 ∕ 3731) = 3510
D2Y = 4500 × (4677 ∕ 4465) = 4713
 Using this adjusted attraction value, 3rd iteration will be operated.
 This process continues until the calculated attraction value and the
projected attraction value is being equalized or nearest most.
 Using the “C” programming language we have to develop a program to do
this cumbersome mathematical calculation mechanically to save time and
energy and to get the accurate result in the shortest possible time.

Page  7
Making Procedure of the Program in “C”
 Divide the whole task among different functions.
 Function declaration.
 Declaring functions prototype before main function.

 Then subdivide the claculation of a specific function into more smaller p
 Variable Declaration-(Local and Global).
 Global Array Declaration- (1D and 2D)-to store and manipulate same
kind of data.
 Function calling - inside the main function and also inside the called
function.

Page  8
Making Procedure of the Program in “C”
 Library function used – main(); clrscr(); printf();scanf(); fflush(stdin);
getch(); (including related header files)
 Type of variables used – int; long int; float;
(including ralated format specifier)
 Operator used – arithmatic (addition, multiplication, division)
– assignment(=), relational(==),increment(++)
 Control Statement Used – if statement;
– for loop;
A progarm largely dependent on the use of array and continuous
iteration.
Limitations – deigned for 10 residential zone and 2 working zone.
Failure of converting the fraction trip value into the next higher
integer number.
Page  9
Thanks for your patience.

Q/A

Page  10
Page  11
Page  12
Page  13
Page  14
Page  15

Más contenido relacionado

La actualidad más candente

Centre of gravity method of location planning
Centre of gravity method of location planningCentre of gravity method of location planning
Centre of gravity method of location planning
Gaganjot Kaur
 
SAMSTAR: A Semi-automated Lexical Method to generate Star Schemas from an ERD
SAMSTAR: A Semi-automated Lexical Method to generate Star Schemas from an ERDSAMSTAR: A Semi-automated Lexical Method to generate Star Schemas from an ERD
SAMSTAR: A Semi-automated Lexical Method to generate Star Schemas from an ERD
The Children's Hospital of Philadelphia
 
Windows Phone
Windows PhoneWindows Phone
Windows Phone
sunflat
 
Computer Graphics Practical
Computer Graphics PracticalComputer Graphics Practical
Computer Graphics Practical
Neha Sharma
 

La actualidad más candente (20)

Amortized complexity
Amortized complexityAmortized complexity
Amortized complexity
 
Centre of gravity method of location planning
Centre of gravity method of location planningCentre of gravity method of location planning
Centre of gravity method of location planning
 
Amortized complexity
Amortized complexityAmortized complexity
Amortized complexity
 
Shortest Path Search with pgRouting
Shortest Path Search with pgRoutingShortest Path Search with pgRouting
Shortest Path Search with pgRouting
 
ELECTRICAL POWER SYSTEMS ECONOMICS
ELECTRICAL POWER SYSTEMS ECONOMICSELECTRICAL POWER SYSTEMS ECONOMICS
ELECTRICAL POWER SYSTEMS ECONOMICS
 
Constrained Optimization
Constrained OptimizationConstrained Optimization
Constrained Optimization
 
Creating a rainbow using graphics programming in c
Creating a rainbow using graphics programming in cCreating a rainbow using graphics programming in c
Creating a rainbow using graphics programming in c
 
Eme paper
Eme paperEme paper
Eme paper
 
SAMSTAR: A Semi-automated Lexical Method to generate Star Schemas from an ERD
SAMSTAR: A Semi-automated Lexical Method to generate Star Schemas from an ERDSAMSTAR: A Semi-automated Lexical Method to generate Star Schemas from an ERD
SAMSTAR: A Semi-automated Lexical Method to generate Star Schemas from an ERD
 
Window to viewprt
Window to viewprtWindow to viewprt
Window to viewprt
 
Shortest Path search in your Database and more with pgRouting - FOSS4G Europe...
Shortest Path search in your Database and more with pgRouting - FOSS4G Europe...Shortest Path search in your Database and more with pgRouting - FOSS4G Europe...
Shortest Path search in your Database and more with pgRouting - FOSS4G Europe...
 
Shortest Path search for real road networks with pgRouting
Shortest Path search for real road networks with pgRoutingShortest Path search for real road networks with pgRouting
Shortest Path search for real road networks with pgRouting
 
Test
TestTest
Test
 
pgRouting 2.0 presentation 2013
pgRouting 2.0 presentation 2013pgRouting 2.0 presentation 2013
pgRouting 2.0 presentation 2013
 
Windows Phone
Windows PhoneWindows Phone
Windows Phone
 
And or search
And or searchAnd or search
And or search
 
Computer Graphics Practical
Computer Graphics PracticalComputer Graphics Practical
Computer Graphics Practical
 
Introduction to graphics programming in c
Introduction to graphics programming in cIntroduction to graphics programming in c
Introduction to graphics programming in c
 
test
testtest
test
 
Learning curve
Learning curveLearning curve
Learning curve
 

Destacado

Image of Chawk Bazar an Analysis from Physical and Socio-Economic Perspective
Image of Chawk Bazar an Analysis from Physical and Socio-Economic PerspectiveImage of Chawk Bazar an Analysis from Physical and Socio-Economic Perspective
Image of Chawk Bazar an Analysis from Physical and Socio-Economic Perspective
Shahadat Hossain Shakil
 
Significance of Local Knowledge in Environmental Governance
Significance of Local Knowledge in Environmental GovernanceSignificance of Local Knowledge in Environmental Governance
Significance of Local Knowledge in Environmental Governance
Shahadat Hossain Shakil
 
Early sprouts slide share test
Early sprouts slide share testEarly sprouts slide share test
Early sprouts slide share test
raganmd
 
Corporate Social Responsibility (CSR) – Environmental Protection or Creating ...
Corporate Social Responsibility (CSR) – Environmental Protection or Creating ...Corporate Social Responsibility (CSR) – Environmental Protection or Creating ...
Corporate Social Responsibility (CSR) – Environmental Protection or Creating ...
Shahadat Hossain Shakil
 
Introduction to Object Oriented Design
Introduction to Object Oriented DesignIntroduction to Object Oriented Design
Introduction to Object Oriented Design
Oleg Yaroshevych
 
3.o o design -_____________lecture 3
3.o o design -_____________lecture 33.o o design -_____________lecture 3
3.o o design -_____________lecture 3
Warui Maina
 

Destacado (20)

Sigma Knowledge Engineering Environment
Sigma Knowledge Engineering EnvironmentSigma Knowledge Engineering Environment
Sigma Knowledge Engineering Environment
 
Image of Chawk Bazar an Analysis from Physical and Socio-Economic Perspective
Image of Chawk Bazar an Analysis from Physical and Socio-Economic PerspectiveImage of Chawk Bazar an Analysis from Physical and Socio-Economic Perspective
Image of Chawk Bazar an Analysis from Physical and Socio-Economic Perspective
 
Significance of Local Knowledge in Environmental Governance
Significance of Local Knowledge in Environmental GovernanceSignificance of Local Knowledge in Environmental Governance
Significance of Local Knowledge in Environmental Governance
 
Early sprouts slide share test
Early sprouts slide share testEarly sprouts slide share test
Early sprouts slide share test
 
Corporate Social Responsibility (CSR) – Environmental Protection or Creating ...
Corporate Social Responsibility (CSR) – Environmental Protection or Creating ...Corporate Social Responsibility (CSR) – Environmental Protection or Creating ...
Corporate Social Responsibility (CSR) – Environmental Protection or Creating ...
 
Types of Bridges
Types of Bridges Types of Bridges
Types of Bridges
 
Promotion of Agricultural Product (Jute, Sweetmeat) in Districts (Shariatpur,...
Promotion of Agricultural Product (Jute, Sweetmeat) in Districts (Shariatpur,...Promotion of Agricultural Product (Jute, Sweetmeat) in Districts (Shariatpur,...
Promotion of Agricultural Product (Jute, Sweetmeat) in Districts (Shariatpur,...
 
Shift Share Analysis Based on Main Activity Sector of Selected Districts of B...
Shift Share Analysis Based on Main Activity Sector of Selected Districts of B...Shift Share Analysis Based on Main Activity Sector of Selected Districts of B...
Shift Share Analysis Based on Main Activity Sector of Selected Districts of B...
 
Electric Motor Thermal Optimization for Hybrid Vehicle Application
Electric Motor Thermal Optimization for Hybrid Vehicle ApplicationElectric Motor Thermal Optimization for Hybrid Vehicle Application
Electric Motor Thermal Optimization for Hybrid Vehicle Application
 
Parking Demand & Supply Analysis of Different Commercial Land Uses Along Mirp...
Parking Demand & Supply Analysis of Different Commercial Land Uses Along Mirp...Parking Demand & Supply Analysis of Different Commercial Land Uses Along Mirp...
Parking Demand & Supply Analysis of Different Commercial Land Uses Along Mirp...
 
Shift Share Analysis
Shift Share AnalysisShift Share Analysis
Shift Share Analysis
 
EIA Guidelines for Industries_Bangladesh_DoE, MoEF, GoB_June 1997_Part 1
EIA Guidelines for Industries_Bangladesh_DoE, MoEF, GoB_June 1997_Part 1EIA Guidelines for Industries_Bangladesh_DoE, MoEF, GoB_June 1997_Part 1
EIA Guidelines for Industries_Bangladesh_DoE, MoEF, GoB_June 1997_Part 1
 
Key Debates in Environmental Governance
Key Debates in Environmental GovernanceKey Debates in Environmental Governance
Key Debates in Environmental Governance
 
Introduction to Object Oriented Design
Introduction to Object Oriented DesignIntroduction to Object Oriented Design
Introduction to Object Oriented Design
 
Slide 3 musfique
Slide 3 musfiqueSlide 3 musfique
Slide 3 musfique
 
Object Oriented Design And Programing
Object Oriented Design And ProgramingObject Oriented Design And Programing
Object Oriented Design And Programing
 
Sym Opti Motor Energy By Tahir Saleem
Sym Opti Motor Energy By Tahir SaleemSym Opti Motor Energy By Tahir Saleem
Sym Opti Motor Energy By Tahir Saleem
 
Thinking and language
Thinking and languageThinking and language
Thinking and language
 
3.o o design -_____________lecture 3
3.o o design -_____________lecture 33.o o design -_____________lecture 3
3.o o design -_____________lecture 3
 
Mypresentation
MypresentationMypresentation
Mypresentation
 

Similar a Solving a “Transportation Planning” Problem through the Programming Language “C”

M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxM166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
infantsuk
 
APassengerKnockOnDelayModelForTimetableOptimisation_beamer
APassengerKnockOnDelayModelForTimetableOptimisation_beamerAPassengerKnockOnDelayModelForTimetableOptimisation_beamer
APassengerKnockOnDelayModelForTimetableOptimisation_beamer
Peter Sels
 
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Mario Fusco
 
High-Performance Haskell
High-Performance HaskellHigh-Performance Haskell
High-Performance Haskell
Johan Tibell
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
RajJain516913
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
amitsarda3
 

Similar a Solving a “Transportation Planning” Problem through the Programming Language “C” (20)

M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxM166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
 
Functions Practice Sheet.docx
Functions Practice Sheet.docxFunctions Practice Sheet.docx
Functions Practice Sheet.docx
 
Cab travel time prediction using ensemble models
Cab travel time prediction using ensemble modelsCab travel time prediction using ensemble models
Cab travel time prediction using ensemble models
 
CS 354 Transformation, Clipping, and Culling
CS 354 Transformation, Clipping, and CullingCS 354 Transformation, Clipping, and Culling
CS 354 Transformation, Clipping, and Culling
 
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)
Leveraging R in Big Data of Mobile Ads (R在行動廣告大數據的應用)
 
Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...
Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...
Logistic Modeling with Applications to Marketing and Credit Risk in the Autom...
 
EE201_Assignment2
EE201_Assignment2EE201_Assignment2
EE201_Assignment2
 
Importance of Calculus in mathematics.pptx
Importance of Calculus in mathematics.pptxImportance of Calculus in mathematics.pptx
Importance of Calculus in mathematics.pptx
 
3.pdf
3.pdf3.pdf
3.pdf
 
Supply chain logistics : vehicle routing and scheduling
Supply chain logistics : vehicle  routing and  schedulingSupply chain logistics : vehicle  routing and  scheduling
Supply chain logistics : vehicle routing and scheduling
 
APassengerKnockOnDelayModelForTimetableOptimisation_beamer
APassengerKnockOnDelayModelForTimetableOptimisation_beamerAPassengerKnockOnDelayModelForTimetableOptimisation_beamer
APassengerKnockOnDelayModelForTimetableOptimisation_beamer
 
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...
 
High-Performance Haskell
High-Performance HaskellHigh-Performance Haskell
High-Performance Haskell
 
Computation Assignment Help
Computation Assignment Help Computation Assignment Help
Computation Assignment Help
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
 
VHDL and Cordic Algorithim
VHDL and Cordic AlgorithimVHDL and Cordic Algorithim
VHDL and Cordic Algorithim
 
Revision1schema C programming
Revision1schema C programmingRevision1schema C programming
Revision1schema C programming
 
MUMS: Agent-based Modeling Workshop - Practical Bayesian Optimization for Age...
MUMS: Agent-based Modeling Workshop - Practical Bayesian Optimization for Age...MUMS: Agent-based Modeling Workshop - Practical Bayesian Optimization for Age...
MUMS: Agent-based Modeling Workshop - Practical Bayesian Optimization for Age...
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Presentation on Face Recognition Based on 3D Shape Estimation
Presentation on Face Recognition Based on 3D Shape EstimationPresentation on Face Recognition Based on 3D Shape Estimation
Presentation on Face Recognition Based on 3D Shape Estimation
 

Más de Shahadat Hossain Shakil

Potential Career Path of a Planner in Bangladesh
Potential Career Path of a Planner in BangladeshPotential Career Path of a Planner in Bangladesh
Potential Career Path of a Planner in Bangladesh
Shahadat Hossain Shakil
 
Transport Sustainability of Dhaka: A Measure of Ecological Footprint and Mean...
Transport Sustainability of Dhaka: A Measure of Ecological Footprint and Mean...Transport Sustainability of Dhaka: A Measure of Ecological Footprint and Mean...
Transport Sustainability of Dhaka: A Measure of Ecological Footprint and Mean...
Shahadat Hossain Shakil
 
Carbon Emission from Domestic Level Consumption: Ecological Footprint Account...
Carbon Emission from Domestic Level Consumption: Ecological Footprint Account...Carbon Emission from Domestic Level Consumption: Ecological Footprint Account...
Carbon Emission from Domestic Level Consumption: Ecological Footprint Account...
Shahadat Hossain Shakil
 
Multi-Actor Partnership for Environmental Governance - An Investigation from ...
Multi-Actor Partnership for Environmental Governance - An Investigation from ...Multi-Actor Partnership for Environmental Governance - An Investigation from ...
Multi-Actor Partnership for Environmental Governance - An Investigation from ...
Shahadat Hossain Shakil
 
Strategic Environmental Assessment (SEA) Processes and International System D...
Strategic Environmental Assessment (SEA) Processes and International System D...Strategic Environmental Assessment (SEA) Processes and International System D...
Strategic Environmental Assessment (SEA) Processes and International System D...
Shahadat Hossain Shakil
 
Strategic Environmental Assessment and International System Development
Strategic Environmental Assessment and International System Development  Strategic Environmental Assessment and International System Development
Strategic Environmental Assessment and International System Development
Shahadat Hossain Shakil
 
Assessing Climate Change Impact and Adptaion Measures in Surat, Gujarat, India
Assessing Climate Change Impact and Adptaion Measures in Surat, Gujarat, IndiaAssessing Climate Change Impact and Adptaion Measures in Surat, Gujarat, India
Assessing Climate Change Impact and Adptaion Measures in Surat, Gujarat, India
Shahadat Hossain Shakil
 
Climate Change Adaptation through Multi-level Governance: Perspectives from C...
Climate Change Adaptation through Multi-level Governance: Perspectives from C...Climate Change Adaptation through Multi-level Governance: Perspectives from C...
Climate Change Adaptation through Multi-level Governance: Perspectives from C...
Shahadat Hossain Shakil
 

Más de Shahadat Hossain Shakil (20)

Shakil_CV_ADB_June 28, 2021
Shakil_CV_ADB_June 28, 2021Shakil_CV_ADB_June 28, 2021
Shakil_CV_ADB_June 28, 2021
 
CV_Shakil_vApr-2020
CV_Shakil_vApr-2020CV_Shakil_vApr-2020
CV_Shakil_vApr-2020
 
Urban and Rural Planning Discipline in Bangladesh: Scope, Job Search Techniq...
Urban and Rural Planning Discipline in Bangladesh:  Scope, Job Search Techniq...Urban and Rural Planning Discipline in Bangladesh:  Scope, Job Search Techniq...
Urban and Rural Planning Discipline in Bangladesh: Scope, Job Search Techniq...
 
Potential Career Path of a Planner in Bangladesh
Potential Career Path of a Planner in BangladeshPotential Career Path of a Planner in Bangladesh
Potential Career Path of a Planner in Bangladesh
 
Assessment of the Extent to which Strategic Environmental Assessment (SEA) ca...
Assessment of the Extent to which Strategic Environmental Assessment (SEA) ca...Assessment of the Extent to which Strategic Environmental Assessment (SEA) ca...
Assessment of the Extent to which Strategic Environmental Assessment (SEA) ca...
 
Stakeholder Debate in Policy Implementation: An Evaluation of Bangladesh Leat...
Stakeholder Debate in Policy Implementation: An Evaluation of Bangladesh Leat...Stakeholder Debate in Policy Implementation: An Evaluation of Bangladesh Leat...
Stakeholder Debate in Policy Implementation: An Evaluation of Bangladesh Leat...
 
Stakeholder Debate in Policy Implementation: An Evaluation of Bangladesh Leat...
Stakeholder Debate in Policy Implementation:An Evaluation of Bangladesh Leat...Stakeholder Debate in Policy Implementation:An Evaluation of Bangladesh Leat...
Stakeholder Debate in Policy Implementation: An Evaluation of Bangladesh Leat...
 
Transport Sustainability of Dhaka: A Measure of Ecological Footprint and Mean...
Transport Sustainability of Dhaka: A Measure of Ecological Footprint and Mean...Transport Sustainability of Dhaka: A Measure of Ecological Footprint and Mean...
Transport Sustainability of Dhaka: A Measure of Ecological Footprint and Mean...
 
Carbon Emission from Domestic Level Consumption: Ecological Footprint Account...
Carbon Emission from Domestic Level Consumption: Ecological Footprint Account...Carbon Emission from Domestic Level Consumption: Ecological Footprint Account...
Carbon Emission from Domestic Level Consumption: Ecological Footprint Account...
 
Multi-Actor Partnership for Environmental Governance - An Investigation from ...
Multi-Actor Partnership for Environmental Governance - An Investigation from ...Multi-Actor Partnership for Environmental Governance - An Investigation from ...
Multi-Actor Partnership for Environmental Governance - An Investigation from ...
 
Strategic Environmental Assessment (SEA) Processes and International System D...
Strategic Environmental Assessment (SEA) Processes and International System D...Strategic Environmental Assessment (SEA) Processes and International System D...
Strategic Environmental Assessment (SEA) Processes and International System D...
 
Strategic Environmental Assessment and International System Development
Strategic Environmental Assessment and International System Development  Strategic Environmental Assessment and International System Development
Strategic Environmental Assessment and International System Development
 
Assessing Climate Change Impact and Adptaion Measures in Surat, Gujarat, India
Assessing Climate Change Impact and Adptaion Measures in Surat, Gujarat, IndiaAssessing Climate Change Impact and Adptaion Measures in Surat, Gujarat, India
Assessing Climate Change Impact and Adptaion Measures in Surat, Gujarat, India
 
Climate Change Adaptation through Multi-level Governance: Perspectives from C...
Climate Change Adaptation through Multi-level Governance: Perspectives from C...Climate Change Adaptation through Multi-level Governance: Perspectives from C...
Climate Change Adaptation through Multi-level Governance: Perspectives from C...
 
Public Participation and Lay Knowledge in Environmental Governance: A Case St...
Public Participation and Lay Knowledge in Environmental Governance: A Case St...Public Participation and Lay Knowledge in Environmental Governance: A Case St...
Public Participation and Lay Knowledge in Environmental Governance: A Case St...
 
Effectiveness of Environmental Impact Assessment (EIA): Bangladesh Perspective
Effectiveness of Environmental Impact Assessment (EIA):  Bangladesh PerspectiveEffectiveness of Environmental Impact Assessment (EIA):  Bangladesh Perspective
Effectiveness of Environmental Impact Assessment (EIA): Bangladesh Perspective
 
Does Distribution of Schools Matter in Human Development? - A Case Study of B...
Does Distribution of Schools Matter in Human Development? - A Case Study of B...Does Distribution of Schools Matter in Human Development? - A Case Study of B...
Does Distribution of Schools Matter in Human Development? - A Case Study of B...
 
Topographic Analysis Linkages among Climate, Erosion and Tectonics
Topographic Analysis Linkages among Climate, Erosion and TectonicsTopographic Analysis Linkages among Climate, Erosion and Tectonics
Topographic Analysis Linkages among Climate, Erosion and Tectonics
 
Technical and Financial Proposal-Consultancy Services for the Preparation of ...
Technical and Financial Proposal-Consultancy Services for the Preparation of ...Technical and Financial Proposal-Consultancy Services for the Preparation of ...
Technical and Financial Proposal-Consultancy Services for the Preparation of ...
 
Technical and Financial Proposal-Consultancy Services for the Preparation of ...
Technical and Financial Proposal-Consultancy Services for the Preparation of ...Technical and Financial Proposal-Consultancy Services for the Preparation of ...
Technical and Financial Proposal-Consultancy Services for the Preparation of ...
 

Último

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
dharasingh5698
 

Último (20)

Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 

Solving a “Transportation Planning” Problem through the Programming Language “C”

  • 1. Solving a Transportation Planning Problem Through the Programming Language “C” Presented by Yousuf Mahid(0615012) Shahadat Hossain Shakil(0615020) Khadija Akhter(0615027)
  • 2. Calculation of Inter-Zonal Trips (Gravity Model)  Problem:Calculation of inter-zonal trips in a town.(Gravity Model)  Example: A self-contained town consists of four residential areas A, B, C and D and two industrial areas X and Y. Generation equations show that for the design year the trips from home to work generated by each residential area per day are A=1000, B=2250, C=1750 and D=3200. There are 3700 jobs in X and 4500 jobs in Y. The frictional factor is inversely proportional to the travel time between zones as tabulated below and the value of exponent is 2. Travel time between the zones in minutes Zones Y A 15 20 B 15 10 C 10 10 D Page  2 X 15 20
  • 3. Calculation of Inter-Zonal Trips (Gravity Model) Destination Y A TAX TAY B Origin X TBX TBY TCX TCY TDX TDY 3700 4500 C D Total Total 1000 2250 1750 3200 8200 We have to determine the correct value of the T AX, TAY, TBX, …………. TDY, until justifying both the column and the row total by continuous calculation through iteration. Page  3
  • 4. Calculation of Inter-Zonal Trips (Gravity Model)  Solution:The most typical version of gravity model used in the transportation planning application is Tij= (Oi × Djfij) ∕ ( ∑ Djfij) Where  Tij = no. of trips from zone i to zone j.  Oi = total no. of trips produced in zone i.  Dj = total no. of trips attracted to zone j.  b = an exponential constant whose value is usually found between 1 and 2.  The frictional factor is an inverse function of the travel cost (time, distance, monetary cost).  fij = 1 / Cijb Page  4
  • 5. Calculation of Inter-Zonal Trips (Gravity Model)  TAX = 1000 × (3700/152) / (3700/152 + 4500/202) = 592  TAY = 1000 × (4500/202) / (3700/152 + 4500/202) = 407 ………………………………………………………………  TDX = 3200 × (3700/152) / (3700/152 + 4500/202) = 1896  TDY = 3200 × (4500/152) / (3700/152 + 4500/202) = 1303 X Y Total Destination Origin A 592 407 1000 B 590 1659 2250 C 789 960 1750 D 1896 1303 3200 Calculated Attraction 3867 4329 8196 Projected Attraction 3700 4500 8200 Page  5
  • 6. Calculation of Inter-Zonal Trips (Gravity Model) The adjusted attraction = Projected attraction × (The attraction used in the previous iteration ∕ Calculated attraction in the previous iteration) D1X = 3700 × (3700 ∕ 3867) = 3540 D1Y = 4500 × (4500 ∕ 4329) = 4677  TAX = 1000 × (3540/152) / (3540/152 + 4677/202) = 576 ………………………………………………………….  TDY = 3200 × (4677/152) / (3540/152 + 4677/202) = 1353 Destination X Y Total Origin A 423 1000 B 553 1696 2250 C 756 993 1750 D 1846 1353 3200 Calculated Attraction 3731 4465 8196 Projected Attraction Page  6 576 3700 4500 8200
  • 7. Calculation of Inter-Zonal Trips (Gravity Model) Again the adjusted attractions after second iteration is D2X = 3700 × (3540 ∕ 3731) = 3510 D2Y = 4500 × (4677 ∕ 4465) = 4713  Using this adjusted attraction value, 3rd iteration will be operated.  This process continues until the calculated attraction value and the projected attraction value is being equalized or nearest most.  Using the “C” programming language we have to develop a program to do this cumbersome mathematical calculation mechanically to save time and energy and to get the accurate result in the shortest possible time. Page  7
  • 8. Making Procedure of the Program in “C”  Divide the whole task among different functions.  Function declaration.  Declaring functions prototype before main function.  Then subdivide the claculation of a specific function into more smaller p  Variable Declaration-(Local and Global).  Global Array Declaration- (1D and 2D)-to store and manipulate same kind of data.  Function calling - inside the main function and also inside the called function. Page  8
  • 9. Making Procedure of the Program in “C”  Library function used – main(); clrscr(); printf();scanf(); fflush(stdin); getch(); (including related header files)  Type of variables used – int; long int; float; (including ralated format specifier)  Operator used – arithmatic (addition, multiplication, division) – assignment(=), relational(==),increment(++)  Control Statement Used – if statement; – for loop; A progarm largely dependent on the use of array and continuous iteration. Limitations – deigned for 10 residential zone and 2 working zone. Failure of converting the fraction trip value into the next higher integer number. Page  9
  • 10. Thanks for your patience. Q/A Page  10