Skip to content

Constraint type bug in in dat.py#3040

Merged
jonmaddock merged 2 commits intoukaea:mainfrom
jonmaddock:constraint-type-bug-in-in_dat.py
Feb 5, 2024
Merged

Constraint type bug in in dat.py#3040
jonmaddock merged 2 commits intoukaea:mainfrom
jonmaddock:constraint-type-bug-in-in_dat.py

Conversation

@jonmaddock
Copy link
Copy Markdown
Contributor

When creating a new IN.DAT file from an existing MFILE.DAT, the constraints are being ordered numerically. This is unwanted if fixing f-values so that equality and inequality constraints are separated, rather than all being equalities, as they become mixed up.

Preventing this re-ordering preserves what's eq and what's ineq when using the neqns variable; the first neqns are eqs, rest are ineqs. This is now preserved from MFILE.DAT to IN.DAT.

Maintain constraint order to preserve equality/inequality constraint types in generated IN.DATs
UQ runs often overstep filename size limit
@jonmaddock jonmaddock requested a review from ajpearcey January 30, 2024 11:33
@jonmaddock jonmaddock self-assigned this Jan 30, 2024
Copy link
Copy Markdown
Collaborator

@ajpearcey ajpearcey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy for this to be merged.

@jonmaddock jonmaddock merged commit e2374cf into ukaea:main Feb 5, 2024
@jonmaddock jonmaddock deleted the constraint-type-bug-in-in_dat.py branch February 5, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants