{
 "method": "Simulated annealing (C inner loop, Python driver) over the 45 variables (x,y,theta) with an energy = farthest-point radius from the origin + mu*sum of squared pairwise penetration depths (support-function depth over 96 sampled directions); moves: Gaussian shift, rotate, flip theta by pi, swap positions of two semicircles, reinsert one at random; geometric cooling of T and geometric growth of mu. Each final/best SA state is repaired with SLSQP minimising the container radius R under exact separating-line non-overlap constraints (one line per neighbouring pair, support functions of the half-disks) and exact containment (R^2 >= |c|^2+1+2*h(c)), analytic Jacobian. Scored with my own exact scorer and the official validate_and_score.",
 "official_valid": true,
 "official_score": "2.97206264",
 "official_score_full": 2.972062635479984,
 "reached_target": false,
 "target": "2.94853",
 "solution": [
  {
   "x": -1.031962,
   "y": 1.680501,
   "theta": 2.647302
  },
  {
   "x": 0.642382,
   "y": -1.008125,
   "theta": 1.78205
  },
  {
   "x": 0.425908,
   "y": -2.077286,
   "theta": 2.678564
  },
  {
   "x": -1.55875,
   "y": -2.324533,
   "theta": 0.9801
  },
  {
   "x": 0.512229,
   "y": -1.904377,
   "theta": 5.820157
  },
  {
   "x": -1.938746,
   "y": -0.360964,
   "theta": 3.856351
  },
  {
   "x": -1.737486,
   "y": 0.932831,
   "theta": 3.722074
  },
  {
   "x": 1.184131,
   "y": 1.576979,
   "theta": 1.460808
  },
  {
   "x": 0.672925,
   "y": 0.627354,
   "theta": 2.509845
  },
  {
   "x": -1.35749,
   "y": -1.030739,
   "theta": 0.714759
  },
  {
   "x": 1.893063,
   "y": 0.552579,
   "theta": 5.325813
  },
  {
   "x": 1.819432,
   "y": 0.500741,
   "theta": 2.18422
  },
  {
   "x": 2.439856,
   "y": -1.371224,
   "theta": 2.629575
  },
  {
   "x": 0.252393,
   "y": 1.955844,
   "theta": 2.647757
  },
  {
   "x": -0.408383,
   "y": 0.729715,
   "theta": 3.448162
  }
 ],
 "strict_radius": "2.97206234 (SLSQP container radius before 6-decimal rounding, zero-overlap constraints with margin 2e-8; after rounding the official scorer gives 2.97206264 and reports the configuration valid)",
 "scorer_check": {
  "cases": 280,
  "disagreements": 1,
  "max_radius_diff": 1.794564497004103e-12,
  "detail": "200 random pair cases + 50 near-touching pair cases (contact found by bisection, then offset by +-1e-7..1e-3), all after 6-decimal rounding, compared overlap decision (area > 1e-6) against official shapely 4096-point polygons; max |area diff| 1.9e-7 (official polygons are inscribed, so slightly smaller areas). The single disagreement is a borderline case: official area 9.9964e-07 vs exact 1.0014e-06 straddling the 1e-6 threshold. 30 random 15-semicircle configurations compared for the minimum enclosing circle radius: max diff 1.8e-12. Sample solution.json scores 3.5 in both."
 },
 "structure": "Best packing found (2.97206): no semicircles pair back-to-back into full disks (no two share a centre with opposite theta). There are three flat-on-flat sliding contacts where flat edges lie against each other but offset (pairs 2-4, 10-11, and 5-9 partially). Ring structure: 12 semicircles in an outer ring (centres at distance 1.70-2.80 from the container centre; 10 of them touch the container: 0,2,3,4,5,6,7,10,12,13), and 3 inner semicircles (1, 8, 14 at radii 0.84-1.20). Most outer-ring pieces turn their curved side outward (cos between curve direction and radial direction 0.3-0.86 for indices 0,4,5,6,7,10,13), while 3, 9 and 12 have the curved side pointing straight inward with the flat edge on the container (cos = -1.00). Pieces form a pinwheel-like chirality (flat edges roughly tangential in one rotational sense) but there is no exact rotational or mirror symmetry.",
 "runs": [
  {
   "strategy": "pure-Python SA prototype (energy = max far-distance + mu*sum depth^2, 64 sampled directions), 60k steps, then 3x SLSQP repair",
   "seeds": [
    1
   ],
   "minutes": 0.5,
   "best_radius": "3.04549869"
  },
  {
   "strategy": "C SA, 2M steps, T 0.05->1e-5, mu 5->1e5, random start; SLSQP repair (timing test)",
   "seeds": [
    1,
    2
   ],
   "minutes": 1.4,
   "best_radius": "3.00981702"
  },
  {
   "strategy": "A: C SA 10M steps, T 0.05->1e-5 geometric, mu 5->1e5, random start, SLSQP repair",
   "seeds": "100-108 (9 completed)",
   "minutes": 8.5,
   "best_radius": "2.97632492"
  },
  {
   "strategy": "B: C SA 10M steps, T 0.02->1e-6, mu 10->1e6, random start, SLSQP repair (seed 200 failed: no valid repair)",
   "seeds": "200-208 (9 run, 8 valid)",
   "minutes": 8.5,
   "best_radius": "2.99193004"
  },
  {
   "strategy": "C: low-temperature re-anneal from best of A/B (2.976325), 5M steps, T 0.004->1e-6, mu 200->1e6",
   "seeds": "300-318 (19 run, 18 valid)",
   "minutes": 8.1,
   "best_radius": "2.97632378"
  },
  {
   "strategy": "D: long slow fresh anneal, 30M steps, T 0.1->1e-6, mu 1->1e6",
   "seeds": "400-405 (6 run, 5 valid)",
   "minutes": 8.4,
   "best_radius": "2.97456539"
  },
  {
   "strategy": "E: medium-temperature re-anneal from best of D (2.974565), 8M steps, T 0.012->1e-6, mu 50->1e6",
   "seeds": "500-514 (15 run, 13 valid)",
   "minutes": 7.6,
   "best_radius": "2.97206264"
  },
  {
   "strategy": "F: very long fresh anneal, 45M steps, T 0.2->1e-6, mu 0.5->1e6",
   "seeds": "600-603",
   "minutes": 7.5,
   "best_radius": "2.97442192"
  },
  {
   "strategy": "tolerance polish: SLSQP with separating-line margin allowing penetration depth 1e-5..1.6e-4 (official 1e-6 area rule), from the best",
   "seeds": [],
   "minutes": 1.0,
   "best_radius": null
  }
 ],
 "scorer_source": "\"\"\"Own exact scorer for unit-semicircle packings.\nSemicircle (x,y,theta): unit disk centre (x,y), curved side towards theta.\n- overlap_area(a,b): exact intersection area (Green's theorem on clipped boundary pieces)\n- depth(a,b): penetration depth = max(0, min_n h_a(n)+h_b(-n)) (support functions)\n- mec(scs): exact minimum enclosing circle (Welzl on endpoints + refined arc points)\n- score(sol): round to 6 decimals, validate (area <= 1e-6), return (valid, radius)\n\"\"\"\nimport math, random\nimport numpy as np\n\nTWO_PI = 2 * math.pi\n\ndef _ang_in_arc(phi, th, tol=1e-12):\n    d = math.atan2(math.sin(phi - th), math.cos(phi - th))\n    return -math.pi / 2 - tol <= d <= math.pi / 2 + tol\n\ndef _inside(px, py, s, tol=1e-12):\n    x, y, th = s\n    dx, dy = px - x, py - y\n    return dx * dx + dy * dy <= 1 + tol and dx * math.cos(th) + dy * math.sin(th) >= -tol\n\ndef _pieces(s):\n    \"\"\"Boundary pieces CCW: ('arc', cx, cy, a1, a2) and ('seg', p, q).\"\"\"\n    x, y, th = s\n    a1, a2 = th - math.pi / 2, th + math.pi / 2\n    p = (x + math.cos(a2), y + math.sin(a2)); q = (x + math.cos(a1), y + math.sin(a1))\n    return [('arc', x, y, a1, a2), ('seg', p, q)]\n\ndef _circ_circ(c1, c2):\n    dx, dy = c2[0] - c1[0], c2[1] - c1[1]; d = math.hypot(dx, dy)\n    if d >= 2 or d < 1e-15: return []\n    h = math.sqrt(max(0.0, 1 - d * d / 4)); mx, my = (c1[0] + c2[0]) / 2, (c1[1] + c2[1]) / 2\n    return [(mx - h * dy / d, my + h * dx / d), (mx + h * dy / d, my - h * dx / d)]\n\ndef _circ_line(c, p, q):\n    dx, dy = q[0] - p[0], q[1] - p[1]; fx, fy = p[0] - c[0], p[1] - c[1]\n    A = dx * dx + dy * dy; B = 2 * (fx * dx + fy * dy); C = fx * fx + fy * fy - 1\n    D = B * B - 4 * A * C\n    if D < 0: return []\n    r = math.sqrt(D); out = []\n    for t in ((-B - r) / (2 * A), (-B + r) / (2 * A)):\n        if 0 <= t <= 1: out.append(t)\n    return out\n\ndef _seg_seg(p, q, r, s):\n    d = (q[0] - p[0]) * (s[1] - r[1]) - (q[1] - p[1]) * (s[0] - r[0])\n    if abs(d) < 1e-18: return []\n    t = ((r[0] - p[0]) * (s[1] - r[1]) - (r[1] - p[1]) * (s[0] - r[0])) / d\n    u = ((r[0] - p[0]) * (q[1] - p[1]) - (r[1] - p[1]) * (q[0] - p[0])) / d\n    return [t] if 0 <= t <= 1 and 0 <= u <= 1 else []\n\ndef _clip_integral(a, b):\n    \"\"\"Sum of (x dy - y dx)/2 over the parts of a's boundary lying inside b.\"\"\"\n    tot = 0.0\n    for pc in _pieces(a):\n        if pc[0] == 'arc':\n            _, cx, cy, a1, a2 = pc\n            cuts = [a1, a2]\n            others = []\n            bx, by, bth = b\n            for (ix, iy) in _circ_circ((cx, cy), (bx, by)):\n                others.append((ix, iy))\n            bp = _pieces(b)[1]\n            for t in _circ_line((cx, cy), bp[1], bp[2]):\n                others.append((bp[1][0] + t * (bp[2][0] - bp[1][0]), bp[1][1] + t * (bp[2][1] - bp[1][1])))\n            for (ix, iy) in others:\n                phi = math.atan2(iy - cy, ix - cx)\n                d = math.atan2(math.sin(phi - a1), math.cos(phi - a1)) % TWO_PI\n                if 0 < d < math.pi: cuts.append(a1 + d)\n            cuts.sort()\n            for u, v in zip(cuts[:-1], cuts[1:]):\n                if v - u < 1e-15: continue\n                m = (u + v) / 2\n                if _inside(cx + math.cos(m), cy + math.sin(m), b):\n                    tot += 0.5 * ((v - u) + cx * (math.sin(v) - math.sin(u)) - cy * (math.cos(v) - math.cos(u)))\n        else:\n            _, p, q = pc\n            ts = [0.0, 1.0]\n            bx, by, bth = b\n            for t in _circ_line((bx, by), p, q):\n                ix, iy = p[0] + t * (q[0] - p[0]), p[1] + t * (q[1] - p[1])\n                if _ang_in_arc(math.atan2(iy - by, ix - bx), bth): ts.append(t)\n            bp = _pieces(b)[1]\n            ts += _seg_seg(p, q, bp[1], bp[2])\n            ts.sort()\n            for u, v in zip(ts[:-1], ts[1:]):\n                if v - u < 1e-15: continue\n                m = (u + v) / 2\n                if _inside(p[0] + m * (q[0] - p[0]), p[1] + m * (q[1] - p[1]), b):\n                    P = (p[0] + u * (q[0] - p[0]), p[1] + u * (q[1] - p[1]))\n                    Q = (p[0] + v * (q[0] - p[0]), p[1] + v * (q[1] - p[1]))\n                    tot += 0.5 * (P[0] * Q[1] - P[1] * Q[0])\n    return tot\n\ndef overlap_area(a, b):\n    if math.hypot(a[0] - b[0], a[1] - b[1]) >= 2: return 0.0\n    return max(0.0, _clip_integral(a, b) + _clip_integral(b, a))\n\ndef support(s, nx, ny):\n    \"\"\"Support function of semicircle s in unit direction(s) n.\"\"\"\n    x, y, th = s\n    ux, uy = math.cos(th), math.sin(th)\n    nu = nx * ux + ny * uy; nv = -nx * uy + ny * ux\n    return x * nx + y * ny + np.where(nu >= 0, 1.0, np.abs(nv))\n\ndef depth(a, b, K=720):\n    \"\"\"Penetration depth (min over directions of h_a(n)+h_b(-n)), refined by golden search.\"\"\"\n    t = np.linspace(0, TWO_PI, K, endpoint=False)\n    f = lambda tt: support(a, np.cos(tt), np.sin(tt)) + support(b, -np.cos(tt), -np.sin(tt))\n    v = f(t); k = int(np.argmin(v)); lo, hi = t[k] - TWO_PI / K, t[k] + TWO_PI / K\n    g = (math.sqrt(5) - 1) / 2\n    for _ in range(60):\n        m1, m2 = hi - g * (hi - lo), lo + g * (hi - lo)\n        if f(np.array([m1]))[0] < f(np.array([m2]))[0]: hi = m2\n        else: lo = m1\n    return max(0.0, min(float(v[k]), float(f(np.array([(lo + hi) / 2]))[0])))\n\ndef _far_point(s, qx, qy):\n    x, y, th = s\n    c = [(x + math.cos(th - math.pi / 2), y + math.sin(th - math.pi / 2)),\n         (x + math.cos(th + math.pi / 2), y + math.sin(th + math.pi / 2))]\n    phi = math.atan2(y - qy, x - qx)\n    if (x - qx) ** 2 + (y - qy) ** 2 > 0 and _ang_in_arc(phi, th, 0):\n        c.append((x + math.cos(phi), y + math.sin(phi)))\n    return max(c, key=lambda p: (p[0] - qx) ** 2 + (p[1] - qy) ** 2)\n\ndef _c2(p, q): return ((p[0] + q[0]) / 2, (p[1] + q[1]) / 2, math.hypot(p[0] - q[0], p[1] - q[1]) / 2)\n\ndef _c3(a, b, c):\n    d = 2 * (a[0] * (b[1] - c[1]) + b[0] * (c[1] - a[1]) + c[0] * (a[1] - b[1]))\n    if abs(d) < 1e-14: return max([_c2(a, b), _c2(a, c), _c2(b, c)], key=lambda t: t[2])\n    A, B, C = a[0] ** 2 + a[1] ** 2, b[0] ** 2 + b[1] ** 2, c[0] ** 2 + c[1] ** 2\n    ux = (A * (b[1] - c[1]) + B * (c[1] - a[1]) + C * (a[1] - b[1])) / d\n    uy = (A * (c[0] - b[0]) + B * (a[0] - c[0]) + C * (b[0] - a[0])) / d\n    return (ux, uy, math.hypot(a[0] - ux, a[1] - uy))\n\ndef _welzl(pts):\n    pts = list(pts); random.Random(1).shuffle(pts)\n    inc = lambda c, p: math.hypot(p[0] - c[0], p[1] - c[1]) <= c[2] + 1e-12\n    c = (pts[0][0], pts[0][1], 0.0)\n    for i in range(len(pts)):\n        if not inc(c, pts[i]):\n            c = (pts[i][0], pts[i][1], 0.0)\n            for j in range(i):\n                if not inc(c, pts[j]):\n                    c = _c2(pts[i], pts[j])\n                    for k in range(j):\n                        if not inc(c, pts[k]): c = _c3(pts[i], pts[j], pts[k])\n    return c\n\ndef mec(scs):\n    pts = []\n    for (x, y, th) in scs:\n        for a in np.linspace(th - math.pi / 2, th + math.pi / 2, 33):\n            pts.append((x + math.cos(a), y + math.sin(a)))\n    c = _welzl(pts)\n    for _ in range(50):\n        new = [p for p in (_far_point(s, c[0], c[1]) for s in scs) if math.hypot(p[0] - c[0], p[1] - c[1]) > c[2] + 1e-13]\n        if not new: break\n        pts += new; c = _welzl(pts)\n    return c\n\ndef score(sol, tol=1e-6):\n    scs = [(round(float(d['x']), 6), round(float(d['y']), 6), round(float(d['theta']), 6)) for d in sol]\n    if len(scs) != 15: return False, None\n    for i in range(15):\n        for j in range(i + 1, 15):\n            if overlap_area(scs[i], scs[j]) > tol: return False, None\n    return True, mec(scs)[2]\n",
 "notes": "I did NOT reach the record. The best valid packing found by simulated annealing plus SLSQP repair has official score 2.97206264, 0.0235 above the leaderboard top of 2.94853 (taken from the brief; I did not verify it on the leaderboard). What worked: moving the SA inner loop to C (about 500k moves/s against about 2.4k/s in numpy), and the separating-line SLSQP repair, which reliably turns a near-feasible SA state into a valid packing with zero overlap; re-annealing from the best state at medium temperature (run E, T0=0.012) gave the only improvement after round 1 (2.97456 -> 2.97206). What did not work: low-temperature re-annealing (run C) only reconverged to the same local optimum (2.976324); very long single anneals (30-45M steps) did not beat shorter ones, so more seeds help more than longer schedules. About 45 minutes of search produced around 75 SA+repair runs with radii between 2.972 and 3.03. This is wide spread and no repeat of the best, so the landscape is highly multimodal and SA with this energy samples it too sparsely. Exploiting the official 1e-6 area tolerance failed here: SLSQP solutions that allowed penetration depth 1e-5 to 1.6e-4 were all rejected by the official scorer, because the packing has flat-on-flat contacts, where a 1e-6 area allows only about 5e-7 of penetration. In any case the gain would be about 1e-5 to 1e-4, far too small to close a 0.0235 gap; the record must have a different topology. Next to try: (1) structured starts with back-to-back pairs (7 disks + 1 or 6 disks + 3) and ring layouts (e.g. 3 inner + 12 outer, 4+11), with flat edges on the boundary; (2) SA at a fixed shrinking container radius with only a penalty energy, plus a short penalty-gradient (L-BFGS) quench after each SA run (basin-hopping style), which gives far more independent local optima per minute; (3) after a candidate reaches about 2.95, a per-contact tolerance polish only on arc-arc and arc-flat contacts (penetration about 8e-5 and 6e-5), keeping flat-flat contacts strict, then search the neighbouring 6-decimal roundings with the official scorer.",
 "plot": "Generated with the official visualization.plot_packing (saved locally as runs/plot.png in the scratch area; not delivered because only result.json and sources.json may be written)."
}