Evacuating indoor environments is a critical challenge for which safe and effective strategies are very much needed. The placement of emergency exits plays a crucial role in this regard. This placement should be approached by considering both the geometry of the environment and the dynamics of the crowd in an evacuation scenario. In this context, this work shows how a simulation-based framework based on a probabilistic cellular automaton can be used to model emergent pedestrian dynamics. Each pedestrian is modeled as an agent whose movement follows a differential desirability gradient, which combines rational pathfinding with dynamic repulsion fields, thus capturing behaviors that range from orderly evacuation to chaotic scattering. This framework is embedded within a metaheuristic optimization setting used to navigate the complex, non-linear search space of exit configurations. More precisely, we consider evolutionary and memetic simheuristics. By integrating global evolutionary search with local, derivative-free search methods, this approach can identify near-optimal layouts that significantly minimize evacuation times and non-evacuee counts in realistic scenarios.