WebCab Optimization
v2.6
(J2EE Edition)

com.webcab.ejb.math.optimization.multidimensional
Class TooManyMultiDimensionalIterationsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.webcab.ejb.math.optimization.multidimensional.TooManyMultiDimensionalIterationsException
All Implemented Interfaces:
Serializable

public class TooManyMultiDimensionalIterationsException
extends RuntimeException

This exception is thrown when an algorithm exceedes the maximum number of iterations which usually is supplied as a parameter. You have the option of using the partially determined result of the algorithm.

See Also:
Serialized Form

Constructor Summary
TooManyMultiDimensionalIterationsException(double partial_result)
          Creates new TooManyMultiDimensionalIterationsException
TooManyMultiDimensionalIterationsException(double[] partial_result)
           
 
Method Summary
 double[] getPartialResultArray()
          Determines the partial result if this is a vector of values.
 double getPartialResultDouble()
          Determines the partial result if this is a unique value.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TooManyMultiDimensionalIterationsException

public TooManyMultiDimensionalIterationsException(double partial_result)
Creates new TooManyMultiDimensionalIterationsException


TooManyMultiDimensionalIterationsException

public TooManyMultiDimensionalIterationsException(double[] partial_result)
Method Detail

getPartialResultDouble

public double getPartialResultDouble()
Determines the partial result if this is a unique value. Note that the value returned by this method will generally not be the correct result.

Returns:
The value of the result in the moment the algorithm was interrupted

getPartialResultArray

public double[] getPartialResultArray()
Determines the partial result if this is a vector of values. Note that the vector returned by this method will not be the complete.

Returns:
The value of the result in the moment the algorithm was interrupted

WebCab Optimization
v2.6
(J2EE Edition)