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

Use tuple for tradeoff costs consistently #3

Merged
merged 2 commits into from
Nov 17, 2023
Merged

Use tuple for tradeoff costs consistently #3

merged 2 commits into from
Nov 17, 2023

Conversation

slwu89
Copy link
Collaborator

@slwu89 slwu89 commented Nov 16, 2023

StaticDesigns.ArrangementMDP uses a tuple to store the tradeoff costs but both MDPs structs for generative designs used vectors. This PR makes sure that all MDP structs consistently use tuples for the tradeoff costs. Besides being more uniform in design, this is a very minor performance improvement and correctness check, as the length of the tradeoff "vector" cannot be longer than 2.

Copy link
Collaborator

@thevolatilebit thevolatilebit left a comment

Choose a reason for hiding this comment

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

Thank you for improving the consistency!

@thevolatilebit thevolatilebit merged commit 6d932f6 into main Nov 17, 2023
3 checks passed
@thevolatilebit thevolatilebit deleted the tuple branch November 17, 2023 17:15
slwu89 added a commit that referenced this pull request Nov 22, 2023
Consistent use of tuple for tradeoff costs.
slwu89 added a commit that referenced this pull request Nov 22, 2023
slwu89 added a commit that referenced this pull request Nov 22, 2023
slwu89 added a commit that referenced this pull request Nov 22, 2023
slwu89 added a commit that referenced this pull request Nov 29, 2023
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.

2 participants