Skip to content

fix: project starting_point into reduced space - #16

Open
stPhena wants to merge 1 commit into
pregnault:mainfrom
stPhena:fix/starting-point-dimensions
Open

fix: project starting_point into reduced space#16
stPhena wants to merge 1 commit into
pregnault:mainfrom
stPhena:fix/starting-point-dimensions

Conversation

@stPhena

@stPhena stPhena commented Aug 3, 2026

Copy link
Copy Markdown

Fixes the "Starting Point has to lie in the same dimension as the polytope P" error raised by rlim() whenever a starting_point is supplied together with a LIM containing equality constraints (lim$A/lim$B).
rlim() reduces the polytope via lim.redpol() before calling sample_points(), but was forwarding starting_point unchanged, in the original (unknowns) space, instead of projecting it into the reduced space via x0/Z. This patch adds that projection using MASS::ginv().

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