Hi David,
Thanks for your help. I recompiled the Boost version. Now I am using the boost thread to run the program. But I met some other problems. Here is the Router_2.prn file. It seems no trips were generated. I used the command "Router Router.ctl 2".
For the key "NUMBER_OF_THREADS", do I need to set it as 2 in every control file if I want to use the boost program? What's the difference between "NUM_OF_THREADS" and "NUM_OF_PARTITIONS" for simulation purpose.
********************************************
| |
| Router - Version 5.0.54 |
| Copyright 2012 by TRANSIMS Open-Source |
| Tue Apr 22 14:02:03 2014 |
| |
********************************************
Control File = Router.ctl
Report File = Router_2.prn (Create)
Route the highway for 1.Router
Project Directory = ../
Default File Format = TAB_DELIMITED
Time of Day Format = HOUR_CLOCK
Random Number Seed = 1398189723
Number of Threads = 2
Input System Network Files:
Node File = ../network/node.txt
Link File = ../network/link.txt
Pocket File = ../network/pocket.txt
Connection File = ../network/connection.txt
Parking File = ../network/parking.txt
Location File = ../network/location.txt
Input System Demand Files:
Selection File = ../demand/select.txt
Vehicle Type File = ../inputs/vehicle_type.txt
Vehicle File = ../demand/vehicle.txt
Trip File = ../demand/trip.txt
Output System Demand Files:
New Link Delay File = ../results/1.trip.linkdelay
New Problem File = ../results/1.trip.problems
New Plan File = ../demand/1.trip.plans.2
Data Service Controls:
Number of Time Periods = 96
Flow-Time Service Controls:
Update Flow Rates = TRUE
Update Travel Times = TRUE
Link Delay Update Rate = -1
Equation Parameters 1 = BPR, A=0.15, B=4.00, C=0.75
Equation Parameters 2 = BPR, A=0.10, B=4.50, C=0.75
Path Building Parameters:
Walk Path Details = TRUE
Ignore Time Constraints = TRUE
Walk Speed = 1.00 mps
Route the highway for 1.Router
Tue Apr 22 14:02:03 2014 Router page 2
Select Service Controls:
Router Control Keys:
Number of Node File Records = 18
Number of Link File Records = 20
Number of Directional Links = 28
Number of Pocket File Records = 4
Number of Vehicle Type File Records = 15
Number of Connection File Records = 40
Number of Parking File Records = 42
Number of Location File Records = 42
Number of Selection File Records = 8400
Number of Vehicle File Records = 8400
Number of File Partition Processors = 1
Number of Path Builders per Process = 2
New Link Delay File Records = 0
Number of Travel Time Updates = 1
Number of Trip File Records = 1
Number of Trip File Households = 1
Number of Trip File Persons = 1
Number of Trip File Tours = 1
Number of Trip File Trips = 1
Number of New Plan File Records = 0
Number of New Plan File Households = 0
Number of New Plan File Persons = 0
Number of New Plan File Tours = 0
Number of New Plan File Trips = 0
Tue Apr 22 14:02:03 2014 -- Process Complete (0:00:00)
Also, I found my select.txt file, generated by RandomSelect is different from the case on docs. Here is the prn file.
********************************************
| |
| RandomSelect - Version 5.0.1 |
| Copyright 2012 by TRANSIMS Open-Source |
| Tue Apr 22 13:46:55 2014 |
| |
********************************************
Control File = RandomSelect.ctl
Report File = RandomSelect.prn (Create)
RandomSelect trip plans for Router
Project Directory = ../
Default File Format = TAB_DELIMITED
Model Start Time = 7:00
Model End Time = 10:00
Random Number Seed = 234
Input System Demand Files:
Household File = ../demand/household.txt
Output System Demand Files:
New Selection File = ../demand/select.txt
Data Service Controls:
Select Service Controls:
RandomSelect Control Keys:
Number of Partitions = 2
Number of Household File Records = 16800
New Selection File Records = 8400
Partition Distribution
0 4242 ( 50.5%)
1 4158 ( 49.5%)
Total 8400
Tue Apr 22 13:46:55 2014 -- Process Complete (0:00:00)
The output is like below. They are all 0s for tour and trip. Is this the problem for Router? Thanks.
HHOLD PERSON TOUR TRIP PARTITION
1 1 0 0 0
2 1 0 0 0
3 1 0 0 0
4 1 0 0 1
5 1 0 0 1
6 1 0 0 1
7 1 0 0 0
8 1 0 0 1
9 1 0 0 1
10 1 0 0 0