Spaces:
Running
GeoGridLens: screening where solar can connect, with GENCO over real geodata
GeoGridLens uses GENCO as a 44 ms power-flow engine to screen 2,160 grid scenarios for 30 real solar sites in Alentejo, Portugal, so developers and environmental planners can see which good-land sites the grid will accept before any costly study begins.
Team: Polisense AI
Members: Khuzaima Aziz, Co-Founder and Spatial Data Scientist, Polisense AI
Contact: khuzaimaaziz89@gmail.com
Links
- Code and reproduction: https://github.com/KhuzaimahAziz/geogridlens
- Live dashboard: https://geogridlens-dzwc767mkv3sm7bezcrya3.streamlit.app/
- Plain-language walkthrough: https://khuzaimahaziz.github.io/geogridlens/

The top three sites in 3D: real 30 m terrain and land cover, the cand bus, nearby lines coloured by consequence, protected land and realsubstations.
The idea
Solar developers pick sites by land and check the grid last; environmental planners judge the same sites by what they displace. GeoGridLens runs the grid check first, for every plausible site, using GENCO over real open geodata for a 100 km rtugal.

A plant growing from 0 to 200 MW at the strongest and weakest site. Each frame is one GENCO inference.
Method
- 3,886 real land cells scored from Copernicus DEM, ESA WorldCover, Natura 2000 and national protected areas, MODIS burned area 2015–2024, PVGIS and OpenStreetMap. 30 candidate sites chosen by a documented rule.
- The five most wildfire-exposed lines become the N-1 outage set.
- 2,160 GENCO scenarios (30 sites × 3 capacities × 4 operating conditis 24 baselines, about four minutes on a laptop CPU, using the releasedPFDelta Task 1.3 checkpoint natively through Graphkit.
- Everything is measured as a change against a matching baseline; outat a site adds on top of an outage.
- Grid robustness, contingency resilience, corridor wildfire exposure and spatial opportunity combined under three stated weight profiles.
Results
Grid scores range from 0.35 to 0.88 across sites with almost identical land quality. The site with the best land in the set ranks ninth because its bus is a weak point of
the grid. Five sites reach "priority for deeper study", and the top th three weight profiles.

Same land quality, different grid: the best-land site against the best-grid site, 100 MW at each.

The four decision maps: where land allows a site, where the grid is cd lines matter most, and the final shortlist.
Validation and what we learned about GENCO
73 pandapower AC cases on identical inputs: all 49 change comparisons CO's loading changes track AC with slope 0.95 and R² 0.98 over 9,086branch-scenario pairs.
- Error is local to the injection bus or removed line, so AC confirmation can focus there.
- GENCO's own power-balance residual predicts its error against ACe edge of its operating envelope: in a load sweep from 0.5 to 1.5 ofthe training point, it climbs sharply exactly where the AC solver stops converging.
- Three released seeds, one shortlist: the worst-affected line agr
- An outage ranking for every line (177 connectivity-preserving branches) costs about a minute.
- Two apparent model errors were solver bookkeeping (parallel circ); both are now regression-tested.

Error by distance from the perturbation, GENCO against AC loading changes, the residual as a trust flag, and residual by capacity and outage.
Operating envelope from the load sweep, spread across the three relead the all-line outage ranking.
GENCO against pandapower on 73 scenarios: absolute and change agreement.
Open science
All code is MIT licensed. All inputs are public, and the pipeline downloads them with provenance and access dates recorded. One PowerShell script reproduces the whole study, and the repo ships the result tables so the dashboard runs with
Limitation
Everything is real except the grid: the IEEE-118 benchmark is laid outd geometry and power-flow numbers are illustrative and say nothingabout Portugal's transmission system.