Search in sources :

Example 11 with TerminationConfig

use of org.optaplanner.core.config.solver.termination.TerminationConfig in project kie-benchmarks by kiegroup.

the class TSPSubChainSwapMoveSelectorBenchmark method getTerminationConfig.

@Override
public TerminationConfig getTerminationConfig() {
    TerminationConfig terminationConfig = new TerminationConfig();
    terminationConfig.setTerminationClass(EasyTSPCalculateCountTermination.class);
    return terminationConfig;
}
Also used : TerminationConfig(org.optaplanner.core.config.solver.termination.TerminationConfig)

Example 12 with TerminationConfig

use of org.optaplanner.core.config.solver.termination.TerminationConfig in project kie-benchmarks by kiegroup.

the class AbstractCloudBalanceMoveSelectorBenchmark method getTerminationConfig.

@Override
public TerminationConfig getTerminationConfig() {
    TerminationConfig terminationConfig = new TerminationConfig();
    terminationConfig.setTerminationClass(CloudBalanceCalculateCountTermination.class);
    return terminationConfig;
}
Also used : TerminationConfig(org.optaplanner.core.config.solver.termination.TerminationConfig)

Example 13 with TerminationConfig

use of org.optaplanner.core.config.solver.termination.TerminationConfig in project kie-benchmarks by kiegroup.

the class VRPSubChainSwapMoveSelectorBenchmark method getTerminationConfig.

@Override
public TerminationConfig getTerminationConfig() {
    TerminationConfig terminationConfig = new TerminationConfig();
    terminationConfig.setTerminationClass(EasyVRPCalculateCountTermination.class);
    return terminationConfig;
}
Also used : TerminationConfig(org.optaplanner.core.config.solver.termination.TerminationConfig)

Example 14 with TerminationConfig

use of org.optaplanner.core.config.solver.termination.TerminationConfig in project kie-benchmarks by kiegroup.

the class AbstractVRPTWHeuristicBenchmark method getTerminationConfig.

@Override
public TerminationConfig getTerminationConfig() {
    TerminationConfig terminationConfig = new TerminationConfig();
    terminationConfig.setStepCountLimit(100);
    return terminationConfig;
}
Also used : TerminationConfig(org.optaplanner.core.config.solver.termination.TerminationConfig)

Example 15 with TerminationConfig

use of org.optaplanner.core.config.solver.termination.TerminationConfig in project kie-benchmarks by kiegroup.

the class AbstractVRPTWMoveSelectorBenchmark method getTerminationConfig.

@Override
public TerminationConfig getTerminationConfig() {
    TerminationConfig terminationConfig = new TerminationConfig();
    terminationConfig.setTerminationClass(EasyVRPCalculateCountTermination.class);
    return terminationConfig;
}
Also used : TerminationConfig(org.optaplanner.core.config.solver.termination.TerminationConfig)

Aggregations

TerminationConfig (org.optaplanner.core.config.solver.termination.TerminationConfig)32 SolverConfig (org.optaplanner.core.config.solver.SolverConfig)17 CounterfactualPrediction (org.kie.kogito.explainability.model.CounterfactualPrediction)10 Prediction (org.kie.kogito.explainability.model.Prediction)10 PredictionInput (org.kie.kogito.explainability.model.PredictionInput)10 PredictionOutput (org.kie.kogito.explainability.model.PredictionOutput)10 Feature (org.kie.kogito.explainability.model.Feature)9 Output (org.kie.kogito.explainability.model.Output)9 PredictionProvider (org.kie.kogito.explainability.model.PredictionProvider)9 LinkedList (java.util.LinkedList)7 Test (org.junit.jupiter.api.Test)7 CounterfactualEntity (org.kie.kogito.explainability.local.counterfactual.entities.CounterfactualEntity)6 Value (org.kie.kogito.explainability.model.Value)6 CounterfactualConfig (org.kie.kogito.explainability.local.counterfactual.CounterfactualConfig)5 CounterfactualExplainer (org.kie.kogito.explainability.local.counterfactual.CounterfactualExplainer)5 CounterfactualResult (org.kie.kogito.explainability.local.counterfactual.CounterfactualResult)5 LocalSearchPhaseConfig (org.optaplanner.core.config.localsearch.LocalSearchPhaseConfig)5 Random (java.util.Random)4 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)4 ScoreDirectorFactoryConfig (org.optaplanner.core.config.score.director.ScoreDirectorFactoryConfig)4