org.omegahat.Numerics.Optimizers
Interface OptimizerIterator

All Known Implementing Classes:
BasicOptimizer, OptimizerBasic

public interface OptimizerIterator


Field Summary
static int CONTINUE
          The static values are the standard predefined states for the optimization.
static int CONVERGED
          Convergence, by some criterion (1).
static int EXCEPTION
          An exception was caught during the iteration (-3).
static int NUMERIC_PROBLEM
          Some numeric problem encountered in the optimization (-2).
static int TOO_MANY_STEPS
          Too many iterations, or some other iterative count exceeded (-1).
 
Method Summary
 boolean continueIteration(OptimizerAlgorithm opt, ModelPoint values)
          Should the iteration continue?
 int getState()
          The state of the optimizer.
 int setState(int code)
           
 

Field Detail

CONTINUE

public static final int CONTINUE
The static values are the standard predefined states for the optimization.

The CONTINUE state (0) means to continue the iteration. Any other value causes iteration to terminate. By convention, negative values are failure, positive values successful convergence (but nothing in the basic code depends on this distinction).


CONVERGED

public static final int CONVERGED
Convergence, by some criterion (1).

TOO_MANY_STEPS

public static final int TOO_MANY_STEPS
Too many iterations, or some other iterative count exceeded (-1).

NUMERIC_PROBLEM

public static final int NUMERIC_PROBLEM
Some numeric problem encountered in the optimization (-2).

EXCEPTION

public static final int EXCEPTION
An exception was caught during the iteration (-3).
Method Detail

getState

public int getState()
The state of the optimizer. Should be one of the constants defined in this interface.

setState

public int setState(int code)

continueIteration

public boolean continueIteration(OptimizerAlgorithm opt,
                                 ModelPoint values)
Should the iteration continue?