Skip to content

Commit

Permalink
playing with symmetry breaking refs #27
Browse files Browse the repository at this point in the history
  • Loading branch information
phspo committed Apr 25, 2018
1 parent 8782fa4 commit 7a204e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ILPSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ long ILPSolver::solve(const ClusterEditingInstance& inst, ClusterEditingSolution
M.add(cluster_association >= 1);
}


//Naive symmetry breaking -> Simply force node with id 0 to be in cluster with id 0
M.add(y[0] == 1);

//Even more Constraints:
/** Those are adapted from Bulhões et al. 2017 (http://dx.doi.org/10.1016/j.dam.2016.10.026)
*
Expand Down

0 comments on commit 7a204e7

Please sign in to comment.