Optimized Three-Dimensional Photovoltaic Structures with LLM guided Tree Search

arXiv cs.CL Papers

Summary

This paper presents a case study using an LLM-driven tree search algorithm (ERA) combined with a coding agent (AntiGravity) to autonomously generate high-efficiency three-dimensional photovoltaic structures, overcoming limitations of flat solar panels at mid-latitudes. The workflow includes iterative patching to eliminate reward hacking and discovers improved designs under various constraints.

arXiv:2605.16191v1 Announce Type: new Abstract: We present a case study for how AI coding systems can be used to generate novel scientific hypotheses. We combine a generic coding agent (Google's AntiGravity) with an LLM-driven tree search algorithm (Empirical Research Assistance / ERA) to autonomously generate high-efficiency three-dimensional photovoltaic (3DPV) structures that overcome losses limiting flat solar panels at mid-latitudes. These structures operate by presenting favorable angles to the sun throughout the day, and for illustrative purposes we focus on optimizing performance for a single solar day. Our workflow begins by using AntiGravity to reproduce calculations \cite{bernardi2012solar} showing that 3DPV can have energy densities much higher than stationary flat PV panels. We use these initial designs as the starting point for large scale tree search, where we seek improved solutions and score them for their diurnal yield. The initial tree search leads to nominally more efficient solutions, yet they are caused by algorithmic reward hacking, arising from non-physical design features such as structurally levitating disconnected tiers and exploitations of the discretizations in the optics solver. To counteract this, we develop a workflow where the coding agent iteratively patches the physics engine with constraints to eliminate reward hacking. With reward-hacking eliminated, ERA discovers a series of designs with various constraints and improved performance, including optimal designs with different fixed collector areas, optimizing zenith tracking and avoiding self shadowing. Combining coding agents with tree search (ERA) provides a powerful platform for scientific discovery, for problems whose solutions can be empirically evaluated with a score function.
Original Article
View Cached Full Text

Cached at: 05/18/26, 06:37 AM

# Optimized Three-Dimensional Photovoltaic Structures with LLM guided Tree Search
Source: [https://arxiv.org/html/2605.16191](https://arxiv.org/html/2605.16191)
\\uselogo

Lizzie DorfmanGoogle ResearchJohn C\. PlattGoogle Research

\(May 15, 2026\)

###### Abstract

We present a case study for how AI coding systems can be used to generate novel scientific hypotheses\. We combine a generic coding agent \(Google’s AntiGravity\) with an LLM\-driven tree search algorithm \(Empirical Research Assistance / ERA\) to autonomously generate high\-efficiency three\-dimensional photovoltaic \(3DPV\) structures that overcome losses limiting flat solar panels at mid\-latitudes\. These structures operate by presenting favorable angles to the sun throughout the day, and for illustrative purposes we focus on optimizing performance for a single solar day\. Our workflow begins by using AntiGravity to reproduce calculationsBernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\]showing that 3DPV can have energy densities much higher than stationary flat PV panels\. We use these initial designs as the starting point for large scale tree search, where we seek improved solutions and score them for their diurnal yield\. The initial tree search leads to nominally more efficient solutions, yet they are caused by algorithmic reward hacking, arising from non\-physical design features such as structurally levitating disconnected tiers and exploitations of the discretizations in the optics solver\. To counteract this, we develop a workflow where the coding agent iteratively patches the physics engine with constraints to eliminate reward hacking\. With reward\-hacking eliminated, ERA discovers a series of designs with various constraints and improved performance, including optimal designs with different fixed collector areas, optimizing zenith tracking and avoiding self shadowing\. Combining coding agents with tree search \(ERA\) provides a powerful platform for scientific discovery, for problems whose solutions can be empirically evaluated with a score function\.

## 1Introduction

Agentic AI systems have enormous potential for carrying out sophisticated analyses of scientific problems, accelerating the exploration of unconventional ideas\. To demonstrate this capability, this paper presents a case study illustrating how we combined Empirical Research Assistance \(ERA\)—an autonomous LLM\-driven tree search algorithm—with a coding agent \(Google’s Antigravity\) to tackle a complex optimization problem in three\-dimensional photovoltaic \(3DPV\) design\.

Conventional flat photovoltaic installations are the dominant method for solar energy collection on residential or commercial buildings, yet their performance at mid\-to\-high latitudes suffers from a fundamental geometric limitation: the cosine projection of direct sunlight onto the panel surface\. At 7:00 AM on the summer solstice at latitude42\.36∘42\.36^\{\\circ\}N \(Boston, Massachusetts\), the solar elevation is approximately20∘20^\{\\circ\}, yieldingcos⁡\(70∘\)≈0\.34\\cos\(70^\{\\circ\}\)\\approx 0\.34\. This means that a flat horizontal panel captures barely one\-third of the available direct normal irradiance\. Averaged over the full day, this cosine loss concentrates the majority of energy generation into a narrow∼\\sim4\-hour window around solar noon, leaving early\-morning and late\-afternoon flux largely unharvested\. Utility photovoltaics can use tracking systems that adapt to the Sun’s position and improve power performance by 1\.2\-1\.8xBernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\]but such tracking systems are impractical for residential and commercial owners\.

Bernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\]made the intriguing suggestion that three dimensional photovoltaic \(3DPV\) structures could address the geometric limitation by arranging solar cells on non\-coplanar surfaces that present favorable angles to the sun throughout the day\. Through numerical calculations and experiments,Bernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\]demonstrated that 3D structures can generate several times more energy per base area than flat panels, depending on the detailed geometry and height\-to\-footprint ratio\. The study assumed that the 3DPV would be built on a flat roof with fixed area: the goal was to maximizes the energy generated under that constraint\. The study also assumed only direct irradiance would generate electricity\.

Inspired by their study, we explore whether modern coding agents can efficiently generate improved designs and hypotheses for 3DPV structures\. Our workflow begins by providing a coding agent \(Google’s Antigravity\) with the PDF ofBernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\]Bernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\]and asking it to reproduce the main results\. The system autonomously identified the GitHub repository used to carry out the original calculations, resolved legacy dependencies, and replicated the baseline energy limits of both the planar arrays and the human\-designed "open cube" structure reported in the original 2012 study\. We then tasked ERA to maximize the total energy yield of the 3DPV structure\. The system responded by discovering how to exploit the rendering code, finding ways of increasing yield that violate the laws of physics\. Examples include a solution of levitating, disconnected solar arrays that maximize ground\-view sunlight capture without incurring self\-shading penalties; pushing structures outside the geographical bounding box to evade shadows entirely, and exploiting floating\-point discretization limits\. To contain these exploits, we developed a workflow by using the coding agent to iteratively patch the physics code and the scoring function\. When suitably constrained, the system was able to find a series of valid 3dPV architectures with superior performance, obeying different sets of design constraints\. Overall this system demonstrates that the combination of coding agents with tree search is a powerful tool for efficiently discovering novel hypotheses\.

## 2Mathematical Model

Bernardiet\. al\.’s original simulation code uses classical thin\-film Fresnel optics to compute transmission through a planar encapsulant and traces shadowing between panels at sub\-cell resolution\. We build our analysis from the author’s Github repo with the original code111See https://github\.com/feranick/3dpv\.\. For definiteness, they focus their calculations on a single date June 21, 2011 in Boston, MA, at coordinates\(42\.36∘​N,71\.09∘​W\)\(42\.36^\{\\circ\}\\text\{N\},\\,71\.09^\{\\circ\}\\text\{W\}\)\. The algorithm computes sun’s position using the Solar Position Algorithm \(SPA\)Reda and Andreas \[[2004](https://arxiv.org/html/2605.16191#bib.bib3)\], which yields the solar zenith angleθz\\theta\_\{z\}and azimuthϕs\\phi\_\{s\}as functions of time, date, and geographic coordinates\. On this day in this location, the zenith angle ranges from90∘90^\{\\circ\}\(sunrise/sunset\) to approximately19∘19^\{\\circ\}\(solar noon\)\. Our analysis of the code using AntiGravity identifies several small errors that we corrected in our implementation: as an example, Snell’s transmission angle calculations on secondary bounces occurred before updating the refractive index ratio to match the targeted surface, resulting in incorrect polarization parameters\. We also eliminated the ability of the single\-sided panels to absorb direct light\.

Within our model, a candidate 3DPV structure is composed of triangular solar panels embedded in a20×20×1020\\times 20\\times 10\\,m bounding box above a flat rooftop\. Each triangleTkT\_\{k\}is defined by three vertices𝐯k,1,𝐯k,2,𝐯k,3∈ℝ3\\mathbf\{v\}\_\{k,1\},\\mathbf\{v\}\_\{k,2\},\\mathbf\{v\}\_\{k,3\}\\in\\mathbb\{R\}^\{3\}with0≤x,y≤200\\leq x,y\\leq 20\\,m and0≤z≤100\\leq z\\leq 10\\,m\. For definiteness, we constrain the total panel surface area as follows:

Atotal=∑k=1N12​‖\(𝐯k,2−𝐯k,1\)×\(𝐯k,3−𝐯k,1\)‖≤800​m2A\_\{\\text\{total\}\}=\\sum\_\{k=1\}^\{N\}\\frac\{1\}\{2\}\\left\\\|\(\\mathbf\{v\}\_\{k,2\}\-\\mathbf\{v\}\_\{k,1\}\)\\times\(\\mathbf\{v\}\_\{k,3\}\-\\mathbf\{v\}\_\{k,1\}\)\\right\\\|\\leq 800\\,\\text\{m\}^\{2\}\(1\)
For ray tracking each panel is subdivided into sub\-cells\. At each time step \(every 6 minutes from sunrise to sunset\), the simulation:

1. 1\.Computes the sun direction𝐬^​\(θz,ϕs\)\\hat\{\\mathbf\{s\}\}\(\\theta\_\{z\},\\phi\_\{s\}\)\.
2. 2\.For each sub\-cell centroid𝐩\\mathbf\{p\}, traces a ray toward the sun and tests for intersection with all other panels to determine the shadow state\.
3. 3\.Computes the incidence angleθi\\theta\_\{i\}between𝐬^\\hat\{\\mathbf\{s\}\}and the panel’s outward normal𝐧^k\\hat\{\\mathbf\{n\}\}\_\{k\}\.
4. 4\.Calculates the transmitted \(absorbed\) and reflected power using the model\-specific optics \(see below\)\.
5. 5\.Traces reflected rays for secondary absorption \(one bounce\)\.

The daily energy is then obtained by trapezoidal integration over all time steps:

E=∫0TP​\(t\)​𝑑t≈∑i=0M−1P​\(ti\)\+P​\(ti\+1\)2​\(ti\+1−ti\),E=\\int\_\{0\}^\{T\}P\(t\)\\,dt\\approx\\sum\_\{i=0\}^\{M\-1\}\\frac\{P\(t\_\{i\}\)\+P\(t\_\{i\+1\}\)\}\{2\}\\,\(t\_\{i\+1\}\-t\_\{i\}\),\(2\)whereP​\(ti\)P\(t\_\{i\}\)is the total instantaneous power across all panels at timetit\_\{i\}\. Note that this calculation focuses on the ideal theoretical optical limit and doesn’t account for string\-level electrical mismatch losses\.

At each time step, the simulation traces direct optical vectors toward the absolute solar alignment state\. We treat each panel a single\-sided collector behind a flat transparent cover with refractive indexn2=2\.2n\_\{2\}=2\.2\(relative to air,n1=1\.0n\_\{1\}=1\.0\), matching the parameters ofBernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\]\. Equation \([3](https://arxiv.org/html/2605.16191#S2.E3)\) dictates the direct normal solar irradiance follows the true Air Mass attenuated solar variable:

Ilegacy=1488​W/m2×0\.7A​MI\_\{\\text\{legacy\}\}=1488\\,\\text\{W/m\}^\{2\}\\times 0\.7^\{AM\}\(3\)whereA​M=\(1/cos⁡θz\)0\.678AM=\(1/\\cos\\theta\_\{z\}\)^\{0\.678\}\. When unpolarized light strikes the interface of the panel at incidence angleθi\\theta\_\{i\}, Snell’s law dictates the transmitted angleθt\\theta\_\{t\}obeysn1​sin⁡θi=n2​sin⁡θtn\_\{1\}\\sin\\theta\_\{i\}=n\_\{2\}\\sin\\theta\_\{t\}, whereas the Fresnel equations give the magnitude of reflectanceRs,pR\_\{s,p\}for the polarizations\(s,p\)\(s,p\)and transmittanceTTas

Rs\\displaystyle R\_\{s\}=\(n1​cos⁡θi−n2​cos⁡θtn1​cos⁡θi\+n2​cos⁡θt\)2\\displaystyle=\\left\(\\frac\{n\_\{1\}\\cos\\theta\_\{i\}\-n\_\{2\}\\cos\\theta\_\{t\}\}\{n\_\{1\}\\cos\\theta\_\{i\}\+n\_\{2\}\\cos\\theta\_\{t\}\}\\right\)^\{2\}\(4\)Rp\\displaystyle R\_\{p\}=\(n1​cos⁡θt−n2​cos⁡θin1​cos⁡θt\+n2​cos⁡θi\)2\\displaystyle=\\left\(\\frac\{n\_\{1\}\\cos\\theta\_\{t\}\-n\_\{2\}\\cos\\theta\_\{i\}\}\{n\_\{1\}\\cos\\theta\_\{t\}\+n\_\{2\}\\cos\\theta\_\{i\}\}\\right\)^\{2\}\(5\)R\\displaystyle R=Rs\+Rp2\\displaystyle=\\frac\{R\_\{s\}\+R\_\{p\}\}\{2\}\(6\)T​\(θi\)\\displaystyle T\(\\theta\_\{i\}\)=1−R\\displaystyle=1\-R\(7\)Putting this together we can compute the unshadowed collected power as

Pk\(legacy\)=T​\(θi\)​Ilegacy​cos⁡θi⋅Anet,k⋅ηP\_\{k\}^\{\(\\text\{legacy\}\)\}=T\(\\theta\_\{i\}\)\\,I\_\{\\text\{legacy\}\}\\,\\cos\\theta\_\{i\}\\cdot A\_\{\\text\{net\},k\}\\cdot\\eta\(8\)whereη=0\.12\\eta=0\.12fixes total static legacy cell efficiencies natively\.

Bernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\]used this formalism to compute light curves of power versus time for different designs\. Figure[1](https://arxiv.org/html/2605.16191#S2.F1)reproduces these results, comparing the response of the flat plate to that of the cube\.

![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/pub_fig1_unified.png)Figure 1:Unified comparative light curves across baseline and optimized geometries under True Legacy physics, including the flat panels and open cube design fromBernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\], as well as the optimal designs we develop in this paper: these include High Table, Tilted Sawtooth, Open South Cavity, and Tilted Waffle\.
## 3Empirical Research Assistance Tree Search

Our goal is to find designs that beat these initial ideas, using an LLM\-guided tree search\. Empirical Research Assistance \(ERA\) is an LLM\-driven tree search system designed to optimize code\-based scientific problemsAygün et al\. \[[2025](https://arxiv.org/html/2605.16191#bib.bib1)\]\. Unlike classical evolutionary algorithms that mutate parameter vectors, ERA operates directly on*source code*: a large language model reads a candidate program, analyzes its performance, and proposes a modified version aimed at improving the objective\. This makes ERA naturally suited to combinatorial design problems where the search space is defined by the geometry\-generating code rather than a fixed\-dimensional parameter vector\.

We set up an ERA prompt that sets up the problem and asks the LLM to generate the geometry of the design\. The design is then scored by calculating total daily solar yield using the physics simulator\. In particular, we prompt the LLM to implement the following function:

defgenerate\_geometry\(params:dict\)\-\>str:

"""

Generatesthestringcontentsdefininga3Dsolarcellmeshgeometry\.

Args:

params:Dictionaryofconfigurablegeometrichyperparameterstotune\.

Returns:

Aformattedstringcomplyingwiththesolar3dcustomshapedescriptorformat\.

Formatrule:

\-ReturnONLYasequenceoffloating\-pointnumbers\.

\-DONOTprefixthegeometrystringwiththenumberoftriangles\!Theevaluatorwillautomaticallydetectthetrianglecount\.

\-Eachtriangleisdefinedbyexactly9floatsspace\-separateddefiningthe3vertices\(x,y,z\):"x1y1z1x2y2z2x3y3z3"

\-Thetrianglescanbeseparatedbyspacesornewlines\.

\-ImportantSecurityRule:ALLcoordinatesMUSTstrictlyresidewithintheboundingbox:X\[0\.0,20\.0\],Y\[0\.0,20\.0\],Z\[0\.0,20\.0\]\.Theevaluatorwillstrictlyenforcethisandreturn0\.0kWhifanycoordinatesareviolated\.

"""

pass

We score this function using the same physics simulator asBernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\], with minor errors corrected as outlined above\. Additionally, when we carry out our optimization we impose constraints: a natural constraint is to fix the total area of the solar cells as this correlates strongly with cost\. We consider three different area constraints: allowing the 3DPV to have an area of 3 or 5×\\timesthat of the initial flat collector, as well as a more unconstrained design allowing an area of up to 20×\\timesthe initial collector\. We emphasize that a strength of this method is its flexibility: it is straightforward to modify the simulator for other models, such as angle\-dependent reflectance from nanotextured coatings, diffuse irradiance and so forth, and equally straightforward to modify the constraints\.

## 4Discovering and Attenuating Algorithmic Exploits

Our initial LLM guided tree search runs produced extremely high scores, but did so by identifying strategies that violate the laws of physics\. The exploits include structurally levitating disconnected tiers and exploiting the discreteness of the optics simulator\. To address this we adopted a workflow whereby we iteratively run tree search with a given scoring function; analyze the resulting solutions and determine whether they violate physical constraints, and then update the scoring function or potentially the physics simulator to address these constraints \(Figure[2](https://arxiv.org/html/2605.16191#S4.F2)\)\. We used Antigravity to uncover these violations and suggest updates to the scoring function\. In what follows we describe each of the exploits in turn and the solution\.

Workflow for Eliminating Reward Hacking1\.ERA proposes geometries\.ERA explores non\-intuitive, complex structural arrangements specifically optimized to challenge integration edge cases across the continuous domain\.2\.Fresnel Simulator evaluates bounds\.We simulate the physics for proposed geometries to evaluate their performance\.3\.Detect Reward Hacking\.Antigravity \(together with human expert driving the search\) examines outputs to separate genuine improvements from those that violate the laws of physics\.4\.Antigravity Coding Agent writes Python patches\.Rewrite either the physics simulator or employ constraints to disallow reward hacking\.5\.Repeat\.Relaunch an ERA search, aiming to find novel solutions that are more realistic\.

Figure 2:An iterative framework for eliminating reward hacking, by improving scoring functions to find physically realistic, optimal solutions\.### 4\.1Exploit 1: Levitating Structures

Our initial search found excellent solutions about 4x more efficient than the flat plate design\. Yet, these designs required suspending several of the panels within the three dimensional volume without a physical anchor \(Figure[3](https://arxiv.org/html/2605.16191#S4.F3)\)\. The design increases efficiency by allowing dispersed light vectors to pass below the levitated plates \(Figure[4](https://arxiv.org/html/2605.16191#S4.F4)\) for some range of angles, thus increasing overall collection efficiency\.

![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/learning_curve_251867356_annotated.png)
![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/geometry_floating_exploit_beautiful.png)

Figure 3:Milestone 1 exploit analysis: \(a\) Algorithmic search progression discovering the design that both increases efficiency but also violates the laws of physics\. \(b\) Optimal state attained by Candidate 104\. Physical panels levitate completely unsupported in mid\-air \(Z≈10\.0Z\\approx 10\.0m\) to bypass shading interactions\.Antigravity identified this exploit, and proposed an update to the scoring function to eliminate it\. The idea is to use a graph\-theoretic Breadth\-First Search \(BFS\) that dynamically scales and integer\-hashes each vertex\. The BFS algorithm seeds its traversal queue strictly with ground\-anchored triangles and traverses the array across shared vertices\. If the final count of connected panels does not equal the total array count, the structure contains orphaned or levitating components and is strongly penalized\.

![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/exploit1_levitating.png)Figure 4:Dispersed light vectors slipping continuously below levitated surface plates\.
### 4\.2Exploit 2: Exploiting discretization in the optics solver

With the geometric exploit patched, ERA again found high\-scoring solutions, this time composed of submillimeter slivers and stacked overlapping panels\)\. Yet on closer examination this high score also arose due to an exploit: This time ERA exploited the discrete nature of the numerical ray\-tracer, and generated degenerate sub\-millimeter slivers and stacked overlapping panels to intercept light multiple times without registering physical occlusions\. The optimizer discovered that physical ray\-tracing happens at discrete intervals; creating compressed sub\-millimeter inter\-panel gaps caused the simulator’s floating\-point checking mechanism to fail to register solid boundaries, thereby allowing optical rays to bypass solid material without rendering shadows\. Modulating structural boundaries onto microscopic elements enabled unattenuated light passages directly down beneath the intersection detection updates\.

## 5The Optimal Designs

Having fixed attempts to reward hack the physics simulator, we transitioned to using ERA to discover new designs\. We carried out an ERA search using different sets of constraint: restricting the area of the surfaces to at most3×3\\timesthat of a flat plate; restricting the surface area to5×5\\timesthe flat plate\. The latter corresponds to the Open Cube design fromBernardi et al\. \[[2012](https://arxiv.org/html/2605.16191#bib.bib2)\]\. Finally we considered a less constrained optimization that let the area go up to20×20\\timesthe flat plate\.

### 5\.1Optimizing with a3×3\\timesConstraint

We begin by carrying out the ERA tree search assuming the total area of the active collectors must not exceed three times the area of the flat base footprint \(≤3​s2\\leq 3s^\{2\}\)\. The progression of the optimization is shown in Figure[5\(a\)](https://arxiv.org/html/2605.16191#S5.F5.sf1), which illustrates the evolutionary learning curve\. Over the course of the search, the algorithm achieved several sequential breakthroughs, iteratively refining the structure’s geometry to maximize diurnal solar yield\.

![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/learning_curve_annotated.png)\(a\)
![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/geometry_legacy_20tri_beautiful.png)\(b\)
![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/geometry_legacy_cand85_beautiful.png)\(c\)

Figure 5:Structural optimization renderings under strict 3×\\timesfootprint area constraints: \(a\) Evolutionary learning curve showing the optimization breakthroughs leading to the best candidate \(Number 188\)\. \(b\) Structure of the best candidate, a High Table configuration \(2011\.8​mW⋅h2011\.8\\,\\mathrm\{mW\}\{\\cdot\}\\mathrm\{h\}\)\. \(c\) An intermediate best candidate \(Number 85\) with a M\-Shape/Tilted Sawtooth configuration \(1837\.8​mW⋅h1837\.8\\,\\mathrm\{mW\}\{\\cdot\}\\mathrm\{h\}\)\.The best solution from the search occurred at node 188 out of 200 nodes, an optimized 20\-triangle “High\-Table” architecture, arranging its surfaces into parallel East and West vertical walls, connected by a horizontal top roof\. Crucially, the design leaves the North and South faces open, satisfying the total surface area constraint and allowing light to penetrate\. As the search proceeds a number of creative designs were invented\. As one example, an intermediate best candidate \(number 85\) has the shape of a Tilted Sawtooth\. This solution adapts to the summer solstice solar track by using an asymmetric M\-shaped corrugated roof tilted towards the South \(Figure[5](https://arxiv.org/html/2605.16191#S5.F5)\) to maximize oblique direct photon capture while retaining vertical East\-West walls\. \.

Under the patched physics model, Candidate 188 yields2011\.8​mW⋅h2011\.8\\,\\mathrm\{mW\}\{\\cdot\}\\mathrm\{h\}of total daily energy and175\.6​mW175\.6\\,\\mathrm\{mW\}of peak power, whereas Candidate 85 achieves1837\.8​mW⋅h1837\.8\\,\\mathrm\{mW\}\{\\cdot\}\\mathrm\{h\}of energy and168\.5​mW168\.5\\,\\mathrm\{mW\}of peak power\. The diurnal power curves for compared to the Flat Panel and Open Cube geometries are detailed in Figure[1](https://arxiv.org/html/2605.16191#S2.F1)\. In comparison, the standard Open Cube baseline—with five fully active faces \(bottom floor \+ 4 vertical walls\)—has a total surface area of5​s25s^\{2\}\. Despite this material deficit, Candidate 188 not only satisfies the strict area limitation but also captures88\.8%88\.8\\%of the absolute energy production of the unconstrained Open Cube \(2265\.3​mW⋅h2265\.3\\,\\mathrm\{mW\}\{\\cdot\}\\mathrm\{h\}\) while using40%40\\%less material\. This highlights the exceptional efficiency of the High\-Table topology in trapping and harvesting incoming solar radiation while respecting the required bounds\.

### 5\.2Optimizing with a5×5\\timesConstraint

To contrast against standard unconstrained Open Cubes using an identical material basis, we relaxed the constraint to a5×5\\timesprimary base surface constraint\. The progression of the structured optimization campaign under this equal\-material limit is shown in Figure[6\(a\)](https://arxiv.org/html/2605.16191#S5.F6.sf1)\. Evaluation across 200 continuous generations reveals the sequential geometric breakthroughs that allowed the algorithm to progressively explore the design space and enhance the daily yield\.

![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/learning_curve_253550252_annotated.png)\(a\)
![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/geometry_cavity_fin_cand60.png)\(b\)

Figure 6:ERA search under the equal\-material 5×\\timessurface limit: \(a\) Breakthrough plot\. Over iterations the best candidate occurs at candidate 60\. \(b\) Three\-dimensional layout of Candidate 60\. The primary south\-directed open cavity optimizes collection from the southern arc, whereas the internal central partition intercepts lower\-elevation lateral rays\.This optimization yielded a South\-facing cavity structure featuring a central North\-South oriented divider \(presented in Figure[6\(b\)](https://arxiv.org/html/2605.16191#S5.F6.sf2)\)\. This solution circumvents symmetrical East\-West configurations to mitigate cosine fall\-off effects at mid\-day insolations\. The structure’s optimal static orientation utilizes the open south cavity for near\-zenith direct flux while deploying the central internal divider to capture non\-occluded direct irradiance at lower early morning and late afternoon solar elevation angles\. The solution achieves a maximum of209\.6​mW209\.6\\,\\mathrm\{mW\}peak power alongside2330\.5​mW⋅h2330\.5\\,\\mathrm\{mW\}\{\\cdot\}\\mathrm\{h\}of daily energy production, surpassing the performance of the Open Cube baseline by\+2\.9%\+2\.9\\%\. A temporal comparison \(Figure[1](https://arxiv.org/html/2605.16191#S2.F1)\) demonstrates the relative generation advantage uniquely acquired during lower elevation periods\. Table[1](https://arxiv.org/html/2605.16191#S6.T1)summarizes the integrated performance across constraint conditions\.

### 5\.3Unconstraining the optimization: The Tilted Waffle

While restricting the optimization to3×3\\timesand5×5\\timesfootprint limits proves that ERA can efficiently arrange panels to match or slightly exceed human\-designed volumetric configurations, we can push it further by expanding the material allowance\. When we expanded the structural complexity to 50 active panels, allowing surface area scaling up to a20×20\\timesfootprint cap, ERA discovered a tilted waffle architecture\.

The search explored a variety of designs, including 3D egg\-crates and tight accordion folds, ultimately finding a geometry deploys 11 vertical North\-South walls to trap lower\-elevation East\-West solar transit, and 13 East\-West partitions tilted exactly19∘19^\{\\circ\}South \(rendered in Figure[7\(b\)](https://arxiv.org/html/2605.16191#S5.F7.sf2)\)\. The19∘19^\{\\circ\}South tilt matches the summer solstice culmination in Boston \(42\.36∘42\.36^\{\\circ\}N\), tracking the solar zenith at noon\.

![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/learning_curve_253637877.png)\(a\)
![Refer to caption](https://arxiv.org/html/2605.16191v1/figures/geometry_waffle_cand108_beautiful.png)\(b\)

Figure 7:Less constrained ERA search, up to 20×\\timesfootprint\. The best candidate \(number 108\) has a “Tilted Waffle” structure: \(a\) Breakthrough plot, mapping the architectural transitions from accordion ridges to the ultimate Tilted Waffle\. \(b\) Rendering of the optimal solution\. North\-South walls remain vertical while East\-West partitions tilt South at19∘19^\{\\circ\}to track solar zenith\.This solution captures a peak power of205\.9​mW205\.9\\,\\mathrm\{mW\}and a total daily energy yield of2314\.1​mW⋅h2314\.1\\,\\mathrm\{mW\}\{\\cdot\}\\mathrm\{h\}\(2\.29×2\.29\\timesrelative gain\), the Open Cube\. Yet, surprisingly, it does not beat the 20\-panel Candidate 60 despite having quadruple the allowable surface area limit \(Figure[1](https://arxiv.org/html/2605.16191#S2.F1)\)\. This suggests a potential limit for spatial shadow management\. Scaling the structural grid to 50 panels forces inter\-partition spacing down to∼1\.75​mm\{\\sim\}1\.75\\,\\text\{mm\}, yielding extreme channel aspect ratios \(20:120:1\)\. This effectively collimates incoming rays and restricts light acceptance to a narrow window of only a few degrees, increasing the frequency of self\-shadowing during both peak solar elevation and lateral morning/afternoon transitions\.

## 6Conclusion

Subjecting classical macroscopic physics simulators to open\-ended algorithmic tree search illuminates both the presence of latent software vulnerabilities and the existence of hidden geometric optima\. Our initial unconstrained operations reliably uncovered non\-physical simulation states, including structurally levitating tiers, shadow\-evasion outside geographic bounds, and spatial sub\-millimeter tunneling\. By formally shielding the computational framework with graph\-theoretic structural checks, overlap penalties, and continuous geographic bounding, we successfully directed the LLM\-driven optimizer away from reward hacking and back into properly grounded, physically viable topologies\. The summary of results is shown in Table[1](https://arxiv.org/html/2605.16191#S6.T1)\.

Table 1:Summary of performance outputs established against physical area limits\.The ERA framework isolated highly competitive structural niches for different sets of constraints\. For each constraint, the algorithm mapped out a distinct hierarchy of architectures with high performance\. At a restricted3×3\\timesarea cap, Candidate 188 demonstrates that static geometry alone can recover nearly89%89\\%of the energy of an unconstrained5×5\\timesOpen Cube while using40%40\\%less material\. At the equal\-material5×5\\timesthreshold, Candidate 60’s asymmetric internal North\-South baffle outperforms the human\-designed Open Cube by\+2\.9%\+2\.9\\%, yielding2330\.5​mW⋅h2330\.5\\,\\mathrm\{mW\}\{\\cdot\}\\mathrm\{h\}\.

Finally, extending the optimization envelope to 50 panels and a20×20\\timesarea cap hinted at a physical ceiling \(the “tilted waffle”\)\. This design optimizes zenith capture via a customized19∘19^\{\\circ\}South tilt, but its daily energy yield \(2314\.1​mW⋅h2314\.1\\,\\mathrm\{mW\}\{\\cdot\}\\mathrm\{h\},2\.29×2\.29\\timesbaseline\) and peak power \(205\.9​mW205\.9\\,\\mathrm\{mW\}\) shows negative marginal returns when compared against the less dense Candidate 60\. This reveals a fundamental optical\-geometric trade\-off in dense 3DPV design: packing excessive active surfaces into a confined spatial volume achieves diminishing integrated yields due to compounding, unavoidable self\-shadowing at all solar elevation angles\. Collectively, these results demonstrate that combining coding agents with LLM\-driven tree search \(ERA\) provides a powerful platform for scientific discovery, capable of efficiently navigating complex physical constraints to propose novel, high\-efficiency hypotheses for engineering and materials design\.

## References

- Aygün et al\. \[2025\]E\. Aygün, A\. Belyaeva, G\. Comanici, M\. Coram, H\. Cui, J\. Garrison, R\. J\. A\. Kast, C\. Y\. McLean, P\. Norgaard, Z\. Shamsi, D\. Smalling, J\. Thompson, S\. Venugopalan, B\. P\. Williams, C\. He, S\. Martinson, M\. Plomecka, L\. Wei, Y\. Zhou, Q\.\-Z\. Zhu, M\. Abraham, E\. Brand, A\. Bulanova, J\. A\. Cardille, C\. Co, S\. Ellsworth, G\. Joseph, M\. Kane, R\. Krueger, J\. Kartiwa, D\. Liebling, J\.\-M\. Lueckmann, P\. Raccuglia, Xuefei, Wang, K\. Chou, J\. Manyika, Y\. Matias, J\. C\. Platt, L\. Dorfman, S\. Mourad, and M\. P\. Brenner\.An AI system to help scientists write expert\-level empirical software\.*Nature*, Sept\. 2025\.[10\.48550/arXiv\.2509\.06503](https://arxiv.org/doi.org/10.48550/arXiv.2509.06503)\.URL[http://arxiv\.org/abs/2509\.06503](http://arxiv.org/abs/2509.06503)\.arXiv:2509\.06503 \[cs\] version: 1\.
- Bernardi et al\. \[2012\]M\. Bernardi, N\. Ferralis, J\. H\. Wan, R\. Villalon, and J\. C\. Grossman\.Solar energy generation in three dimensions\.*Energy & Environmental Science*, 5\(5\):6880–6884, 2012\.
- Reda and Andreas \[2004\]I\. Reda and A\. Andreas\.Solar position algorithm for solar radiation applications\.*Solar energy*, 76\(5\):577–589, 2004\.

Similar Articles

Distribution-Aware Algorithm Design with LLM Agents

arXiv cs.AI

This paper introduces a framework for distribution-aware algorithm design where LLM agents learn to generate solver code specialized to target distributions, achieving high solution quality and significant speedups over standard solvers.

Structure-Induced Information for Rerooting Levin Tree Search

arXiv cs.AI

This paper proposes three rerooter designs for Levin Tree Search that leverage state-space structure and learned heuristics to improve search efficiency without explicit subgoal generation, achieving state-of-the-art online training efficiency.