15 using namespace gtsam;
21 size_t nrFaculty = 4, nrTimeSlots = 3;
36 string faculty_in_A =
"1 0 0 1";
37 string faculty_in_C =
"0 0 1 0";
38 string faculty_in_H =
"0 0 0 1";
39 string faculty_in_M =
"0 1 0 0";
40 string faculty_in_P =
"1 0 1 0";
41 string available =
"1 1 1 0 1 1 1 1 0 1 1 1";
80 s.addFaculty(
"Frank");
81 s.addFaculty(
"Harvey");
82 s.addFaculty(
"Magnus");
83 s.addFaculty(
"Andrea");
91 s.addArea(
"Frank",
"AI");
92 s.addArea(
"Frank",
"PC");
93 s.addArea(
"Harvey",
"ME");
94 s.addArea(
"Magnus",
"CT");
95 s.addArea(
"Magnus",
"PC");
96 s.addArea(
"Andrea",
"AI");
97 s.addArea(
"Andrea",
"HR");
100 string available =
"1 1 1 0 1 1 1 1 0 1 1 1";
101 s.setAvailability(available);
104 s.addStudent(
"Akansel",
"AI",
"ME",
"PC",
"Andrea");
105 s.addStudent(
"Jake",
"HR",
"CT",
"AI",
"Harvey");
121 auto MPE =
s.optimize();
142 TEST(schedulingExample, smallFromFile) {
143 string path(TOPSRCDIR
"/gtsam_unstable/discrete/examples/");
147 s.addArea(
"Frank",
"AI");
148 s.addArea(
"Frank",
"PC");
149 s.addArea(
"Harvey",
"ME");
150 s.addArea(
"Magnus",
"CT");
151 s.addArea(
"Magnus",
"PC");
152 s.addArea(
"Andrea",
"AI");
153 s.addArea(
"Andrea",
"HR");
156 s.addStudent(
"Akansel",
"AI",
"ME",
"PC",
"Andrea");
157 s.addStudent(
"Jake",
"HR",
"CT",
"AI",
"Harvey");