Differential evolution is used to optimize the geometrical parameters of obstacles.
Profiles of density, velocity, specific flow as well as crowd pressure are analyzed.
Placing an obstacle in panic situations promotes the pressure to a much higher level.
Physical mechanism of efficiency enhancement is a reduction of high density region.
Panel is more robust than pillar to guarantee the enhancement of pedestrian outflow.