Using fminsearch

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • In this screencast, we will look at two simple examples of using fminsearch to find the minimum of a scalar-valued function of one or two variables. In the second example, we also pass extra parameters to our function.

КОМЕНТАРІ • 4

  • @doc_microscope
    @doc_microscope 6 років тому

    Good afternoon, i have to obtain the power Pp0, Pp1, Pp2 and Pp3 for a gain optimization. The equations are the following:
    G1=exp(-alpha_s1*L+a1*Pp0+b1*Pp1+c1*Pp2+d1*Pp3);
    G2=exp(-alpha_s2*L+a2*Pp0+b2*Pp1+c2*Pp2+d2*Pp3);
    G3=exp(-alpha_s3*L+a3*Pp0+b3*Pp1+c3*Pp2+d3*Pp3);
    G1=exp(-alpha_s4*L+a4*Pp0+b4*Pp1+c4*Pp2+d4*Pp3);
    a1,a2,a3,a4,b1,b2,b3,b4,c1,c2,c3,c4,d1,d2,d3,d4,L and alpha_s1, alpha_s2,alpha_s3,alpha_s4 are constants.
    How can i implement it?

    • @doc_microscope
      @doc_microscope 6 років тому

      My objective function is that said you ;). The G_target is a value chosen by me, for the optimization i have to set G1=G2=G3=G4=G_target. How i choose the initial guess?

  • @mamsf
    @mamsf 2 роки тому

    can't anyone just explain how to do the most important thing of showing the x output at each iteration?

    • @GregReeves1520
      @GregReeves1520 2 роки тому

      Thanks for your comment. Typically, people are interested in only the final output, not the value of x at each iteration. And unfortunately, as far as I can tell, the value of x at each iteration is not a possible output of fminsearch. Can you describe why that's what you'd want? Thanks!