optimization - Mathematica FindMinimiumPlot not work for 2D case -
i new mathematica. using version 10.0.1.0. trying follow examples on unconstrainedoptimization.pdf.
i typed in next lines , got error message.
findminimumplot[cos[x^2 - 3 y] + sin[x^2 + y^2], {{x, 2}, {y, 1}}] findminimum::ivar: {{-0.3},{0.5}} not valid variable. >> findminimum[{{cos[0.9 + x^2] + sin[0.09 + x^2]}, {cos[1.5 - x^2] + sin[0.25 + x^2]}}, {x, 2}, {{{-0.3}, {0.5}}, ........... anybody out there can tell me next?
re: introduction unconstrained optimization
it looks had y set {{-0.3}, {0.5}} before ran function.
clear[y] or start in fresh session:
quit[] then seek again.
<< optimization`unconstrainedproblems` findminimumplot[cos[x^2 - 3 y] + sin[x^2 + y^2], {{x, 1}, {y, 1}}] optimization wolfram-mathematica
No comments:
Post a Comment