astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v5.2.1 »
- Models and Fitting (`astropy.modeling`) »
- Reference/API »
- Optimization

# Optimization

class astropy.modeling.optimizers.Optimization(opt_method)

  Bases: `object`

  Base class for optimizers.

  Parameters:
    opt_method `python:callable()`

      Implements optimization method

  Notes

  The base Optimizer does not support any constraints by default; individual optimizers should explicitly set this list to the specific constraints it supports.

  Attributes Summary

  `acc` | Requested accuracy
  `eps` | Step for the forward difference approximation of the Jacobian
  `maxiter` | Maximum number of iterations
  `opt_method` | Return the optimization method.
  `supported_constraints` |

  Methods Summary

  `__call__`() | Call self as a function.

  Attributes Documentation

  acc

    Requested accuracy

  eps

    Step for the forward difference approximation of the Jacobian

  maxiter

    Maximum number of iterations

  opt_method

    Return the optimization method.

  supported_constraints = []

  Methods Documentation

  abstract __call__()

    Call self as a function.