Spaces:
Sleeping
Sleeping
Update objective_engine.py
Browse files- 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":
|
| 28 |
-
"morning_core":
|
| 29 |
-
"late_heavy":
|
| 30 |
-
"faculty_gaps":
|
| 31 |
-
"student_gaps":
|
| 32 |
-
"isolated_afternoon":
|
| 33 |
-
"campus_movement":
|
| 34 |
-
"faculty_load_balance":
|
| 35 |
"no_first_hour_free": 0,
|
| 36 |
-
"pack_morning":
|
| 37 |
-
"avoid_late_afternoon":
|
| 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] = []
|