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: CH examines entity difficulty #1307

Open
rsynek opened this issue Jan 7, 2025 · 0 comments
Open

Feat: CH examines entity difficulty #1307

rsynek opened this issue Jan 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@rsynek
Copy link
Contributor

rsynek commented Jan 7, 2025

To use the FIRST_FIT_DECREASING CH, the model developer has to implement a DifficultyComparator, providing an estimate how difficult the entity is to plan.

That is easy when there is a clear demand for resources, like in the Cloud Computing example. Sometimes, the difficulty depends on how many specific resources (values) there are in the dataset.

Example: a shift that requires a rare skill is more difficult to plan than a shift that requires a common skill.

Sometimes, dependencies between entities impact the difficulty.

In these cases, the DifficultyComparator would have to introduce the logic of a subset of hard constraints.

Proposal: utilize all the constraints to assess entity's difficulty

  • before the CH phase, for each entity, try every single placement in an empty plan in an isolation (similarly to recommendations)
  • sum up the score impacts per entity across all its placements
  • the worse the sum is, the more difficult is the entity to plan, as there are fewer good options for its placement

Additionally, CH could replace the StrengthComparator by the same feature, in the same pass, by grouping the score impacts by values instead of by entities.

@rsynek rsynek added enhancement New feature or request process/needs triage Requires initial assessment of validity, priority etc. labels Jan 7, 2025
@triceo triceo removed the process/needs triage Requires initial assessment of validity, priority etc. label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants