Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

12
  • 1
    $\begingroup$ Yes it is. Also we can't handle large nmax*jmax with NMinimize. $\endgroup$ Commented May 16, 2023 at 2:31
  • 1
    $\begingroup$ Use pts = Reap[ NMinimize[{Kx + Px, con}, var, StepMonitor :> Sow[var]]][[2, 1]]; and ListPlot[Table[pts[[All, i]], {i, 4}], PlotLegends -> Take[var, 4], PlotRange -> All] $\endgroup$ Commented May 17, 2023 at 3:49
  • 1
    $\begingroup$ You can try, but unfortunately, EvaluationMonitor is not working with NMinimize as expected it is why we use StepMonitor (see Options for NMinimize for details). $\endgroup$ Commented May 17, 2023 at 9:03
  • 1
    $\begingroup$ @MamMam You can use it but result is not the same as evaluated with StepMonitor. $\endgroup$ Commented May 17, 2023 at 11:36
  • 1
    $\begingroup$ @MamMam Yes it is. This is well know mathematical problem. You can ask about this problem on math.stackexchange.com $\endgroup$ Commented May 18, 2023 at 3:16