at.latticetools.matching#

Matching of lattice parameters.

Functions

match(ring, variables, constraints, *[, copy])

Match constraints by varying variables.

match(ring, variables, constraints, *, copy=False, **kwargs)[source]#

Match constraints by varying variables.

Minimisation is performed by the least_squares() function.

Parameters:
  • ring (Lattice) – Lattice description

  • variables (VariableList) – Variable parameters

  • constraints (ObservableList) – Constraints to fulfill

  • copy (bool) – If True, return a modified copy of ring, otherwise perform the match in-line

Keyword Arguments:
  • method – Minimisation algorithm (see least_squares()). If None, use ‘lm’ for unbounded problems, ‘trf’ otherwise.

  • verbose – Level of verbosity

  • max_nfev – Maximum number of function evaluation

  • dp – Momentum deviation.

  • dct – Path lengthening.

  • df – Deviation from the nominal RF frequency.

  • **kwargs – Keyword arguments sent to least_squares()