-
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
Removed save and load #804
Conversation
@Ipuch and @EveCharbie |
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.
Looks perfect to me :)
Maybe we should just update pendulum.py to show how we recommend saving the solution (using the del sol.ocp).
Reviewable status: 0 of 36 files reviewed, 3 unresolved discussions (waiting on @pariterre)
bioptim/examples/stochastic_optimal_control/obstacle_avoidance_direct_collocation.py
line 187 at r2 (raw file):
objective_functions.add(ObjectiveFcn.Mayer.MINIMIZE_TIME, weight=1) objective_functions.add( ObjectiveFcn.Lagrange.MINIMIZE_CONTROL,
If it was possible to let it as before, it would better match the original paper.
Code quote:
ObjectiveFcn.Lagrange.MINIMIZE_CONTROL,
bioptim/models/biorbd/biorbd_model.py
line 34 at r2 (raw file):
@property def name(self) -> str: # parse the path and split to get the .bioMod name
<3
tests/shard5/test_global_stochastic_collocation.py
line 215 at r2 (raw file):
f = np.array(sol.cost) np.testing.assert_equal(f.shape, (1, 1)) np.testing.assert_almost_equal(f[0, 0], 4.099146411209181)
Please revert if you agree with my comment above
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.
Reviewable status: 0 of 36 files reviewed, 3 unresolved discussions (waiting on @EveCharbie)
bioptim/examples/stochastic_optimal_control/obstacle_avoidance_direct_collocation.py
line 187 at r2 (raw file):
Previously, EveCharbie (Eve Charbonneau) wrote…
If it was possible to let it as before, it would better match the original paper.
Mayer.MINIMIZE_CONTROL was removed from bioptim in another PR. This is just so the tests pass (because for some reason it was not caught before)
bioptim/models/biorbd/biorbd_model.py
line 34 at r2 (raw file):
Previously, EveCharbie (Eve Charbonneau) wrote…
<3
Done. <3
tests/shard5/test_global_stochastic_collocation.py
line 215 at r2 (raw file):
Previously, EveCharbie (Eve Charbonneau) wrote…
Please revert if you agree with my comment above
N/A
I think some of the examples already do that, but more importantly, it looks messy when save and load is showcased... In order not to scare the beginning users, I think we should not add it in pendulum... This is just using the normal way to save and load data in Python anyway |
This is not already included |
All Submissions:
New Feature Submissions:
black . -l120 --exclude "external/*"
)?Changes to Core Features:
This change is