omnics
Class DefaultBoundAlgorithm

java.lang.Object
  extended by omnics.AbstractAlgorithm
      extended by omnics.DefaultBoundAlgorithm
All Implemented Interfaces:
java.io.Serializable, Algorithm, BoundAlgorithm

public class DefaultBoundAlgorithm
extends AbstractAlgorithm
implements BoundAlgorithm

The default BoundAlgorithm used by a SystematicSolver instance.

Author:
Cristian Frasinaru
See Also:
Serialized Form

Field Summary
 
Fields inherited from class omnics.AbstractAlgorithm
name, problem
 
Constructor Summary
DefaultBoundAlgorithm()
           
 
Method Summary
 int lowerBound()
          Returns a lower bound for the problem.
 int upperBound()
          Returns an upper bound for the problem.
 
Methods inherited from class omnics.AbstractAlgorithm
getName, getProblem, setName, setProblem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface omnics.Algorithm
getName, getProblem, setName, setProblem
 

Constructor Detail

DefaultBoundAlgorithm

public DefaultBoundAlgorithm()
Method Detail

lowerBound

public int lowerBound()
Returns a lower bound for the problem.

Specified by:
lowerBound in interface BoundAlgorithm

upperBound

public int upperBound()
Returns an upper bound for the problem.

Specified by:
upperBound in interface BoundAlgorithm