desc.objectives.CoilSetLinkingNumber.compute

CoilSetLinkingNumber.compute(params, constants=None)Source

Compute linking numbers between coils.

Parameters:
  • params (dict) – Dictionary of coilset degrees of freedom, eg CoilSet.params_dict

  • constants (dict) – Dictionary of constant data, eg transforms, profiles etc. Defaults to self._constants.

Returns:

f (array of floats) – For each coil, the sum of the absolute value of the linking numbers between that coil and every other coil in the coilset, which approximates the number of coils linked with that coil.