-
Notifications
You must be signed in to change notification settings - Fork 2
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
Optimisations #12
Optimisations #12
Conversation
8611a9f
to
3af2bcd
Compare
@@ -307,18 +304,16 @@ def convergence_value( | |||
The Lagrange multipliers for inequality constraints for the jth | |||
evaluation point. | |||
""" | |||
ind_eq = min(lamda_equality.shape[0], result.eq.shape[0]) | |||
ind_ieq = min(lamda_inequality.shape[0], result.ie.shape[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be overkill but it will ensure the same functionality as zip
3af2bcd
to
ef1b261
Compare
0c45e52
to
ece9128
Compare
@je-cook is this ready for review? If not, can you request review when ready? |
@timothy-nunn I would but I obviously dont have permissions to do that |
@je-cook oh sorry. I assumed everyone in the UKAEA org would be allowed to request review (as is the case on PROCESS?). I'll do that for you tomorrow |
Im not in the org so that would be why, I think on PROCESS I might be an external collaborator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all looks good, thanks for this. Interested to see how much this speeds codes (e.g. PROCESS) up because I did notice that old VMCON vs this VMCON was slightly faster.
A few optimisations to use numpy loops instead of python loops and some typing