WebCab Optimization
v2.6
(J2EE Edition)

com.webcab.ejb.math.optimization.unidimensional
Class TooManyUniDimensionalIterationsException

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

public class TooManyUniDimensionalIterationsException
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
TooManyUniDimensionalIterationsException(double partial_result)
          Creates new TooManyUniDimensionalIterationsException
TooManyUniDimensionalIterationsException(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

TooManyUniDimensionalIterationsException

public TooManyUniDimensionalIterationsException(double partial_result)
Creates new TooManyUniDimensionalIterationsException


TooManyUniDimensionalIterationsException

public TooManyUniDimensionalIterationsException(double[] partial_result)
Method Detail

getPartialResultDouble

public double getPartialResultDouble()
Determines the partial result if this is a unique value. Note that generally the returned result will 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 returned vector will generally not be the correct result.

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

WebCab Optimization
v2.6
(J2EE Edition)