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

[OptApp] NAG method #12006

Merged
merged 6 commits into from
Feb 7, 2024
Merged

[OptApp] NAG method #12006

merged 6 commits into from
Feb 7, 2024

Conversation

Igarizza
Copy link
Member

@Igarizza Igarizza commented Feb 2, 2024

📝 Description
Adding new optimization method for unconstrained problems.

@Igarizza Igarizza changed the title [OptApp] NAG method Draft: [OptApp] NAG method Feb 2, 2024
@Igarizza Igarizza marked this pull request as draft February 5, 2024 10:31
@Igarizza Igarizza changed the title Draft: [OptApp] NAG method [OptApp] NAG method Feb 5, 2024
@Igarizza Igarizza self-assigned this Feb 5, 2024
Copy link
Member

@sunethwarna sunethwarna left a comment

Choose a reason for hiding this comment

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

I only have minor comments. Otherwise, this is cool :)

Comment on lines 40 to 43
if isinstance(alpha, float):
update = search_direction * alpha
elif isinstance(alpha, KratosOA.CollectiveExpression):
update = search_direction.Scale(alpha)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if isinstance(alpha, float):
update = search_direction * alpha
elif isinstance(alpha, KratosOA.CollectiveExpression):
update = search_direction.Scale(alpha)
update = Kratos.Expression.Utils.Scale(search_direction, alpha)

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Member

@sunethwarna sunethwarna left a comment

Choose a reason for hiding this comment

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

Thanks @Igarizza.

@Igarizza Igarizza enabled auto-merge (squash) February 7, 2024 12:15
@Igarizza
Copy link
Member Author

Igarizza commented Feb 7, 2024

@sunethwarna Why can DEMApplication fail?

@Igarizza Igarizza merged commit d668804 into master Feb 7, 2024
14 of 17 checks passed
@Igarizza Igarizza deleted the optapp/nag_algorithm branch February 7, 2024 14:08
@sunethwarna
Copy link
Member

No idea... But we are not touching it, so it should be safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants