A two-stage optimization configuration model for multi-type flexible resource considering spatiotemporal response characteristics | Synapse