Count linear extensions via OrderPolytope volume approximation with optimized HMC oracles#478
Open
ChinmayRout9040895625 wants to merge 2 commits intoGeomScale:developfrom
Conversation
- Add S4 class for Spectrahedron representation - Implement volume computation methods (CB, SOB) with 4 random walk types - Implement uniform sampling from spectrahedra with RDHR, CDHR, HMC, BILLIARD walks - Add Rcpp wrappers for volume and sampling computations - Add helper functions for SDPA file loading and spectrahedron creation - Add comprehensive test suites for volume and sampling - Add Roxygen2 documentation for Spectrahedron class and methods This implements the core functionality for GSOC 2026 proposal: Spectrahedra R interface for volesti package.
vissarion
reviewed
Mar 30, 2026
Member
vissarion
left a comment
There was a problem hiding this comment.
Thanks for this PR.
Could you give more information? What is the volume algorithm you are using and what is the performance gain and with which inputs?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a new approximation algorithm for counting linear extensions of partial orders
through volume estimation of order polytopes, using the identity #LE(P) = n! × Vol(OrderPolytope(P)).
(1) Changes
Optimized HMC Boundary Oracles (orderpolytope.h)
structure for O(d + num_relations) instead of O(d × m)
NOMINMAXand_USE_MATH_DEFINESguards(2) New Files
examples/count-linear-extensions/— CLI tool comparing OrderPolytope vs HPolytope, with CMake and sample poset data files