There really is no perfect systematic solution other than just ride the middle lane. I usually try not to do that though because of Colorado's law--"keep right except to pass." All it takes is an over-zealous cop to decide I absolutely must stay in the right lane, even though I'm trying to avoid a collision with merging traffic. And lots of other states don't allow trucks in the far left lane, so I'm forcing them to either stay behind me or pass on the right. So, personally, I've found it really helps to just slow down in cities in general. I turn off the cruise and go around 55 mph or less--seems to help avoid unpleasant encounters with kamikaze drivers.
But still, if there's a lot of traffic merging all at once, or if a truck is trying to merge, I'll get over if I can.
Like I said, no perfect solution... just do your best to cope with the chaos and not hit anything.
That's probably the most sensible thing, just slow down so all traffic is faster than you and let them all pass. Problem is, still, the merging traffic. Especially when you have 4 or 5 cars trying to enter the roadway at the same time. I usually just watch and slow down according to the cars that are ahead of me. If there are 5 cars coming on and 3 are ahead of me and 2 along side of me or to the rear, I'll slow enough to let the ahead cars in but the cars along side will have to slow down to get behind me. The only other option is to slow down enough to let all of them in, but doing so will cause more traffic backup.
That's probably the most sensible thing, just slow down so all traffic is faster than you and let them all pass. Problem is, still, the merging traffic. Especially when you have 4 or 5 cars trying to enter the roadway at the same time. I usually just watch and slow down according to the cars that are ahead of me. If there are 5 cars coming on and 3 are ahead of me and 2 along side of me or to the rear, I'll slow enough to let the ahead cars in but the cars along side will have to slow down to get behind me. The only other option is to slow down enough to let all of them in, but doing so will cause more traffic backup.