Class SocialGolfer


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

      • weeks

        int weeks
      • groups

        int groups
      • players

        int players
      • golferGroup

        SetVar[][] golferGroup
    • Constructor Detail

      • SocialGolfer

        public SocialGolfer()
    • Method Detail

      • main

        public static void main​(java.lang.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.