I’m building a freeway and highway scenario—complete with parallel service roads—and I want to study how traffic really behaves there. The core objective is traffic-flow analysis, so every piece of code and every file you deliver should help me measure speed, density, queue length, and throughput under different demand levels. The toolkit is SUMO driven through Python (TraCI). I only need motor-vehicle dynamics—no pedestrians—but the model has to distinguish among cars, trucks, and buses so I can vary their proportions later. Lane changes, ramp merges, and the influence of the service roads on the mainline are all part of the picture. Please create the full network, routing logic, and a clean, well-commented Python controller that can: • spawn the three vehicle classes with adjustable flows • run multiple simulation seeds automatically • export raw data and generate quick plots or CSV summaries I’ll consider the work complete when I can run one command, watch the simulation, and receive the flow metrics for each link and lane without further tweaking. Concise setup instructions and the source files (.net.xml, .rou.xml, .py) are essential. I have the required data of car volume and type throughout 24 hours time interval The segment road is 5 KM long, main road is 4 lanes, service is 2 lanes, and both direction.