Learning a Generator Model from Terminal Bus Data