dart_mathopt 0.0.1-dev.1 copy "dart_mathopt: ^0.0.1-dev.1" to clipboard
dart_mathopt: ^0.0.1-dev.1 copied to clipboard

Mathematical optimization for Dart & Flutter (LP/MILP/QP) powered by HiGHS and Clarabel via Rust FFI.

0.0.1-dev.1 #

  • Preview release for pub.dev: LICENSE carries the full GPL-3.0 text with the commercial-license alternative (dart pub publish --dry-run clean).

  • Single entry point DartMathOpt.init(config:) with MathOptConfig presets.

  • Engine registries (Dart + Rust); MicroLP pure-Rust LP engine; anyhow context at the FFI boundary.

  • Compiled-request cache + per-constraint event-loop yields.

  • Natural operators (x + y, x * 3); vectorized builders; N-D indexed variables and grids; logical choice helpers.

  • Typed solutions (hasSolution/requireSolution); NaN math rejected pre-FFI (infinite bounds legal).

  • Web path: highs is now an optional cargo feature (default on); --no-default-features builds pure-Rust Clarabel + MicroLP to WASM, with auto falling back to MicroLP.

  • Showcase grows to 12 demos using all three engines: Farm Planning (MicroLP), Juice Blending (Clarabel), Project Funding (atMostOne) and Lecture Timetabling (exactlyOne grid) on HiGHS.

  • Unified console example.dart: usage-pattern recipes plus the catalog tour (tour/patterns args).

  • Microsecond engine timings (solve_time_us, additive FFI field) with exact adaptive display (µs/ms/s) in the showcase; shared catalog tour for both console entries.

  • Test-suite overhaul per testing skills: test/ mirrors lib/src/ by module, group() everywhere, Arrange-Act-Assert structure, new unit suites (options, logger, loader, exceptions, constraints, DTO contracts, lifecycle, init guard), 89.9% hand-written non-bridge coverage, and a real-solve integration_test/ flow for the example app (with solve() refusing uninitialized use via a clear error).

0
likes
160
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Mathematical optimization for Dart & Flutter (LP/MILP/QP) powered by HiGHS and Clarabel via Rust FFI.

Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

github.com
buymeacoffee.com
ipn.eg

License

GPL-3.0 (license)

Dependencies

collection, equatable, flutter_rust_bridge, freezed_annotation, logging, meta

More

Packages that depend on dart_mathopt

Packages that implement dart_mathopt