ExamplesJaCoP
Class Langford

java.lang.Object
  extended by ExamplesJaCoP.Example
      extended by ExamplesJaCoP.Langford

public class Langford
extends Example

It solves Langford problem.

Version:
3.0
Author:
Radoslaw Szymanek

Field Summary
 
Fields inherited from class ExamplesJaCoP.Example
cost, search, store, vars
 
Constructor Summary
Langford()
           
 
Method Summary
static void main(java.lang.String[] args)
          It executes the program to solve the Langford problem.
 void model()
          It specifies a standard way of modeling the problem.
 void modelBound()
          It uses BoundDomain for all variables.
 void modelDual()
          It uses the dual model.
static void test(java.lang.String[] args)
          It executes the program to solve the Langford problem.
 
Methods inherited from class ExamplesJaCoP.Example
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Langford

public Langford()
Method Detail

model

public void model()
Description copied from class: Example
It specifies a standard way of modeling the problem.

Specified by:
model in class Example

modelBound

public void modelBound()
It uses BoundDomain for all variables.


modelDual

public void modelDual()
It uses the dual model.


test

public static void test(java.lang.String[] args)
It executes the program to solve the Langford problem. It is possible to specify two parameters. If no parameter is used then default values for n and m are used.

Parameters:
args - the first parameter denotes n, the second parameter denotes m.

main

public static void main(java.lang.String[] args)
It executes the program to solve the Langford problem. It is possible to specify two parameters. If no parameter is used then default values for n and m are used.

Parameters:
args - the first parameter denotes n, the second parameter denotes m.