Skip to content

Commit

Permalink
Change wt to be sum of border scores, not product
Browse files Browse the repository at this point in the history
  • Loading branch information
WPettersson committed Sep 10, 2019
1 parent 8fbf747 commit 9d0493f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SMTI/3_NOBIN_1STA_YESMERGED_MAXWT/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ int manlove(Allocation& allo, int mode){
}
}
}
int score = (allo.nbFamilies - j) * (allo.nbChildren - fam_pref);
int score = (allo.nbFamilies - j) + (allo.nbChildren - fam_pref);
objFun += score*isChildIAllocatedToFamilyJ[i][j][k];
}
}
Expand Down
2 changes: 1 addition & 1 deletion SMTI/4_YESBIN_1STA_YESMERGED_MAXWT/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ int manlove(Allocation& allo, int mode){
}
}
}
int score = (allo.nbFamilies - j) * (allo.nbChildren - fam_pref);
int score = (allo.nbFamilies - j) + (allo.nbChildren - fam_pref);
objFun += score*isChildIAllocatedToFamilyJ[i][j][k];
}
}
Expand Down

0 comments on commit 9d0493f

Please sign in to comment.