Class SocialGolfer

java.lang.Object
org.jacop.examples.set.ExampleSet
org.jacop.examples.set.SocialGolfer

public class SocialGolfer extends ExampleSet
It is a Social Golfer example based on set variables.
Version:
4.8
  • Field Details

    • weeks

      int weeks
    • groups

      int groups
    • players

      int players
    • golferGroup

      SetVar[][] golferGroup
  • Constructor Details

    • SocialGolfer

      public SocialGolfer()
  • Method Details

    • main

      public static void main(String[] args)
      It runs a number of social golfer problems.
      Parameters:
      args - parameters (none)
    • setup

      public void setup(int weeks, int groups, int players)
      It sets the parameters for the model creation function.
      Parameters:
      weeks - how many weeks to play
      groups - how many groups will play
      players - how many players will play
    • model

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

      public boolean search()
      Description copied from class: ExampleSet
      It specifies simple search method based on input order and lexigraphical ordering of values.
      Overrides:
      search in class ExampleSet
      Returns:
      true if there is a solution, false otherwise.