Text this: Modeling power system with distributed generation