I am trying to work out some of the final details of a modern urban compound, surrounded by perimeter walls and a gate. A battle (modern urban warfare with firearms and grenades mainly) takes place here between two opposing sides (both modern military about 150 men each) and I am wondering whether the fact that there is a gate that has been breached has any relevance to the strategy the resident side devise in beating their intruders?
The main argument is whether to re-close the gates or keep them open (as they are already) during the battle/conflict where the intruders are all already within the compound. The argument I thought was worth exploring was that by closing the gates the enemy would be boxed in inside and unable to escape, making the job easier for the residents to completely eradicate all of the intruders. At the same time, this would have the same disadvantage on the residents if they somehow were unable to reopen the gates to escape themselves.
Therefore would the above be a worthwhile strategy or even a relevant consideration for the residents to not only protect their breached compound, but also to eradicate or capture all of the intruders?