title: Matlab lsqnonlin Fit Problems with Options
body: <p>Pretty sure Matlab is just ignoring my Solver Option settings... I'm setting the <code>FuctionTolerance</code> from the default <code>1e-6</code> to <code>1e-10</code> and the solver is stopping at <code>1e-8</code> telling me it's below the default <code>1e-6</code> limit.</p>
  
  <p>The command I am using is <code>options = optimoptions('lsqnonlin', 'FunctionTolerance', 1e-10)</code>. Any ideas?</p>
  
  <p>Command window output below:</p>
  
  <pre><code>options = 
  
    lsqnonlin options:
  
     Options used by current Algorithm ('trust-region-reflective'):
     (Other available algorithms: 'levenberg-marquardt')
  
     Set properties:
             FunctionTolerance: 1.0000e-10
  
     Default properties:
                     Algorithm: 'trust-region-reflective'
                CheckGradients: 0
                       Display: 'final'
      FiniteDifferenceStepSize: 'sqrt(eps)'
          FiniteDifferenceType: 'forward'
           JacobianMultiplyFcn: []
        MaxFunctionEvaluations: '100*numberOfVariables'
                 MaxIterations: 400
           OptimalityTolerance: 1.0000e-06
                     OutputFcn: []
                       PlotFcn: []
      SpecifyObjectiveGradient: 0
                 StepTolerance: 1.0000e-06
           SubproblemAlgorithm: 'factorization'
                      TypicalX: 'ones(numberOfVariables,1)'
                   UseParallel: 0
  
  
  Local minimum possible.
  
  lsqnonlin stopped because the final change in the sum of squares relative to 
  its initial value is less than the default value of the function tolerance.
  
  &lt;stopping criteria details&gt;
  
  Optimization stopped because the relative sum of squares (r) is changing
  by less than options.FunctionTolerance = 1.000000e-06.
  
  Optimization Metric                                  Options
  relative change r =   6.50e-08             FunctionTolerance =   1e-06 (default)
  </code></pre>