Optimal Allocation of PV Generation and Battery Storage for Enhanced Resilience | Synapse