Merged
Conversation
added 20 commits
May 18, 2023 02:08
…dynamics and objective declarations
Codecov Report
@@ Coverage Diff @@
## main #88 +/- ##
==========================================
- Coverage 63.39% 62.50% -0.90%
==========================================
Files 16 16
Lines 2330 2272 -58
==========================================
- Hits 1477 1420 -57
+ Misses 853 852 -1
|
added 2 commits
May 25, 2023 16:54
Member
Author
Member
|
Indeed, for @__check(ocp)that checks if state, control, time and variable are set. This will have to be updated when we will consider to add box constraints within the declaration of dimensions. |
Member
|
I think I can remove the macro. I try. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
@ocots @joseph-gergaud Hi! The name of the branch is a bit misleading as there are updates in checks in abstract and functional code. Several points:
but it is correct julia (and ct) syntax, so for the moment I prefer not to add a more defensive check. (If there is a function named
xin the user env - a bad idea, indeed - this will call it when evaluating the boundary condition.)NonFixed), time, state and control are checked to be declared beforeconstraint!,dynamics!andobjective!are called? this is not minimal (e.g., to declare a pure state constraint one does not need to declare the control...) but, again, simpler and sounder.@__checkis not really a macro (and a macro must not throw and exception - instead generate an expression that does...) trying to update it, then PR-ing.