-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using the heuristic to optimise the objective function it was doing so in ignorance of the constraints. This add the ability to pass a `acceptance_criteria` to both heuristics which gives a bound on some measure. In practice it's used in `schedule.heuristic` when an objective function is passed. In this case it passes the violation counts as an `acceptance_criteria` to ensure that as each heuristic goes through the search space optimising the objective function it will only accept a solution if this does not add any constraint violations. TLDR: The modified tests show a good example of this. The objective function optimisation was giving a schedule that was in fact invalid. This has now been fixed.
- Loading branch information
1 parent
eecb0a2
commit 07bada3
Showing
6 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters