A lot of the constraints are now in one of two standard forms thanks to #3565.
Therefore, we could significantly reduce the amount of code for each constraint by writing an object (one for upper limit, one for lower limit) that:
- Fetches the bound value
- Fetches the constraint value
- Calculates the normalised residual and physical error
- Returns a dataclass containing all of the relevant data
This class will contain all of the data required to simply write the constraints out to the MFile
A lot of the constraints are now in one of two standard forms thanks to #3565.
Therefore, we could significantly reduce the amount of code for each constraint by writing an object (one for upper limit, one for lower limit) that:
This class will contain all of the data required to simply write the constraints out to the MFile