public class PerfectSquare extends ExampleFD
Modifier and Type | Field and Description |
---|---|
static int |
problemNo
It specifies which of the pre-defined problems should be solved.
|
static int[][][] |
squares
The following table contains all the data for all problems instances.
|
Constructor and Description |
---|
PerfectSquare() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
It runs a perfect square problem.
|
void |
model()
It specifies a standard way of modeling the problem.
|
void |
modelBasic()
It specifies the model using mostly PrimitiveConstraints.
|
void |
modelGeost() |
String |
printLaTex(long runtime)
Enclose the output of this function inside a simple latex document like the one
below.
|
boolean |
search()
It specifies simple search method based on input order and lexigraphical
ordering of values.
|
static void |
test(String[] args)
It runs a perfect square problem.
|
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch
public static int problemNo
public static int[][][] squares
public static void test(String[] args)
args
- program parameters, the first one denotes the problem no to be solved.public static void main(String[] args)
args
- program parameters, the first one denotes the problem no to be solved.public void modelBasic()
public void model()
ExampleFD
public void modelGeost()
public boolean search()
ExampleFD
public String printLaTex(long runtime)
runtime
- it specifies the time required to find a solution.Copyright © 2015. All rights reserved.