omnics.sample
Class MagicSquareProblem

java.lang.Object
  extended by omnics.Problem
      extended by omnics.sample.MagicSquareProblem
All Implemented Interfaces:
java.io.Serializable

public class MagicSquareProblem
extends Problem

Author:
Cristian Frasinaru
See Also:
Serialized Form

Field Summary
 
Fields inherited from class omnics.Problem
constraints, description, INCONSISTENT, name, optimum, SIMPLE, SOLVED, solver, UNKNOWN, valuation, variables
 
Constructor Summary
MagicSquareProblem(int n)
          Creates a new instance of MagicSquareProblem
 
Method Summary
static void main(java.lang.String[] args)
           
static void solve(int n)
           
 
Methods inherited from class omnics.Problem
addConstraint, addVariable, createSolver, createSolver, createVariables, createVariables, getConstraints, getConstraints, getDescription, getName, getOptimum, getSolver, getValuationStructure, getVarArray, getVariables, getVariables, reduce, removeConstraint, removeConstraints, removeVariable, removeVariables, searchSpaceSize, setConstraints, setConstraints, setDescription, setName, setOptimum, setSolver, setValuationStructure, setVariables, setVariables, size, sortVariables, toString, variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MagicSquareProblem

public MagicSquareProblem(int n)
Creates a new instance of MagicSquareProblem

Method Detail

main

public static void main(java.lang.String[] args)

solve

public static void solve(int n)