Minkowski optimization
Layout optimization using Minkowski differences, signed distance functions, and geometric constraints to handle shape placement and non-overlap in architectural design.
Built with JAX · Optax · NumPy · SciPy · Plotly · Streamlit · rhino3dm
Summary
This work applies Minkowski penalties, a method introduced by Jiří Minarčík, Sam Estep, Wode Ni and Keenan Crane (SIGGRAPH 2024 ↗). Two shapes A and B overlap exactly when the origin lies inside their Minkowski difference A ⊕ (−B). Its signed distance function, evaluated at the origin, therefore measures how far apart the shapes are, or how deeply they overlap. A penalty built from this distance is zero when a constraint holds and has a nonzero gradient whenever it is violated. It also works with automatic differentiation. The same construction expresses non-overlap, containment within a boundary, and exact padding. The constraints are enforced with an exterior-point method: the layout may start infeasible, and the penalty weight grows until every constraint holds.

