Class MinUnconEx2

java.lang.Object
com.imsl.test.example.math.MinUnconEx2
All Implemented Interfaces:
MinUncon.Derivative, MinUncon.Function

public class MinUnconEx2 extends Object implements MinUncon.Derivative

MinUncon Example 2: Minimizes a single variable function using the analytic derivative.

The minimum of \(e^x - 5x\) is found using function evaluations and first derivative evaluations.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    f(double x)
    Public interface for the smooth function of a single variable to be minimized.
    double
    g(double x)
    Public interface for the smooth function of a single variable to be minimized.
    static void
    main(String[] args)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MinUnconEx2

      public MinUnconEx2()
  • Method Details

    • f

      public double f(double x)
      Description copied from interface: MinUncon.Function
      Public interface for the smooth function of a single variable to be minimized.
      Specified by:
      f in interface MinUncon.Function
      Parameters:
      x - a double, the point at which the function is to be evaluated
      Returns:
      a double, the value of the function at x
    • g

      public double g(double x)
      Description copied from interface: MinUncon.Derivative
      Public interface for the smooth function of a single variable to be minimized.
      Specified by:
      g in interface MinUncon.Derivative
      Parameters:
      x - a double, the point at which the derivative of the function is to be evaluated
      Returns:
      a double, the value of the derivative of the function at x
    • main

      public static void main(String[] args)