public class MagicSquares extends ExampleFD
Modifier and Type | Field and Description |
---|---|
ArrayList<Constraint> |
guidingShaving
It specifies the list of constraints which can be used for guiding shaving.
|
int |
number
It specifies the number
|
Constructor and Description |
---|
MagicSquares() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
It executes the program which solves the MagicSquare problem.
|
void |
model()
It specifies a standard way of modeling the problem.
|
void |
model4Shaving()
It creates the model with specification of what constraint can
help in guiding shaving.
|
void |
modelBound()
It specifies the model which uses only variables with BoundDomain.
|
void |
modelDual()
IT creates a dual model.
|
static void |
test(String[] args)
It executes the program which solves the MagicSquare problem using many different
model and searches.
|
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch
public int number
public ArrayList<Constraint> guidingShaving
public void model()
ExampleFD
public void modelBound()
public void model4Shaving()
public void modelDual()
public static void test(String[] args)
args
- the first argument allows to specify the size of magic square.public static void main(String[] args)
args
- the first argument allows to specify the size of magic square.Copyright © 2015. All rights reserved.