<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>MikuHatsune</author_name>
  <author_url>https://blog.hatena.ne.jp/MikuHatsune/</author_url>
  <blog_title>驚異のアニヲタ社会復帰の予備</blog_title>
  <blog_url>https://mikuhatsune.hatenadiary.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>Rpackage</anon>
    <anon>形・動き</anon>
    <anon>統計</anon>
    <anon>Python</anon>
    <anon>数学</anon>
  </categories>
  <description>ある関数があって、最小化もしくは最大化したい。これらは正負を入れ替えればよいでの最小化を考える。 いま、適当に という関数があったとする。これの最小値とそのときのの組を求めたい。 2変数なので3次元に図示するとこんな感じである。最小値はひとつ定まりそう。真っ赤なところがお盆の低いところになる。 x &lt;- y &lt;- seq(-10, 10, length=300) f &lt;- function(x, y) x*(x-2)*(x-1)*(x+8) + y*(y-2)*(y-3)*(y+7) -8 xy &lt;- expand.grid(x, y) z &lt;- f(xy[,1], xy[,2]) i &lt;- …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmikuhatsune.hatenadiary.com%2Fentry%2F20170502%2F1493712702&quot; title=&quot;勾配法による最適化 - 驚異のアニヲタ社会復帰の予備&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.d.st-hatena.com/diary/MikuHatsune/2017-05-02.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-02 17:11:42</published>
  <title>勾配法による最適化</title>
  <type>rich</type>
  <url>https://mikuhatsune.hatenadiary.com/entry/20170502/1493712702</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
