Ajout de documentation
This commit is contained in:
parent
85bf8c0ca3
commit
75893ae424
2 changed files with 93 additions and 32 deletions
|
@ -123,15 +123,15 @@ public class ProductionHoraire {
|
|||
|
||||
// Constantes pour la contrainte du nombre minimum et maximum d'heures
|
||||
|
||||
IntVar IVMIN_H = model.intVar(MIN_H-1);
|
||||
IntVar IVMAX_H = model.intVar(MAX_H-1);
|
||||
IntVar MIN_H_TRAVAILLE = model.intVar(MIN_H-1);
|
||||
IntVar MAX_H_TRAVAILLE = model.intVar(MAX_H-1);
|
||||
|
||||
// Contrainte du motif d'horaire et du nombre minimum et maximum d'heures
|
||||
|
||||
for (Integer i=0; i<N; i++){
|
||||
model.regular(LignesE[i],FA).post();
|
||||
model.sum(LignesE[i], ">=", IVMIN_H).post();
|
||||
model.sum(LignesE[i], "<=", IVMAX_H).post();
|
||||
model.sum(LignesE[i], ">=", MIN_H_TRAVAILLE).post();
|
||||
model.sum(LignesE[i], "<=", MAX_H_TRAVAILLE).post();
|
||||
}
|
||||
|
||||
// Optimisation du nombre souhaité d'employés
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue