Home Forums How to use function “search” in the package “Minimizer”?

Viewing 1 post (of 1 total)
  • Author
  • #1870

    for the package:
    com.numericalmethod.suanshu.optimization.Minimizer ,

    the method search is used to find the vector of values of parameters which can minimize the function of the parameters.

    but how to declare a function with 2 or more variables?  Is that similar to UnivariateRealFunction?
    And from the javadoc in numerical method, what should I enter for “vector” in the search method?
    And where should I enter the function such that the method search can help me to optimize?
    Also, where should the constraint be entered?

    How to minimize  x^2+y^2 given the condition x+y=1 using “search” ?
    Is the code similar when there is no constraints?

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.