Large-scale application of the Han-Powell algorithm to compact models of static and dynamic dispatch of real power