-
Notifications
You must be signed in to change notification settings - Fork 47
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
[RTR] FIX: example which had an unexpected behavior, and a new that new implementation should pass #826
Conversation
link to #825 |
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.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Ipuch and @Mart1t1)
tests/shard1/test_continuity_as_objective.py
line 51 at r2 (raw file):
# [0.0, 0.0, 0.0, np.nan], # ] #
Values should be reinstated
…e new implementation should pass
…ause it add noise to the test
restoring doc, minimize_time as bool for tests, dividing weights of minimize time by the n_shooting, second pass converge @703 iterations
@EveCharbie can you prereview the PR ? |
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.
Thanks @Ipuch
Reviewed all commit messages.
Reviewable status: 0 of 2 files reviewed, 3 unresolved discussions (waiting on @Ipuch, @Mart1t1, and @pariterre)
tests/shard1/test_continuity_as_objective.py
line 126 at r4 (raw file):
} ] expected_iterations = range(5, 35) # 20 on my laptop @ipuch
I think this should be removed
Code quote:
expected_iterations = range(5, 35) # 20 on my laptop @ipuch
tests/shard1/test_continuity_as_objective.py
line 134 at r4 (raw file):
np.testing.assert_almost_equal(sol_second_pass.vector, np.array([expected_vector]).T, decimal=4) np.testing.assert_almost_equal(sol_second_pass.constraints, np.array([expected_constraints]).T, decimal=4) np.testing.assert_almost_equal(float(sol_second_pass.cost), expected_cost, decimal=2)
The test seems to still be really sensitive :(
Do you think we should test it with less n_shooting or just make another example?
Code quote:
np.testing.assert_almost_equal(float(sol_second_pass.cost), expected_cost, decimal=2)
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.
Reviewed 1 of 2 files at r1.
Reviewable status: 0 of 2 files reviewed, 3 unresolved discussions (waiting on @EveCharbie and @pariterre)
tests/shard1/test_continuity_as_objective.py
line 51 at r2 (raw file):
Previously, pariterre (Pariterre) wrote…
Values should be reinstated
Done
tests/shard1/test_continuity_as_objective.py
line 126 at r4 (raw file):
Previously, EveCharbie (Eve Charbonneau) wrote…
I think this should be removed
I think this is good to know the number of iteration is not the same on CI and local computers, in case we have to debug.
tests/shard1/test_continuity_as_objective.py
line 134 at r4 (raw file):
Previously, EveCharbie (Eve Charbonneau) wrote…
The test seems to still be really sensitive :(
Do you think we should test it with less n_shooting or just make another example?
Solved. I forgot, I increased the precision.
Acados not working on MacOS CI. It Should be solved in another PR see #858 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #826 +/- ##
==========================================
+ Coverage 78.25% 78.46% +0.20%
==========================================
Files 140 140
Lines 16230 16245 +15
==========================================
+ Hits 12701 12746 +45
+ Misses 3529 3499 -30
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Reviewed 1 of 2 files at r5, 1 of 1 files at r7, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @EveCharbie)
Todo:
This change is