-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integer handling for feasible sets #83
Conversation
int lp_feasibility_set_is_point_int(const lp_feasibility_set_t* set) { | ||
long cnt = 0; | ||
for (size_t i = 0; i < set->size; ++i) { | ||
long tmp = lp_interval_count_int(set->intervals + i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering if we can check this without counting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Counting is more or less for free, as it is "just" one subtraction per interval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks
This PR adds support for query the number of integers in a feasible set.