Green locomotives at a rail yard