From 3d68f7bff45038c5449676b6af537721fe28f1d8 Mon Sep 17 00:00:00 2001 From: PierpaoloSpadafora Date: Mon, 16 Dec 2024 12:58:22 +0100 Subject: [PATCH] fix --- Backend/src/main/java/unical/demacs/rdm/utils/Scheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Backend/src/main/java/unical/demacs/rdm/utils/Scheduler.java b/Backend/src/main/java/unical/demacs/rdm/utils/Scheduler.java index 71b2708..f52ec57 100644 --- a/Backend/src/main/java/unical/demacs/rdm/utils/Scheduler.java +++ b/Backend/src/main/java/unical/demacs/rdm/utils/Scheduler.java @@ -374,7 +374,7 @@ private SolverConfig createSolverConfig() { .withConstraintProviderClass(ScheduleConstraintProvider.class) .withTerminationConfig(new TerminationConfig() .withBestScoreLimit("0hard/*soft") - .withSecondsSpentLimit(120L)) + .withSecondsSpentLimit(SECONDS_SPENT_LIMIT)) .withPhases( new ConstructionHeuristicPhaseConfig() .withConstructionHeuristicType(ConstructionHeuristicType.FIRST_FIT_DECREASING),