Commit 99ad63cf authored by Alexis Lebis's avatar Alexis Lebis

Adding 3 new test in K10 : verify utility

parent b96888f7
private static long SEED = 7;
private static Random RAND_KERNEL = new Random(SEED);
private static int DEFAULT_TOTAL_COURSE_BY_SEMESTER = 15;
private static int DEFAULT_TOTAL_KNOWLEDGE = 10;
private static int MAX_COURSES_BY_SEMESTER =2;
private final static int ECTS_OFFSET = 1;//between 1 and inf - used to increase MIN_ECTS_REQUIRED
public static int MIN_NB_K_PER_COURSE = 1;
public static int MIN_VAL_K_PER_COURSE = 10;
public static int MIN_NB_K_AS_PREREQUISITE = 0;
public static int MIN_VAL_K_AS_PREREQUISITE = CSDVPConfiguration.NON_EVAL;
public static int MIN_NB_SEMESTER_AVAILABLE = 1;
public static int MIN_NB_ECTS = CSDVPConfiguration.MIN_ECTS_VALUE;
public static int MIN_NB_OBJECTIVE = 2;
public static int MAX_NB_K_PER_COURSE = 4;
public static int MAX_VAL_K_PER_COURSE = 90;
public static int MAX_NB_K_AS_PREREQUISITE = 4;
public static int MAX_VAL_K_AS_PREREQUISITE = CSDVPConfiguration.MASTERED;
public static int MAX_NB_SEMESTER_AVAILABLE = 4;
public static int MAX_NB_ECTS = CSDVPConfiguration.MAX_ECTS_VALUE;
public static int[] SEMESTER_RANGE = {0,1,2,3,4,5};
courses([
[-1,[[]],[[]],[0,1,2,3,4,5,6,7,8,9],[0]],
[0,[[3,62]],[],[0,3,4],[2]],
[1,[[2,54],[9,84],[8,71]],[],[0,2,3],[3]],
[2,[[8,76],[6,10]],[],[0,1,3,4],[5]],
[3,[[5,11]],[],[1,2,3],[6]],
[4,[[5,39],[4,74],[6,89]],[],[0,4,5],[2]],
[5,[[5,10],[3,19],[6,67]],[[3,3],[2,1],[1,1]],[0,1,2,4],[2]],
[6,[[6,41],[0,74],[3,33],[2,54]],[[3,4]],[0,2,3,4],[6]],
[7,[[0,86],[2,61]],[[7,4]],[1,2],[2]],
[8,[[7,58]],[[6,4]],[2,3,4,5],[4]],
[9,[[8,85]],[[8,5],[1,1]],[1,3,4],[6]],
[10,[[3,90]],[[4,1]],[0,3],[3]],
[11,[[8,71],[9,35],[5,22],[6,52]],[],[1],[2]],
[12,[[1,72],[7,77]],[[2,3]],[0,3,4],[4]],
[13,[[0,65],[7,14]],[[5,1]],[1],[4]],
[14,[[6,40],[3,50],[9,10]],[[7,2],[6,4]],[0,4],[2]],
[15,[[0,90]],[[4,1]],[4,5],[5]],
[16,[[9,75],[3,72],[1,21]],[],[0,2],[3]],
[17,[[3,37],[9,19]],[[5,3]],[4,5],[3]],
[18,[[2,56]],[[0,1]],[3],[2]],
[19,[[0,69]],[],[1,3],[4]],
[20,[[2,81],[1,22],[6,29]],[[7,3],[4,5]],[0,1,2,3],[4]],
[21,[[9,59]],[[4,1]],[2,3,5],[4]],
[22,[[5,32],[3,56],[7,30],[9,59]],[[2,4],[7,5]],[0,1,4,5],[2]],
[23,[[4,58],[0,80],[9,48],[2,90]],[[4,5],[5,1],[6,3]],[0,3],[6]],
[24,[[1,27],[4,84]],[[5,5]],[0,1,2],[5]],
[25,[[3,68]],[[9,4],[0,3],[6,1]],[1],[4]],
[26,[[7,89],[9,76]],[[2,4],[4,5]],[0,1,3,4],[4]],
[27,[[6,73],[5,69]],[],[1,5],[5]],
[28,[[9,71]],[[4,3]],[1],[4]],
[29,[[4,39]],[[1,2]],[4],[6]],
[30,[[1,50]],[[6,1]],[4,5],[6]],
[31,[[6,43],[7,28],[2,11]],[[0,1]],[2,5],[3]],
[32,[[8,74],[2,18],[0,38],[6,74]],[[2,3]],[5],[5]],
[33,[[0,77]],[[1,2],[2,4],[3,1]],[2,5],[4]],
[34,[[6,76],[7,59],[1,47]],[[0,5],[5,2],[2,4]],[5],[5]],
[35,[[7,28],[2,57],[6,62]],[],[2,5],[4]],
[36,[[9,20],[0,73],[5,77],[6,63]],[[4,5],[1,5]],[2],[3]],
[37,[[5,24],[1,69],[9,44]],[[2,5],[7,3],[9,4]],[2],[2]],
[38,[[6,36],[8,84],[2,46],[0,23]],[],[5],[3]],
[39,[[3,38],[8,80]],[[8,2]],[5],[5]]
]).
minECTS(40).
nbSemester(10).
nbCourses(41).
nbCourseBySemester(2).
finalSkills(
[[8,4],[1,5]]
).
# STATUS
TODO
# With Decay time
# Without Decay time
# With Decay Sol
# Without Decay Sol
private static long SEED = 7;
private static Random RAND_KERNEL = new Random(SEED);
private static int DEFAULT_TOTAL_COURSE_BY_SEMESTER = 20;
private static int DEFAULT_TOTAL_KNOWLEDGE = 10;
private static int MAX_COURSES_BY_SEMESTER =2;
private final static int ECTS_OFFSET = 1;//between 1 and inf - used to increase MIN_ECTS_REQUIRED
public static int MIN_NB_K_PER_COURSE = 1;
public static int MIN_VAL_K_PER_COURSE = 10;
public static int MIN_NB_K_AS_PREREQUISITE = 0;
public static int MIN_VAL_K_AS_PREREQUISITE = CSDVPConfiguration.NON_EVAL;
public static int MIN_NB_SEMESTER_AVAILABLE = 1;
public static int MIN_NB_ECTS = CSDVPConfiguration.MIN_ECTS_VALUE;
public static int MIN_NB_OBJECTIVE = 2;
public static int MAX_NB_K_PER_COURSE = 4;
public static int MAX_VAL_K_PER_COURSE = 90;
public static int MAX_NB_K_AS_PREREQUISITE = 4;
public static int MAX_VAL_K_AS_PREREQUISITE = CSDVPConfiguration.MASTERED;
public static int MAX_NB_SEMESTER_AVAILABLE = 4;
public static int MAX_NB_ECTS = CSDVPConfiguration.MAX_ECTS_VALUE;
public static int[] SEMESTER_RANGE = {0,1,2,3,4,5};
courses([
[-1,[[]],[[]],[0,1,2,3,4,5,6,7,8,9],[0]],
[0,[[6,55]],[[7,5],[1,1]],[0,3,4],[2]],
[1,[[4,72]],[[7,3]],[0,2,3],[3]],
[2,[[7,62],[9,49]],[[3,5]],[0,1,3,4],[4]],
[3,[[0,88],[1,33],[3,34],[7,69]],[[1,4],[3,3],[6,5]],[1,2,3],[4]],
[4,[[1,58]],[[2,4],[4,5]],[0,4,5],[3]],
[5,[[7,25],[5,81]],[],[0,1,2,4],[5]],
[6,[[2,83],[1,40],[4,25]],[[0,3],[9,1]],[0,2,3,4],[4]],
[7,[[2,65],[1,18],[8,84]],[[3,5]],[1,2],[3]],
[8,[[8,19],[9,88]],[[7,3],[4,4]],[2,3,4,5],[4]],
[9,[[5,28],[2,57]],[[7,5]],[1,3,4],[4]],
[10,[[5,11],[0,49],[3,39]],[],[0,3],[2]],
[11,[[4,32],[5,86],[1,35]],[[6,3],[9,4]],[1],[5]],
[12,[[8,26],[4,16],[2,17]],[[4,4]],[0,3,4],[4]],
[13,[[9,78],[1,52]],[[2,1]],[1],[6]],
[14,[[7,18],[1,76],[5,10]],[[2,5],[7,5]],[0,4],[3]],
[15,[[6,38],[3,46],[4,19]],[[7,5]],[4,5],[4]],
[16,[[6,11],[4,28],[3,54],[8,58]],[],[0,2],[6]],
[17,[[1,56]],[[9,4],[3,5],[5,3]],[4,5],[4]],
[18,[[3,81],[6,41],[4,54]],[[0,4],[1,3]],[3],[3]],
[19,[[3,57],[8,35],[0,84],[2,55]],[[5,1]],[1,3],[5]],
[20,[[2,56],[3,75],[5,34]],[],[0,1,2,3],[3]],
[21,[[9,83],[3,31]],[[2,5],[1,2],[6,3]],[2,3,5],[6]],
[22,[[6,20],[1,30],[8,82],[0,52]],[[4,1],[2,3]],[0,1,4,5],[6]],
[23,[[0,56]],[[4,2]],[0,3],[6]],
[24,[[1,83],[3,46],[4,22]],[[8,4],[2,1],[1,3]],[0,1,2],[2]],
[25,[[6,57]],[[5,3],[3,5]],[1],[3]],
[26,[[3,64]],[[3,4],[0,2],[5,2]],[0,1,3,4],[6]],
[27,[[9,46],[3,63],[6,45]],[[9,5]],[1,5],[5]],
[28,[[0,37],[7,36]],[],[0,5],[4]],
[29,[[2,17],[3,80]],[],[1],[3]],
[30,[[0,18],[5,41]],[[5,4]],[2,3,5],[2]],
[31,[[6,73],[4,87],[3,53],[7,31]],[],[1,3,4,5],[5]],
[32,[[3,69],[5,37],[8,53],[7,81]],[[2,1],[6,1],[9,2]],[0,1,2,4],[5]],
[33,[[6,58],[2,84],[4,44],[8,63]],[[5,4],[9,1]],[1,2],[3]],
[34,[[7,24],[2,57],[5,10],[3,73]],[],[1,2,3,5],[3]],
[35,[[2,54],[7,25],[3,62],[9,56]],[],[3],[4]],
[36,[[4,65]],[[1,3],[9,4],[5,2]],[4],[3]],
[37,[[2,90],[1,67],[9,62],[7,21]],[[7,2],[3,4],[5,2]],[0,4],[5]],
[38,[[2,29],[6,14]],[[3,2],[6,2],[2,3]],[4,5],[5]],
[39,[[0,53],[6,23],[7,66]],[[5,5]],[1,3,5],[5]],
[40,[[5,10],[9,49],[0,80]],[[9,1],[0,1]],[2,5],[6]],
[41,[[3,56],[4,40],[6,56]],[[1,3]],[0,2],[5]],
[42,[[3,63],[9,28]],[],[0,2,4,5],[6]],
[43,[[7,28],[4,29]],[],[5],[3]],
[44,[[1,87],[5,81],[3,56]],[[8,4],[7,4],[5,1]],[2,4,5],[2]],
[45,[[6,79]],[[1,1],[0,2]],[2,5],[5]],
[46,[[2,36]],[[6,5]],[5],[2]],
[47,[[5,16],[6,55]],[],[2,5],[5]]
]).
minECTS(40).
nbSemester(10).
nbCourses(49).
nbCourseBySemester(2).
finalSkills(
[[0,1],[3,2],[4,1],[9,2]]
).
# STATUS
TODO
# With Decay time
# Without Decay time
# With Decay Sol
# Without Decay Sol
private static long SEED = 7;
private static Random RAND_KERNEL = new Random(SEED);
private static int DEFAULT_TOTAL_COURSE_BY_SEMESTER = 30;
private static int DEFAULT_TOTAL_KNOWLEDGE = 10;
private static int MAX_COURSES_BY_SEMESTER =2;
private final static int ECTS_OFFSET = 1;//between 1 and inf - used to increase MIN_ECTS_REQUIRED
public static int MIN_NB_K_PER_COURSE = 1;
public static int MIN_VAL_K_PER_COURSE = 10;
public static int MIN_NB_K_AS_PREREQUISITE = 0;
public static int MIN_VAL_K_AS_PREREQUISITE = CSDVPConfiguration.NON_EVAL;
public static int MIN_NB_SEMESTER_AVAILABLE = 1;
public static int MIN_NB_ECTS = CSDVPConfiguration.MIN_ECTS_VALUE;
public static int MIN_NB_OBJECTIVE = 2;
public static int MAX_NB_K_PER_COURSE = 4;
public static int MAX_VAL_K_PER_COURSE = 90;
public static int MAX_NB_K_AS_PREREQUISITE = 4;
public static int MAX_VAL_K_AS_PREREQUISITE = CSDVPConfiguration.MASTERED;
public static int MAX_NB_SEMESTER_AVAILABLE = 4;
public static int MAX_NB_ECTS = CSDVPConfiguration.MAX_ECTS_VALUE;
public static int[] SEMESTER_RANGE = {0,1,2,3,4,5};
courses([
[-1,[[]],[[]],[0,1,2,3,4,5,6,7,8,9],[0]],
[0,[[8,76],[6,10]],[],[0,3,4],[5]],
[1,[[5,11]],[],[0,2,3],[6]],
[2,[[5,39],[4,74],[6,89]],[],[0,1,3,4],[2]],
[3,[[5,10],[3,19],[6,67]],[[3,3],[2,1],[1,1]],[1,2,3],[2]],
[4,[[6,41],[0,74],[3,33],[2,54]],[[3,4]],[0,4,5],[6]],
[5,[[0,86],[2,61]],[[7,4]],[0,1,2,4],[2]],
[6,[[7,58]],[[6,4]],[0,2,3,4],[4]],
[7,[[8,85]],[[8,5],[1,1]],[1,2],[6]],
[8,[[3,90]],[[4,1]],[2,3,4,5],[3]],
[9,[[8,71],[9,35],[5,22],[6,52]],[],[1,3,4],[2]],
[10,[[1,72],[7,77]],[[2,3]],[0,3],[4]],
[11,[[0,65],[7,14]],[[5,1]],[1],[4]],
[12,[[6,40],[3,50],[9,10]],[[7,2],[6,4]],[0,3,4],[2]],
[13,[[0,90]],[[4,1]],[1],[5]],
[14,[[9,75],[3,72],[1,21]],[],[0,4],[3]],
[15,[[3,37],[9,19]],[[5,3]],[4,5],[3]],
[16,[[2,56]],[[0,1]],[0,2],[2]],
[17,[[0,69]],[],[4,5],[4]],
[18,[[2,81],[1,22],[6,29]],[[7,3],[4,5]],[3],[4]],
[19,[[9,59]],[[4,1]],[1,3],[4]],
[20,[[5,32],[3,56],[7,30],[9,59]],[[2,4],[7,5]],[0,1,2,3],[2]],
[21,[[4,58],[0,80],[9,48],[2,90]],[[4,5],[5,1],[6,3]],[2,3,5],[6]],
[22,[[1,27],[4,84]],[[5,5]],[0,1,4,5],[5]],
[23,[[3,68]],[[9,4],[0,3],[6,1]],[0,3],[4]],
[24,[[7,89],[9,76]],[[2,4],[4,5]],[0,1,2],[4]],
[25,[[6,73],[5,69]],[],[1],[5]],
[26,[[9,71]],[[4,3]],[0,1,3,4],[4]],
[27,[[4,39]],[[1,2]],[1,5],[6]],
[28,[[1,50]],[[6,1]],[0,5],[6]],
[29,[[6,43],[7,28],[2,11]],[[0,1]],[1],[3]],
[30,[[8,74],[2,18],[0,38],[6,74]],[[2,3]],[2,3,5],[5]],
[31,[[0,77]],[[1,2],[2,4],[3,1]],[1,3,4,5],[4]],
[32,[[6,76],[7,59],[1,47]],[[0,5],[5,2],[2,4]],[0,1,2,4],[5]],
[33,[[7,28],[2,57],[6,62]],[],[1,2],[4]],
[34,[[9,20],[0,73],[5,77],[6,63]],[[4,5],[1,5]],[1,2,3,5],[3]],
[35,[[5,24],[1,69],[9,44]],[[2,5],[7,3],[9,4]],[3],[2]],
[36,[[6,36],[8,84],[2,46],[0,23]],[],[4],[3]],
[37,[[3,38],[8,80]],[[8,2]],[0,4],[5]],
[38,[[8,28],[1,69],[3,73]],[],[4,5],[3]],
[39,[[5,10],[1,53],[6,85],[4,51]],[[0,4]],[1,3,5],[2]],
[40,[[4,20],[6,38],[9,51]],[[1,1],[7,4]],[0,3],[5]],
[41,[[1,81],[5,43],[4,67]],[[6,3],[5,2],[7,2]],[1,3,4],[2]],
[42,[[5,42],[9,34],[4,53]],[[6,1],[5,2],[8,3]],[0,1,5],[3]],
[43,[[3,22],[1,32],[2,75],[7,47]],[[2,3]],[0,3],[5]],
[44,[[5,13],[7,86]],[[3,2]],[1],[2]],
[45,[[9,10],[3,25]],[[1,4]],[1,4],[5]],
[46,[[8,49],[6,66],[5,26],[3,44]],[[8,3],[2,1],[9,5]],[1,3,5],[2]],
[47,[[3,31],[6,40],[8,65],[1,73]],[[4,4],[2,5]],[0,1],[3]],
[48,[[8,65],[4,75],[0,52],[3,74]],[[9,1],[3,3]],[3,4],[4]],
[49,[[7,81]],[[2,4],[7,5]],[0,2,3],[3]],
[50,[[3,23]],[[2,3],[4,2],[1,3]],[0,1,2],[4]],
[51,[[7,23],[0,45],[1,74],[5,53]],[[5,1]],[2,5],[2]],
[52,[[3,66],[4,28],[0,89]],[],[2,3,4,5],[3]],
[53,[[1,58]],[[9,2],[0,1],[7,2]],[3],[5]],
[54,[[7,12],[1,81],[4,57],[5,24]],[[9,4],[2,1],[0,2]],[0,1,3],[4]],
[55,[[9,37],[7,31],[8,69],[3,52]],[],[0,2],[6]],
[56,[[8,43],[4,35],[7,52],[0,49]],[],[1,2,4,5],[2]],
[57,[[8,53],[5,57],[0,61],[2,37]],[[9,5],[8,3],[4,4]],[0,2,4,5],[4]],
[58,[[6,42],[9,35],[7,55],[8,28]],[[9,4]],[3,4],[3]],
[59,[[2,23]],[[9,1],[5,5],[4,3]],[1],[6]],
[60,[[9,67],[5,44],[7,19]],[[8,3],[7,1]],[0],[4]],
[61,[[3,56],[8,66],[1,20],[7,31]],[[3,4]],[5],[5]],
[62,[[6,14],[9,27],[5,61],[7,44]],[],[2,4,5],[4]],
[63,[[1,20]],[],[0,2,4],[5]],
[64,[[5,14],[4,76],[9,27],[6,26]],[[0,1],[9,1],[7,4]],[4],[4]],
[65,[[9,59]],[],[2,5],[2]],
[66,[[4,21],[5,10]],[[2,1]],[0,5],[3]],
[67,[[9,32],[3,65]],[],[5],[4]],
[68,[[5,39]],[[8,5],[4,1],[7,5]],[2,5],[2]],
[69,[[3,45]],[],[2],[6]],
[70,[[1,67],[4,49],[9,89]],[[2,4]],[4],[5]],
[71,[[5,73]],[],[2],[2]],
[72,[[9,10]],[[9,4],[6,3]],[2],[5]],
[73,[[8,39],[6,15],[0,83],[5,21]],[[3,5],[5,4]],[4,5],[4]],
[74,[[0,56],[8,56]],[[7,4],[9,4],[2,4]],[2,5],[4]],
[75,[[3,80]],[[8,2],[4,4]],[2],[5]],
[76,[[5,34],[6,72],[7,89]],[[2,3],[0,3]],[5],[4]],
[77,[[9,83]],[],[5],[2]],
[78,[[4,35],[0,67],[1,33],[5,28]],[[8,1]],[5],[5]]
]).
minECTS(40).
nbSemester(10).
nbCourses(80).
nbCourseBySemester(2).
finalSkills(
[[9,2],[5,5]]
).
# STATUS
TODO
# With Decay time
# Without Decay time
# With Decay Sol
# Without Decay Sol
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment