File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
SMTI/3_NOBIN_1STA_YESMERGED_MAXWT Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,20 @@ int manlove(Allocation& allo, int mode){
8484
8585 model.update ();
8686
87+ for (int i = 0 ; i < allo.nbChildren ; i++){
88+ for (int j = 0 ; j<allo.children [i].nbPref ; j++){
89+ for (int k=0 ; k<allo.children [i].preferences [j].size ();k++){
90+ int idxFam = allo.children [i].preferences [j][k];
91+ int idxRank = allo.children [i].ranks [j][k];
92+ allocationOfChildI[i] += isChildIAllocatedToFamilyJ[i][j][k];
93+ allocationOfFamilyJ[idxFam] += isChildIAllocatedToFamilyJ[i][j][k];
94+ for (int l= idxRank; l < allo.families [idxFam].preferences .size (); l++){
95+ fillingOfFamilyJUpToRankK[idxFam][l] += isChildIAllocatedToFamilyJ[i][j][k];
96+ }
97+ }
98+ }
99+ }
100+
87101 // Perform values
88102 for (int i = 0 ; i < allo.nbChildren ; i++) {
89103 for (size_t j = 0 ; j < allo.children [i].nbPref ; ++j) {
You can’t perform that action at this time.
0 commit comments