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.

Required fields*

3
  • $\begingroup$ You will have a better chance by reducing your problem to 1D; replace y with Sqrt[1-x^2] with the constraint -1<=x<=1 (your Cost function depends only on y^2 anyways). $\endgroup$ Commented May 21, 2015 at 17:39
  • $\begingroup$ @b.gatessucks That worked. But I do need to extend this function to a large number of variables. So, is there any general thing that will work. $\endgroup$ Commented May 21, 2015 at 17:49
  • 4
    $\begingroup$ Why not parametrize? {Cos[t], Sin[t]} /. t -> ArgMin[{Cost[0.27, 0.96286, Cos[t], Sin[t]], 0 <= t < 2 π}, t] $\endgroup$ Commented May 21, 2015 at 18:27