FindArgMin[f,x]
f の極小値の位置 xminを与える.
FindArgMin[f,{x,x0}]
x=x0からスタートした検索で求まった,f の極小値の位置 xminを与える.
FindArgMin[f,{{x,x0},{y,y0},…}]
複数の変数を持つ関数の極小値の位置{xmin,ymin,…}を与える.
FindArgMin[{f,cons},{{x,x0},{y,y0},…}]
条件 cons に従って極小値の位置を与える.
FindArgMin[{f,cons},{x,y,…}]
条件で定義される範囲内の点からスタートする.
FindArgMin
FindArgMin[f,x]
f の極小値の位置 xminを与える.
FindArgMin[f,{x,x0}]
x=x0からスタートした検索で求まった,f の極小値の位置 xminを与える.
FindArgMin[f,{{x,x0},{y,y0},…}]
複数の変数を持つ関数の極小値の位置{xmin,ymin,…}を与える.
FindArgMin[{f,cons},{{x,x0},{y,y0},…}]
条件 cons に従って極小値の位置を与える.
FindArgMin[{f,cons},{x,y,…}]
条件で定義される範囲内の点からスタートする.
詳細とオプション
- FindArgMin[…,{x,y,…}]は事実上{x,y,…}/.Last[FindMinimum[…,{x,y,…},…]]に等しい.
- 変数の始点がリストとして与えられた場合,変数の値は同じ次元のリストであるとみなされる.
- cons は等式,不等式これらの論理結合を含むことができる.
- 制約条件 cons は以下の論理結合でよい.
-
lhs==rhs 等式 lhs>rhs または lhs>=rhs 不等式 {x,y,…}∈reg 領域指定 - FindArgMinは,まずすべての変数の値を局所化し,次に記号的な変数で f を評価し,次に結果を繰返し数値的に評価する.
- FindArgMinは属性HoldAllを有し,事実上Blockを使って変数を局所化する.
- FindArgMin[f,{x,x0,x1}]は x0と x1を x の最初の2つの値として使って導関数の使用を避けて f 中の極小値を検索する.
- FindArgMin[f,{x,x0,xmin,xmax}]は極小値を検索し,x が xminから xmaxまでの範囲外に出たところで検索を中止する.
- f と cons が両方とも線形である場合を除き,FindArgMinによって求まった結果は極小値のみに対応し,最小値には対応しない場合がある.
- デフォルトで,すべての変数は実数であるとみなされる.
- 線形の f と cons について,x∈Integersを使って変数が整数値のみを取るように指定することができる.
- FindArgMinはFindMinimumと同じオプションを取る.
-
AccuracyGoal Automatic 目標確度 EvaluationMonitor None f が評価されたときに常に評価される式 Gradient Automatic f の勾配要素のリスト MaxIterations Automatic 使用する最大反復回数 Method Automatic 使用するアルゴリズム PrecisionGoal Automatic 目標精度 StepMonitor None 段階を取るたびに常に評価される式 WorkingPrecision MachinePrecision 内部計算で使用する精度
全オプションのリスト
例題
すべて開く すべて閉じる例 (4)
FindArgMin[2x ^ 2 + 3x - 5, x]関数Sin[x]Sin[2y]が最小となる点{x,y}を求める:
FindArgMin[Sin[x]Sin[2y], {x, y}]FindArgMin[{-x + 2y, x ^ 2 + y ^ 2 ≤ 1}, {x, y}]NArgMin[{x + y, {x, y}∈Disk[]}, {x, y}]Show[ContourPlot[x + y, {x, y}∈Disk[]], Graphics[{Red, PointSize[Large], Point[%]}]]スコープ (12)
FindArgMin[x Cos[x], {x, 5}]FindArgMin[x Cos[x], {x, 10}]FindArgMin[Sin[x]Sin[2y], {{x, 2}, {y, 2}}]FindArgMin[{Sin[x]Sin[2y], x ^ 2 + y ^ 2 < 3}, {{x, 2}, {y, 2}}]FindArgMin[{Sin[x]Sin[2y], x ^ 2 + y ^ 2 < 3}, {x, y}]線形目的および制約について,整数の制約条件を課すことができる:
FindArgMin[{x + y, 3x + 2y ≥ 7 && x ≥ 0 && y ≥ 0}, {x, y}]FindArgMin[{x + y, 3x + 2y ≥ 7 && x ≥ 0 && y ≥ 0 && x∈Integers}, {x, y}]Or制約を指定することができる:
FindArgMin[{-x - y, x ^ 2 + y ^ 2 ≤ 1 || (x + 2) ^ 2 + (y + 2) ^ 2 ≤ 1}, {x, y}]t = RotationTransform[{{0, 0, 1}, {1, 1, 1}}];
ℛ = TransformedRegion[Ellipsoid[{0, 0, 0}, {1, 2, 3}], t];FindArgMin[{z, {x, y, z}∈ℛ}, {x, y, z}]Graphics3D[{{Opacity[0.5], Green, GeometricTransformation[Ellipsoid[{0, 0, 0}, {1, 2, 3}], t]}, {Red, PointSize[Large], Point[%]}}]Subscript[ℛ, 1] = Disk[];
Subscript[ℛ, 2] = InfiniteLine[{{-2, 0}, {0, 2}}];FindArgMin[{(x - u)^2 + (y - v)^2, {{x, y}∈Subscript[ℛ, 1], {u, v}∈Subscript[ℛ, 2]}}, {x, y, u, v}]Graphics[{{LightBlue, Subscript[ℛ, 1]}, {Green, Subscript[ℛ, 2]}, {Red, Point[Partition[%, 2]]}}]Subscript[ℛ, 1] = Triangle[{{0, 0}, {1, 0}, {0, 1}}];
Subscript[ℛ, 2] = Disk[{1, 1}, {2r, r}];FindArgMin[{r, {x, y}∈Subscript[ℛ, 1] && {x, y}∈Subscript[ℛ, 2]}, {r, x, y}]Graphics[{{LightBlue, Subscript[ℛ, 1], Subscript[ℛ, 2]}, {Red, Point[{x, y}]}} /. Thread[{r, x, y} -> %]]Subscript[ℛ, 3] = Disk[{a, b}, r];FindArgMin[{r, ({0, 0} | {1, 0} | {0, 1})∈Subscript[ℛ, 3]}, {a, b, r}]Graphics[{{LightBlue, Subscript[ℛ, 3]} /. Thread[{a, b, r} -> %], {Red, Point[{{0, 0}, {1, 0}, {0, 1}}]}}]Circumsphereを使うと同じ結果が直接得られる:
Circumsphere[{{0, 0}, {1, 0}, {0, 1}}]//Nℛ = Sphere[];FindArgMin[{x.{1, 2, 3}, x∈ℛ}, x]Subscript[ℛ, 1] = Triangle[{{0, 0}, {1, 0}, {0, 1}}];
Subscript[ℛ, 2] = Disk[{2, 2}, 1];FindArgMin[{EuclideanDistance[x, y], {x∈Subscript[ℛ, 1], y∈Subscript[ℛ, 2]}}, {x, y}]Graphics[{{LightBlue, Subscript[ℛ, 1], Subscript[ℛ, 2]}, {Red, Point[%]}}]オプション (7)
AccuracyGoalとPrecisionGoal (2)
FindArgMin[Sin[x / 2], {x, 1}, AccuracyGoal -> 9, PrecisionGoal -> 8]FindArgMin[Sin[x / 2], {x, 1}, AccuracyGoal -> 20, PrecisionGoal -> 18]WorkingPrecisionを高く設定するとプロセスが収束する:
FindArgMin[Sin[x / 2], {x, 1}, AccuracyGoal -> 20, PrecisionGoal -> 18, WorkingPrecision -> 40]EvaluationMonitor (1)
Gradient (1)
FindArgMin[Sin[x]Sin[2 y], {x, y}, Gradient -> {Cos[x] Sin[2 y], 2 Cos[2 y] Sin[x]}, Method -> "Newton"]FindArgMin[Sin[x]Sin[2y], {x, y}, Gradient -> {Cos[x] Sin[2 y], 2 Cos[2 y] Sin[x]}, Method -> {"Newton", Hessian -> {{-Sin[x] Sin[2 y], 2 Cos[x] Cos[2 y]}, {2 Cos[x] Cos[2 y], -4 Sin[x] Sin[2 y]}}}]Method (1)
この場合,デフォルトの導関数に基づくメソッドには無理がある:
FindArgMin[RealAbs[x + 1] + RealAbs[x + 1.01] + RealAbs[y + 1], {x, y}]
FindArgMin[RealAbs[x + 1] + RealAbs[x + 1.01] + RealAbs[y + 1], {x, y}, Method -> "ConjugateGradient"]
FindArgMin[RealAbs[x + 1] + RealAbs[x + 1.01] + RealAbs[y + 1], {x, y}, Method -> "PrincipalAxis"]NMinimizeもまた,さまざまな直接探索法を使う:
NMinimize[{RealAbs[x + 1] + RealAbs[x + 1.01] + RealAbs[y + 1]}, {x, y}]StepMonitor (1)
FindArgMinが関数の最小を求める際に取るステップ:
pts = Reap[FindArgMin[(1 - x) ^ 2 + 100(-x ^ 2 - y) ^ 2 + 1, {{x, -1.2}, {y, 1}}, StepMonitor :> Sow[{x, y}]]][[2, 1]];
pts = Join[{{-1.2, 1}}, pts];ContourPlot[(1 - x) ^ 2 + 100(-x ^ 2 - y) ^ 2 + 1//Log, {x, -1.3, 1.5}, {y, -1.5, 1.4}, Epilog -> {Red, Line[pts], Point[pts]}]WorkingPrecision (1)
作業精度を
に設定する.デフォルトで,AccuracyGoalとPrecisionGoalは
に設定される:
FindArgMin[Cos[x ^ 2 - 3 y] + Sin[x ^ 2 + y ^ 2], {x, y}, Method -> "Newton", WorkingPrecision -> 20]特性と関係 (1)
FindMinimumは最小の値と最小となる点の両方を与える:
FindMinimum[{x - 2y, x ^ 2 + y ^ 2 ≤ 1}, {x, y}]FindArgMinは最小となる位置を与える:
FindArgMin[{x - 2y, x ^ 2 + y ^ 2 ≤ 1}, {x, y}]FindMinValueは最小となる点における値を与える:
FindMinValue[{x - 2y, x ^ 2 + y ^ 2 ≤ 1}, {x, y}]考えられる問題 (4)
FindArgMin[{x + y, x ^ 2 + y ^ 2 ≥ 2 && x ^ 2 + y ^ 2 ≤ 1}, {x, y}]FindArgMin[Tan[x], {x, 2}]
FindArgMin[{-x ^ 2 - y ^ 2, x ^ 2 + y ^ 2 > 10}, {x, y}]FindArgMin[{x + y, x + 2y ≥ 3 && x > 1 && y > 1 && x∈Integers}, {x, y}, WorkingPrecision -> 20]適切な始点を与えると,アルゴリズムの収束が助けられることがある:
FindArgMin[x * Sin[1 / x] ^ 2, {x}]FindArgMin[x * Sin[1 / x] ^ 2, {x, .3}]関連するガイド
-
▪
- 最適化 ▪
- 領域におけるソルバ ▪
- 凸最適化 ▪
- 記号的なベクトル,行列,配列
テキスト
Wolfram Research (2008), FindArgMin, Wolfram言語関数, https://reference.wolfram.com/language/ref/FindArgMin.html (2014年に更新).
CMS
Wolfram Language. 2008. "FindArgMin." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/FindArgMin.html.
APA
Wolfram Language. (2008). FindArgMin. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindArgMin.html
BibTeX
@misc{reference.wolfram_2026_findargmin, author="Wolfram Research", title="{FindArgMin}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/FindArgMin.html}", note=[Accessed: 27-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_findargmin, organization={Wolfram Research}, title={FindArgMin}, year={2014}, url={https://reference.wolfram.com/language/ref/FindArgMin.html}, note=[Accessed: 27-November-2026]}