Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9240323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:10:08+00:00 2026-06-18T08:10:08+00:00

In R , optim command uses Nelder-Mead method to optimize a function. An article

  • 0

In R, optim command uses Nelder-Mead method to optimize a function. An article states

The parameters to be estimated are optimized over initial values. As a result,
different initial values will lead to different estimates.

What does it mean by the parameters to be estimated are optimized over initial values?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:10:09+00:00Added an answer on June 18, 2026 at 8:10 am

    @GavinSimpson’s request to cite your sources is well-founded.

    That said, this is a basic optimization concept. In general, you have to pick starting values for your parameters (or the routine has to guess them for you). Because optimization generally finds local minima or maxima, if you start near a local minimum that is not also the global minimum, you are likely to find that local min, not the global min.

    Here’s an example. First, create and plot a 6th order polynomial (with multiple local minima). Then optimize starting from three different points.

    f <- function(x)  {
      1/30 * (x+3.5)*(x+2)*(x+1)*(x-1)*(x-3)*(x-4) + 2
    }
    vec <- seq(-4,4, .01)
    plot( f(vec) ~ vec, type="l" )
    
    for( startX in c(-3.5,-.5,3) ) {
      opt <- optim( list(x=startX), fn=f )
      points( x=opt$par, y=opt$value, pch="x", col="red"  )
    }
    

    See how the starting value matters?

    plot

    N.B. I realize that Nelder-Mead is not ideal for a univariate distribution, but I used it here for simplicity since it illustrates the point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multivariate function that I want to optimize over one parameter: cost
I have an optimization problem that the Nelder-Mead method will solve, but that I
it's a simple issue about optim() function on R. I am trying to find
How do I view source code in R? For example, for function portfolio.optim >
I have a complex objective function I am looking to optimize. The optimization problem
I am trying to optimise my likelihood function of R_j and R_m using optim
Question relating to optim function in R I have the following code so far
I am new to C. I am trying to use optim function from C.
I have a form and then a JS function which processes it and does
function my_fav_quote_show_optin_form() { if (!empty($_POST['my_fav_quote_email'])) { my_fav_quote_opt_in(); } $out2 = ''; $out = '<form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.