Codota Logo
LineSearchFletcher86.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.ddogleg.optimization.quasinewton.LineSearchFletcher86
constructor

Best Java code snippets using org.ddogleg.optimization.quasinewton.LineSearchFletcher86.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.ddogleg/ddogleg

/**
 * Returns an implementation of {@link QuasiNewtonBFGS} with {@link LineSearchMore94} for the internal line search.
 * This is a specific implementation of {@link UnconstrainedMinimization} and allows full access to all
 * tuning parameters.
 *
 * @return UnconstrainedMinimization
 */
public static QuasiNewtonBFGS_to_UnconstrainedMinimization quasiNewtonBfgs(@Nullable ConfigQuasiNewton config ) {
  if( config == null )
    config = new ConfigQuasiNewton();
  LineSearch lineSearch;
  switch( config.lineSearch ) {
    case FLETCHER86:
      LineSearchFletcher86 fletcher86 = new LineSearchFletcher86();
      fletcher86.setConvergence(config.line_ftol,config.line_gtol);
      lineSearch = fletcher86;
      break;
    case MORE94:
      LineSearchMore94 more94 = new LineSearchMore94();
      more94.setConvergence(config.line_ftol,config.line_gtol,0.1);
      lineSearch = more94;
      break;
    default:
      throw new RuntimeException("Unknown line search. "+config.lineSearch);
  }
  QuasiNewtonBFGS qn = new QuasiNewtonBFGS(lineSearch);
  return new QuasiNewtonBFGS_to_UnconstrainedMinimization(qn);
}
origin: lessthanoptimal/ddogleg

/**
 * Returns an implementation of {@link QuasiNewtonBFGS} with {@link LineSearchMore94} for the internal line search.
 * This is a specific implementation of {@link UnconstrainedMinimization} and allows full access to all
 * tuning parameters.
 *
 * @return UnconstrainedMinimization
 */
public static QuasiNewtonBFGS_to_UnconstrainedMinimization quasiNewtonBfgs(@Nullable ConfigQuasiNewton config ) {
  if( config == null )
    config = new ConfigQuasiNewton();
  LineSearch lineSearch;
  switch( config.lineSearch ) {
    case FLETCHER86:
      LineSearchFletcher86 fletcher86 = new LineSearchFletcher86();
      fletcher86.setConvergence(config.line_ftol,config.line_gtol);
      lineSearch = fletcher86;
      break;
    case MORE94:
      LineSearchMore94 more94 = new LineSearchMore94();
      more94.setConvergence(config.line_ftol,config.line_gtol,0.1);
      lineSearch = more94;
      break;
    default:
      throw new RuntimeException("Unknown line search. "+config.lineSearch);
  }
  QuasiNewtonBFGS qn = new QuasiNewtonBFGS(lineSearch);
  return new QuasiNewtonBFGS_to_UnconstrainedMinimization(qn);
}
origin: lessthanoptimal/ddogleg

LineSearchFletcher86 alg = new LineSearchFletcher86(9,0.1,0.5);
alg.setConvergence(0.1,0.9);
alg.setFunction(new Individual_to_CoupledDerivative(f,d),0);
alg = new LineSearchFletcher86(9,0.05,0.5);
alg.setConvergence(1e-5,0.1);
alg.setFunction(new Individual_to_CoupledDerivative(f,d),0);
org.ddogleg.optimization.quasinewtonLineSearchFletcher86<init>

Popular methods of LineSearchFletcher86

  • setConvergence
  • bracket
    Searches for an upper bound.
  • checkSmallStep
    Checks to see if alpha is changing by a significant amount. If it change is too small it can get stu
  • initializeSearch
  • interpolate
    Use either quadratic of cubic interpolation to guess the minimum.
  • section
    Using the found bracket for alpha it searches for a better estimate.
  • setModeToSection
  • getStep
  • init
  • setFunction

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JTable (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now