In this paper, a method for determining line drop compensator (LDC) parameters for step voltage regulators and on‐load tap changers is proposed to avoid voltage violations in distribution systems with voltage fluctuations due to photovoltaic (PV) generation and electric vehicle (EV) charging. Distribution system operators need to effectively solve voltage problems caused by the widespread installation of distributed energy resources with the existing voltage regulators to construct an efficient and rational infrastructure. Our focus was on improving the method for determining the LDC parameters for the existing voltage regulators based on LDC control. A mechanism to dynamically change the LDC parameters depending on the situations in the distribution system was developed by using a mixture of experts, one of the machine learning techniques, and real‐time voltage and power flow information from information technology switches. The power flow calculations were performed using a distribution system model constructed based on the topology, loads, and generation characteristics of an actual distribution system in the Hokuriku region. The effectiveness of the proposed method was evaluated in terms of its improved effect on PV and EV hosting capacity, as well as the impact on the frequency of tap operations of voltage regulators. © 2024 The Author(s). IEEJ Transactions on Electrical and Electronic Engineering published by Institute of Electrical Engineers of Japan and Wiley Periodicals LLC.