-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enable Nearby selection for Construction Heuristics (#767)
Refactors construction heuristics configuration in order to properly enable nearby selection. Introduces documentation for configuring nearby in CH. Also addresses some problems with the CI which were identified while working on this PR.
- Loading branch information
Showing
32 changed files
with
530 additions
and
375 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
17 changes: 17 additions & 0 deletions
17
...i/timefold/solver/core/config/heuristic/selector/move/NearbyAutoConfigurationEnabled.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package ai.timefold.solver.core.config.heuristic.selector.move; | ||
|
||
import java.util.Random; | ||
|
||
import ai.timefold.solver.core.impl.heuristic.selector.common.nearby.NearbyDistanceMeter; | ||
|
||
/** | ||
* For move selectors that support Nearby Selection autoconfiguration. | ||
*/ | ||
public interface NearbyAutoConfigurationEnabled<Config_ extends MoveSelectorConfig<Config_>> { | ||
|
||
/** | ||
* @return new instance with the Nearby Selection settings properly configured | ||
*/ | ||
Config_ enableNearbySelection(Class<? extends NearbyDistanceMeter<?, ?>> distanceMeter, Random random); | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...e/config/heuristic/selector/move/NearbyAutoConfigurationEnabledConstructionHeuristic.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package ai.timefold.solver.core.config.heuristic.selector.move; | ||
|
||
import java.util.Random; | ||
|
||
import ai.timefold.solver.core.impl.heuristic.selector.common.nearby.NearbyDistanceMeter; | ||
|
||
/** | ||
* For move selectors that support Nearby Selection autoconfiguration in construction heuristics. | ||
*/ | ||
public interface NearbyAutoConfigurationEnabledConstructionHeuristic<Config_ extends MoveSelectorConfig<Config_>> { | ||
|
||
/** | ||
* @return new instance with the Nearby Selection settings properly configured | ||
*/ | ||
Config_ enableNearbySelectionForConstructionHeuristic(Class<? extends NearbyDistanceMeter<?, ?>> distanceMeter, | ||
Random random, String recordingSelectorId); | ||
|
||
} |
Oops, something went wrong.