Permalink
Browse files

Student Sectioning Solver: Backtrack Selection

 - only accept improving neighbourhoods
    - with the new student weights, increasing number of assigned requests may not mean a better solution

git-svn-id: http://cpsolver.googlecode.com/svn/trunk@531 e5151b7e-cabb-5534-7ab8-ba89a8838d1f
  • Loading branch information...
1 parent 5cde7bf commit 173088f6f4ad533c01d418b03b28b1d09f03cf56 muller@unitime.org committed Apr 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/net/sf/cpsolver/studentsct/heuristics/selection/BacktrackSelection.java
@@ -73,7 +73,7 @@ public void init(Solver<Request, Enrollment> solver) {
Request request = iRequestIterator.next();
Progress.getInstance(solution.getModel()).incProgress();
Neighbour<Request, Enrollment> n = iRBtNSel.selectNeighbour(solution, request);
- if (n != null)
+ if (n != null && n.value() <= 0.0)
return n;
}
return null;

0 comments on commit 173088f

Please sign in to comment.