1# @ajax/tui-solver
23The Cassowary incremental simplex solver for linear constraints with strengths, ported from kasuari 0.4 (ratatui's).
45Part of the C port of [alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh)'s `mesh-top`, a
6terminal UI built with ratatui: these packages reproduce what ratatui and its Unicode crates compute,
7so a frame drawn in C is the same, cell for cell, as the Rust one.
89## Ported from
1011[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT)'s `mesh-top` uses it through ratatui; the C follows kasuari 0.4 (the Cassowary simplex solver ratatui uses): symbols, rows, the dual optimise, edit-free constraints, strengths.
1213## Tests
1415`tests/solver.c`; @ajax/tui-layout's 3000 random layouts exercise it end to end.
1617## Licence
1819MIT. See the repository's LICENSE.