Skip to main content

Factor graph solver

Project description

tiny-solver-rs

PyPI - Version PyPI - Python Version

Inspired by ceres-solver, tiny-solver, and minisam.

This is a general optimizer written in Rust, including bindings for Python. If you're familiar with ceres-solver or factor-graph optimizers, you'll find it very easy to use.

Installation

python

The python package can be installed directly from PyPI:

pip install tiny-solver

rust

cargo add tiny-solver

Current Features

  • Automatic Derivatives using num-dual
  • Sparse QR, Sparse Cholesky using faer
  • GaussNewtonOptimizer
  • Multithreading jacobian

TODO

  • LevenbergMarquardtOptimizer
  • information matrix
  • loss function
  • factor in python

Usage

Under development.

Example

python

git clone https://github.com/powei-lin/tiny-solver-rs.git
cd tiny-solver-rs
pip install tiny-solver matplotlib
python3 examples/python/m3500.py

rust

git clone https://github.com/powei-lin/tiny-solver-rs.git
cd tiny-solver-rs
cargo run -r --example m3500_benchmar

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

tiny_solver-0.3.3-cp38-abi3-manylinux_2_34_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.34+ x86-64

tiny_solver-0.3.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

tiny_solver-0.3.3-cp38-abi3-macosx_11_0_arm64.whl (514.6 kB view hashes)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page