# PowerModels generation and branch result data extraction

**URL:** <https://discourse.julialang.org/t/powermodels-generation-and-branch-result-data-extraction/59973>\
**Category:** General Usage\
**Tags:** optimization\
**Created:** [April 25, 2021, 6:06am UTC](https://discourse.julialang.org/t/powermodels-generation-and-branch-result-data-extraction/59973 "2021-04-25T06:06:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaldik](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@aaldik](https://discourse.julialang.org/u/aaldik)\
**Post date:** [April 25, 2021, 6:06am UTC](https://discourse.julialang.org/t/powermodels-generation-and-branch-result-data-extraction/59973/1 "2021-04-25T06:06:57Z")

</div>

Dears

I’m working on the package PowerModels and I’m trying to extract results data for further manipulation. the problem that I have faced is regrading generation results and how to extract them in an accurate way. I have noticed that if a bus has more than one generator, the extracted data will not be in the same exact order as the original m file of the system. I would appreciate any information about how to extract generation and branch data with correct bus numbers from PowerModels.

Regards
