ExamplesJaCoP
Class SocialGolfer

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

public class SocialGolfer
extends Example

It is a Social Golfer example based on set variables.

Version:
3.0
Author:
Krzysztof Kuchcinski

Field Summary
 
Fields inherited from class ExamplesJaCoP.Example
cost, search, store, vars
 
Constructor Summary
SocialGolfer()
           
 
Method Summary
static void main(java.lang.String[] args)
          It runs a number of social golfer problems.
 void model()
          It specifies a standard way of modeling the problem.
 boolean search()
          It specifies simple search method based on input order and lexigraphical ordering of values.
 void setup(int weeks, int groups, int players)
          It sets the parameters for the model creation function.
 
Methods inherited from class ExamplesJaCoP.Example
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, 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

SocialGolfer

public SocialGolfer()
Method Detail

main

public static void main(java.lang.String[] args)
It runs a number of social golfer problems.

Parameters:
args -

setup

public void setup(int weeks,
                  int groups,
                  int players)
It sets the parameters for the model creation function.

Parameters:
weeks -
groups -
players -

model

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

Specified by:
model in class Example

search

public boolean search()
Description copied from class: Example
It specifies simple search method based on input order and lexigraphical ordering of values.

Overrides:
search in class Example
Returns:
true if there is a solution, false otherwise.