java.lang.Object
org.maxicp.cp.examples.raw.magicsquare.MagicSquareVOLNS
The Magic Square problem.
CSPLib.
We solve the magic-square problem using LNS.
The magic-square problem is a ure feasibility problem but
we turn it into a minimization problem by adding a violation
for each sum row constraint measuring the gap from the target sum.
We follow the approach described in the paper:
Variable Objective Large Neighborhood Search:
A practical approach to solve over-constrained problems (ICTAI 2013, Pierre Schaus)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MagicSquareVOLNS
public MagicSquareVOLNS(int n)
-
-
Method Details
-
modelConstraints
public void modelConstraints() -
search
public void search() -
main
-