Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding region constraints to pysensors PR #17

Conversation

niharika2999
Copy link
Contributor

This PR adds an optimizer GQR to pysensors for handling constrained optimization.
The types of constraints it can handle are:

  • Region constrained max
  • Region constrained exact
  • Predetermined

The functions for these constraints are added to utils.

Jimmy-INL and others added 30 commits February 10, 2022 12:49
…niharika-krithika-mohammad-regionConstraints

Updation
…ctions which calculate and update the norm
Copy link

@joshua-cogliati-inl joshua-cogliati-inl left a comment

Choose a reason for hiding this comment

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

Just some comments after I looked at this PR.

Choose a reason for hiding this comment

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

Is there a reason this file is deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this file needs to be added again. Thank you so much for catching that.

Choose a reason for hiding this comment

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

You are welcome, and this is now fixed.


"""

def __init__(self, U, n_basis_modes=10, **kwargs):

Choose a reason for hiding this comment

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

Is kwargs needed for compatibility, or can it be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not necessarily needed but we have included it for uniformity. Adding documentation for it.

Choose a reason for hiding this comment

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

Thank you.

…comments from _gqr.py,spatially_constrained_qr.ipynb and _norm_calc-py,adding kwargs documentation to _custom.py to address Josh comments
@kmanohar kmanohar merged commit c4d2b12 into dynamicslab:master Jul 27, 2023
1 of 2 checks passed
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.

4 participants