KindAlien commited on
Commit
863e9ab
·
verified ·
1 Parent(s): 5198597

Update objective_engine.py

Browse files
Files changed (1) hide show
  1. objective_engine.py +10 -10
objective_engine.py CHANGED
@@ -24,17 +24,17 @@ class ObjectiveEngine:
24
  self.sections = sections
25
 
26
  self.weights = weights or {
27
- "subject_repetition": 10,
28
- "morning_core": 5,
29
- "late_heavy": 5,
30
- "faculty_gaps": 30,
31
- "student_gaps": 100,
32
- "isolated_afternoon": 100,
33
- "campus_movement": 3,
34
- "faculty_load_balance": 1,
35
  "no_first_hour_free": 0,
36
- "pack_morning": 50,
37
- "avoid_late_afternoon": 40
38
  }
39
 
40
  self.penalties: List[cp_model.IntVar] = []
 
24
  self.sections = sections
25
 
26
  self.weights = weights or {
27
+ "subject_repetition": 100,
28
+ "morning_core": 50,
29
+ "late_heavy": 50,
30
+ "faculty_gaps": 5000,
31
+ "student_gaps": 10000,
32
+ "isolated_afternoon": 1000,
33
+ "campus_movement": 30,
34
+ "faculty_load_balance": 10,
35
  "no_first_hour_free": 0,
36
+ "pack_morning": 200,
37
+ "avoid_late_afternoon": 200
38
  }
39
 
40
  self.penalties: List[cp_model.IntVar] = []