Closed Hexuan-Meng closed 2 months ago
Sounds good! I see you've uploaded code to the branch backend-87&94
- if that code's done you can make a pull request into main
.
With Hexuan's commit (pull request #101), this issue is resolved and can be closed.
I noticed that the fitness does not improve along each generation, which is result from more labs being allocated than enough. The root cause is that
getCourseFromId(int id)
method inCourseTable
class returns the wrong course which does not match then given courseid
. It is not theid
th course in the fieldCourse[] courses
ofCourseTable
class. I fixed this error by searching through all courses and comparing the givenid
with the course id. This makes our algorithm works again. The fitness will increase along each generation. I'll push my code in a new branch I created later. Let me know if anything is wrong.