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,851
27.07.2020 10:17:21
14,400
ed5576bae3e75052dd9e5a2de8abfdb4707e99e4
move analyse function !
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -711,7 +711,7 @@ class OptimalControlProgram:\nself.solver.finish_get_iterations()\nif return_objectives:\n- self.solver.get_objective_values...
Python
MIT License
pyomeca/bioptim
move analyse function !
538,857
28.07.2020 22:04:15
14,400
b4e7065fe5464ebdc74100747b8b0f021c068351
Correction of "initalizer" instead of wrong "initilializer" mispelling
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -727,7 +727,7 @@ class OptimalControlProgram:\nfile_path = file_path + \".bo\"\nelif ext != \".bo\":\nraise RuntimeError(f\"Incorrect extensi...
Python
MIT License
pyomeca/bioptim
Correction of "initalizer" instead of wrong "initilializer" mispelling
538,855
07.08.2020 09:04:12
14,400
f806af8a7851ff29d2b015ee7cb2dc0c3bd1cadd
Changes to makers_displacement to work with quaternions Before, this penalty function returned NaNs. Now it should be fine.
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/limits/penalty.py", "new_path": "biorbd_optim/limits/penalty.py", "diff": "@@ -99,30 +99,33 @@ class PenaltyFunctionAbstract:\n:coordinates_system_idx: Index of the segment in which to project to displacement\n:param markers_idx: Index of the mark...
Python
MIT License
pyomeca/bioptim
Changes to makers_displacement to work with quaternions Before, this penalty function returned NaNs. Now it should be fine.
538,863
15.09.2020 10:34:05
-7,200
cda69ccc7687527d486b917cca26d6547736b125
Add first version of array accessor to BoundsOption class
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/limits/path_conditions.py", "new_path": "biorbd_optim/limits/path_conditions.py", "diff": "@@ -196,6 +196,14 @@ class BoundsOption(OptionGeneric):\nself.bounds = bounds\nself.min = self.bounds.min\nself.max = self.bounds.max\n+ self.min_and_max = ...
Python
MIT License
pyomeca/bioptim
Add first version of array accessor to BoundsOption class
538,863
15.09.2020 16:07:37
-7,200
739252ebf2560a4b24c625487ac2c803dded60f1
Modified accessor to be only an accessor to min and max, not a numpy array anymore Add a test, test_bounds_access, for this
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/limits/path_conditions.py", "new_path": "biorbd_optim/limits/path_conditions.py", "diff": "@@ -196,13 +196,13 @@ class BoundsOption(OptionGeneric):\nself.bounds = bounds\nself.min = self.bounds.min\nself.max = self.bounds.max\n- self.min_and_max =...
Python
MIT License
pyomeca/bioptim
Modified accessor to be only an accessor to min and max, not a numpy array anymore Add a test, test_bounds_access, for this
538,863
15.09.2020 16:44:25
-7,200
6b50ad73add1da1976df1591bae20558f30cb3d0
Modified accessor variable name key by slice Add a second test where min and max are multidimensional
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/limits/path_conditions.py", "new_path": "biorbd_optim/limits/path_conditions.py", "diff": "@@ -197,13 +197,12 @@ class BoundsOption(OptionGeneric):\nself.min = self.bounds.min\nself.max = self.bounds.max\n- def __getitem__(self, key):\n- return (s...
Python
MIT License
pyomeca/bioptim
Modified accessor variable name key by slice Add a second test where min and max are multidimensional
538,863
15.09.2020 17:21:52
-7,200
34d9875a54b37fb8c7522e0249ec8675914c91f3
Initialize test variable as a multidimensional one
[ { "change_type": "MODIFY", "old_path": "tests/test_bounds_accessor.py", "new_path": "tests/test_bounds_accessor.py", "diff": "@@ -26,10 +26,10 @@ def test_accessors_on_bounds_option():\ndef test_accessors_on_bounds_option_multidimensional():\n- x_min = [-100] * 6\n- x_max = [100] * 6\n+ x_min = [[-1...
Python
MIT License
pyomeca/bioptim
Initialize test variable as a multidimensional one
538,863
16.09.2020 10:03:00
-7,200
7da569b0a894fef44f18196731dd3c05eec2f437
Add beginning of NonLinearProgram class
[ { "change_type": "ADD", "old_path": null, "new_path": "biorbd_optim/misc/non_linear_program.py", "diff": "+class NonLinearProgram:\n+ def __init__(\n+ self,\n+ model,\n+ phase_idx,\n+ ns,\n+ tf,\n+ t0,\n+ dt,\n+ nb_threads,\n+ external_forces,\n+ X_bounds,\n+ U_bounds,\n+ dynamics_type,\n+ ode_solve...
Python
MIT License
pyomeca/bioptim
Add beginning of NonLinearProgram class
538,863
16.09.2020 10:21:14
-7,200
a98aec00ee8df3461630b26994fe8cd610018aad
Add default value for some of the arguments
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/non_linear_program.py", "new_path": "biorbd_optim/misc/non_linear_program.py", "diff": "@@ -17,16 +17,9 @@ class NonLinearProgram:\nX_init,\nU_init,\nnb_integration_steps,\n- plot,\n- var_states,\n- var_controls,\nCX,\nx,\nu,\n- J,\n- g,\n- g...
Python
MIT License
pyomeca/bioptim
Add default value for some of the arguments
538,863
16.09.2020 10:30:46
-7,200
6b07a3046c6a1ee168f02641e6786ba57e80ea6a
Changing the value of x and u to the right ones
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/non_linear_program.py", "new_path": "biorbd_optim/misc/non_linear_program.py", "diff": "@@ -54,16 +54,9 @@ class NonLinearProgram:\nself.X_init = X_init\nself.U_init = U_init\nself.nb_integration_steps = nb_integration_steps\n- self.plot = pl...
Python
MIT License
pyomeca/bioptim
Changing the value of x and u to the right ones
538,863
16.09.2020 14:54:03
-7,200
590b441d65b030288e1c2d5784c5912ff05448a9
Adding default value to all parameters to not change the code too much
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/non_linear_program.py", "new_path": "biorbd_optim/misc/non_linear_program.py", "diff": "class NonLinearProgram:\ndef __init__(\nself,\n- model,\n- phase_idx,\n- ns,\n- tf,\n- t0,\n- dt,\n- nb_threads,\n- external_forces,\n- X_bounds,\n- U_bou...
Python
MIT License
pyomeca/bioptim
Adding default value to all parameters to not change the code too much
538,863
16.09.2020 17:04:03
-7,200
46dc0deb6964a703697c4653aff60cce612b835c
Modified nlp.*_mapping and nlp.nb* to nlp.mapping["*"] and nlp.shape["*"] in dynamics/
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/dynamics/dynamics_functions.py", "new_path": "biorbd_optim/dynamics/dynamics_functions.py", "diff": "@@ -26,17 +26,17 @@ class DynamicsFunctions:\nq, qdot, tau = DynamicsFunctions.dispatch_q_qdot_tau_data(states, controls, nlp)\nq_dot = nlp.model....
Python
MIT License
pyomeca/bioptim
Modified nlp.*_mapping and nlp.nb* to nlp.mapping["*"] and nlp.shape["*"] in dynamics/
538,863
16.09.2020 17:06:45
-7,200
f509cfe13d5c3ce7bbb35d429e62f6f4d70efc92
Modified size attribute to shape attribute
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/non_linear_program.py", "new_path": "biorbd_optim/misc/non_linear_program.py", "diff": "@@ -30,7 +30,7 @@ class NonLinearProgram:\npar_dynamics={},\nphase_idx=None,\nplot={},\n- size={},\n+ shape={},\nt0=None,\ntf=None,\nu=None,\n@@ -67,7 +67...
Python
MIT License
pyomeca/bioptim
Modified size attribute to shape attribute
538,863
16.09.2020 17:17:03
-7,200
576d0f0e8bece1087d0bc0bd84fa57db5c1d62bc
Modified nlp.*_mapping and nlp.nb* to nlp.mapping["*"] and nlp.shape["*"] in limits/
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/limits/continuity.py", "new_path": "biorbd_optim/limits/continuity.py", "diff": "@@ -64,10 +64,10 @@ class StateTransitionFunctions:\n# Aliases\nnlp_pre, nlp_post = StateTransitionFunctions.Functions.__get_nlp_pre_and_post(ocp, transition.phase_pr...
Python
MIT License
pyomeca/bioptim
Modified nlp.*_mapping and nlp.nb* to nlp.mapping["*"] and nlp.shape["*"] in limits/
538,863
17.09.2020 10:31:35
-7,200
4372caa541a6ee81edfe4da991f22b5074dd756d
Corrected nlp.mapping and nlp.shape
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/dynamics/problem.py", "new_path": "biorbd_optim/dynamics/problem.py", "diff": "@@ -198,7 +198,8 @@ class Problem:\n:param nlp: An OptimalControlProgram class.\n\"\"\"\nif nlp.mapping[\"q\"] is None:\n- nlp.mapping[\"q\"] = BidirectionalMapping(Map...
Python
MIT License
pyomeca/bioptim
Corrected nlp.mapping and nlp.shape
538,863
17.09.2020 10:34:47
-7,200
7e16cd945e3f41217dc256954db8c7a4954a11c5
Add parameters_to_optimize to nlp class
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/non_linear_program.py", "new_path": "biorbd_optim/misc/non_linear_program.py", "diff": "@@ -34,6 +34,7 @@ class NonLinearProgram:\node_solver=OdeSolver.RK,\np=None,\npar_dynamics={},\n+ parameters_to_optimize={},\nphase_idx=0,\nplot={},\nshap...
Python
MIT License
pyomeca/bioptim
Add parameters_to_optimize to nlp class
538,863
17.09.2020 10:56:43
-7,200
7cbdac2935587a8199ec571ffd4321878fee9f02
Add temporary solution for mapping variables and corrected some tests
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -264,16 +264,16 @@ class OptimalControlProgram:\nraise RuntimeError(\"all_generalized_mapping and a specified mapping cannot be used alongsid...
Python
MIT License
pyomeca/bioptim
Add temporary solution for mapping variables and corrected some tests
538,863
17.09.2020 11:02:27
-7,200
7ffb4b96284f3e8ea1eece42a4f69abff73c0f7e
Corrected some test, added NonLinearProgram to __init__.py
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/__init__.py", "new_path": "biorbd_optim/__init__.py", "diff": "@@ -19,6 +19,7 @@ from .limits.path_conditions import (\nfrom .misc.data import Data\nfrom .misc.enums import Axe, Instant, InterpolationType, OdeSolver, PlotType, Solver, ControlType\...
Python
MIT License
pyomeca/bioptim
Corrected some test, added NonLinearProgram to __init__.py
538,863
17.09.2020 11:22:00
-7,200
e40f96cf477b4fa0097878cb7d140f3be7987f85
Corrected typo for shape["q_dot"]
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/dynamics/dynamics_functions.py", "new_path": "biorbd_optim/dynamics/dynamics_functions.py", "diff": "@@ -279,7 +279,7 @@ class DynamicsFunctions:\nmuscles_states = biorbd.VecBiorbdMuscleState(nlp.shape[\"muscle\"])\nmuscles_excitation = controls[n...
Python
MIT License
pyomeca/bioptim
Corrected typo for shape["q_dot"]
538,863
17.09.2020 14:54:27
-7,200
8505971b2a83674472c8951629bb9a7938e88995
Trying to add all forgotten variables to nlp
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/gui/plot.py", "new_path": "biorbd_optim/gui/plot.py", "diff": "@@ -508,7 +508,7 @@ class ShowResult:\nall_bioviz = []\nfor idx_phase, data in enumerate(data_interpolate[\"q\"]):\nall_bioviz.append(BiorbdViz.BiorbdViz(loaded_model=self.ocp.nlp[idx_...
Python
MIT License
pyomeca/bioptim
Trying to add all forgotten variables to nlp
538,863
17.09.2020 15:30:08
-7,200
3b8f2f986b43f10cd9c687352770ab4a8ac6e67a
Modified shape["qdot"] to shape["q_dot"], corrected 6 tests over 7
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/dynamics/dynamics_functions.py", "new_path": "biorbd_optim/dynamics/dynamics_functions.py", "diff": "@@ -249,7 +249,7 @@ class DynamicsFunctions:\nmuscles_states = biorbd.VecBiorbdMuscleState(nlp.shape[\"muscle\"])\nmuscles_excitation = controls\n...
Python
MIT License
pyomeca/bioptim
Modified shape["qdot"] to shape["q_dot"], corrected 6 tests over 7
538,863
17.09.2020 15:44:45
-7,200
718bd369270f8cf26f43e05933fd35b4411febf2
Finished to add all variables to nlp
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/non_linear_program.py", "new_path": "biorbd_optim/misc/non_linear_program.py", "diff": "@@ -62,6 +62,7 @@ class NonLinearProgram:\nself.X_bounds = X_bounds\nself.X_init = X_init\nself.casadi_func = casadi_func\n+ self.contact_forces_func = co...
Python
MIT License
pyomeca/bioptim
Finished to add all variables to nlp
538,863
17.09.2020 17:34:46
-7,200
605e8e34571695fbc061e5af7b5070c062459810
Changed nlp.qdot to nlp.q_dot
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/dynamics/problem.py", "new_path": "biorbd_optim/dynamics/problem.py", "diff": "@@ -226,7 +226,7 @@ class Problem:\nlegend_qdot = [\"qdot_\" + nlp.model.nameDof()[idx].to_string() for idx in nlp.mapping[\"q_dot\"].reduce.map_idx]\nnlp.q = q_mx\n- n...
Python
MIT License
pyomeca/bioptim
Changed nlp.qdot to nlp.q_dot
538,863
17.09.2020 17:58:51
-7,200
d4a5330ac2901e90436df54eb2bfb9f962989709
Changed __add_to_nlp, mapping is now name, which can be whatever the user want, the function just add the param to the dico "name"
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -263,17 +263,16 @@ class OptimalControlProgram:\nif q_mapping is not None or q_dot_mapping is not None or tau_mapping is not None:\nraise Run...
Python
MIT License
pyomeca/bioptim
Changed __add_to_nlp, mapping is now name, which can be whatever the user want, the function just add the param to the dico "name"
538,862
18.09.2020 10:11:44
-7,200
d2de17e55fadaa2229c59ad7f82c85572e879e8c
Add test for objective function minimize_marker
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/test_objectives.py", "diff": "+from pathlib import Path\n+\n+import numpy as np\n+import pytest\n+\n+import biorbd\n+\n+from biorbd_optim import (\n+ OptimalControlProgram,\n+ DynamicsTypeList,\n+ DynamicsType,\n+ BoundsOption,\n+ InitialC...
Python
MIT License
pyomeca/bioptim
Add test for objective function minimize_marker
538,862
18.09.2020 10:24:38
-7,200
0abce5b1ce00001e86bf24a8a7af6b3e5ffa2038
Add test on 3 more objective functions
[ { "change_type": "MODIFY", "old_path": "tests/test_objectives.py", "new_path": "tests/test_objectives.py", "diff": "@@ -31,6 +31,67 @@ def prepare_test_ocp():\nreturn ocp\n+def test_objective_minimize_time():\n+ ocp = prepare_test_ocp()\n+ x = [np.ones((12, 1)) / 10]\n+ penalty_type = Objective.Lagr...
Python
MIT License
pyomeca/bioptim
Add test on 3 more objective functions
538,862
18.09.2020 11:26:33
-7,200
386e4acef2e18197c4c46e2ad1fde0a0290d9e65
Add test for all objective functions
[ { "change_type": "MODIFY", "old_path": "tests/test_objectives.py", "new_path": "tests/test_objectives.py", "diff": "@@ -13,6 +13,7 @@ from biorbd_optim import (\nInitialConditionsOption,\nObjectiveOption,\nObjective,\n+ Axe,\n)\n@@ -92,7 +93,7 @@ def test_objective_track_state():\n)\n-def test_objec...
Python
MIT License
pyomeca/bioptim
Add test for all objective functions
538,862
18.09.2020 11:43:40
-7,200
b1c3dd39eec07446d06f54a9eff446c4e78eedf3
Testing separately Lagrange and Mayer objective funcs
[ { "change_type": "RENAME", "old_path": "tests/test_objectives.py", "new_path": "tests/test_objectives_lagrange.py", "diff": "@@ -32,7 +32,7 @@ def prepare_test_ocp():\nreturn ocp\n-def test_objective_minimize_time():\n+def test_objective_lagrange_minimize_time():\nocp = prepare_test_ocp()\nx = [np.o...
Python
MIT License
pyomeca/bioptim
Testing separately Lagrange and Mayer objective funcs
538,862
21.09.2020 10:48:09
-7,200
18d291e502f56b1f7911616f25a288e507380178
Add target value to nearly all track objective function
[ { "change_type": "MODIFY", "old_path": "tests/test_objectives.py", "new_path": "tests/test_objectives.py", "diff": "@@ -80,7 +80,7 @@ def test_objective_track_state(lagrange_or_mayer, value):\nx = [np.ones((12, 1)) * value]\npenalty_type = lagrange_or_mayer.TRACK_STATE\npenalty = ObjectiveOption(pen...
Python
MIT License
pyomeca/bioptim
Add target value to nearly all track objective function
538,862
21.09.2020 12:57:49
-7,200
d66ae6181f1fd1e9e50ca3ea64bf8b41c8ca5738
Add target to the two last tests
[ { "change_type": "MODIFY", "old_path": "tests/test_objectives.py", "new_path": "tests/test_objectives.py", "diff": "@@ -349,7 +349,7 @@ def test_objective_track_muscles_control(lagrange_or_mayer, value):\nx = [np.ones((12, 1)) * value]\npenalty_type = lagrange_or_mayer.TRACK_MUSCLES_CONTROL\npenalty...
Python
MIT License
pyomeca/bioptim
Add target to the two last tests
538,862
21.09.2020 14:40:10
-7,200
b601043e35449c4d36c27944cc7ab001763bfa72
Trying to test constraints
[ { "change_type": "MODIFY", "old_path": "tests/test_objectives.py", "new_path": "tests/test_objectives.py", "diff": "@@ -14,6 +14,8 @@ from biorbd_optim import (\nObjectiveOption,\nObjective,\nAxe,\n+ Constraint,\n+ ConstraintOption\n)\n@@ -47,6 +49,20 @@ def test_objective_minimize_time(lagrange_or_...
Python
MIT License
pyomeca/bioptim
Trying to test constraints
538,862
21.09.2020 17:25:34
-7,200
90faa727abe4e37c632b552d1efe38ad9ce6b35c
Add constraints test, missing 3 constraints test, all custom test
[ { "change_type": "MODIFY", "old_path": "tests/test_objectives.py", "new_path": "tests/test_objectives.py", "diff": "@@ -36,12 +36,12 @@ def prepare_test_ocp():\nreturn ocp\n-@pytest.mark.parametrize(\"lagrange_or_mayer\", [Objective.Lagrange, Objective.Mayer])\n+@pytest.mark.parametrize(\"penalty_or...
Python
MIT License
pyomeca/bioptim
Add constraints test, missing 3 constraints test, all custom test
538,862
21.09.2020 17:53:41
-7,200
8074a2b4ce6a26a0ba415cffa28fbdc0fee6080c
Add the 3 missing constraint test, missing custom penalty tests
[ { "change_type": "MODIFY", "old_path": "tests/test_unittest.py", "new_path": "tests/test_unittest.py", "diff": "@@ -716,3 +716,51 @@ def test_penalty_align_marker_with_segment_axis(penalty_origin, value):\nif isinstance(penalty_type, Constraint):\nnp.testing.assert_almost_equal(ocp.nlp[0].g_bounds[0...
Python
MIT License
pyomeca/bioptim
Add the 3 missing constraint test, missing custom penalty tests
538,862
22.09.2020 10:08:30
-7,200
23041f04cd2289e303419a97122086d18906b9d5
Add custom test
[ { "change_type": "MODIFY", "old_path": "tests/test_unittest.py", "new_path": "tests/test_unittest.py", "diff": "@@ -16,6 +16,7 @@ from biorbd_optim import (\nAxe,\nConstraint,\nConstraintOption,\n+ PenaltyFunctionAbstract,\n)\n@@ -775,3 +776,43 @@ def test_penalty_time_constraint(value):\nnp.array([...
Python
MIT License
pyomeca/bioptim
Add custom test
538,862
22.09.2020 10:08:58
-7,200
150e3c5db9b9e6367bc52d057b123d0f268f8b61
Add penaltyfunctionabstract to make custom function work
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/__init__.py", "new_path": "biorbd_optim/__init__.py", "diff": "@@ -16,6 +16,7 @@ from .limits.path_conditions import (\nQAndQDotBounds,\nPathCondition,\n)\n+from .limits.penalty import PenaltyFunctionAbstract\nfrom .misc.data import Data\nfrom .mi...
Python
MIT License
pyomeca/bioptim
Add penaltyfunctionabstract to make custom function work
538,862
22.09.2020 15:30:32
-7,200
da386892e4f6f6aa2f8faef47ce26fb0017d190a
Modified custom and other things in test_penalty according to comments on PR
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/__init__.py", "new_path": "biorbd_optim/__init__.py", "diff": "@@ -16,7 +16,6 @@ from .limits.path_conditions import (\nQAndQDotBounds,\nPathCondition,\n)\n-from .limits.penalty import PenaltyFunctionAbstract\nfrom .misc.data import Data\nfrom .mi...
Python
MIT License
pyomeca/bioptim
Modified custom and other things in test_penalty according to comments on PR
538,862
22.09.2020 16:58:16
-7,200
29f834df10f0d6260e0f155338fb150ef2ca85ac
Add basic idea of update_initial_guess
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -43,10 +43,10 @@ class OptimalControlProgram:\ndynamics_type,\nnumber_shooting_points,\nphase_time,\n- X_init,\n- U_init,\n- X_bounds,\n- U_b...
Python
MIT License
pyomeca/bioptim
Add basic idea of update_initial_guess
538,843
17.09.2020 11:33:03
-7,200
884752b4bc1db82246184f5dcc94d958f8bac6d9
rework constraints handling in acados_interface
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/interfaces/acados_interface.py", "new_path": "biorbd_optim/interfaces/acados_interface.py", "diff": "@@ -25,6 +25,11 @@ class AcadosInterface(SolverInterface):\nelse:\nself.__set_cost_type()\n+ if \"constr_type\" in solver_options:\n+ self.__set_c...
Python
MIT License
pyomeca/bioptim
rework constraints handling in acados_interface
538,843
18.09.2020 16:23:16
-7,200
99d100d01ba99c414081756d8024a0ae55e3c191
added __init_and_update_solver
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/interfaces/acados_interface.py", "new_path": "biorbd_optim/interfaces/acados_interface.py", "diff": "@@ -11,6 +11,7 @@ class AcadosInterface(SolverInterface):\ndef __init__(self, ocp, **solver_options):\nif not isinstance(ocp.CX(), SX):\nraise Run...
Python
MIT License
pyomeca/bioptim
added __init_and_update_solver
538,843
22.09.2020 17:11:44
-7,200
960221c0196736ba98eb8288600d14e69d3c5174
added todo work
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/interfaces/acados_interface.py", "new_path": "biorbd_optim/interfaces/acados_interface.py", "diff": "@@ -94,7 +94,11 @@ class AcadosInterface(SolverInterface):\nif not np.all(np.all(u_max.T == u_max.T[0, :], axis=0)):\nraise NotImplementedError(\"...
Python
MIT License
pyomeca/bioptim
added todo work
538,843
22.09.2020 17:50:22
-7,200
6a448efe79d31e347cae32f66981c31443b61977
[acados interface] check for inf bounds in state and control constraints
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/interfaces/acados_interface.py", "new_path": "biorbd_optim/interfaces/acados_interface.py", "diff": "@@ -88,15 +88,21 @@ class AcadosInterface(SolverInterface):\ndef __set_constrs(self, ocp):\n# constraints handling in self.acados_ocp\nu_min = np....
Python
MIT License
pyomeca/bioptim
[acados interface] check for inf bounds in state and control constraints
538,843
22.09.2020 19:14:32
-7,200
d47a41414c5fa56723d9af951a18dec7a48d492c
[acados_interface] adapted code to new class layout of nlp.
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/interfaces/acados_interface.py", "new_path": "biorbd_optim/interfaces/acados_interface.py", "diff": "@@ -72,14 +72,14 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.model = self.acados_model\n# set time\n- self.acados_ocp.solver_optio...
Python
MIT License
pyomeca/bioptim
[acados_interface] adapted code to new class layout of nlp.
538,862
23.09.2020 10:41:53
-7,200
ac7c4ff1edaafa4e0ca719c330d91a08fbaf61ba
Implemented simple version of update initial guess, no checks added
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -283,41 +283,11 @@ class OptimalControlProgram:\nself.__define_variable_time(initial_time_guess, time_min, time_max)\n# Prepare path constrai...
Python
MIT License
pyomeca/bioptim
Implemented simple version of update initial guess, no checks added
538,862
23.09.2020 10:51:41
-7,200
c989de814d115a8ab8f06dd9b67fecebad7daad9
Add checks, need better default value, because for now, it crashes in __add_to_nlp because of size == 0
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -589,9 +589,12 @@ class OptimalControlProgram:\nraise RuntimeError(\"new_parameter must be a ParameterOption or a ParameterList\")\ndef updat...
Python
MIT License
pyomeca/bioptim
Add checks, need better default value, because for now, it crashes in __add_to_nlp because of size == 0
538,862
23.09.2020 11:12:16
-7,200
45a7c7419bbba9176fc2482c85bda821b8106cab
Add better default value, modified test_penalty by deleting bounds
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -2,6 +2,7 @@ import os\nimport pickle\nfrom copy import deepcopy\nfrom math import inf\n+import numpy as np\nimport biorbd\nimport casadi\n@@...
Python
MIT License
pyomeca/bioptim
Add better default value, modified test_penalty by deleting bounds
538,862
23.09.2020 12:09:10
-7,200
e7755a3d6d1aa4feae88650388508ebfd3c8fcc8
Add type checking for X_init, U_init, X_bounds, U_bounds in update_initial_guess
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -163,44 +163,6 @@ class OptimalControlProgram:\nelse:\nraise RuntimeError(\"phase_time should be a number or a list of number\")\n- if isinst...
Python
MIT License
pyomeca/bioptim
Add type checking for X_init, U_init, X_bounds, U_bounds in update_initial_guess
538,862
23.09.2020 12:52:50
-7,200
3a56495f92b3422ccb5f94c65702b0e781cf634a
Correcting variables name
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -561,11 +561,11 @@ class OptimalControlProgram:\nelse:\nraise RuntimeError(\"new_parameter must be a ParameterOption or a ParameterList\")\n-...
Python
MIT License
pyomeca/bioptim
Correcting variables name
538,862
23.09.2020 13:11:45
-7,200
a67d0c2a84e405c97974a073136cdc7381e518ef
Corrected typo errors
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -565,13 +565,13 @@ class OptimalControlProgram:\nif X_bounds is not None:\nif isinstance(X_bounds, BoundsOption):\nX_bounds_tp = BoundsList()...
Python
MIT License
pyomeca/bioptim
Corrected typo errors
538,862
24.09.2020 10:01:51
-7,200
fd3b270a6deaf3083067c788b6cc2a2a65d05708
Add update_bounds, _define_multiple_shooting_nodes, add one test with update bounds and update initial guess
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -44,10 +44,10 @@ class OptimalControlProgram:\ndynamics_type,\nnumber_shooting_points,\nphase_time,\n- X_init=InitialConditionsList(),\n- U_i...
Python
MIT License
pyomeca/bioptim
Add update_bounds, _define_multiple_shooting_nodes, add one test with update bounds and update initial guess
538,862
24.09.2020 11:22:33
-7,200
1bec538073c37910e74daacd01353e2990e77827
Reset V, V_bounds, V_init between each calls to _define_multiple_shooting_nodes
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -193,9 +193,6 @@ class OptimalControlProgram:\nself.J = []\nself.g = []\nself.g_bounds = []\n- self.V = []\n- self.V_bounds = Bounds(interpol...
Python
MIT License
pyomeca/bioptim
Reset V, V_bounds, V_init between each calls to _define_multiple_shooting_nodes
538,862
24.09.2020 11:32:34
-7,200
56d62155ed7334a1937eb2303084b3e7bb0eacc7
Re-add initialisation of V, V_bounds, V_init in ocp init
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -193,6 +193,9 @@ class OptimalControlProgram:\nself.J = []\nself.g = []\nself.g_bounds = []\n+ self.V = []\n+ self.V_bounds = Bounds(interpol...
Python
MIT License
pyomeca/bioptim
Re-add initialisation of V, V_bounds, V_init in ocp init
538,862
24.09.2020 13:04:50
-7,200
661461dd933596adf19f1dcae83d087b6169fffd
Correcting errors, V must not be reset between each call to _define_multiple_shooting_nodes
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -265,16 +265,26 @@ class OptimalControlProgram:\nself.def_X_bounds = False\nself.def_U_bounds = False\n+ self.update_bounds(X_bounds, U_bound...
Python
MIT License
pyomeca/bioptim
Correcting errors, V must not be reset between each call to _define_multiple_shooting_nodes
538,862
24.09.2020 13:18:57
-7,200
baf273ca4c9de9aae9667e5fa6c1182c9818d7ba
Trying to let ocp be defined without bounds/initial_guess
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -265,26 +265,15 @@ class OptimalControlProgram:\nself.def_X_bounds = False\nself.def_U_bounds = False\n- self.update_bounds(X_bounds, U_bound...
Python
MIT License
pyomeca/bioptim
Trying to let ocp be defined without bounds/initial_guess
538,862
24.09.2020 13:45:45
-7,200
476532581523677c335374f4446772fca325cb23
Correcting default value for X_bounds, U_bounds, X_init, U_init
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -44,10 +44,10 @@ class OptimalControlProgram:\ndynamics_type,\nnumber_shooting_points,\nphase_time,\n- X_init=None,\n- U_init=None,\n- X_boun...
Python
MIT License
pyomeca/bioptim
Correcting default value for X_bounds, U_bounds, X_init, U_init
538,862
24.09.2020 14:04:47
-7,200
10cb24b5ab3a1a426ce3c3f553010d01696856ac
Corrected test_update.py
[ { "change_type": "MODIFY", "old_path": "tests/test_update.py", "new_path": "tests/test_update.py", "diff": "@@ -26,21 +26,18 @@ def prepare_test_ocp():\nnq = biorbd_model.nbQ()\ndynamics = DynamicsTypeList()\ndynamics.add(DynamicsType.TORQUE_DRIVEN)\n- ocp = OptimalControlProgram(biorbd_model, dynam...
Python
MIT License
pyomeca/bioptim
Corrected test_update.py
538,862
24.09.2020 15:31:51
-7,200
120067797a948d3bbf3f8b18ce1291768d0c8687
Add flags in ocp to initialize V, X, U only once
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -292,6 +292,8 @@ class OptimalControlProgram:\nself.def_U_init = False\nself.def_X_bounds = False\nself.def_U_bounds = False\n+ self.def_boun...
Python
MIT License
pyomeca/bioptim
Add flags in ocp to initialize V, X, U only once
538,862
24.09.2020 16:30:39
-7,200
63a9d31507a7d15c2eaffc7a96776120e79d69d6
Separating V_bounds, V_init initialization and V initialization in two functions
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -454,7 +454,6 @@ class OptimalControlProgram:\n:param idx_phase: Index of the phase. (integer)\n\"\"\"\n- if not self.def_V:\nV = []\nX = []\...
Python
MIT License
pyomeca/bioptim
Separating V_bounds, V_init initialization and V initialization in two functions
538,862
24.09.2020 16:57:12
-7,200
c272adc8fd66d7e1fe052dd86ac0e17a72ee2ca8
Trying to order things in ocp init
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -303,18 +303,24 @@ class OptimalControlProgram:\nself.tmp_state_transitions = state_transitions\nif len(X_bounds) > 0 and len(U_bounds) > 0:\...
Python
MIT License
pyomeca/bioptim
Trying to order things in ocp init
538,862
24.09.2020 17:00:18
-7,200
d29c9deaef123deb52c1cfc7159507e03b5276f0
Changing self.def_X_... to self.isdef_X_...
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -288,10 +288,10 @@ class OptimalControlProgram:\nself.__add_to_nlp(\"ode_solver\", ode_solver, True)\nself.__add_to_nlp(\"control_type\", con...
Python
MIT License
pyomeca/bioptim
Changing self.def_X_... to self.isdef_X_...
538,862
25.09.2020 10:09:15
-7,200
a696ec64a0a1bdcee21ff458b2097e2e0a9547bf
Add __bool__ to InitialConditionsList and BoundsList Changed calls to update_bounds and update_initial_guess
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/limits/path_conditions.py", "new_path": "biorbd_optim/limits/path_conditions.py", "diff": "@@ -202,6 +202,7 @@ class BoundsOption(OptionGeneric):\ndef __setitem__(self, slice, value):\nself.bounds[slice] = value\n+ return len\nclass BoundsList(Uni...
Python
MIT License
pyomeca/bioptim
Add __bool__ to InitialConditionsList and BoundsList Changed calls to update_bounds and update_initial_guess
538,862
25.09.2020 10:54:31
-7,200
ce3868f48c67bf5ae25fc6941402bb4ef9777a3f
Improving test for update_init_and_bounds
[ { "change_type": "MODIFY", "old_path": "tests/test_update_bounds_and_init.py", "new_path": "tests/test_update_bounds_and_init.py", "diff": "@@ -26,22 +26,33 @@ def test_penalty_minimize_time():\nX_bounds = BoundsOption([-np.ones((nq*2, 1)), np.ones((nq*2, 1))])\nU_bounds = BoundsOption([-2.*np.ones(...
Python
MIT License
pyomeca/bioptim
Improving test for update_init_and_bounds
538,862
25.09.2020 11:01:39
-7,200
a7f33ea2465794e065b9349e81f9e0ad2c055ddf
Blacked and add test on V_init in test_update_bounds_and_init
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/limits/path_conditions.py", "new_path": "biorbd_optim/limits/path_conditions.py", "diff": "@@ -225,6 +225,7 @@ class BoundsList(UniquePerPhaseOptionList):\ndef __bool__(self):\nreturn len(self) > 0\n+\nclass Bounds:\n\"\"\"\nOrganizes bounds of st...
Python
MIT License
pyomeca/bioptim
Blacked and add test on V_init in test_update_bounds_and_init
538,862
25.09.2020 15:27:58
-7,200
a6f6395b24fd6b44176300beb6cf2b03c73ecc5f
Changing test name, and moving __bool__ from boundslist to optionlist
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/limits/path_conditions.py", "new_path": "biorbd_optim/limits/path_conditions.py", "diff": "@@ -202,7 +202,6 @@ class BoundsOption(OptionGeneric):\ndef __setitem__(self, slice, value):\nself.bounds[slice] = value\n- return len\nclass BoundsList(Uni...
Python
MIT License
pyomeca/bioptim
Changing test name, and moving __bool__ from boundslist to optionlist
538,862
25.09.2020 15:36:39
-7,200
45caec9f9eb65f15089ce57260db31206cbfea07
Changing value 10 to ns for clarity
[ { "change_type": "MODIFY", "old_path": "tests/test_update_bounds_and_init.py", "new_path": "tests/test_update_bounds_and_init.py", "diff": "@@ -20,22 +20,23 @@ def test_double_update_bounds_and_init():\ndynamics = DynamicsTypeList()\ndynamics.add(DynamicsType.TORQUE_DRIVEN)\n- ocp = OptimalControlPr...
Python
MIT License
pyomeca/bioptim
Changing value 10 to ns for clarity
538,862
28.09.2020 10:53:41
-7,200
39850a0b802e89dec511e3283a04bb9d0cd66a3d
Add for loop to add parameters initial condition and bounds to V
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -510,6 +510,8 @@ class OptimalControlProgram:\nself.V_init = InitialConditions(interpolation=InterpolationType.CONSTANT)\n# TODO add paramete...
Python
MIT License
pyomeca/bioptim
Add for loop to add parameters initial condition and bounds to V
538,862
28.09.2020 11:17:17
-7,200
68dde7f0d768c95524b1fda84e5ece6d5b422c72
Add test update with param two errors, params defined with no bounds, param in multiphase
[ { "change_type": "MODIFY", "old_path": "tests/test_update_bounds_and_init.py", "new_path": "tests/test_update_bounds_and_init.py", "diff": "@@ -10,6 +10,13 @@ from biorbd_optim import (\nDynamicsType,\nBoundsOption,\nInitialConditionsOption,\n+ ParameterList,\n+ Bounds,\n+ InterpolationType,\n+ Init...
Python
MIT License
pyomeca/bioptim
Add test update with param two errors, params defined with no bounds, param in multiphase
538,862
28.09.2020 17:09:02
-7,200
8636f0d6a54223347839405f9c77174cb3d59c6a
Corrected test, actualize TODOs
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/misc/optimal_control_program.py", "new_path": "biorbd_optim/misc/optimal_control_program.py", "diff": "@@ -509,7 +509,7 @@ class OptimalControlProgram:\nraise NotImplementedError(f\"Plotting {self.nlp[i]['control_type']} is not implemented yet\")\...
Python
MIT License
pyomeca/bioptim
Corrected test, actualize TODOs
538,862
29.09.2020 10:18:25
-7,200
6402766aaa843830a5c024ba6a340a79308ca45a
Add __bool__ to Boounds and InitialConditions
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/limits/path_conditions.py", "new_path": "biorbd_optim/limits/path_conditions.py", "diff": "@@ -313,6 +313,9 @@ class Bounds:\nself.min[slice] = value\nself.max[slice] = value\n+ def __bool__(self):\n+ return len(self.min) > 0\n+\nclass QAndQDotBou...
Python
MIT License
pyomeca/bioptim
Add __bool__ to Boounds and InitialConditions
538,862
29.09.2020 10:39:52
-7,200
7c45a78811b5c2db5f0ae1e624747e1e44d2b801
Add shape property to Bounds and InitialConditions
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/limits/path_conditions.py", "new_path": "biorbd_optim/limits/path_conditions.py", "diff": "@@ -316,6 +316,10 @@ class Bounds:\ndef __bool__(self):\nreturn len(self.min) > 0\n+ @property\n+ def shape(self):\n+ return self.min.shape\n+\nclass QAndQD...
Python
MIT License
pyomeca/bioptim
Add shape property to Bounds and InitialConditions
538,843
01.10.2020 12:24:50
-7,200
dff4517d70b0de6e80472471b3e8624a1b541157
[acados_interface] used evaluate_at in setup of acados init. changed test on bounds with numpy.isfinite()
[ { "change_type": "MODIFY", "old_path": "biorbd_optim/interfaces/acados_interface.py", "new_path": "biorbd_optim/interfaces/acados_interface.py", "diff": "@@ -37,8 +37,6 @@ class AcadosInterface(SolverInterface):\nself.y_ref_end = []\nself.__acados_export_model(ocp)\nself.__prepare_acados(ocp)\n- sel...
Python
MIT License
pyomeca/bioptim
[acados_interface] used evaluate_at in setup of acados init. changed test on bounds with numpy.isfinite()
538,856
05.10.2020 14:56:40
-7,200
e847a60f1eb2de93498c9cbf512f8971d60e7f0e
Added linestyle to step plot
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -24,6 +24,7 @@ class CustomPlot:\nlegend=(),\ncombine_to=None,\ncolor=None,\n+ linestyle=None,\nylim=None,\nbounds=None,\n):\n@@ -49,6 +50,7 @@ class CustomPlot:\nself.legend = legend\nself.c...
Python
MIT License
pyomeca/bioptim
Added linestyle to step plot
538,856
05.10.2020 14:57:26
-7,200
984c5445711d08411271ef8e00e8d1dc79b75ea3
Fix the bug on minimize_state when t=end
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty.py", "new_path": "bioptim/limits/penalty.py", "diff": "@@ -28,11 +28,7 @@ class PenaltyFunctionAbstract:\n)\n# Prepare the plot\n- if len(t) == 1 and t[0] == nlp.ns:\n- # This is a tweak so the step plot won't start after the graph\n- t[...
Python
MIT License
pyomeca/bioptim
Fix the bug on minimize_state when t=end
538,856
05.10.2020 16:20:33
-7,200
e1e6b0731711f421feae9c8c9aa65d05e55b1b8c
Do not add u when last node and control is constant
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty.py", "new_path": "bioptim/limits/penalty.py", "diff": "@@ -5,9 +5,8 @@ import numpy as np\nimport biorbd\nfrom casadi import vertcat, horzcat\n-from ..misc.enums import Instant, Axe, PlotType\n+from ..misc.enums import Instant, Axe, Plot...
Python
MIT License
pyomeca/bioptim
Do not add u when last node and control is constant
538,862
06.10.2020 12:16:55
-7,200
8b1befdf2c908397749fb92d6df8ac3a5c4a2226
Add tests for variable time
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/test_variable_time.py", "diff": "+import numpy as np\n+import pytest\n+\n+import biorbd\n+import casadi\n+\n+from bioptim import (\n+ InterpolationType,\n+ Bounds,\n+ Instant,\n+ OptimalControlProgram,\n+ DynamicsTypeList,\n+ DynamicsType,...
Python
MIT License
pyomeca/bioptim
Add tests for variable time
538,862
06.10.2020 12:21:33
-7,200
30546ba7d0dd9337652203add69dadbe58a00cc7
Sort imports in test_variable_time
[ { "change_type": "MODIFY", "old_path": "tests/test_variable_time.py", "new_path": "tests/test_variable_time.py", "diff": "@@ -5,25 +5,25 @@ import biorbd\nimport casadi\nfrom bioptim import (\n- InterpolationType,\nBounds,\n- Instant,\n- OptimalControlProgram,\n- DynamicsTypeList,\n- DynamicsType,\n...
Python
MIT License
pyomeca/bioptim
Sort imports in test_variable_time
538,862
06.10.2020 12:32:29
-7,200
5603dc3cc4268bc24e56ce9ade4c1ce273a3d737
Add path to cube.bioMod
[ { "change_type": "MODIFY", "old_path": "tests/test_variable_time.py", "new_path": "tests/test_variable_time.py", "diff": "+from pathlib import Path\n+\nimport numpy as np\nimport pytest\n@@ -33,7 +35,8 @@ def prepare_ocp(phase_time_constraint, use_parameter):\ntime_min = [1, 3, 0.1]\ntime_max = [2, ...
Python
MIT License
pyomeca/bioptim
Add path to cube.bioMod
538,862
06.10.2020 16:08:29
-7,200
74f1329b8ea483e40867d2a43e3ee0e0c8ee2c20
Fix error in multiplhase with q_mapping in __add_to_nlp
[ { "change_type": "MODIFY", "old_path": "bioptim/misc/optimal_control_program.py", "new_path": "bioptim/misc/optimal_control_program.py", "diff": "@@ -390,7 +390,11 @@ class OptimalControlProgram:\nfor nlp in self.nlp:\nif (\n(name is None and getattr(nlp, param_name) is not None) or (name is not Non...
Python
MIT License
pyomeca/bioptim
Fix error in multiplhase with q_mapping in __add_to_nlp
538,862
06.10.2020 16:13:49
-7,200
fe8567569dc96c03c1cf2e06223de7fb7efc03f1
Moved parenthesis
[ { "change_type": "MODIFY", "old_path": "bioptim/misc/optimal_control_program.py", "new_path": "bioptim/misc/optimal_control_program.py", "diff": "@@ -389,9 +389,11 @@ class OptimalControlProgram:\nif _type is not None:\nfor nlp in self.nlp:\nif (\n- (name is None and getattr(nlp, param_name) is not ...
Python
MIT License
pyomeca/bioptim
Moved parenthesis
538,859
09.10.2020 18:52:12
-7,200
fca91247987e700615a54aa4136207ce43e2737c
first modifications in acados_interface for parameters optimisation
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -47,9 +47,10 @@ class AcadosInterface(SolverInterface):\nx = ocp.nlp[0].X[0]\nu = ocp.nlp[0].U[0]\np = ocp.nlp[0].p\n+ x = vertcat(p, x)\nx_dot = SX.sym(...
Python
MIT License
pyomeca/bioptim
first modifications in acados_interface for parameters optimisation
538,859
09.10.2020 20:25:24
-7,200
42b9e736b7ea86847df77725f26fb5deb01cbd67
adapt acados out to Data.get_data
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -330,10 +330,13 @@ class AcadosInterface(SolverInterface):\ndef get_optimized_value(self):\nns = self.acados_ocp.dims.N\n- nu = self.acados_ocp.dims.nu\n...
Python
MIT License
pyomeca/bioptim
adapt acados out to Data.get_data
538,859
09.10.2020 20:29:01
-7,200
324ce3fdc99453db7c11309a2133aa70b54822c6
Some modifications on the code form
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -47,6 +47,8 @@ class AcadosInterface(SolverInterface):\nx = ocp.nlp[0].X[0]\nu = ocp.nlp[0].U[0]\np = ocp.nlp[0].p\n+ self.params = ocp.nlp[0].parameters...
Python
MIT License
pyomeca/bioptim
Some modifications on the code form
538,865
09.10.2020 17:01:43
14,400
7b57f47b13032a76c2fbb871f2031078ffe53ea5
Bug when no constraint for the first phase
[ { "change_type": "MODIFY", "old_path": "bioptim/misc/options_lists.py", "new_path": "bioptim/misc/options_lists.py", "diff": "@@ -50,7 +50,7 @@ class OptionList:\nfor i in range(len(self.options), phase + 1):\nself.options.append([])\nif idx == -1:\n- for i, opt in enumerate(self.options):\n+ for i,...
Python
MIT License
pyomeca/bioptim
Bug when no constraint for the first phase
538,859
11.10.2020 17:19:44
-7,200
fea8c3c241d817353e94d0901c762be527c9cfdb
Modifications to include the parameter target
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/objective_functions.py", "new_path": "bioptim/limits/objective_functions.py", "diff": "@@ -174,15 +174,17 @@ class ObjectiveFunction:\npass\n@staticmethod\n- def add_to_penalty(ocp, _, val, penalty, **extra_param):\n+ def add_to_penalty(ocp, _, ...
Python
MIT License
pyomeca/bioptim
Modifications to include the parameter target
538,859
11.10.2020 17:21:23
-7,200
5b4960964f99815982d584db486034ea88cedfbd
Code form changes
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -111,18 +111,17 @@ class AcadosInterface(SolverInterface):\n# path control constraints\nself.x_bound_max = {}\nself.x_bound_min = {}\n- d = [-1, 0, 1]\n-...
Python
MIT License
pyomeca/bioptim
Code form changes
538,859
11.10.2020 17:21:48
-7,200
c6a75afa5f06a9dc22a66b1808f2bc470f829095
Add error message (tmp)
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -207,9 +207,14 @@ class AcadosInterface(SolverInterface):\nelse:\nraise RuntimeError(\"The objective function is not Lagrange nor Mayer.\")\n- # paramete...
Python
MIT License
pyomeca/bioptim
Add error message (tmp)
538,859
11.10.2020 17:44:15
-7,200
75ad1e0a8fff7a952c2bba4fcd68f757ffb6a407
Update ocp_solver.set for the last node
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -283,6 +283,15 @@ class AcadosInterface(SolverInterface):\nself.ocp_solver.constraints_set(self.acados_ocp.dims.N, \"lbx\", self.x_bound_min['-1'])\nself...
Python
MIT License
pyomeca/bioptim
Update ocp_solver.set for the last node
538,859
12.10.2020 11:19:00
-7,200
d3fc55960e3107028f5e1dbae93c9c9e81133108
Fix error for x_bounds_min
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -66,9 +66,6 @@ class AcadosInterface(SolverInterface):\ndef __prepare_acados(self, ocp):\nif ocp.nb_phases > 1:\nraise NotImplementedError(\"More than 1 ...
Python
MIT License
pyomeca/bioptim
Fix error for x_bounds_min
538,859
12.10.2020 12:35:40
-7,200
98c8968c2cfa729cc061a7b4b7f5b5d8e50dd84d
Replace dict by array
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -106,19 +106,19 @@ class AcadosInterface(SolverInterface):\n## TODO: implement constraints in g\n# path control constraints\n- self.x_bound_max = {}\n- s...
Python
MIT License
pyomeca/bioptim
Replace dict by array
538,859
12.10.2020 12:40:33
-7,200
70dfabf04b172b6fd064c16414dd6db273f2efde
Fix problem on x_bounds for last node
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -143,8 +143,8 @@ class AcadosInterface(SolverInterface):\n# state terminal constraints\nself.acados_ocp.constraints.Jbx_e = np.eye(self.acados_ocp.dims.n...
Python
MIT License
pyomeca/bioptim
Fix problem on x_bounds for last node
538,859
12.10.2020 12:46:20
-7,200
1fbc9cea1499936041c715b4c7eee3319ec56934
Delete the else part of condition
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -108,17 +108,15 @@ class AcadosInterface(SolverInterface):\n# path control constraints\nself.x_bound_max = np.ndarray((self.acados_ocp.dims.nx, 3))\nself...
Python
MIT License
pyomeca/bioptim
Delete the else part of condition
538,859
12.10.2020 22:59:46
-7,200
45562d6d8f2cfe6f5e5c2f24fa44ef94df1677d2
Fix parameter blocked to the lower bound
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -128,9 +128,7 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.constraints.ubx_0 = self.x_bound_max[:, 0]\nself.acados_ocp.constraints.lbx_0 =...
Python
MIT License
pyomeca/bioptim
Fix parameter blocked to the lower bound
538,859
13.10.2020 09:24:19
-7,200
e2bd5274ca78964707252bcfdbab3af78f4e3200
Comment to discuss about ocp.J
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -201,6 +201,9 @@ class AcadosInterface(SolverInterface):\nraise RuntimeError(\"The objective function is not Lagrange nor Mayer.\")\n# parameter as mayer...
Python
MIT License
pyomeca/bioptim
Comment to discuss about ocp.J
538,859
13.10.2020 09:27:05
-7,200
ba81c16746d49504d99cf8ea40f7e9db202d07ca
Take the parameter cx to avoid conflict with val-target
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -204,13 +204,10 @@ class AcadosInterface(SolverInterface):\n# TODO: I consider that only parameters are stored in ocp.J.\n# Is it possible to have a Lagr...
Python
MIT License
pyomeca/bioptim
Take the parameter cx to avoid conflict with val-target
538,859
13.10.2020 10:46:22
-7,200
755c71c6d1a7e05ab212f0a1ac65d91ae9a03469
Raise error for EXTERNAL and LINEAR_LS
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -157,6 +157,7 @@ class AcadosInterface(SolverInterface):\nself.W = np.zeros((0, 0))\nself.W_e = np.zeros((0, 0))\nif self.acados_ocp.cost.cost_type == \"...
Python
MIT License
pyomeca/bioptim
Raise error for EXTERNAL and LINEAR_LS
538,859
13.10.2020 10:46:57
-7,200
3728fe202caefffad8c87d4b9f996b7c3c473052
Comment to discuss how take the val of parameter
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -205,6 +205,8 @@ class AcadosInterface(SolverInterface):\n# TODO: I consider that only parameters are stored in ocp.J.\n# Is it possible to have a Lagran...
Python
MIT License
pyomeca/bioptim
Comment to discuss how take the val of parameter
538,859
13.10.2020 12:43:11
-7,200
86b7288d62e112e11b20409750c41082ee16ec15
Fix some problems for bounds and initial guess
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -111,8 +111,8 @@ class AcadosInterface(SolverInterface):\nparam_bounds_max = []\nparam_bounds_min = []\nif self.params:\n- param_bounds_max = np.concaten...
Python
MIT License
pyomeca/bioptim
Fix some problems for bounds and initial guess
538,859
14.10.2020 15:48:38
-7,200
f1d9cf0e109399435d9880a2baba88f1dbf5d8d6
Addapt to changes on paramters penalty
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -198,7 +198,9 @@ class AcadosInterface(SolverInterface):\n)\nself.mayer_costs = vertcat(self.mayer_costs, mayer_func_tp(ocp.nlp[i].X[0]))\nif J[0][\"targ...
Python
MIT License
pyomeca/bioptim
Addapt to changes on paramters penalty
538,859
14.10.2020 16:55:54
-7,200
836935166442e62ccc9ed5b3c695c089b2e05438
Fix bug if target is an array
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -199,8 +199,7 @@ class AcadosInterface(SolverInterface):\nself.mayer_costs = vertcat(self.mayer_costs, mayer_func_tp(ocp.nlp[i].X[0]))\nif J[0][\"target\...
Python
MIT License
pyomeca/bioptim
Fix bug if target is an array
538,843
30.10.2020 10:24:39
-3,600
70908d58bab573726dbb1bc8ac4f467f7ed93913
added solver status tracking in acados interface
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -40,6 +40,7 @@ class AcadosInterface(SolverInterface):\nself.ocp_solver = None\nself.W = np.zeros((0, 0))\nself.W_e = np.zeros((0, 0))\n+ self.status = N...
Python
MIT License
pyomeca/bioptim
added solver status tracking in acados interface
538,843
30.10.2020 13:45:17
-3,600
3f2665467809a45db082244d6513449fe132eca8
added solver status tracking in ipopt interface
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -64,6 +64,7 @@ class IpoptInterface(SolverInterface):\n# Solve the problem\nself.out = {\"sol\": solver.call(self.ipopt_limits)}\nself.out[\"sol\"][\"time_...
Python
MIT License
pyomeca/bioptim
added solver status tracking in ipopt interface