-
Notifications
You must be signed in to change notification settings - Fork 98
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
Conversation
@lee-carlon The PR will continue evolving, but the docs part is probably already stable. Feedback is appreciated. |
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.
@triceo I've added some minor language suggestions.
docs/src/modules/ROOT/pages/constraints-and-score/overview.adoc
Outdated
Show resolved
Hide resolved
docs/src/modules/ROOT/pages/constraints-and-score/score-calculation.adoc
Outdated
Show resolved
Hide resolved
docs/src/modules/ROOT/pages/constraints-and-score/score-calculation.adoc
Outdated
Show resolved
Hide resolved
docs/src/modules/ROOT/pages/constraints-and-score/score-calculation.adoc
Outdated
Show resolved
Hide resolved
docs/src/modules/ROOT/pages/constraints-and-score/score-calculation.adoc
Outdated
Show resolved
Hide resolved
docs/src/modules/ROOT/pages/constraints-and-score/load-balancing-and-fairness.adoc
Outdated
Show resolved
Hide resolved
docs/src/modules/ROOT/pages/constraints-and-score/load-balancing-and-fairness.adoc
Outdated
Show resolved
Hide resolved
docs/src/modules/ROOT/pages/constraints-and-score/load-balancing-and-fairness.adoc
Outdated
Show resolved
Hide resolved
docs/src/modules/ROOT/pages/constraints-and-score/load-balancing-and-fairness.adoc
Outdated
Show resolved
Hide resolved
docs/src/modules/ROOT/pages/constraints-and-score/load-balancing-and-fairness.adoc
Outdated
Show resolved
Hide resolved
3dc442f
to
84e1136
Compare
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.
Logic looks good; comments about naming and possible future methods
...java/ai/timefold/solver/core/impl/score/stream/bavet/uni/BavetConcatUniConstraintStream.java
Show resolved
Hide resolved
.../ai/timefold/solver/core/impl/score/stream/collector/bi/InnerBiConstraintCollectorsTest.java
Show resolved
Hide resolved
test/src/main/java/ai/timefold/solver/test/api/score/stream/SingleConstraintAssertion.java
Show resolved
Hide resolved
Co-authored-by: lee-carlon <lee@timefold.ai>
Quality Gate failedFailed conditions |
This PR introduces fairness support. To that end, it:
concat()
.if(Not)Exists
to be used with a stream.complement()
.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