Do I need to set the warm-up period through Traci? or is there any other way
to set it once for my whole simulation run? Maybe you find this question
silly but previously I was using VISSIM in which I just needed to change
some attribute for that from the VISSIM interface.
As far as I know, in VISSIM you just add some simulation time and
traffic demand during warm-up, too. There is no real difference
compared to SUMO. You can specify the simulation time with the
time-related parameters in SUMO: https://sumo.dlr.de/docs/sumo.html#time
The only thing you have to bother with is simulation output:
SUMO detectors collect data from the first simulation step. In
order to separate data from warm-up period exactly, be sure to
choose an aggregation frequency as a factor of warm-up period (see
loop detectors freq attribute): freq*n = warm-up period;
where n is an integer.