# HG changeset patch # User Rik # Date 1329598481 28800 # Node ID 966ec84e7858316ecd9732acd1f493ab86dabc7a # Parent 59aab666f2bf5030b1a0ee58f3ecb265c0592d6c doc: Update optimset docstring with details of FunValCheck option. * optimset.m: Update optimset docstring with details of FunValCheck option. diff -r 59aab666f2bf -r 966ec84e7858 scripts/optimization/optimset.m --- a/scripts/optimization/optimset.m Sat Feb 18 12:43:46 2012 -0800 +++ b/scripts/optimization/optimset.m Sat Feb 18 12:54:41 2012 -0800 @@ -34,8 +34,11 @@ ## @item FinDiffType ## ## @item FunValCheck -## When enabled, display an error if the objective function returns a complex -## value or NaN@. Must be set to "on" or "off" [default]. +## When enabled, display an error if the objective function returns an invalid +## value (a complex value, NaN, or Inf). Must be set to "on" or "off" +## [default]. Note: the functions @code{fzero} and @code{fminbnd} correctly +## handle Inf values and only complex values or NaN will cause an error in this +## case. ## ## @item GradObj ## When set to "on", the function to be minimized must return a second argument