Abstract:[Objective] An optimisation model of a flexible microgrid is proposed to study the resilience of the system under extreme conditions while considering user satisfaction and pursuing economic operation. And the impact of flexible loads on user satisfaction is considered to improve user satisfaction while optimising economic dispatch. [Methods] This model integrated user satisfaction with microgrid economic operation and resilience enhancement, proposing a hybrid pelican optimization algorithm that simultaneously addresses pre-disaster prevention and post-disaster recovery strategies. A hybrid pelican algorithm was proposed, which contains multiple strategies of inertia weights, Lévy flights, attenuation factors and t-distribution. Mixing multiple strategies gradually improved the solution accuracy of the pelican algorithm. [Results] In simulation tests of low-probability high-impact scenarios, the proposed algorithm demonstrated significant performance advantages over butterfly optimization algorithm, particle swarm optimization algorithm, grey wolf optimization algorithm, artificial bee colony optimization algorithm, and the original algorithm, achieving system operational cost reductions of 26.7%, 27.0%, 26.1%, 21.8%, and 6.7% respectively, significant perpormance advantages. [Conclusion] The model can improve user satisfaction to a certain extent and proves that the proposed algorithm is more superior in solving the optimal economic operation and resilience problems of microgrids.