Merge remote-tracking branch 'origin/sub_laptop_7' into sub_laptop_2

This commit is contained in:
2026-10-26 03:24:25 +09:00
3 changed files with 228 additions and 99 deletions
@@ -85,3 +85,15 @@ def test_wet_cone_pore_pressure_ratio():
groundwater={"mode": "ru", "ru": 0.4},
)
assert search(st, p).best["governing"] == pytest.approx(1.626, rel=0.03)
def test_workers_same_result():
"""프로세스 나눔 — 일꾼 수와 무관하게 셀별 최소 F · 전역 최소가 같음."""
st = _embankment(10 / np.tan(np.radians(30)), 19, 20, 8.64)
kw = dict(box=(-2, 10, -4, 4), h_min=4, h_max=20, spacing=2.0, coarse=2, max_depth=16)
kw.update(v_min=50, v_max=2e4, ratios=(1.0, 2.0))
one = search(st, SearchParams(workers=1, **kw))
two = search(st, SearchParams(workers=2, **kw))
np.testing.assert_array_equal(one.f_min, two.f_min)
assert one.best["governing"] == two.best["governing"]
assert one.evaluated == two.evaluated