René's URL Explorer Experiment


Title: State-estimation results of pandapower and power-grid-model are different · PowerGridModel · Discussion #63 · GitHub

Open Graph Title: State-estimation results of pandapower and power-grid-model are different · PowerGridModel · Discussion #63

X Title: State-estimation results of pandapower and power-grid-model are different · PowerGridModel · Discussion #63

Description: State-estimation results of pandapower and power-grid-model are different

Open Graph Description: Hello! I have been trying to convert a pandapower-network into power-grid-model and run a state-estimation on both networks. The conversion with PandaPowerConverter from power-grid-model-io was suc...

X Description: Hello! I have been trying to convert a pandapower-network into power-grid-model and run a state-estimation on both networks. The conversion with PandaPowerConverter from power-grid-model-io was suc...

Opengraph URL: https://github.com/orgs/PowerGridModel/discussions/63

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"State-estimation results of pandapower and power-grid-model are different","text":"

Hello!
\nI have been trying to convert a pandapower-network into power-grid-model and run a state-estimation on both networks. The conversion with PandaPowerConverter from power-grid-model-io was successful. I added the measurements at the pandapower-buses as voltage and power-sensors to the network modelled in power-grid-model. These networks are attached. There is also a json-file \"idx_lookup.json\" attached which is a serialized version of the idx_lookup-attribute of the PandaPowerConverter and maps the power-grid-model indices to the indices of the elements in the pandapower network tables. Then I executed the following code:

\n
import pandapower as pp\nfrom power_grid_model import PowerGridModel, ComponentType\nfrom power_grid_model.utils import json_deserialize_from_file\n\npp_net = pp.from_json(\"pp_net.json\")\npgm_input = json_deserialize_from_file(\"pgm_net.json\")\npgm_net = PowerGridModel(pgm_input)\n\npp.estimation.estimate(pp_net)\nstate_estimation_results = pgm_net.calculate_state_estimation(error_tolerance=1e-3)\n
\n

The results of the both networks are very different. For example the first line (the power-grid-model id 118 matches the id 0 in pandapower):

\n
In [41]: res_line_est_pgm = pd.DataFrame(state_estimation_results[ComponentType.line])\n\nIn [42]: pp_net.res_line_est.loc[0, \"p_to_mw\"]\nOut[42]: np.float64(-29.727469274206157)\n\nIn [43]: res_line_est_pgm.loc[0, \"p_to\"]*1e-6\nOut[43]: np.float64(-1.040860668477377)\n\nIn [44]: pp_net.res_line_est.loc[0, \"i_from_ka\"]\nOut[44]: np.float64(0.16288191139708483)\n\nDEBUG:asyncio:Using selector: EpollSelector\nIn [45]: res_line_est_pgm.loc[0, \"i_from\"]*1e-3\nOut[45]: np.float64(0.03254555759419108)\n
\n

Also the result-values for the voltages at the nodes are unrealistic:

\n
In [59]: res_node_est_pgm = pd.DataFrame(state_estimation_results[ComponentType.node])\n\nIn [60]: res_node_est_pgm.u_pu.describe()\nOut[60]: \ncount    118.000000\nmean       0.177706\nstd        0.026815\nmin        0.115898\n25%        0.147870\n50%        0.183951\n75%        0.203110\nmax        0.220805\nName: u_pu, dtype: float64\n
\n

For pandapower, they look okay:

\n
In [61]: pp_net.res_bus_est.vm_pu.describe()\nOut[61]: \ncount    118.000000\nmean       0.927139\nstd        0.060537\nmin        0.793122\n25%        0.882525\n50%        0.930570\n75%        0.962631\nmax        1.079446\n\nName: vm_pu, dtype: float64\n
\n

Do you have any suggestions on why the results are so different?

\n

idx_lookup.json
\npgm_net.json
\npp_net.json

","upvoteCount":2,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Hi @Milena1511, thanks for asking the question here. I think they use p.u. voltage at PandaPower, looking at the voltages in your voltage sensors. At Power Grid Model u_measured should be provided in V. I think this is the reason your results are different. Can you check if this is indeed the case?

","upvoteCount":1,"url":"https://github.com/orgs/PowerGridModel/discussions/63#discussioncomment-14152732"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/:org/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:677576e0-506b-5657-24c4-f4afa1b12679
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-id89F8:3E092:3227C1:418879:698EB42E
html-safe-nonce679f0ae50944016e7851a58c784edc07b71752c6384131806a906af2dbff6f9a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUY4OjNFMDkyOjMyMjdDMTo0MTg4Nzk6Njk4RUI0MkUiLCJ2aXNpdG9yX2lkIjoiNDQyODM4NDE4NjE2ODk0Nzc1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3c5f9861a1f2a6854bc028cc2ac67a295823722854e5723c292c2a11eea236c0
hovercard-subject-tagdiscussion:8761496
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/PowerGridModel/63/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/a05584a952b4ce2a49563611af9fcd86604373e284307944006f70defc8655dc/orgs/PowerGridModel/discussions/63
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a05584a952b4ce2a49563611af9fcd86604373e284307944006f70defc8655dc/orgs/PowerGridModel/discussions/63
og:image:altHello! I have been trying to convert a pandapower-network into power-grid-model and run a state-estimation on both networks. The conversion with PandaPowerConverter from power-grid-model-io was suc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba
turbo-cache-controlno-preview
octolytics-dimension-user_id128388838
octolytics-dimension-user_loginPowerGridModel
octolytics-dimension-repository_id616883724
octolytics-dimension-repository_nwoPowerGridModel/.github
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id616883724
octolytics-dimension-repository_network_root_nwoPowerGridModel/.github
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6b91a7e6e46287d26887e3fb7a4161657bab8f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2FPowerGridModel%2Fdiscussions%2F63
PowerGridModelhttps://patch-diff.githubusercontent.com/PowerGridModel
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2FPowerGridModel%2Fdiscussions%2F63
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=PowerGridModel%2F.github
Reloadhttps://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
Reloadhttps://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
Reloadhttps://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
Power Grid Model https://patch-diff.githubusercontent.com/PowerGridModel
Overview https://patch-diff.githubusercontent.com/PowerGridModel
Repositories https://patch-diff.githubusercontent.com/orgs/PowerGridModel/repositories
Discussions https://patch-diff.githubusercontent.com/orgs/PowerGridModel/discussions
Projects https://patch-diff.githubusercontent.com/orgs/PowerGridModel/projects
Packages https://patch-diff.githubusercontent.com/orgs/PowerGridModel/packages
People https://patch-diff.githubusercontent.com/orgs/PowerGridModel/people
Overviewhttps://patch-diff.githubusercontent.com/PowerGridModel
Repositorieshttps://patch-diff.githubusercontent.com/orgs/PowerGridModel/repositories
Discussionshttps://patch-diff.githubusercontent.com/orgs/PowerGridModel/discussions
Projectshttps://patch-diff.githubusercontent.com/orgs/PowerGridModel/projects
Packageshttps://patch-diff.githubusercontent.com/orgs/PowerGridModel/packages
Peoplehttps://patch-diff.githubusercontent.com/orgs/PowerGridModel/people
Answered https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#discussioncomment-14152732
petersalemink95https://patch-diff.githubusercontent.com/petersalemink95
Milena1511 https://patch-diff.githubusercontent.com/Milena1511
Q&Ahttps://patch-diff.githubusercontent.com/orgs/PowerGridModel/discussions/categories/q-a
State-estimation results of pandapower and power-grid-model are different https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#top
Milena1511 https://patch-diff.githubusercontent.com/Milena1511
Answered https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#discussioncomment-14152732
petersalemink95https://patch-diff.githubusercontent.com/petersalemink95
Return to tophttps://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#top
Please reload this pagehttps://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
Milena1511 https://patch-diff.githubusercontent.com/Milena1511
Aug 19, 2025 https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#discussion-8761496
idx_lookup.jsonhttps://github.com/user-attachments/files/21855146/idx_lookup.json
pgm_net.jsonhttps://github.com/user-attachments/files/21855148/pgm_net.json
pp_net.jsonhttps://github.com/user-attachments/files/21855452/pp_net.json
Give feedback.https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
petersalemink95 https://patch-diff.githubusercontent.com/petersalemink95
Aug 19, 2025 https://github.com/orgs/PowerGridModel/discussions/63#discussioncomment-14152732
@Milena1511https://github.com/Milena1511
View full answer https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#discussioncomment-14152732
Oldest https://patch-diff.githubusercontent.com/orgs/PowerGridModel/discussions/63?sort=old
Newest https://patch-diff.githubusercontent.com/orgs/PowerGridModel/discussions/63?sort=new
Top https://patch-diff.githubusercontent.com/orgs/PowerGridModel/discussions/63?sort=top
Please reload this pagehttps://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
petersalemink95 https://patch-diff.githubusercontent.com/petersalemink95
Aug 19, 2025 https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#discussioncomment-14152732
@Milena1511https://github.com/Milena1511
Give feedback.https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
https://patch-diff.githubusercontent.com/petersalemink95
Please reload this pagehttps://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
petersalemink95https://patch-diff.githubusercontent.com/petersalemink95
Aug 19, 2025 https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#discussioncomment-14152777
Give feedback.https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
https://patch-diff.githubusercontent.com/Milena1511
Please reload this pagehttps://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
Milena1511https://patch-diff.githubusercontent.com/Milena1511
Aug 19, 2025 https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#discussioncomment-14153564
Give feedback.https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
https://patch-diff.githubusercontent.com/petersalemink95
Please reload this pagehttps://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
petersalemink95https://patch-diff.githubusercontent.com/petersalemink95
Aug 19, 2025 https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63#discussioncomment-14153669
Give feedback.https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
mgovershttps://patch-diff.githubusercontent.com/mgovers
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2FPowerGridModel%2Fdiscussions%2F63
🙏 Q&A https://patch-diff.githubusercontent.com/orgs/PowerGridModel/discussions/categories/q-a
https://patch-diff.githubusercontent.com/Milena1511
https://patch-diff.githubusercontent.com/petersalemink95
https://patch-diff.githubusercontent.com/PowerGridModel/.github/discussions/63
https://patch-diff.githubusercontent.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.