Cream version 1.06 Core API Specification

examples
Class Family

java.lang.Object
  extended by examples.Family

public class Family
extends Object

Example obtained from "Finite Domain Constraint Programming in Oz" Maria and Clara are both heads of households, and both families have three boys and three girls. Neither family includes any children closer in age than one year, and all children are under age 10. The youngest child in Maria's family is a girl, and Clara has just given birth to a little girl. In each family, the sum of the ages of the boys equals the sum of the ages of the girls, and the sum of the squares of the ages of the boys equals the sum of the the squares of ages of the girls. The sum of the ages of all children is 60. What are the ages of the children in each family?


Constructor Summary
Family()
           
 
Method Summary
static void main(String[] args)
           
static void solve()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Family

public Family()
Method Detail

solve

public static void solve()

main

public static void main(String[] args)

Cream version 1.06 Core API Specification

Cream: Constraint Programming Class Library for Java