Skip to content
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

feat: add support for fairness constraints #918

Merged
merged 18 commits into from
Jul 8, 2024
Merged

Conversation

triceo
Copy link
Contributor

@triceo triceo commented Jun 25, 2024

This PR introduces fairness support. To that end, it:

  • Enables custom padding for concat().
  • Allows if(Not)Exists to be used with a stream.
  • Introduces a new CS building block complement().
  • Adds the fairness collector.
  • Introduces ConstraintVerifier capability to check for more/less penalties/rewards.

This PR is part of an ensemble:

TimefoldAI/timefold-solver-python#94
TimefoldAI/timefold-quickstarts#496

@triceo
Copy link
Contributor Author

triceo commented Jun 25, 2024

@lee-carlon The PR will continue evolving, but the docs part is probably already stable. Feedback is appreciated.

Copy link
Contributor

@lee-carlon lee-carlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@triceo I've added some minor language suggestions.

@triceo triceo added this to the v1.12.0 milestone Jun 27, 2024
@triceo triceo force-pushed the fairness2 branch 4 times, most recently from 3dc442f to 84e1136 Compare June 28, 2024 10:38
@triceo triceo marked this pull request as ready for review July 1, 2024 05:36
Copy link
Contributor

@Christopher-Chianelli Christopher-Chianelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic looks good; comments about naming and possible future methods

Copy link

sonarcloud bot commented Jul 8, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
68.3% Coverage on New Code (required ≥ 75%)
12.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@triceo triceo merged commit d07cfb2 into TimefoldAI:main Jul 8, 2024
23 of 24 checks passed
@triceo triceo deleted the fairness2 branch July 8, 2024 14:37
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.

None yet

3 participants