tidy3d.plugins.dispersion.AdvancedFitterParam#
- class AdvancedFitterParam[source]#
Bases:
Tidy3dBaseModel
Advanced fitter parameters
- Parameters:
attrs (dict = {}) β Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields,
attrs
are mutable. For example, the following is allowed for setting anattr
obj.attrs['foo'] = bar
. Also note that Tidy3D` will raise aTypeError
ifattrs
contain objects that can not be serialized. One can check ifattrs
are serializable by callingobj.json()
.bound_amp (Optional[NonNegativeFloat] = None) β [units = Hz]. Upper bound of real and imagniary part of oscillator strength
c
in the modelPoleResidue
(The default βNoneβ will trigger automatic setup based on the frequency range of interest).bound_f (Optional[NonNegativeFloat] = None) β [units = Hz]. Upper bound of real and imaginary part of
a
that corresponds to pole damping rate and frequency in the modelPoleResidue
(The default βNoneβ will trigger automatic setup based on the frequency range of interest).bound_f_lower (NonNegativeFloat = 0.0) β [units = Hz]. Lower bound of imaginary part of
a
that corresponds to pole frequency in the modelPoleResidue
.bound_eps_inf (ConstrainedFloatValue = 10.0) β Upper bound of epsilon at infinity frequency. It must be no less than 1.
constraint (Literal['hard', 'soft'] = hard) β Stability constraint: βhardβ constraints are generally recommended since they are faster to compute per iteration, and they often require fewer iterations to converge since the search space is smaller. But sometimes the search space is so restrictive that all good solutions are missed, then please try the βsoftβ constraints for larger search space. However, both constraints improve stability equally well.
nlopt_maxeval (PositiveInt = 5000) β Number of iterations in each inner optimization.
random_seed (Optional[ConstrainedIntValue] = 0) β The fitting tool performs global optimizations with random starting coefficients. With the same random seed, one obtains identical results when re-running the fitter; on the other hand, if one wants to re-run the fitter several times to obtain the best results, the value of the seed should be changed, or set to
None
so that the starting coefficients are different each time.
Attributes
Methods
Inherited Common Usage
- bound_amp#
- bound_f#
- bound_f_lower#
- bound_eps_inf#
- constraint#
- nlopt_maxeval#
- random_seed#
- __hash__()#
Hash method.