33import static ai .timefold .solver .core .config .heuristic .selector .entity .EntitySorterManner .DECREASING_DIFFICULTY ;
44import static ai .timefold .solver .core .config .heuristic .selector .entity .EntitySorterManner .DECREASING_DIFFICULTY_IF_AVAILABLE ;
55import static ai .timefold .solver .core .config .solver .PreviewFeature .DECLARATIVE_SHADOW_VARIABLES ;
6- import static ai .timefold .solver .core .config .solver .PreviewFeature .MIXED_MODEL ;
76import static org .assertj .core .api .Assertions .assertThat ;
87import static org .assertj .core .api .Assertions .assertThatCode ;
98import static org .assertj .core .api .Assertions .fail ;
@@ -1649,7 +1648,7 @@ void solveMixedModel() {
16491648 var solverConfig = PlannerTestUtils .buildSolverConfig (
16501649 TestdataMixedSolution .class , TestdataMixedEntity .class , TestdataMixedValue .class ,
16511650 TestdataMixedOtherValue .class )
1652- .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES , MIXED_MODEL )
1651+ .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES )
16531652 .withPhases (new ConstructionHeuristicPhaseConfig (),
16541653 new LocalSearchPhaseConfig ().withTerminationConfig (new TerminationConfig ().withStepCountLimit (16 )))
16551654 .withEasyScoreCalculatorClass (TestdataMixedEasyScoreCalculator .class );
@@ -1691,7 +1690,7 @@ void solveMixedModelCustomMove() {
16911690 var solverConfig = PlannerTestUtils .buildSolverConfig (
16921691 TestdataMixedSolution .class , TestdataMixedEntity .class , TestdataMixedValue .class ,
16931692 TestdataMixedOtherValue .class )
1694- .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES , MIXED_MODEL )
1693+ .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES )
16951694 .withPhases (new ConstructionHeuristicPhaseConfig (),
16961695 new LocalSearchPhaseConfig ()
16971696 .withMoveSelectorConfig (new MoveIteratorFactoryConfig ()
@@ -1713,7 +1712,7 @@ void solveMixedModelCustomPhase() {
17131712 var solverConfig = PlannerTestUtils .buildSolverConfig (
17141713 TestdataMixedSolution .class , TestdataMixedEntity .class , TestdataMixedValue .class ,
17151714 TestdataMixedOtherValue .class )
1716- .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES , MIXED_MODEL )
1715+ .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES )
17171716 .withPhases (new ConstructionHeuristicPhaseConfig (),
17181717 new CustomPhaseConfig ()
17191718 .withCustomPhaseCommands (new MixedCustomPhase ())
@@ -1744,7 +1743,7 @@ void solveMixedModelWithSortManner(Pair<EntitySorterManner, ValueSorterManner> s
17441743 var solverConfig = PlannerTestUtils .buildSolverConfig (
17451744 TestdataMixedSolution .class , TestdataMixedEntity .class , TestdataMixedValue .class ,
17461745 TestdataMixedOtherValue .class )
1747- .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES , MIXED_MODEL )
1746+ .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES )
17481747 .withPhases (new ConstructionHeuristicPhaseConfig (),
17491748 new LocalSearchPhaseConfig ()
17501749 .withMoveSelectorConfig (
@@ -1775,7 +1774,7 @@ void solvePinnedMixedModel() {
17751774 var solverConfig = PlannerTestUtils .buildSolverConfig (
17761775 TestdataMixedSolution .class , TestdataMixedEntity .class , TestdataMixedValue .class ,
17771776 TestdataMixedOtherValue .class )
1778- .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES , MIXED_MODEL )
1777+ .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES )
17791778 .withPhases (new ConstructionHeuristicPhaseConfig ())
17801779 .withEasyScoreCalculatorClass (TestdataMixedEasyScoreCalculator .class );
17811780
@@ -1794,7 +1793,6 @@ void solvePinnedMixedModel() {
17941793 void solveUnassignedMixedModel () {
17951794 var solverConfig = PlannerTestUtils .buildSolverConfig (
17961795 TestdataUnassignedMixedSolution .class , TestdataUnassignedMixedEntity .class )
1797- .withPreviewFeature (MIXED_MODEL )
17981796 .withPhases (new ConstructionHeuristicPhaseConfig (),
17991797 new LocalSearchPhaseConfig ().withTerminationConfig (new TerminationConfig ().withStepCountLimit (16 )))
18001798 .withEasyScoreCalculatorClass (TestdataUnassignedMixedEasyScoreCalculator .class );
@@ -1821,7 +1819,6 @@ void solveUnassignedMixedModel() {
18211819 void solvePinnedAndUnassignedMixedModel () {
18221820 var solverConfig = PlannerTestUtils .buildSolverConfig (
18231821 TestdataUnassignedMixedSolution .class , TestdataUnassignedMixedEntity .class )
1824- .withPreviewFeature (MIXED_MODEL )
18251822 .withPhases (new ConstructionHeuristicPhaseConfig (),
18261823 new LocalSearchPhaseConfig ().withTerminationConfig (new TerminationConfig ().withStepCountLimit (16 )))
18271824 .withEasyScoreCalculatorClass (TestdataUnassignedMixedEasyScoreCalculator .class );
@@ -1884,7 +1881,7 @@ void solveCustomConfigMixedModel() {
18841881 var solverConfig = PlannerTestUtils .buildSolverConfig (
18851882 TestdataMixedSolution .class , TestdataMixedEntity .class , TestdataMixedValue .class ,
18861883 TestdataMixedOtherValue .class )
1887- .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES , MIXED_MODEL )
1884+ .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES )
18881885 .withPhases (new ConstructionHeuristicPhaseConfig ()
18891886 .withEntityPlacerConfigList (valuePlacerConfig , entityPlacerConfig ),
18901887 new LocalSearchPhaseConfig ().withTerminationConfig (new TerminationConfig ().withStepCountLimit (16 )))
@@ -1946,7 +1943,7 @@ void solveMoveConfigMixedModel(MoveSelectorConfig moveSelectionConfig) {
19461943 var solverConfig = PlannerTestUtils .buildSolverConfig (
19471944 TestdataMixedSolution .class , TestdataMixedEntity .class , TestdataMixedValue .class ,
19481945 TestdataMixedOtherValue .class )
1949- .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES , MIXED_MODEL )
1946+ .withPreviewFeature (DECLARATIVE_SHADOW_VARIABLES )
19501947 .withPhases (new ConstructionHeuristicPhaseConfig (), localSearchConfig )
19511948 .withEasyScoreCalculatorClass (TestdataMixedEasyScoreCalculator .class );
19521949
@@ -2019,7 +2016,6 @@ void solveMultiEntityMoveConfigMixedModel(MoveSelectorConfig moveSelectionConfig
20192016 var solverConfig = PlannerTestUtils .buildSolverConfig (
20202017 TestdataMixedMultiEntitySolution .class , TestdataMixedMultiEntityFirstEntity .class ,
20212018 TestdataMixedMultiEntitySecondEntity .class )
2022- .withPreviewFeature (MIXED_MODEL )
20232019 .withPhases (constructionHeuristicConfig , localSearchConfig )
20242020 .withEasyScoreCalculatorClass (TestdataMixedEntityEasyScoreCalculator .class );
20252021
0 commit comments