com.singularsys.aa
Class Subdivision

java.lang.Object
  extended by com.singularsys.aa.Subdivision

public class Subdivision
extends java.lang.Object

Divides an equation system into smaller parts and solves the individual parts in sequence.

Author:
nathan

Constructor Summary
Subdivision()
           
 
Method Summary
static void main(java.lang.String[] args)
          Tests the subdivide method.
static Solution solveWithDividing(SystemSolver sSolver, EquationSystem es)
          Solves an equation system by sub-dividing it into smaller systems.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subdivision

public Subdivision()
Method Detail

main

public static void main(java.lang.String[] args)
Tests the subdivide method.

Parameters:
args -

solveWithDividing

public static Solution solveWithDividing(SystemSolver sSolver,
                                         EquationSystem es)
                                  throws java.lang.Exception
Solves an equation system by sub-dividing it into smaller systems. Repeatedly looks for the smallest solvable subset of equations, solves it, and substitutes the results into the other equations.

Parameters:
sSolver - the solver used for solving the system.
es - the equation system to be solved.
Returns:
the solution to the equation system if one is found.
Throws:
java.lang.Exception