Skip to content

Conversation

@DhruvTotala
Copy link

Description This PR fixes issue #47 where asking for a very low Effective Sample Size (ESS < 10) causes a segmentation fault in the underlying C++ library (volesti).

Changes :-

Added a validation check in PolytopeSampler.generate_steady_states() and get_polytope() to enforce ess >= 10.
Raises a clear ValueError if ess is too low, preventing the crash and informing the user about the minimum requirement to avoid numerical instability.

Verification :-

Created a reproduction script that attempts to run generate_steady_states(ess=5).
Verified that the segmentation fault is no longer triggered and that a ValueError is raised instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant