Text this: Power Resource Allocation Algorithm for Dual-Function Radar–Communication System