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] Use Response Expressions in the opt app #12582

Merged
merged 6 commits into from
Aug 14, 2024

Conversation

sunethwarna
Copy link
Member

📝 Description
This PR enables use of response expressions in the opt app. This replaces response_name in the algorithms to response_expression which enables giving an expression or a name. The following is accepted in any place (objective/constraint) in any algorithm.

            "response_expression": "mass_response * 2.0 + log(linear_strain_energy) * 8.0"

🆕 Changelog

  • update ResponseRoutine to use the response expressions

@sunethwarna sunethwarna self-assigned this Jul 29, 2024
Base automatically changed from optapp/responses/arithmetic_operators to master August 5, 2024 15:01
"response_name": "",
"type" : "",
"ref_value" : "initial_value"
"response_expression": "",
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand why do you need this changes. we can discuss later

Copy link
Member Author

Choose a reason for hiding this comment

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

Now, it is not only the name of the response which is accepted, it accepts a resposne expression. Thats the reason why i changed it. This is backward compatible. (I added a deprecation warning)

@sunethwarna sunethwarna requested a review from Igarizza August 6, 2024 01:53
@sunethwarna sunethwarna enabled auto-merge August 6, 2024 01:53
@sunethwarna sunethwarna merged commit bf8d429 into master Aug 14, 2024
9 of 11 checks passed
@sunethwarna sunethwarna deleted the optapp/responses/use_arithmetic_operators branch August 14, 2024 12:50
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.

2 participants