author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
538,861
11.08.2022 17:16:37
14,400
2692e25b481af593d794971874fc8fa11d6f478b
betterer example
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/example_as_objective.py", "new_path": "bioptim/examples/getting_started/example_as_objective.py", "diff": "\"\"\"\nTODO: General cleaning\n-A very simple yet meaningful optimal control program consisting in a pendulum starting ...
Python
MIT License
pyomeca/bioptim
betterer example
538,861
11.08.2022 17:17:02
14,400
ff11e7c6fbf1393cebcb39018d1649aa19bbadc5
forgotten in refactor
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/objective_functions.py", "new_path": "bioptim/limits/objective_functions.py", "diff": "@@ -74,7 +74,7 @@ class Objective(PenaltyOption):\nelif self.penalty_type == PenaltyType.USER:\npool = all_pn.nlp.J if all_pn is not None and all_pn.nlp else ...
Python
MIT License
pyomeca/bioptim
forgotten in refactor
538,861
12.08.2022 11:13:04
14,400
dbc7d146792939608580ca945f37ad9b8ddc83a5
evener better example
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/example_as_objective.py", "new_path": "bioptim/examples/getting_started/example_as_objective.py", "diff": "@@ -88,16 +88,10 @@ def prepare_ocp_first_pass(\ndynamics = Dynamics(DynamicsFcn.TORQUE_DRIVEN)\n# Path constraint\n- Yt...
Python
MIT License
pyomeca/bioptim
evener better example
538,861
12.08.2022 11:40:45
14,400
a35cabe8fc1b7daeea0f368da3e1467adee53e7c
even betterest
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/example_as_objective.py", "new_path": "bioptim/examples/getting_started/example_as_objective.py", "diff": "@@ -5,7 +5,7 @@ the minimum of generalized forces. The solver is only allowed to move the pendul\nThere is a catch howev...
Python
MIT License
pyomeca/bioptim
even betterest
538,861
12.08.2022 15:45:53
14,400
538740270807f28d4d3cc793c35cb75561994b90
cleaned a little
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/example_as_objective.py", "new_path": "bioptim/examples/getting_started/example_as_objective.py", "diff": "@@ -106,11 +106,11 @@ def prepare_ocp_first_pass(\nconstraints = ConstraintList()\nconstraints.add(ConstraintFcn.SUPERIM...
Python
MIT License
pyomeca/bioptim
cleaned a little
538,842
12.08.2022 17:38:06
14,400
80c6d8a8f7675cbc5d55467d4768eae371c23fd6
blacked, and states_no_intermediate handles collocations and dms when the solution is merged.
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -499,13 +499,52 @@ class Solution:\n-------\nThe states data without intermediate states in the case of collocation\n\"\"\"\n+ states_no_intermediate = []\n+ if self...
Python
MIT License
pyomeca/bioptim
blacked, and states_no_intermediate handles collocations and dms when the solution is merged.
538,842
12.08.2022 18:11:22
14,400
8fbbc427f9a0f0e67e5d106f993555a32b6ea1bc
missing one node
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -523,7 +523,7 @@ class Solution:\nall_intermediate_idx.extend([*idx[:-1]])\nelse:\nprevious_end = all_intermediate_idx[-1]\n- new_idx = [previous_end + i for i in id...
Python
MIT License
pyomeca/bioptim
missing one node
538,847
05.08.2022 15:52:56
0
4de34e9074c5552b3d71eec6723601ee553f8970
used isinstance
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -137,9 +137,9 @@ class OptimizationVector:\nv_init = InitialGuess(interpolation=InterpolationType.CONSTANT)\nnlp = self.ocp.nlp[0]\nfor phase, ...
Python
MIT License
pyomeca/bioptim
used isinstance
538,847
08.08.2022 14:05:53
0
39f71e5d1c33e60b117c125f43c44eeed454aae6
noised initial guess respecting bounds
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -942,6 +942,10 @@ class NoisedInitialGuess(InitialGuess):\nself.bounds.min.n_shooting = ns\nself.bounds.max.n_shooting = ns\nfor shooting_point in range(ns):\n+ if...
Python
MIT License
pyomeca/bioptim
noised initial guess respecting bounds
538,847
11.08.2022 17:37:00
0
5ef7172c053372b593de999dcba3abb402425cef
added isinstance for class with inheritance
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -410,19 +410,14 @@ class OptimizationVector:\nThe number of shooting nodes and collocation points\n\"\"\"\nocp = self.ocp\n-\n- if ocp.nlp[phas...
Python
MIT License
pyomeca/bioptim
added isinstance for class with inheritance
538,847
12.08.2022 11:58:39
0
b36ef0fe36d4df4ea19ffe269d8456f9970acccb
improved linear interpolation for EACH_FRAME with collocation
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -171,8 +171,10 @@ class OptimizationVector:\ninit_values = self.ocp.original_values[\"x_init\"].init\nfor index, state in enumerate(init_values...
Python
MIT License
pyomeca/bioptim
improved linear interpolation for EACH_FRAME with collocation
538,847
15.08.2022 12:33:58
0
ac2d13250de23ac4990bf7ed3ce337daec39a003
added function to set n_shooting
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -515,6 +515,19 @@ class Bounds(OptionGeneric):\nreturn self.min.shape\n+ def set_n_shooting(self, ns):\n+ \"\"\"\n+ Get the size of the Bounds\n+\n+ Returns\n+ ---...
Python
MIT License
pyomeca/bioptim
added function to set n_shooting
538,847
18.08.2022 10:41:57
0
2d555ac7702f86e36626d1cd2f8c074a9448a325
function might not be necessary
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -515,6 +515,7 @@ class Bounds(OptionGeneric):\nreturn self.min.shape\n+ # todo: to be removed?\ndef set_n_shooting(self, ns):\n\"\"\"\nGet the size of the Bounds\n...
Python
MIT License
pyomeca/bioptim
function might not be necessary
538,848
18.08.2022 14:00:58
14,400
652b7df422d9d38682f3cb61c95b23468b98f133
Accept 1.9.0 for biorbd
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -44,7 +44,7 @@ from ..misc.utils import check_version\nfrom ..optimization.parameters import ParameterList, Parameter\nfrom ..optimizat...
Python
MIT License
pyomeca/bioptim
Accept 1.9.0 for biorbd
538,847
18.08.2022 14:36:14
0
c041ef4c09a5a72852d7dea2b368ab50aaf98db2
replaced function by a property and a setter
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -375,7 +375,7 @@ class Bounds(OptionGeneric):\nself.type = interpolation\nself.t = None\nself.extra_params = self.min.extra_params\n- self.n_shooting = self.min.n_...
Python
MIT License
pyomeca/bioptim
replaced function by a property and a setter
538,842
18.08.2022 10:41:55
14,400
a61be11481fe992ad8107737a03d60b84ecadf6e
scoot some documentation
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -545,7 +545,7 @@ class Solution:\nshooting_type: Shooting\nWhich type of integration\nkeep_intermediate_points: bool\n- If the integration should returns the interme...
Python
MIT License
pyomeca/bioptim
scoot some documentation
538,842
18.08.2022 11:35:58
14,400
128540cb75c52f1508542b9272612be4e1315da6
final dot in dms
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -525,7 +525,7 @@ class Solution:\nprevious_end = all_intermediate_idx[-1]\nnew_idx = [previous_end + i + 1 for i in idx[0:-1]]\nall_intermediate_idx.extend(new_idx)\...
Python
MIT License
pyomeca/bioptim
final dot in dms
538,842
18.08.2022 11:52:39
14,400
b4408a5cbf65a11c7ec9305b5bf04c2d0d21671d
now handling perfectly collocation
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -523,9 +523,14 @@ class Solution:\nall_intermediate_idx.extend([*idx[:-1]])\nelse:\nprevious_end = all_intermediate_idx[-1]\n- new_idx = [previous_end + i + 1 for i ...
Python
MIT License
pyomeca/bioptim
now handling perfectly collocation
538,842
18.08.2022 11:52:53
14,400
911e54984bfac792892405f260bc65e7ffa75248
new tests to make sure it's alright
[ { "change_type": "MODIFY", "old_path": "tests/test_global_getting_started.py", "new_path": "tests/test_global_getting_started.py", "diff": "@@ -789,7 +789,7 @@ def test_example_multiphase(ode_solver):\nnp.testing.assert_almost_equal(g, np.zeros((444, 1)))\n# Check some of the results\n- states, cont...
Python
MIT License
pyomeca/bioptim
new tests to make sure it's alright
538,842
22.08.2022 14:45:27
14,400
fb119bb709ba489403c96e0294f7a2f18684e602
handling variable mapping for figures.
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -854,7 +854,7 @@ class ConfigureProblem:\nif not axes_idx:\naxes_idx = Mapping(range(len(name_elements)))\n- legend = [f\"{name}_{name_elements[idx]}\" for...
Python
MIT License
pyomeca/bioptim
handling variable mapping for figures.
538,842
22.08.2022 17:05:28
14,400
8627639dc6d1a4af2efc2ef59b026e72d3dc06d7
some docstring on fatigue
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/fatigue/xia_fatigue.py", "new_path": "bioptim/dynamics/fatigue/xia_fatigue.py", "diff": "@@ -52,6 +52,25 @@ class XiaFatigue(MuscleFatigue):\nreturn \"ma\"\ndef apply_dynamics(self, target_load, *states):\n+ \"\"\"\n+ The dynamics of the fatig...
Python
MIT License
pyomeca/bioptim
some docstring on fatigue
538,861
23.08.2022 12:00:49
14,400
249a844472dd24b0de14029da91f8356062599ff
applied review requested changes
[ { "change_type": "MODIFY", "old_path": "bioptim/examples/getting_started/example_as_objective.py", "new_path": "bioptim/examples/getting_started/example_as_objective.py", "diff": "@@ -232,11 +232,11 @@ def main():\nsolver_first.set_maximum_iterations(500)\n# Custom plots\n- # ocp_first.add_plot_pena...
Python
MIT License
pyomeca/bioptim
applied review requested changes
538,861
23.08.2022 14:11:41
14,400
9e98cd1fec1b4e1f78ee7a99bde0969d11281446
wrote test for continuity as objective
[ { "change_type": "RENAME", "old_path": "bioptim/examples/getting_started/example_as_objective.py", "new_path": "bioptim/examples/getting_started/example_continuity_as_objective.py", "diff": "@@ -236,7 +236,7 @@ def main():\n# --- Solve the ocp --- #\nsol_first = ocp_first.solve(solver_first)\n- sol_...
Python
MIT License
pyomeca/bioptim
wrote test for continuity as objective
538,861
23.08.2022 15:19:46
14,400
58e70e1cc5e35adc7468597720108f06c1234361
fixed check biorbd 1.10.0
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -50,7 +50,7 @@ from ..misc.utils import check_version\nfrom ..optimization.parameters import ParameterList, Parameter\nfrom ..optimizat...
Python
MIT License
pyomeca/bioptim
fixed check biorbd 1.10.0
538,861
23.08.2022 15:20:22
14,400
83baba3b1aaebf2b153d7bb968bacf7fa4d94601
cleaned useless enumeration
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -527,7 +527,7 @@ class ConstraintFunction(PenaltyFunctionAbstract):\n\"\"\"\n# Dynamics must be sound within phases\n- for i, nlp in enumerate(ocp.nlp):\n+ for nlp in ocp....
Python
MIT License
pyomeca/bioptim
cleaned useless enumeration
538,861
23.08.2022 15:27:28
14,400
4dfad3ccec48dee5807e47ea3b8734443e503dff
removed code from another era of bioptim
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/multinode_constraint.py", "new_path": "bioptim/limits/multinode_constraint.py", "diff": "@@ -191,15 +191,11 @@ class MultinodeConstraintList(UniquePerPhaseOptionList):\nThe list of all the multi_node constraints prepared\n\"\"\"\nfull_phase_mult...
Python
MIT License
pyomeca/bioptim
removed code from another era of bioptim
538,861
23.08.2022 15:38:31
14,400
288557cd136f16568dd8ced2816aa0497e0c5c9e
message for future bioptim adventurers
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -340,6 +340,7 @@ class IpoptInterface(SolverInterface):\nu = []\nelse:\nx, u = get_x_and_u_at_idx(penalty, idx)\n+ # for the future bioptim adventurer: her...
Python
MIT License
pyomeca/bioptim
message for future bioptim adventurers
538,861
23.08.2022 16:27:09
14,400
716ed8eacf6949547e0f74fcbbcab7a789de31bc
fixed test I hope
[ { "change_type": "MODIFY", "old_path": "tests/test_continuity_as_objective.py", "new_path": "tests/test_continuity_as_objective.py", "diff": "@@ -11,39 +11,5 @@ def test_continuity_as_objective():\nocp = ocp_module.prepare_ocp_first_pass(biorbd_model_path=model_path, final_time=1, n_shooting=30)\nso...
Python
MIT License
pyomeca/bioptim
fixed test I hope
538,861
25.08.2022 17:36:29
14,400
cebff01e47412cf397ec9df5fa23508033ffc9f1
fixed a really sneaky edge case If ImplicitConstraintFcn were not ConstraintType.IMPLICIT, the nlp.g list could contain `list`s that would cause an error in the interface with IPOPT
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -58,6 +58,10 @@ class Constraint(PenaltyOption):\nsuper(Constraint, self).__init__(\npenalty=constraint, phase=phase, quadratic=quadratic, custom_function=custom_function,...
Python
MIT License
pyomeca/bioptim
fixed a really sneaky edge case If ImplicitConstraintFcn were not ConstraintType.IMPLICIT, the nlp.g list could contain `list`s that would cause an error in the interface with IPOPT
538,861
25.08.2022 17:38:59
14,400
19457876aeee99b18755107766e0c61336c5fdf2
check black earlier in the build to save some time
[ { "change_type": "MODIFY", "old_path": ".appveyor.yml", "new_path": ".appveyor.yml", "diff": "@@ -35,6 +35,8 @@ install:\n- conda activate bioptim\n- conda install pytest-cov black pytest pytest-cov codecov -cconda-forge\n- conda list\n+ - sh: if [[ $CI_LINUX == true ]]; then black . -l120 --exclude...
Python
MIT License
pyomeca/bioptim
check black earlier in the build to save some time
538,866
25.08.2022 17:41:44
14,400
5105f1c2b5cafad393d8b4126f3229daee176a72
deleted extra line...
[ { "change_type": "MODIFY", "old_path": ".appveyor.yml", "new_path": ".appveyor.yml", "diff": "@@ -37,7 +37,6 @@ install:\n- conda list\n- sh: if [[ $CI_LINUX == true ]]; then black . -l120 --exclude \"external/*\" --check; fi\n-\n# Install ACADOS on LINUX and MAC\n- cd external\n- sh: if [[ $CI_LINU...
Python
MIT License
pyomeca/bioptim
deleted extra line...
538,842
26.08.2022 14:43:57
14,400
b8d5776f46ac57f88a1fd751756ca70f6dc4d7f9
edit autoblack
[ { "change_type": "MODIFY", "old_path": ".github/workflows/autoblack.yml", "new_path": ".github/workflows/autoblack.yml", "diff": "@@ -17,7 +17,7 @@ jobs:\n- name: Install Black\nrun: pip install black\n- name: Run black --check .\n- run: black . -l120 --exclude \"external/*\"\n+ run: black --check ....
Python
MIT License
pyomeca/bioptim
edit autoblack
538,842
26.08.2022 15:51:36
14,400
4328035c258847602df9b5783d730acfbe932126
InterpolationType.EACHFRAME wtih collocation bug initialguess or initialguess list ?
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -146,7 +146,7 @@ class OptimizationVector:\ninterpolation_type = None if original_x_init is None else original_x_init.type\nif nlp.ode_solver.i...
Python
MIT License
pyomeca/bioptim
InterpolationType.EACHFRAME wtih collocation bug initialguess or initialguess list ?
538,842
26.08.2022 16:27:53
14,400
c8940dd538a49bac0b0b3ac6b2638b21eacf612c
making sure this works with the specified phase
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -135,7 +135,7 @@ class OptimizationVector:\nThe vector of all init\n\"\"\"\nv_init = InitialGuess(interpolation=InterpolationType.CONSTANT)\n- ...
Python
MIT License
pyomeca/bioptim
making sure this works with the specified phase
538,842
26.08.2022 17:57:24
14,400
27d99ce8b6d16a6993297a537e66d4fe48fc4285
safer to do this in the loop
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -137,6 +137,7 @@ class OptimizationVector:\nv_init = InitialGuess(interpolation=InterpolationType.CONSTANT)\nnlp = self.ocp.nlp[0] # this could...
Python
MIT License
pyomeca/bioptim
safer to do this in the loop
538,842
26.08.2022 17:57:45
14,400
3fff43f3a746c46cbfa9dd8724d2527b864758ec
not necessary if done in the loop
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -135,7 +135,6 @@ class OptimizationVector:\nThe vector of all init\n\"\"\"\nv_init = InitialGuess(interpolation=InterpolationType.CONSTANT)\n- ...
Python
MIT License
pyomeca/bioptim
not necessary if done in the loop
538,842
26.08.2022 18:06:46
14,400
b8706215759ce6f71f1f3611c2accbe7c271d40c
linear interpolation in collocation fixed
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimization_vector.py", "new_path": "bioptim/optimization/optimization_vector.py", "diff": "@@ -172,19 +172,25 @@ class OptimizationVector:\n\"\"\"\nnlp = self.ocp.nlp[phase]\nn_points = nlp.ode_solver.polynomial_degree + 1\n- x_init_vect...
Python
MIT License
pyomeca/bioptim
linear interpolation in collocation fixed
538,842
29.08.2022 07:45:58
14,400
4eeae1cf6987ffcd206d5d512a73fef209f8bfae
test are better for each frames and all points tests with zeros could have been misleading.
[ { "change_type": "MODIFY", "old_path": "tests/test_update_bounds_and_init.py", "new_path": "tests/test_update_bounds_and_init.py", "diff": "@@ -522,9 +522,13 @@ def test_update_noised_init_collocation(interpolation):\nu = np.array([[1.45, 9.81, 2.28], [-1.45, 9.81, -2.28]]).T\nelif interpolation == ...
Python
MIT License
pyomeca/bioptim
test are better for each frames and all points tests with zeros could have been misleading.
538,842
01.09.2022 17:07:51
14,400
fcf089c174bfe2540d06397d9099b01f43b6e763
time as property of solution
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -291,7 +291,7 @@ class Solution:\nself.real_time_to_optimize = None\nself.iterations = None\nself.status = None\n- self.time_vector = None\n+ self._time_vector = Non...
Python
MIT License
pyomeca/bioptim
time as property of solution
538,842
01.09.2022 17:31:09
14,400
cae0ef05486a5067d651aadf7a13b6cc9281fde5
time_phase withdraw of the arguments
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -655,7 +655,6 @@ class Solution:\ndef _generate_ocp_time(\nself,\n- time_phase: np.ndarray,\nkeep_intermediate_points: bool = None,\ncontinuous: bool = True,\nmerge_...
Python
MIT License
pyomeca/bioptim
time_phase withdraw of the arguments
538,842
01.09.2022 17:31:51
14,400
4475894a5111b8c601383fc50b414ec5314b3151
correct a bug for multiphase ocp
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -715,7 +715,7 @@ class Solution:\nif continuous:\nflat_time += [nlp.ns * dt_ns]\n- time_vector.append(np.array(flat_time))\n+ time_vector.append(sum(time_phase[:p+1]...
Python
MIT License
pyomeca/bioptim
correct a bug for multiphase ocp
538,842
01.09.2022 17:33:32
14,400
acc7d5c184b79b5955d36f0610fc7c8ef5df0aa7
more docstrings on the existing
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -743,15 +743,30 @@ class Solution:\ndef _generate_time_vector(\nself,\n- time_phase,\n- keep_intermediate_points: bool,\n- continuous: bool,\n- merge_phases: bool,\n...
Python
MIT License
pyomeca/bioptim
more docstrings on the existing
538,842
01.09.2022 17:34:21
14,400
70b1885464416c2ae675c0bf03e8953df7255627
correct a bug by changing a phase_idx by p
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -775,16 +775,16 @@ class Solution:\nt_integrated = []\nlast_t = 0\n- for phase_idx, nlp in enumerate(self.ocp.nlp):\n+ for p, nlp in enumerate(self.ocp.nlp):\nn_int_...
Python
MIT License
pyomeca/bioptim
correct a bug by changing a phase_idx by p
538,842
01.09.2022 19:29:55
14,400
50f285057ce216b56216e988086316ed9abb6e34
sub functions
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "-from typing import Any, Union\n+from typing import Any, Union, Callable, List\nfrom copy import deepcopy, copy\nimport biorbd_casadi as biorbd\n@@ -684,43 +684,79 @@ c...
Python
MIT License
pyomeca/bioptim
sub functions
538,842
02.09.2022 18:03:26
14,400
a7691bd4eaa8ad61f9fb8128d32f913dc02df974
handling keep intermediate point
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -10,6 +10,7 @@ def solve_ivp_interface(\nu: np.ndarray,\nparams: np.ndarray,\nmethod: str = \"RK45\",\n+ keep_intermediate_points: bool = False,\n)...
Python
MIT License
pyomeca/bioptim
handling keep intermediate point
538,842
02.09.2022 18:03:43
14,400
9553ebb2f9f888f7355357ed1d91af8e7fe81e8b
interface for solve_ivp with bioptim
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -118,3 +118,46 @@ def piecewise_constant_u(t: float, t_eval: Union[np.ndarray, List[float]], u: np\nreturn previous_t(t, t_eval) - 1 if previous_t(...
Python
MIT License
pyomeca/bioptim
interface for solve_ivp with bioptim
538,842
02.09.2022 18:05:20
14,400
a9a71fa858ad5f69805004929bdfaef24265f49e
dont flatten the time when generating time_vector if we use direct multiple shooting
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -658,6 +658,7 @@ class Solution:\nkeep_intermediate_points: bool = None,\ncontinuous: bool = True,\nmerge_phases: bool = False,\n+ shooting_type: Shooting = None,\n)...
Python
MIT License
pyomeca/bioptim
dont flatten the time when generating time_vector if we use direct multiple shooting
538,842
02.09.2022 18:06:29
14,400
e293afacfa688cc5bea9f617de8b6f82ee6ae45e
interval time step definition is now the same between DC and DMS
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -720,7 +720,7 @@ class Solution:\nreturn time_vector\n@staticmethod\n- def __define_step_times(\n+ def _define_step_times(\ndynamics_step_time: list,\node_solver_ste...
Python
MIT License
pyomeca/bioptim
interval time step definition is now the same between DC and DMS
538,842
02.09.2022 18:07:45
14,400
11d31e85a4e35e63567cf183fcf0e3ef6c6286bb
concatenate/merge either list or list[dict] of decision variable for each phase
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -767,22 +767,55 @@ class Solution:\nreturn step_times\n@staticmethod\n- def __concatenate_decision_variables(z: list) -> np.ndarray:\n+ def __concatenate_decision_va...
Python
MIT License
pyomeca/bioptim
concatenate/merge either list or list[dict] of decision variable for each phase
538,842
02.09.2022 18:08:38
14,400
1e204613153bd3edeed53224bc3f853720b8c196
merge time_vector when necessary.
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1417,6 +1417,7 @@ class Solution:\nnew = self.copy(skip_data=True)\nnew.parameters = deepcopy(self.parameters)\nnew._states, new._controls, new.phase_time, new.ns =...
Python
MIT License
pyomeca/bioptim
merge time_vector when necessary.
538,842
02.09.2022 18:09:40
14,400
57f5fdc2369e923018421011d8d80b5e4c7729b8
replacing p by phase this is better to read code
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1126,7 +1126,7 @@ class Solution:\nThe shooting type to use\nintegrator: SolutionIntegrator\nThe integrator to use\n- p: int\n+ phase: int\nThe phase of the ocp to ...
Python
MIT License
pyomeca/bioptim
replacing p by phase this is better to read code
538,842
02.09.2022 18:10:01
14,400
49d032184af83274599487de9c04088c8db00beb
an extra space to read code
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1239,6 +1239,7 @@ class Solution:\nfor p, nlp in enumerate(self.ocp.nlp):\nparam_scaling = nlp.parameters.scaling\nn_states = self._states[p][\"all\"].shape[0]\n+\n...
Python
MIT License
pyomeca/bioptim
an extra space to read code
538,842
02.09.2022 18:11:56
14,400
e8eda06466aa675e7a0af5c2ccd4092278a792d9
moving this function in the interface
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1012,112 +1012,42 @@ class Solution:\nreturn out\n- def __get_first_frame_states(\n- self, x0: np.ndarray, shooting_type: Shooting, integrator: SolutionIntegrator, ...
Python
MIT License
pyomeca/bioptim
moving this function in the interface
538,842
02.09.2022 18:12:40
14,400
1111de4629d6f9a5e8e9ea2921be13af91f735c0
perform_integrate_2 is evolving and gets better
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -932,84 +932,60 @@ class Solution:\n# Copy the data\nout = self.copy(skip_data=True)\nout.recomputed_time_steps = integrator != SolutionIntegrator.DEFAULT\n- out._st...
Python
MIT License
pyomeca/bioptim
perform_integrate_2 is evolving and gets better
538,842
02.09.2022 18:13:26
14,400
01daff4bd392f643dcca2256b2a7f52465f9835b
using perform_integration_2
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -24,6 +24,7 @@ from ..misc.utils import check_version\nfrom ..optimization.non_linear_program import NonLinearProgram\nfrom ..optimization.optimization_variable impo...
Python
MIT License
pyomeca/bioptim
using perform_integration_2
538,842
02.09.2022 18:14:42
14,400
2a841b32afafefc32c8a813be2fb32c8c9eab4e0
modifying some extra lines after inetgration that i don't understand the use and they made the integration fail
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -658,11 +658,18 @@ class Solution:\n)\nif merge_phases:\n+ out.is_merged = True\nif continuous:\n- out = out.interpolate(sum(out.ns) + 1)\n+ # todo: what is interpol...
Python
MIT License
pyomeca/bioptim
modifying some extra lines after inetgration that i don't understand the use and they made the integration fail
538,842
02.09.2022 18:41:20
14,400
6812ade72268307e1574074e8ced4eab82aae36d
continuous is need for solve_ivp interface of bioptim
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -123,6 +123,7 @@ def piecewise_constant_u(t: float, t_eval: Union[np.ndarray, List[float]], u: np\ndef solve_ivp_bioptim_interface(\ndynamics_func:...
Python
MIT License
pyomeca/bioptim
continuous is need for solve_ivp interface of bioptim
538,842
02.09.2022 19:17:49
14,400
082235119e1de658d5578e7e79e00085ad08c23a
making it compatible with rk4 integrator.DEFAULT and keep_intermediate=True and contrinuous=True
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -141,6 +141,8 @@ def solve_ivp_bioptim_interface(\nfunction that computes the dynamics of the system\nkeep_intermediate_points : bool\nwhether to k...
Python
MIT License
pyomeca/bioptim
making it compatible with rk4 integrator.DEFAULT and keep_intermediate=True and contrinuous=True
538,842
02.09.2022 22:47:39
14,400
f869b6589464d7b0b3e645e331eaddea57d6e3bf
documentation to know all the cases that can be done when using sol.integrate
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1360,12 +1360,80 @@ It is possible to integrate (also called simulate) the states at will, by callin\nThe `shooting_type: Shooting` parameter allows to select the type of integration to perform (see the enum Sh...
Python
MIT License
pyomeca/bioptim
documentation to know all the cases that can be done when using sol.integrate
538,842
02.09.2022 22:48:17
14,400
2c9b6bd74bb8fe2b2086af9738bb3fa84717b811
print odesolver in one line
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/ode_solver.py", "new_path": "bioptim/dynamics/ode_solver.py", "diff": "@@ -144,7 +144,7 @@ class RK(OdeSolverBase):\nreturn [nlp.ode_solver.rk_integrator(ode, ode_opt)]\ndef __str__(self):\n- ode_solver_string = f\"{self.rk_integrator.__name__...
Python
MIT License
pyomeca/bioptim
print odesolver in one line
538,842
02.09.2022 22:48:53
14,400
07b590dd837388fe50f9fe8668f6d451cf3fc9c5
not continuous works with SolutionIntegrator.DEFAULT
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -977,8 +977,11 @@ class Solution:\nx0 = self.__get_first_frame_states(x0, shooting_type, integrator, phase=p)\nu = self._controls[p][\"all\"][:, :]\n- if continuous:...
Python
MIT License
pyomeca/bioptim
not continuous works with SolutionIntegrator.DEFAULT
538,842
02.09.2022 22:57:57
14,400
1f1d0033cfd08d1e3ed28781c6e43f83cb70e6a5
centered columns
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1372,7 +1372,7 @@ One can consider the other arguments to verify the relevance of the integration.\nLet's begin with `shooting_type = Shooting.SINGLE`:\nOdeSolver | <div style=\"width:110px\">merge_phase</div> ...
Python
MIT License
pyomeca/bioptim
centered columns
538,842
03.09.2022 10:31:22
14,400
519b8b68c11e9d4a587f252b92fb7e397b2b1858
continuity only concerns nodes of the end of interval in single shooting
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -719,6 +719,11 @@ class Solution:\ncontinuous=continuous,\n)\n+ if shooting_type == Shooting.SINGLE and not continuous:\n+ # discard the last time step because conti...
Python
MIT License
pyomeca/bioptim
continuity only concerns nodes of the end of interval in single shooting
538,842
03.09.2022 10:31:58
14,400
87b5745df99553add2ef56d8767764e18222242b
merging when not continuous
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -668,7 +668,13 @@ class Solution:\nout.ns = sum(out.ns)\nout._time_vector = [self.__concatenate_decision_variables(out._time_vector)]\nelse:\n- out._states, _, out.p...
Python
MIT License
pyomeca/bioptim
merging when not continuous
538,842
03.09.2022 10:33:08
14,400
a3e413c69d1111bec81fb28b93deab23af128278
adding terminal time node of phases in single shooting when it's not continuous
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -741,7 +741,7 @@ class Solution:\nflat_time = [st for sub_time in time for st in sub_time]\n# add the final time of the phase\n- if continuous:\n+ if continuous or (...
Python
MIT License
pyomeca/bioptim
adding terminal time node of phases in single shooting when it's not continuous
538,842
03.09.2022 10:33:51
14,400
8d96a1b3fa34a0c89998a7db467b3a58aa6fe3e6
solve ivp with bioptim to handle not continuous and keep intermediates and Single shooting
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -162,12 +162,20 @@ def solve_ivp_bioptim_interface(\ndynamics_output = \"xall\" if keep_intermediate_points else \"xf\"\n- y_final = np.array([], d...
Python
MIT License
pyomeca/bioptim
solve ivp with bioptim to handle not continuous and keep intermediates and Single shooting
538,855
06.09.2022 11:02:49
14,400
194052694e09a9be6cf10e94b4e1af232631231a
readme update (do not use .bo)
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -599,6 +599,7 @@ ocp, solution = OptimalControlProgram.load(file_path)\n```\nPlease note that this is `bioptim` version dependent, which means that an optimized solution from a previous version will not probably...
Python
MIT License
pyomeca/bioptim
readme update (do not use .bo)
538,842
06.09.2022 11:43:59
14,400
37e51fc9c3f43c62ec73b93214eade0dd42da937
moving sanity checks
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -642,6 +642,19 @@ class Solution:\n\"Shooting.SINGLE_CONTINUOUS and continuous=False cannot be used simultaneously it is a contradiction\"\n)\n+ n_direct_collocation...
Python
MIT License
pyomeca/bioptim
moving sanity checks
538,842
06.09.2022 13:21:54
14,400
89aa4c43eeb84cca9d3a47f77003a754c2fc032a
multiple shooting getting there
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -679,6 +679,16 @@ class Solution:\n# out._controls = self.__concatenate_decision_variables_dict(out._controls)\nout.phase_time = [out.phase_time[0], sum(out.phase_ti...
Python
MIT License
pyomeca/bioptim
multiple shooting getting there
538,842
06.09.2022 13:22:21
14,400
c409eb452f2fc9e4cd2b69cbba1f8d538fac7068
getting there with multiple shooting
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "from typing import Union, List, Callable, Any\nimport numpy as np\nfrom scipy.integrate import solve_ivp\n+from ..misc.enums import Shooting\ndef solv...
Python
MIT License
pyomeca/bioptim
getting there with multiple shooting
538,842
07.09.2022 11:51:47
14,400
717b52d1697878b541b9eafe3f4fabc51a54aafc
solve ivp scipy truly compatible with dms
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -12,6 +12,7 @@ def solve_ivp_interface(\nparams: np.ndarray,\nmethod: str = \"RK45\",\nkeep_intermediate_points: bool = False,\n+ continuous: bool ...
Python
MIT License
pyomeca/bioptim
solve ivp scipy truly compatible with dms
538,842
07.09.2022 12:36:45
14,400
bbc2f072ae3b3cca2545093e137bc5278b25db98
moved and reccurent concatenation
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -829,67 +829,6 @@ class Solution:\nreturn step_times\n- @staticmethod\n- def __concatenate_decision_variables_dict(\n- z: list[dict[np.ndarray]], continuous: bool = ...
Python
MIT License
pyomeca/bioptim
moved and reccurent concatenation
538,842
07.09.2022 12:36:58
14,400
33402959de6ff4369d6c12529728d2bec6f05bee
solve ivp scipy for dms
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -10,7 +10,7 @@ def solve_ivp_interface(\nx0: np.ndarray,\nu: np.ndarray,\nparams: np.ndarray,\n- method: str = \"RK45\",\n+ method: Union[str, Any]...
Python
MIT License
pyomeca/bioptim
solve ivp scipy for dms
538,842
07.09.2022 12:37:28
14,400
b548b39780d237a90cb96b5f5b65d71e5aa87f8f
concatenation to merge phases in dms
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -675,27 +675,27 @@ class Solution:\nif continuous:\n# todo: what is interpolation?\n# out = out.interpolate(sum(out.ns) + 1)\n- out._states = self.__concatenate_deci...
Python
MIT License
pyomeca/bioptim
concatenation to merge phases in dms
538,842
07.09.2022 15:55:57
14,400
3aec7b9f4ae318af24085955a7e01d5f1c697652
sanity check ++
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -637,6 +637,10 @@ class Solution:\n\"Shooting.MULTIPLE and keep_intermediate_points=False cannot be used simultaneously \"\n\"since it would do nothing\"\n)\n+ if sh...
Python
MIT License
pyomeca/bioptim
sanity check ++
538,842
07.09.2022 15:56:41
14,400
a785ca8469db7577cc1ad6af6489f8741da3eb91
move perform_integration
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -899,97 +899,6 @@ class Solution:\nlast_t += time_phase[p + 1]\nreturn t_integrated\n- def __perform_integration_2(\n- self,\n- shooting_type: Shooting,\n- keep_inte...
Python
MIT License
pyomeca/bioptim
move perform_integration
538,842
07.09.2022 15:57:11
14,400
f4ee5d1143e7c368d148efda34a7b5ce4568783f
remove old perform_integration
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -659,18 +659,10 @@ class Solution:\n\"if a scipy integrator is not used\"\n)\n- # out = self.__perform_integration(\n- # shooting_type=shooting_type,\n- # keep_inter...
Python
MIT License
pyomeca/bioptim
remove old perform_integration
538,842
07.09.2022 15:57:28
14,400
236bd5b154a9e4d6b77cb7935e0beae3dceaf5bf
extra sanity
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -658,6 +658,8 @@ class Solution:\n\"Integration with direct collocation must using shooting_type=Shooting.MULTIPLE \"\n\"if a scipy integrator is not used\"\n)\n+ el...
Python
MIT License
pyomeca/bioptim
extra sanity
538,842
07.09.2022 15:57:55
14,400
0d09366a105231b5aff38e13053598e0b509457f
only one case when merging in continuous
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -677,17 +677,8 @@ class Solution:\n# out._controls = _concatenate_decision_variables_dict(out._controls)\nout.phase_time = [out.phase_time[0], sum(out.phase_time[1:]...
Python
MIT License
pyomeca/bioptim
only one case when merging in continuous
538,842
07.09.2022 15:58:14
14,400
35ead6d6c3d225dc386bc9f9676121fecb1d6d32
no more merge phase in perform integration
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1010,8 +1010,6 @@ class Solution:\nIf the integration should return the intermediate values of the integration\ncontinuous: bool\nIf the arrival value of a node sho...
Python
MIT License
pyomeca/bioptim
no more merge phase in perform integration
538,842
07.09.2022 15:59:32
14,400
123a19e6c28a963c4407f6ce691810476cd597a4
merging intervals when shooting is multiple
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -688,6 +688,9 @@ class Solution:\n# out._states, _, out.phase_time, out.ns = out._merge_phases(skip_controls=True, continuous=continuous)\n# out.is_merged = True\n+ ...
Python
MIT License
pyomeca/bioptim
merging intervals when shooting is multiple
538,842
07.09.2022 16:00:08
14,400
8014800421672244a100b41d4ccae4ddcb76310e
concatenation at ease
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -684,7 +684,7 @@ class Solution:\n# out._controls = _concatenate_decision_variables_dict(out._controls)\nout.phase_time = [out.phase_time[0], sum(out.phase_time[1:])...
Python
MIT License
pyomeca/bioptim
concatenation at ease
538,842
07.09.2022 16:00:33
14,400
5e6c42612ca661818c3e79d1960c718a4c5a8c88
handling many cases in interfaces
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -44,16 +44,16 @@ def solve_ivp_interface(\n\"\"\"\nif isinstance(t_eval[0], np.ndarray): # Direct multiple shooting\n- if continuous:\n- y_final = ...
Python
MIT License
pyomeca/bioptim
handling many cases in interfaces
538,842
08.09.2022 14:10:58
14,400
b376fc50bf35b9382a2e37ee2b1b82b4c51630e3
sanity check for pickle.load
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -1047,7 +1047,13 @@ class OptimalControlProgram:\n\"\"\"\nwith open(file_path, \"rb\") as file:\n+ try:\ndata = pickle.load(file)\n+ ex...
Python
MIT License
pyomeca/bioptim
sanity check for pickle.load
538,842
09.09.2022 14:26:39
14,400
627a2e88035be77944b26a5e8c58e948364ef45a
continuous flag is desappearing making SINGLE_CONTINUOUS = SINGLE and SINGLE = SINGLE_DISCOUNTINOUS_PHASE
[ { "change_type": "MODIFY", "old_path": "bioptim/misc/enums.py", "new_path": "bioptim/misc/enums.py", "diff": "@@ -62,7 +62,7 @@ class Shooting(Enum):\nMULTIPLE = \"Multiple\"\nSINGLE = \"Single\"\n- SINGLE_CONTINUOUS = \"Single continuous\"\n+ SINGLE_DISCONTINUOUS_PHASE = \"Single discontinuous phas...
Python
MIT License
pyomeca/bioptim
continuous flag is desappearing making SINGLE_CONTINUOUS = SINGLE and SINGLE = SINGLE_DISCOUNTINOUS_PHASE
538,842
09.09.2022 14:27:15
14,400
145ab2cfb426549e5a7377ee31345f8860326a28
sanity checks in a proper method
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -585,7 +585,7 @@ class Solution:\nThe time instant vector\n\"\"\"\n- if not self._time_vector:\n+ if self._time_vector is None:\nraise RuntimeError(\n\"There is no t...
Python
MIT License
pyomeca/bioptim
sanity checks in a proper method
538,842
09.09.2022 14:27:36
14,400
bcc083dabea63c2efad33e9d63beb6121d3ee19d
some cleaned comments
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -1057,7 +1057,6 @@ class Solution:\nx0 = self._get_first_frame_states(out, shooting_type, integrator, phase=p, continuous=continuous)\nu = self._controls[p][\"all\"]...
Python
MIT License
pyomeca/bioptim
some cleaned comments
538,842
09.09.2022 17:22:38
14,400
893a531e8764b1a7cbce9ab922c193b2c1bf6ba8
time tested in solution
[ { "change_type": "ADD", "old_path": null, "new_path": "bioptim/examples/torque_driven_ocp/models/slider.bioMod", "diff": "+version 4\n+\n+gravity 0 -9.81 0\n+\n+segment Seg1\n+ translations y\n+ ranges -1 1\n+ mass 0.5\n+ inertia\n+ 0.1 0 0\n+ 0 0.1 0\n+ 0 0 0.1\n+ com 0 0.5 0\n+ mesh 0 0 0\n+ mesh ...
Python
MIT License
pyomeca/bioptim
time tested in solution
538,842
09.09.2022 17:37:42
14,400
c6a06f275c96d2c7c2d3bf35c6fcf1995b7d477f
too important line commented
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -227,8 +227,8 @@ def solve_ivp_bioptim_interface(\n# update x0 for the next step\nif shooting_type == Shooting.MULTIPLE: # and continuous is False:...
Python
MIT License
pyomeca/bioptim
too important line commented
538,842
09.09.2022 18:12:39
14,400
1872255d44aed9e76c008c627c0759bd6f56e9b3
cleaning the inferface
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -44,16 +44,10 @@ def solve_ivp_interface(\n\"\"\"\nif isinstance(t_eval[0], np.ndarray): # Direct multiple shooting\n- # if continuous:\n- # y_fina...
Python
MIT License
pyomeca/bioptim
cleaning the inferface
538,842
09.09.2022 18:13:18
14,400
793efe7824df0d764b174bd9da3203e1c080f67f
bug fixed for COLLOCATION integrated with scipy
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -975,6 +975,9 @@ class Solution:\nelse:\nreturn self._states[phase][\"all\"][:, 0]\nelif shooting_type == Shooting.MULTIPLE:\n+ if self.ocp.nlp[phase].ode_solver.is_...
Python
MIT License
pyomeca/bioptim
bug fixed for COLLOCATION integrated with scipy
538,842
09.09.2022 19:47:26
14,400
a0a102a473c6fbbdea2865e2d1094ef9b939ed20
this test works fine !
[ { "change_type": "MODIFY", "old_path": "tests/test_solution.py", "new_path": "tests/test_solution.py", "diff": "@@ -208,3 +208,128 @@ def test_generate_time(\nnp.testing.assert_almost_equal(time[0][0][1], 0.06666666666666667)\nnp.testing.assert_almost_equal(time[1][0][1], 0.275)\nnp.testing.assert_a...
Python
MIT License
pyomeca/bioptim
this test works fine !
538,842
09.09.2022 19:56:27
14,400
b8dbb839a92acb3c2c30af5dc5b4a4c535e0d7ff
The test gets better
[ { "change_type": "MODIFY", "old_path": "tests/test_solution.py", "new_path": "tests/test_solution.py", "diff": "@@ -290,46 +290,55 @@ def test_generate_integrate(\nintegrator=integrator\n)\n-\n-\nmerged_sol = sol.merge_phases()\n- import matplotlib.pyplot as plt\n- plt.figure()\n-\n- print(merged_so...
Python
MIT License
pyomeca/bioptim
The test gets better
538,842
09.09.2022 20:05:38
14,400
488820c159683b32c0fbadaee58e4003bc8415d9
continous is desappearing
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -12,7 +12,6 @@ def solve_ivp_interface(\nparams: np.ndarray,\nmethod: Union[str, Any] = \"RK45\",\nkeep_intermediate_points: bool = False,\n- conti...
Python
MIT License
pyomeca/bioptim
continous is desappearing
538,842
10.09.2022 10:36:39
14,400
2c303b1c692d68044f076f7422f08a1581d89649
some updates in the documentation
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1345,12 +1345,28 @@ sol = ocp.solve()\n### Data manipulation\nThe Solution structure holds all the optimized values.\n-To get the states variable, one can invoke the `states = sol.states` property.\n-Similarly,...
Python
MIT License
pyomeca/bioptim
some updates in the documentation
538,842
10.09.2022 11:22:37
14,400
63a2a37c0e3e9c801cfaaf758ef2d9c65dca0b78
updating the tests
[ { "change_type": "MODIFY", "old_path": "tests/test_initial_condition.py", "new_path": "tests/test_initial_condition.py", "diff": "@@ -224,7 +224,7 @@ def test_simulate_from_initial_single_shoot():\nsol = Solution(ocp, [X, U])\ncontrols = sol.controls\n- sol = sol.integrate(shooting_type=Shooting.SIN...
Python
MIT License
pyomeca/bioptim
updating the tests
538,842
10.09.2022 11:42:06
14,400
6b3b41b1145b8ec79620323bb1b6cd03c2242ee6
getting ready for COLLOCATION by DEFAULT
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -878,6 +878,9 @@ class Solution:\nelse:\nreturn self._states[phase][\"all\"][:, 0]\nelif shooting_type == Shooting.MULTIPLE:\n+ if self.ocp.nlp[phase].ode_solver.is_...
Python
MIT License
pyomeca/bioptim
getting ready for COLLOCATION by DEFAULT
538,842
10.09.2022 11:54:59
14,400
a3d369ae63a1b9f26a0d6e6c7bb4c231aada3b01
more precise about collocation with scipy in the documentation
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1432,8 +1432,8 @@ DMS | True | SCIPY | :white_check_mark: | |\nDMS | False | SCIPY | :white_check_mark: | |\nCOLLOCATION | True | DEFAULT | :white_check_mark: | |\nCOLLOCATION | False | DEFAULT | :white_check_m...
Python
MIT License
pyomeca/bioptim
more precise about collocation with scipy in the documentation
538,842
10.09.2022 13:56:26
14,400
1b1d77133d2414ff855e04543860b4873f8f6779
refactored solve_ivp_bioptim_interface
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/solve_ivp_interface.py", "new_path": "bioptim/interfaces/solve_ivp_interface.py", "diff": "@@ -182,37 +182,38 @@ def solve_ivp_bioptim_interface(\narray of the solution of the system at the times t_eval\n\"\"\"\n+\n+ # todo: x0i size has to ...
Python
MIT License
pyomeca/bioptim
refactored solve_ivp_bioptim_interface
538,842
10.09.2022 17:25:05
14,400
1d98abd9c6c4519413649e034285a1263aadd99d
A proposal for plot regarding the size of the array in function of time vector.
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -608,12 +608,21 @@ class PlotOcp:\nself.ydata = []\nsol = Solution(self.ocp, v)\n- data_states = sol.integrate(\n- continuous=False,\n+\n+ if all([nlp.ode_solver.is_direct_collocation for nlp...
Python
MIT License
pyomeca/bioptim
A proposal for plot regarding the size of the array in function of time vector.