Tableau pour les temps partiels
This commit is contained in:
parent
31d98ee834
commit
a14e31f97d
2 changed files with 13 additions and 12 deletions
|
@ -158,11 +158,11 @@ public class ParametersInitialSchedules {
|
|||
|
||||
ValidDailySchedules validDailyPartTimeSchedules = new ValidDailySchedules(daysPerSchedule,
|
||||
4,
|
||||
6,
|
||||
8,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
7,
|
||||
7,
|
||||
14,
|
||||
6);
|
||||
|
||||
NbPartTimeSolutions = validDailyPartTimeSchedules.getNbSolutions();
|
||||
|
|
|
@ -5,6 +5,7 @@ import ScheduleUtil.SchedulesArray;
|
|||
import SchedulesRecovery.RecoveredSchedulesArray;
|
||||
import jdistlib.rng.MersenneTwister;
|
||||
import jdistlib.rng.RandomEngine;
|
||||
import org.chocosolver.solver.Solution;
|
||||
import org.chocosolver.solver.Solver;
|
||||
import org.chocosolver.solver.exception.ContradictionException;
|
||||
|
||||
|
@ -51,21 +52,21 @@ public class MainClass {
|
|||
solverInitialSchedules.showDashboard();
|
||||
/*solverInitialSchedules.setSearch(Search.domOverWDegSearch(myModelInitialSchedules.allWorkPeriods));*/
|
||||
// solverInitialSchedules.setRestartOnSolutions(); /*Sans restart, toutes les horaires sont identiques*/
|
||||
//solverInitialSchedules.limitSolution(5);
|
||||
solverInitialSchedules.limitSolution(5);
|
||||
//solverInitialSchedules.limitTime(10000);
|
||||
//List<Solution> myInitialSchedulesSolutions;
|
||||
//myInitialSchedulesSolutions = solverInitialSchedules.findAllOptimalSolutions
|
||||
// (myModelInitialSchedules.TotalEmployeesSalary, Model.MINIMIZE);
|
||||
List<Solution> myInitialSchedulesSolutions;
|
||||
/* myInitialSchedulesSolutions = solverInitialSchedules.findAllOptimalSolutions
|
||||
(myModelInitialSchedules.TotalEmployeesSalary, Model.MINIMIZE);*/
|
||||
|
||||
solverInitialSchedules.findSolution();
|
||||
//myInitialSchedulesSolutions = solverInitialSchedules.findAllSolutions();
|
||||
//solverInitialSchedules.findSolution();
|
||||
myInitialSchedulesSolutions = solverInitialSchedules.findAllSolutions();
|
||||
solverInitialSchedules.printStatistics();
|
||||
|
||||
// Création de l'objet banque d'horaire, qui est une liste d'objets de type InitialSchedulesArray, qui contiennent chacun deux tableaux.
|
||||
/*for (Solution CurrentSolution : myInitialSchedulesSolutions) {
|
||||
for (Solution CurrentSolution : myInitialSchedulesSolutions) {
|
||||
SchedulesArray isa = new SchedulesArray(myModelInitialSchedules, CurrentSolution);
|
||||
initialSchedulesArrayList.add(isa);
|
||||
}*/
|
||||
}
|
||||
|
||||
// Pour afficher les horaires initiales
|
||||
SchedulesWindows.ShowSchedulesFrame intialSchedulesViewer = new SchedulesWindows.ShowSchedulesFrame(initialSchedulesArrayList, "Initial Schedules");
|
||||
|
|
Loading…
Reference in a new issue