Git Product home page Git Product logo

spencerkraisler / rcm-consensus-lie-group Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5 KB

This repo is an implementation of the algorithm from the paper Consensus on Lie groups for the Riemannian Center of Mass. This algorithm computes the Riemannian center of mass of a set of points in a distributed manner, generalizing the Euclidean average consensus dynamics.

Home Page: https://arxiv.org/abs/2308.08054

MATLAB 100.00%
consensus-algorithm distributed-computing distributed-optimization riemannian-geometry

rcm-consensus-lie-group's Introduction

RCM-Consensus-Lie-Group

This repo is an implementation of the algorithm from our paper Consensus on Lie groups for the Riemannian Center of Mass. This algorithm computes the Riemannian center of mass of a set of points in a distributed manner, generalizing the Euclidean average consensus dynamics.

Just run main.m.

ConsensusError.m is a function that computes the geodesic variance, aka consensus error, of a set of points under a graph on a manifold. RiemannianCenterOfMass.m computes the Riemannian center of mass of a set of points on a manifold. SSDFromPoint.m computes the sum of squared geodesic distances over a set of points from a target point. Lastly, main.m is the file that contains the algorithm. Run it, and it will plot the RCM error and consensus error over time. The number of agents is set to 10, the tolernace is set to $10^{-6}$, and the max time is set to 20 with $\Delta t=.1$. The manifold of choice is $\mathcal{M}=SO(5)$, however you can switch that out for any Lie group with bi-invariant metric you want.

Dependencies

These files require the matlab Manopt library to run. Follow the installation instructions, but the basic instructions are

  1. Download the MATLAB Manopt library
  2. Move the Manopt directory to your MATLAB directory
  3. In the MATLAB console, cd into the Manopt directory
  4. Type importmanopt in the MATLAB console

For any issues, please post an issue here, or contact me at kraisler(at)uw(dot)edu! I am always happy to help and explain anything!

rcm-consensus-lie-group's People

Contributors

spencerkraisler avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.