The document compares two control algorithms, back propagation and synchronous reference frame theory, for controlling a DSTATCOM (dynamic voltage compensator) to compensate for reactive power and eliminate current harmonics from linear and non-linear loads. It simulates the DSTATCOM performance with each control algorithm under different load conditions. The back propagation algorithm uses load current measurements to estimate reference source currents, while synchronous reference frame theory transforms load currents between stationary and rotating coordinate systems to extract reference values. Simulation results show that with both control algorithms, the DSTATCOM is able to regulate voltage amplitude at the point of common coupling and reduce total harmonic distortion of source currents from non-linear loads.