All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.opengamma.strata.math.impl.minimization.Minimizer Maven / Gradle / Ivy

There is a newer version: 2.12.46
Show newest version
/*
 * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.strata.math.impl.minimization;

import java.util.function.Function;

/**
 * Interface that finds the minimum value of a function. The function must be one-dimensional but the input type is not constrained
 * @param  The type of the function
 * @param  The type of the start position for the minimization
 */
public interface Minimizer, S> {

  /**
   * @param function The function to be minimized, not null
   * @param startPosition The start position
   * @return The minimum
   */
  public abstract S minimize(F function, S startPosition);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy