Skip to content

Standardise constraint code #3937

@timothy-nunn

Description

@timothy-nunn

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions