Skip to main content

solve

Function solve 

Source
pub fn solve(
    world: &mut LayoutWorld,
    constraints: &[Constraint],
    hard: &[HardConstraint],
    opts: &SolveOpts,
) -> SolveResult
Expand description

Minimize soft energy (+ AL hard terms) with Nelder–Mead; stop on pose drift.

Hard rows are grouped by HardConstraint lagrangian (lower = stronger). Each group is its own PHR loop; stronger groups are then held at al_rho_max so tether / contain cannot undo no-overlap.