Resource Allocation For Optimum Power Usage In Wireless Networks