SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.optimization.constrained.integer
Class BruteForce

java.lang.Object
  extended by com.numericalmethod.suanshu.optimization.constrained.integer.BruteForce
All Implemented Interfaces:
IntegerConstrainedMinimizer, Minimizer

public class BruteForce
extends java.lang.Object
implements IntegerConstrainedMinimizer


Constructor Summary
BruteForce()
           
BruteForce(ConstrainedMinimizerFactory solverFactory)
           
 
Method Summary
 double minimum()
          Get the minimum found.
 Vector search(int maxIterations, Vector... initials)
          Search for a minimizer that minimizes the objective function from the given starting points.
 void solve(IntegerConstrainedProblem problem, double tol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BruteForce

public BruteForce(ConstrainedMinimizerFactory solverFactory)

BruteForce

public BruteForce()
Method Detail

solve

public void solve(IntegerConstrainedProblem problem,
                  double tol)
Specified by:
solve in interface IntegerConstrainedMinimizer

search

public Vector search(int maxIterations,
                     Vector... initials)
Description copied from interface: Minimizer
Search for a minimizer that minimizes the objective function from the given starting points.

Specified by:
search in interface Minimizer
Parameters:
maxIterations - the maximum number of iterations
initials - the initial guesses; they could include information such as boundaries
Returns:
an (approximate) minimizer

minimum

public double minimum()
Description copied from interface: Minimizer
Get the minimum found.

This is especially useful for an objective function that takes a long time to compute.

Specified by:
minimum in interface Minimizer
Returns:
the minimum found

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.