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/restructuring 23 gradient projection #11225

Merged
merged 46 commits into from
Sep 7, 2023

Conversation

Igarizza
Copy link
Member

@Igarizza Igarizza commented Jun 2, 2023

📝 Description
Brings the new implementation of the Gradient Projection, following the main point from #11150 The implementation is based on the Haftka, where the correction is added directly to the design update and not to the search direction. Line search is applied to the projected direction. Two steps length are required: one for projected direction and one for size of the correction.

🆕 Changelog

  • Adding new implementation of GP
  • Remove old version from python and cpp
  • Remove add_custom_optimization algorithms from cpp
  • Adding new test case based on analysis

@Igarizza Igarizza marked this pull request as draft June 2, 2023 14:04
@Igarizza Igarizza requested a review from sunethwarna July 5, 2023 07:54
@Igarizza Igarizza marked this pull request as ready for review July 20, 2023 13:03
@Igarizza Igarizza requested a review from RezaNajian July 20, 2023 13:03
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.

Minor comments.

But please wait for #11454 before merging.

…/algorithm_gradient_projection.py

Co-authored-by: Suneth Warnakulasuriya <[email protected]>
@Igarizza
Copy link
Member Author

Igarizza commented Aug 7, 2023

@sunethwarna thnx for the review, let me know when I can merge. thnx

@sunethwarna
Copy link
Member

It is merged, so could you please merge master and resolve the conflicts. Then we will see what problems are there in this PR in windows compilation.

Copy link
Contributor

@RezaNajian RezaNajian left a comment

Choose a reason for hiding this comment

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

@Igarizza thanks for the work. I can confidently say that this implementation is consistent with the reference.

],
"controls": [
{
"name": "thickness_control",
Copy link
Contributor

Choose a reason for hiding this comment

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

the model is solid model and thickness control should not be used.

Copy link
Member Author

Choose a reason for hiding this comment

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

True, I have made a new example with shell elements.

image

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.

Nice, only minor comments from my side.

Igarizza and others added 3 commits August 23, 2023 16:45
…/standardized_constraint.py

Co-authored-by: Suneth Warnakulasuriya <[email protected]>
…/algorithm_gradient_projection.py

Co-authored-by: Suneth Warnakulasuriya <[email protected]>
…/algorithm_gradient_projection.py

Co-authored-by: Suneth Warnakulasuriya <[email protected]>
sunethwarna
sunethwarna previously approved these changes Aug 23, 2023
@sunethwarna
Copy link
Member

I think my suggested tabbing was wrong. You may have to check the tabbings of these.

sunethwarna
sunethwarna previously approved these changes Aug 24, 2023
@Igarizza Igarizza requested a review from sunethwarna September 4, 2023 09:40
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 merged commit 693fc7e into master Sep 7, 2023
@Igarizza Igarizza deleted the optapp/restructuring_23_gradient_projection branch September 7, 2023 07:41
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.

3 participants