Over the past decades, wireless networks and devices have experienced intensive growth. Route discovery and selection from device to device (D2D) that are randomly distributed came across services trade-offs. This paper presents an optimal routing technique for the MANET environment-based D2D network. The optimization method considers the Lagrange Multiplier approach to maximize bit rate along with constraints minimization of the latency and packet loss. This method is executed for D2D nodes by active route election for links. An intensive simulation is applied and the obtained simulation results manifest the effectiveness of the presented Lagrange Optimization of Rate, Delay, and Packet loss algorithm (LORDP) in the optimal routing as compared to the Particle Swarm Optimization (PSO) and Genetic Algorithm (GA).