Class Langford

java.lang.Object
org.jacop.examples.fd.ExampleFD
org.jacop.examples.fd.Langford

public class Langford extends ExampleFD
It solves Langford problem.
Version:
4.8
  • Field Details

    • n

      public int n
    • m

      public int m
  • Constructor Details

    • Langford

      public Langford()
  • Method Details

    • model

      public void model()
      Description copied from class: ExampleFD
      It specifies a standard way of modeling the problem.
      Specified by:
      model in class ExampleFD
    • modelDual

      public void modelDual()
      It uses the dual model.
    • test

      public static void test(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(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.