Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Discrete Control performance improvements based on AGV model #1529
Discrete Control performance improvements based on AGV model #1529
Changes from 12 commits
5e55795
4cae47c
3cbf958
d04d06d
c4b2ba2
371833a
55bc990
c3a7196
9e76ee0
e45260b
77a2f0d
9a85f22
3835d21
080e996
55e72d6
efad525
7e00275
4d35e0a
67f04a7
92c82cc
68577fe
965686d
b9f3ee0
ace0b10
f86d1f7
01f668c
e23bcb9
0f624fe
a2c2d35
5a692eb
db6f4c4
1f06437
ee0a77e
90d0bcc
5e09ff7
5ff4b07
2e12fe3
35822c2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
There are certain assumptions here on the possible interplays between the different input tables, but I would be really helped to by some inline documentation of such tables.
Both the comment
# Build up the truth state from the truth values per (compound) variable per greater than
and# The maximum truth state length is possibly shorter than this truth state
don't help me much here.Random thought; we could split such functionality into a function and have a docstring including a doctest?
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.
doctest?
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.
Yes, providing an example (and testing it) as part of the docstring https://documenter.juliadocs.org/stable/man/doctests/.
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.
So this was clearly a red flag in the old code, although I like the genericity of the rest.
Check warning on line 508 in core/src/callback.jl
Codecov / codecov/patch
core/src/callback.jl#L505-L508
Check warning on line 510 in core/src/callback.jl
Codecov / codecov/patch
core/src/callback.jl#L510
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.
If only we knew the type in
parameter_update
, so we don't need to call all these functions here ;)