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,859
04.01.2021 14:51:49
18,000
477c52e8997dce9b74a9932afa0ca1bb3b972dd5
Change elif into else and modify the runtim message
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -123,8 +123,9 @@ class AcadosInterface(SolverInterface):\nself.end_constr = vertcat(self.end_constr, constr_end_func_tp(ocp.nlp[i].X[0]).reshape((-1, 1))...
Python
MIT License
pyomeca/bioptim
Change elif into else and modify the runtim message
538,862
06.01.2021 18:13:10
-3,600
5a283f74e0bf978f74551058ae27740f9e15bb85
Add param_init in update_initial_guess and set_lagrange_multiplier
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -16,6 +16,9 @@ class IpoptInterface(SolverInterface):\nself.options_common = {}\nself.opts = None\n+ self.lam_g = None\n+ self.lam_x = None\n+\nself.ipopt_...
Python
MIT License
pyomeca/bioptim
Add param_init in update_initial_guess and set_lagrange_multiplier
538,855
13.01.2021 14:39:03
18,000
a90326dfaffd4bb54b5996c80dedc9c2395f5d20
Added objectives position and velocity of the CoM at each node
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/objective_functions.py", "new_path": "bioptim/limits/objective_functions.py", "diff": "@@ -334,6 +334,8 @@ class ObjectiveFcn:\nTRACK_ALL_CONTROLS = (PenaltyType.TRACK_ALL_CONTROLS,)\nMINIMIZE_CONTACT_FORCES = (PenaltyType.MINIMIZE_CONTACT_FORCE...
Python
MIT License
pyomeca/bioptim
Added objectives position and velocity of the CoM at each node
538,855
13.01.2021 14:39:47
18,000
605db4374aef34499d8ae762d7da00b95d82d367
Added test + blacked
[ { "change_type": "MODIFY", "old_path": "examples/torque_driven_with_contact/maximize_predicted_height_CoM.py", "new_path": "examples/torque_driven_with_contact/maximize_predicted_height_CoM.py", "diff": "@@ -13,10 +13,18 @@ from bioptim import (\nInitialGuessList,\nShowResult,\nOdeSolver,\n+ Axe,\n)...
Python
MIT License
pyomeca/bioptim
Added test + blacked
538,855
14.01.2021 10:54:25
18,000
ed9b8961ba174a9e3779de242a897476ea1e3fcc
Changed height for position
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/objective_functions.py", "new_path": "bioptim/limits/objective_functions.py", "diff": "@@ -334,7 +334,7 @@ class ObjectiveFcn:\nTRACK_ALL_CONTROLS = (PenaltyType.TRACK_ALL_CONTROLS,)\nMINIMIZE_CONTACT_FORCES = (PenaltyType.MINIMIZE_CONTACT_FORCE...
Python
MIT License
pyomeca/bioptim
Changed height for position
538,855
14.01.2021 10:56:54
18,000
0443aa5302f058abf0df71f2eb15faa1d981803a
Added to constraints
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -282,6 +282,8 @@ class ConstraintFcn(Enum):\nTRACK_CONTACT_FORCES = (PenaltyType.TRACK_CONTACT_FORCES,)\nALIGN_SEGMENT_WITH_CUSTOM_RT = (PenaltyType.ALIGN_SEGMENT_WITH_CUS...
Python
MIT License
pyomeca/bioptim
Added to constraints
538,855
14.01.2021 16:02:17
18,000
416ed6697327b94bbab2acde760814df0a1c2edc
Changed name for constraints
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -282,8 +282,8 @@ class ConstraintFcn(Enum):\nTRACK_CONTACT_FORCES = (PenaltyType.TRACK_CONTACT_FORCES,)\nALIGN_SEGMENT_WITH_CUSTOM_RT = (PenaltyType.ALIGN_SEGMENT_WITH_CUS...
Python
MIT License
pyomeca/bioptim
Changed name for constraints
538,855
14.01.2021 16:02:42
18,000
a836934c8e4397fbf69ea468892dc34e40367b6e
Added quadratic (for targetting)
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty.py", "new_path": "bioptim/limits/penalty.py", "diff": "@@ -583,6 +583,8 @@ class PenaltyFunctionAbstract:\nor penalty_function == PenaltyType.ALIGN_SEGMENT_WITH_CUSTOM_RT\nor penalty_function == PenaltyType.ALIGN_MARKER_WITH_SEGMENT_AXIS...
Python
MIT License
pyomeca/bioptim
Added quadratic (for targetting)
538,855
14.01.2021 16:03:14
18,000
a05f4c2d9ceafc80b1a7727660d83e1d41aa8c43
changed example to add constraints
[ { "change_type": "MODIFY", "old_path": "examples/torque_driven_with_contact/maximize_predicted_height_CoM.py", "new_path": "examples/torque_driven_with_contact/maximize_predicted_height_CoM.py", "diff": "import biorbd\n+import numpy as np\nfrom bioptim import (\nOptimalControlProgram,\n@@ -14,6 +15,...
Python
MIT License
pyomeca/bioptim
changed example to add constraints
538,855
14.01.2021 16:03:47
18,000
5446e4fcbefeb65effa0c3a2bcdd2bb7df9bf917
Adjusted test for Axis=Axe.Z
[ { "change_type": "MODIFY", "old_path": "tests/test_global_torque_driven_with_contact_ocp.py", "new_path": "tests/test_global_torque_driven_with_contact_ocp.py", "diff": "@@ -17,9 +17,10 @@ from .utils import TestUtils\n@pytest.mark.parametrize(\"ode_solver\", [OdeSolver.RK, OdeSolver.IRK])\n@pytest....
Python
MIT License
pyomeca/bioptim
Adjusted test for Axis=Axe.Z
538,855
14.01.2021 16:04:00
18,000
88a69eef3eb1d62afccb2abad0ff781485ecb8cd
Added tests to penalty_test
[ { "change_type": "MODIFY", "old_path": "tests/test_penalty.py", "new_path": "tests/test_penalty.py", "diff": "@@ -689,6 +689,39 @@ def test_penalty_minimize_predicted_com_height(value):\n)\n+@pytest.mark.parametrize(\"penalty_origin\", [ObjectiveFcn.Lagrange, ObjectiveFcn.Mayer, ConstraintFcn])\n+@p...
Python
MIT License
pyomeca/bioptim
Added tests to penalty_test
538,855
15.01.2021 16:17:36
18,000
2e948cc86b11891a9adcfebc2534fd5d131f6252
Changed CoM size for axis == None
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty.py", "new_path": "bioptim/limits/penalty.py", "diff": "@@ -364,7 +364,7 @@ class PenaltyFunctionAbstract:\nCoM = nlp.casadi_func[\"biorbd_CoM\"](q)\nif axis == None:\n- CoM_proj = CoM[0] ** 2 + CoM[1] ** 2 + CoM[2] ** 2\n+ CoM_proj = CoM...
Python
MIT License
pyomeca/bioptim
Changed CoM size for axis == None
538,855
18.01.2021 14:33:57
18,000
839c457a42f12fcacde482a2215e37c0593af6df
Changed test for 3 components
[ { "change_type": "MODIFY", "old_path": "tests/test_penalty.py", "new_path": "tests/test_penalty.py", "diff": "@@ -711,9 +711,9 @@ def test_penalty_minimize_com_position(value, penalty_origin):\nelse:\nres = ocp.nlp[0].g[0][0][\"val\"]\n- expected = np.array(0.0075)\n+ expected = np.array([[0.05], [0...
Python
MIT License
pyomeca/bioptim
Changed test for 3 components
538,843
28.01.2021 18:34:06
-3,600
dccd2d91401987baabff9fee16f8725e9c8e1348
Update README.md up to ### Class: NonLinearProgram
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "# `bioptim`\n`Bioptim` is an optimal control program (OCP) framework for biomechanics.\n-It is based on the efficient [biorbd](https://github.com/pyomeca/biorbd) biomechanics library and befits from the powerful al...
Python
MIT License
pyomeca/bioptim
Update README.md up to ### Class: NonLinearProgram
538,843
09.02.2021 14:02:56
-3,600
9009fb75624140c28692a1d6714e05a7c2fe8949
Added HSL in Readme
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -74,7 +74,10 @@ Here is a list of all direct dependencies (meaning that some dependencies may re\n- [Ipopt](https://github.com/coin-or/Ipopt)\n- [ACADOS](https://github.com/acados/acados)\n-All these (except for...
Python
MIT License
pyomeca/bioptim
Added HSL in Readme
538,865
22.02.2021 13:03:35
18,000
25e2ef590584799db20301121a62d07149e77342
Bug on phase transition for sol.integrate
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -366,7 +366,8 @@ class ConstraintFunction(PenaltyFunctionAbstract):\npt.base.clear_penalty(ocp, None, penalty)\nval = pt.type.value[0](ocp, pt)\ncasadi_name = f\"PHASE_TRA...
Python
MIT License
pyomeca/bioptim
Bug on phase transition for sol.integrate
538,843
23.02.2021 17:39:32
-3,600
da7607582bddd482a58fb239085ff795ede66d30
added computation of cost for acados in solution
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -187,7 +187,7 @@ class Solution:\nself.is_merged = False\nself.vector = None\n- self.cost = None\n+ self._cost = None\nself.constraints = None\nself.lam_g = None\n@@...
Python
MIT License
pyomeca/bioptim
added computation of cost for acados in solution
538,843
23.02.2021 17:40:01
-3,600
0f281bdf68a7222a4dcb119e55c0c13ece48f446
changed time computation in acados and ipopt interfaces
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "from typing import Union\nfrom datetime import datetime\n+from time import time\nimport numpy as np\nfrom scipy import linalg\n@@ -708,6 +709,7 @@ class Aca...
Python
MIT License
pyomeca/bioptim
changed time computation in acados and ipopt interfaces
538,859
23.02.2021 16:36:04
18,000
b7569240d501302297e13773e8ffc5ece3d9bd2d
Fix solution from initial guess for each frame interpolation + add in example
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -8,12 +8,13 @@ from casadi import Function, DM\nfrom matplotlib import pyplot as plt\nfrom ..limits.path_conditions import InitialGuess, InitialGuessList\n-from ..mi...
Python
MIT License
pyomeca/bioptim
Fix solution from initial guess for each frame interpolation + add in example
538,859
23.02.2021 17:34:32
18,000
e5da6754400061663c751219888684bac2f7c0bc
Add a comment It's blacked already.
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/example_simulation.py", "new_path": "examples/getting_started/example_simulation.py", "diff": "@@ -31,7 +31,7 @@ if __name__ == \"__main__\":\ns = sol_from_initial_guess.integrate(shooting_type=Shooting.SINGLE_CONTINUOUS)\nprint(f\"Fin...
Python
MIT License
pyomeca/bioptim
Add a comment It's blacked already.
538,843
19.03.2021 17:00:44
-3,600
1fa7befa7e31cf759fa41bfb604bd7f6c4e62015
added UniquePerProblemOptionList
[ { "change_type": "MODIFY", "old_path": "bioptim/misc/options.py", "new_path": "bioptim/misc/options.py", "diff": "@@ -315,3 +315,86 @@ class UniquePerPhaseOptionList(OptionList):\nPrint the UniquePerPhaseOptionList to the console\n\"\"\"\nraise NotImplementedError(\"Printing of UniquePerPhaseOptionL...
Python
MIT License
pyomeca/bioptim
added UniquePerProblemOptionList
538,843
19.03.2021 17:01:19
-3,600
823111845b260ebfc5869b617b2769d6118edf12
corrected missig offset in params distribution
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/variable.py", "new_path": "bioptim/optimization/variable.py", "diff": "@@ -261,6 +261,7 @@ class OptimizationVariable:\ndata_parameters[\"all\"] = data_parameters[\"all\"][:, np.newaxis]\nfor param in self.parameters_in_list:\ndata_paramet...
Python
MIT License
pyomeca/bioptim
corrected missig offset in params distribution
538,843
19.03.2021 17:02:00
-3,600
ec01f87cb3611563fcf38a80ddd3cd9e4b6e3a63
changed ParameterList accordingly to new type of list
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/parameters.py", "new_path": "bioptim/optimization/parameters.py", "diff": "@@ -5,7 +5,7 @@ from casadi import MX, SX\nfrom ..misc.enums import Node\nfrom ..limits.objective_functions import ObjectiveFcn, ObjectiveFunction, Objective, Objec...
Python
MIT License
pyomeca/bioptim
changed ParameterList accordingly to new type of list
538,843
19.03.2021 17:02:36
-3,600
9fcdc25e24b05b26115c5ddd22ff503c13601947
added hack in OCP for handling parameters over several phases
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -453,8 +453,11 @@ class OptimalControlProgram:\nelif isinstance(new_parameters, ParameterList):\nfor parameter in new_parameters:\n+ fo...
Python
MIT License
pyomeca/bioptim
added hack in OCP for handling parameters over several phases
538,841
23.03.2021 10:16:42
-3,600
eab2e966445bcfbaa0226bcaabfdf0d1b66ad965
Readme updated with the new section Examples/Getting started
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1269,12 +1269,12 @@ bounds one can define in bioptim.\nTherefore, it shows how one can define the bounds, that is the minimal and maximal values\nof the state and control variables.\n-All the types of interpola...
Python
MIT License
pyomeca/bioptim
Readme updated with the new section Examples/Getting started
538,841
23.03.2021 13:55:17
-3,600
ce8d6e0844c4f06d21bffc254fd82c5475e95a8d
Readme updated with the new section Examples/Muscle driven ocp
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1502,7 +1502,7 @@ simply use `sol_load.animate()`.\n### The example_simulation.py file\nThe first part of this example of a single shooting simulation from initial guesses.\n-It is NOT an optimal control progra...
Python
MIT License
pyomeca/bioptim
Readme updated with the new section Examples/Muscle driven ocp
538,841
23.03.2021 18:41:12
-3,600
2fa4c8640b9ed0b29cde54e16f865c68b401674b
Readme updated with the new section Examples/Muscle driven with contact
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1570,6 +1570,50 @@ The only difference with the precedent example is that we use the arm26_with_con\nPlease note that using show_meshes=True in the animator may be long due to the creation of a huge `CasADi` gr...
Python
MIT License
pyomeca/bioptim
Readme updated with the new section Examples/Muscle driven with contact
538,841
23.03.2021 19:34:14
-3,600
d697cefff20020eb4a8f9a6091d1810e7bc766ea
Readme updated with the new section Examples/Optimal time OCP
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1513,7 +1513,7 @@ can be held in the solution. Another goal would be to reload fast a previously s\n### The pendulum.py file\nThis is another way to present the pendulum example of the 'Getting started' section...
Python
MIT License
pyomeca/bioptim
Readme updated with the new section Examples/Optimal time OCP
538,841
24.03.2021 09:57:06
-3,600
4e04867b89bfa1dfc6a7707fe3016b0e0081bef5
Readme updated with a new section Examples/Symmetrical torque driven OCP
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1694,6 +1694,50 @@ In this example, a time constraint is implemented:\nconstraints = Constraint(ConstraintFcn.TIME_CONSTRAINT, node=Node.END, min_bound=time_min, max_bound=time_max)\n```\n+## Symmetrical torque...
Python
MIT License
pyomeca/bioptim
Readme updated with a new section Examples/Symmetrical torque driven OCP
538,841
24.03.2021 11:06:06
-3,600
14d1d32844ff689ead3bb03d833a5f07f98d143a
Readme updated with a new section Examples/Torque driven OCP
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1738,6 +1738,101 @@ The `BiMapping` used is defined as a problem parameter, as shown below:\nall_generalized_mapping = BiMapping([0, 1, 2, -2], [0, 1, 2])\n```\n+## Torque driven OCP\n+In this section, you will...
Python
MIT License
pyomeca/bioptim
Readme updated with a new section Examples/Torque driven OCP
538,841
24.03.2021 11:54:49
-3,600
32f98912441a9de3bfed1aba4e2afc3a9040c2de
Readme updated with a new section Examples/The track file
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1833,6 +1833,37 @@ In this particular case, the dynamics function used is `DynamicsFcn.TORQUE_ACTIV\nThis example uses a representation of a human body by a trunk_leg segment and two arms.\nIt is designed to sh...
Python
MIT License
pyomeca/bioptim
Readme updated with a new section Examples/The track file
538,841
25.03.2021 10:30:02
-3,600
a1ebab7cc83fa4ab19b9520ba16a695336c997d8
Readme updated with a new section Examples/Acados
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1905,6 +1905,25 @@ We plot the results so that we can compare marker noisy trajectories, with real\nmarker trajectories.\nWe also plot estimated states and real states.\n+## Acados\n+In this section, you will f...
Python
MIT License
pyomeca/bioptim
Readme updated with a new section Examples/Acados
538,841
25.03.2021 11:16:23
-3,600
ca4a5d1dccd15628f5ca9a34a7e38a15baf4f312
Added an example using stand_alone
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/example_save_and_load.py", "new_path": "examples/getting_started/example_save_and_load.py", "diff": "\"\"\"\n-This is a clone of the getting_started/pendulum.py example. It is designed to show how to create and solve a problem,\n-and a...
Python
MIT License
pyomeca/bioptim
Added an example using stand_alone
538,855
25.03.2021 11:18:57
14,400
3ce3cf478d6abaecdf1f2ff8d485d6adef191127
Restored sol.status
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -46,6 +46,8 @@ class Solution:\nThe total time to solve the program\niterations: int\nThe number of iterations that were required to solve the program\n+ status: int...
Python
MIT License
pyomeca/bioptim
Restored sol.status
538,841
29.03.2021 17:13:48
-7,200
15511739acd541929c157f94f1cddca0a82e6493
Last readme updates
[ { "change_type": "MODIFY", "old_path": "examples/acados/cube.py", "new_path": "examples/acados/cube.py", "diff": "\"\"\"\nTODO: Cleaning\n-This is a basic example on how to use biorbd model driven by muscle to perform an optimal reaching task.\n-The arm must reach a marker while minimizing the muscl...
Python
MIT License
pyomeca/bioptim
Last readme updates
538,841
30.03.2021 09:40:25
-7,200
40313f7db6bbf5b1f28e6bf3efaf66ea3d8754ac
Last readme updates 2
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1273,7 +1273,8 @@ All the types of interpolation are shown : `CONSTANT`, `CONSTANT_WITH_FIRST_AND_\n`SPLINE`, and `CUSTOM`.\nWhen the `CUSTOM` interpolation is chosen, the functions `custom_x_bounds_min` and `c...
Python
MIT License
pyomeca/bioptim
Last readme updates 2
538,841
30.03.2021 12:14:39
-7,200
566fa7c05e9c43c9efb99a30d6ee68f7bab20a77
Add structure_graph function in optimal_control_program.py
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -156,6 +156,7 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nConstraintFunction.add_to_penalty(\npn.ocp,\npn.nlp,\n+ pn,\npn.nlp.contact_forces_func(pn.x[i], pn.u[...
Python
MIT License
pyomeca/bioptim
Add structure_graph function in optimal_control_program.py
538,841
30.03.2021 13:57:59
-7,200
7bc27142b13b87f6f7484f3c98afcc7bc4eafab5
Add pn to docstring functions in objective_functions.py
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/objective_functions.py", "new_path": "bioptim/limits/objective_functions.py", "diff": "@@ -166,6 +166,8 @@ class ObjectiveFunction:\nA reference to the ocp\nnlp: NonLinearProgram\nA reference to the current phase of the ocp\n+ pn: PenaltyNodes\n...
Python
MIT License
pyomeca/bioptim
Add pn to docstring functions in objective_functions.py
538,841
30.03.2021 14:00:44
-7,200
3833534b238dd71084618a2ec83be76b86f9036b
Add pn to docstring functions in constraints.py
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -388,6 +388,8 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nA reference to the ocp\nnlp: NonLinearProgram\nA reference to the current phase of the ocp\n+ pn: Pena...
Python
MIT License
pyomeca/bioptim
Add pn to docstring functions in constraints.py
538,841
30.03.2021 14:03:07
-7,200
1429c0d07adff7bdec0abc633ae45d4283a68159
Add pn to docstring functions in penalty.py
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty.py", "new_path": "bioptim/limits/penalty.py", "diff": "@@ -1158,6 +1158,8 @@ class PenaltyFunctionAbstract:\nA reference to the ocp\nnlp: NonLinearProgram\nA reference to the current phase of the ocp\n+ pn: PenaltyNodes\n+ The penalty no...
Python
MIT License
pyomeca/bioptim
Add pn to docstring functions in penalty.py
538,843
30.03.2021 14:49:34
-7,200
f16590ab36f41c0d71b86c9505a0852472e21244
update checked version of bioviz
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -801,7 +801,7 @@ class Solution:\nimport bioviz\nexcept ModuleNotFoundError:\nraise RuntimeError(\"bioviz must be install to animate the model\")\n- check_version(bi...
Python
MIT License
pyomeca/bioptim
update checked version of bioviz
538,841
31.03.2021 09:12:11
-7,200
32cf70c0b3fd1a671a2edc68233433b0edf2415d
Last readme updates 3
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -1817,6 +1817,7 @@ This example is closed to the example_save_and_load.py and custom_plotting.py fi\nexamples/getting_started repository.\n### The track_markers_with_torque_actuators.py file\n+\nThis example is ...
Python
MIT License
pyomeca/bioptim
Last readme updates 3
538,841
31.03.2021 11:27:58
-7,200
ccb3bae19a62483e0168fea0e6d5ec0a11783044
Update and simplify structure_graph function
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -718,46 +718,64 @@ class OptimalControlProgram:\nprint_to_terminal: bool = False,\n):\n- if isinstance(n_shooting, tuple):\n- n_nodes =...
Python
MIT License
pyomeca/bioptim
Update and simplify structure_graph function
538,841
01.04.2021 09:56:33
-7,200
01f8bc9935fac23b3db7abce26ce0083ae0c42da
Update and simplify structure_graph function 2
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -233,10 +233,9 @@ class OptimalControlProgram:\nelif not isinstance(dynamics, DynamicsList):\nraise RuntimeError(\"dynamics should be a...
Python
MIT License
pyomeca/bioptim
Update and simplify structure_graph function 2
538,841
01.04.2021 10:51:55
-7,200
6e704bb1e44dc271f0784e662d316720b5951940
Possibility for pn to be None, replace nlp by pn in add_to_penalty function parameters
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -103,7 +103,7 @@ class ConstraintFunction(PenaltyFunctionAbstract):\n-------\ninter_phase_continuity(ocp: OptimalControlProgram, pt: \"PhaseTransition\")\nAdd phase transi...
Python
MIT License
pyomeca/bioptim
Possibility for pn to be None, replace nlp by pn in add_to_penalty function parameters
538,843
01.04.2021 11:50:47
-7,200
d046f858473d6ef722fba5ca8aa58c0b9fbd0b86
changed dispatch of parameters when several involved
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -676,7 +676,9 @@ class DynamicsFunctions:\nThe definition of the system\n\"\"\"\n+ offset = 0\nfor param in nlp.parameters:\n# Call the pre dynamics func...
Python
MIT License
pyomeca/bioptim
changed dispatch of parameters when several involved
538,843
01.04.2021 11:51:49
-7,200
3993d7c8593311b15c4b43358d7c7061543882b2
now, integrator takes parameter scaling into account
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/integrator.py", "new_path": "bioptim/dynamics/integrator.py", "diff": "@@ -66,6 +66,7 @@ class Integrator:\nself.x_sym = ode[\"x\"]\nself.u_sym = ode[\"p\"]\nself.param_sym = ode_opt[\"param\"]\n+ self.param_scaling = ode_opt[\"param_scaling\"...
Python
MIT License
pyomeca/bioptim
now, integrator takes parameter scaling into account
538,843
01.04.2021 11:52:58
-7,200
c12b321f3d91adbb48ee9ceae09966dfcfd12af1
augments ode_opt with param_scaling
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/ode_solver.py", "new_path": "bioptim/dynamics/ode_solver.py", "diff": "@@ -111,6 +111,7 @@ class RK(OdeSolverBase):\n\"tf\": nlp.dt,\n\"model\": nlp.model,\n\"param\": nlp.p,\n+ \"param_scaling\": nlp.p_scaling,\n\"cx\": nlp.cx,\n\"idx\": 0,\n...
Python
MIT License
pyomeca/bioptim
augments ode_opt with param_scaling
538,843
01.04.2021 11:53:29
-7,200
14c256ddd42c856320de46c16fde97241f8ae1f6
augments nlp with p_scaling vector
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/problem.py", "new_path": "bioptim/dynamics/problem.py", "diff": "from typing import Callable\nfrom casadi import MX, vertcat, horzcat, Function\n+import numpy as np\nfrom .dynamics_functions import DynamicsFunctions\nfrom ..misc.enums import P...
Python
MIT License
pyomeca/bioptim
augments nlp with p_scaling vector
538,843
01.04.2021 11:54:08
-7,200
bcfee5102141c2466f8800ddfdf9e89252cc2c8b
added methods for scaling bounds and initialguess
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -401,6 +401,19 @@ class Bounds(OptionGeneric):\nself.extra_params = self.min.extra_params\nself.n_shooting = self.min.n_shooting\n+ def scale(self, scaling: Union[...
Python
MIT License
pyomeca/bioptim
added methods for scaling bounds and initialguess
538,843
01.04.2021 11:55:11
-7,200
7bbe569cfbfb632aefc815b7b818ba827080b89b
now, parameters definition handles a scaling factor for better conditionning of the problem
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/parameters.py", "new_path": "bioptim/optimization/parameters.py", "diff": "from typing import Callable, Union, Any\nfrom casadi import MX, SX\n+import numpy as np\nfrom ..misc.enums import Node\nfrom ..limits.objective_functions import Obj...
Python
MIT License
pyomeca/bioptim
now, parameters definition handles a scaling factor for better conditionning of the problem
538,843
01.04.2021 11:56:14
-7,200
cbfd2f534d0ec651c24fe95e4605f6daa44ed0f3
Scaling back parameters after optim
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/variable.py", "new_path": "bioptim/optimization/variable.py", "diff": "@@ -256,12 +256,15 @@ class OptimizationVariable:\noffset += self.n_phase_u[p]\noffset = self.n_all_x + self.n_all_u\n- data_parameters[\"all\"] = v_array[offset:]\n+ s...
Python
MIT License
pyomeca/bioptim
Scaling back parameters after optim
538,843
01.04.2021 11:57:35
-7,200
55326ff7cda089a3f7e75e37cd7546dc6e6a5b5e
enhanced custom_parameters example for testing new scaling fetaure
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/custom_parameters.py", "new_path": "examples/getting_started/custom_parameters.py", "diff": "@@ -9,7 +9,8 @@ sufficient.\nfrom typing import Any\n-from casadi import MX\n+import numpy as np\n+from casadi import MX, vertcat\nimport bior...
Python
MIT License
pyomeca/bioptim
enhanced custom_parameters example for testing new scaling fetaure
538,843
01.04.2021 12:11:42
-7,200
b60c114535401b2ff3c3b66690308bb74dcd54f7
added param scaling for IRK
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/ode_solver.py", "new_path": "bioptim/dynamics/ode_solver.py", "diff": "@@ -227,6 +227,7 @@ class OdeSolver:\n\"tf\": nlp.dt,\n\"model\": nlp.model,\n\"param\": nlp.p,\n+ \"param_scaling\": nlp.p_scaling,\n\"cx\": nlp.cx,\n\"idx\": 0,\n\"contro...
Python
MIT License
pyomeca/bioptim
added param scaling for IRK
538,843
01.04.2021 12:12:17
-7,200
345209e2c2e5744db4baa66996169d9c83a57068
fix broken test when no scaling
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/problem.py", "new_path": "bioptim/dynamics/problem.py", "diff": "@@ -579,7 +579,11 @@ class Problem:\nnlp.parameters = ocp.v.parameters_in_list\nnlp.p = ocp.v.parameters.cx\n+\n+ if nlp.parameters.__len__():\nnlp.p_scaling = np.vstack([p.scali...
Python
MIT License
pyomeca/bioptim
fix broken test when no scaling
538,843
01.04.2021 12:12:43
-7,200
c93c6e79bda7d84290c57bad18291044717436c5
update test_acados according to new param_custom example
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -312,7 +312,10 @@ def test_acados_one_parameter():\nn_shooting=100,\nmin_g=-10,\nmax_g=-6,\n+ min_m=10,\n+ max_m=306,\ntarget_g=-8,\n+ target_m=20,\nuse_sx=True,\n)\nmod...
Python
MIT License
pyomeca/bioptim
update test_acados according to new param_custom example
538,841
01.04.2021 14:31:27
-7,200
4c42747725ffb33b457bb186b2332192c5f8b2d6
Add functions get_objectives and get_constraints
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -94,6 +94,15 @@ class ConstraintList(OptionList):\n# TODO: Print all elements in the console\nraise NotImplementedError(\"Printing of ConstraintList is not ready yet\")\n+...
Python
MIT License
pyomeca/bioptim
Add functions get_objectives and get_constraints
538,843
01.04.2021 14:40:44
-7,200
f2cbdf70935fec6d800ba4161360a8802b56ea03
made acados test pass
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -310,11 +310,11 @@ def test_acados_one_parameter():\nbiorbd_model_path=bioptim_folder + \"/examples/getting_started/pendulum.bioMod\",\nfinal_time=2,\nn_shooting=100,\n-...
Python
MIT License
pyomeca/bioptim
made acados test pass
538,841
01.04.2021 14:46:12
-7,200
b294f846d7d76694223b923697976078dc324b9f
Add subfunction print_terminal
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -721,6 +721,20 @@ class OptimalControlProgram:\nm.update(b)\nreturn m\n+ def print_terminal(print_terminal: bool, l_nodes: list, n_phas...
Python
MIT License
pyomeca/bioptim
Add subfunction print_terminal
538,843
01.04.2021 14:48:50
-7,200
7675a7768822cff99f47f4affc2f94f2ebea5883
added possiblity of optimizing one or several parameters at once in exemple
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/custom_parameters.py", "new_path": "examples/getting_started/custom_parameters.py", "diff": "@@ -86,6 +86,8 @@ def prepare_ocp(\nbiorbd_model_path,\nfinal_time,\nn_shooting,\n+ optim_gravity,\n+ optim_mass,\nmin_g,\nmax_g,\nmin_m,\n@@ ...
Python
MIT License
pyomeca/bioptim
added possiblity of optimizing one or several parameters at once in exemple
538,843
01.04.2021 14:49:09
-7,200
d7c2f611936bc22f384a4afd683d38c137330893
one more test for acados
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -302,7 +302,6 @@ def test_acados_custom_dynamics(problem_type_custom):\nnp.testing.assert_almost_equal(tau[:, 0], np.array((0, 9.81, 2.27903226)))\nnp.testing.assert_alm...
Python
MIT License
pyomeca/bioptim
one more test for acados
538,843
01.04.2021 14:49:25
-7,200
0c445dea83cc7581fed652cff1b38ff84c36e597
update test of custom parameter
[ { "change_type": "MODIFY", "old_path": "tests/test_all_examples.py", "new_path": "tests/test_all_examples.py", "diff": "@@ -77,6 +77,8 @@ def test__getting_started__custom_parameters():\nbiorbd_model_path=bioptim_folder + \"/examples/getting_started/pendulum.bioMod\",\nfinal_time=3,\nn_shooting=100,...
Python
MIT License
pyomeca/bioptim
update test of custom parameter
538,841
01.04.2021 15:58:13
-7,200
9f989a98a66969522a870154938bf97bc4e18657
Add get_ode_solver and get_dynamics functions
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -95,7 +95,7 @@ class ConstraintList(OptionList):\nraise NotImplementedError(\"Printing of ConstraintList is not ready yet\")\n@staticmethod\n- def get_constraints(nlp):\n+...
Python
MIT License
pyomeca/bioptim
Add get_ode_solver and get_dynamics functions
538,841
01.04.2021 18:51:46
-7,200
07eb92506199d68c576d333fe537760777328467
Begin graph function
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -3,6 +3,7 @@ import os\nimport pickle\nfrom copy import deepcopy\nfrom math import inf\n+from graphviz import Digraph\nimport biorbd\ni...
Python
MIT License
pyomeca/bioptim
Begin graph function
538,841
01.04.2021 18:52:02
-7,200
18d03173fd6f0737cce91fa55784b3d7ef226beb
Add examples using structure_graph
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/example_multiphase.py", "new_path": "examples/getting_started/example_multiphase.py", "diff": "@@ -124,6 +124,9 @@ if __name__ == \"__main__\":\nocp = prepare_ocp(long_optim=True)\n+ # --- Print ocp structure --- #\n+ ocp.structure_gra...
Python
MIT License
pyomeca/bioptim
Add examples using structure_graph
538,841
02.04.2021 10:59:52
-7,200
26cfbf648a7f601cecfef6207ed6308932cb7bb2
Get ocp global constraints
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -95,13 +95,18 @@ class ConstraintList(OptionList):\nraise NotImplementedError(\"Printing of ConstraintList is not ready yet\")\n@staticmethod\n- def get_nlp_constraints(nl...
Python
MIT License
pyomeca/bioptim
Get ocp global constraints
538,841
02.04.2021 11:14:16
-7,200
ca7a8f1c998946ee45b88b9c4d25d86483d804fd
Replace parameter nlp by all_nlp in get_nlp_objectives
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/objective_functions.py", "new_path": "bioptim/limits/objective_functions.py", "diff": "@@ -96,15 +96,15 @@ class ObjectiveList(OptionList):\nraise NotImplementedError(\"Printing of ObjectiveList is not ready yet\")\n@staticmethod\n- def get_nlp_...
Python
MIT License
pyomeca/bioptim
Replace parameter nlp by all_nlp in get_nlp_objectives
538,841
02.04.2021 11:39:57
-7,200
f638785735a77d67cc38d9343d1e2cb0ae3fa35e
Define get_dynamics and get_ode_solver as private methods
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -712,13 +712,13 @@ class OptimalControlProgram:\nout = [ocp, sol]\nreturn out\n- def get_dynamics(self):\n+ def __get_dynamics(self):\n...
Python
MIT License
pyomeca/bioptim
Define get_dynamics and get_ode_solver as private methods
538,841
02.04.2021 11:48:10
-7,200
bae2b429b38406d77ead8750cca91f60029079ad
Print to terminal test moved outside of the display function
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -726,7 +726,7 @@ class OptimalControlProgram:\ndef structure_graph(\nself,\n- print_to_terminal: bool = False,\n+ print_to_terminal: bo...
Python
MIT License
pyomeca/bioptim
Print to terminal test moved outside of the display function
538,841
02.04.2021 11:53:58
-7,200
5cb8fec793792da0ef86c30489620f0750c69ec2
Some name changes (methods and parameters)
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -724,9 +724,9 @@ class OptimalControlProgram:\nlist_ode.append(nlp.ode_solver.rk_integrator.__name__)\nreturn list_ode\n- def structure...
Python
MIT License
pyomeca/bioptim
Some name changes (methods and parameters)
538,841
02.04.2021 14:52:54
-7,200
676abb1c186420627170ee0f465bf748bb6010c0
Add function draw_graph
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -3,7 +3,6 @@ import os\nimport pickle\nfrom copy import deepcopy\nfrom math import inf\n-from graphviz import Digraph\nimport biorbd\ni...
Python
MIT License
pyomeca/bioptim
Add function draw_graph
538,841
02.04.2021 15:54:54
-7,200
e41a12644537ecd3cfdedc6cad45c241af59bde8
Add a second version of draw_graph
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -773,6 +773,46 @@ class OptimalControlProgram:\ng.view()\n+ def draw_graph_2(l_dynamics: list, l_ode: list, l_nodes: list, n_phase: int...
Python
MIT License
pyomeca/bioptim
Add a second version of draw_graph
538,841
02.04.2021 16:00:56
-7,200
1f618c41a0c6e1aabde3c9f44bfba38fc164501f
Changed the names of the nodes in the graph
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -789,7 +789,7 @@ class OptimalControlProgram:\ng.node(f'node_struct_{phase_idx}{node_idx}', f'''<\n<TABLE BORDER=\"0\" CELLBORDER=\"1\"...
Python
MIT License
pyomeca/bioptim
Changed the names of the nodes in the graph
538,841
06.04.2021 12:04:01
-7,200
0d88ced03d1c0176b7664227f0f20903c1cffc02
Add function get_parameters()
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/objective_functions.py", "new_path": "bioptim/limits/objective_functions.py", "diff": "@@ -476,7 +476,7 @@ class ObjectiveFunction:\npass\n@staticmethod\n- def add_to_penalty(ocp, pn: PenaltyNodes, val: Union[MX, SX, float, int], penalty: Object...
Python
MIT License
pyomeca/bioptim
Add function get_parameters()
538,841
06.04.2021 12:06:44
-7,200
a5984e6958271847aed537d640e8b0fd0c1f2dc4
Add an example using print_ocp_structure() in custom_parameters.py
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/custom_parameters.py", "new_path": "examples/getting_started/custom_parameters.py", "diff": "@@ -171,6 +171,9 @@ if __name__ == \"__main__\":\nbiorbd_model_path=\"pendulum.bioMod\", final_time=3, n_shooting=100, min_g=-10, max_g=-6, ta...
Python
MIT License
pyomeca/bioptim
Add an example using print_ocp_structure() in custom_parameters.py
538,843
06.04.2021 15:03:13
-7,200
c7f9dba836c605ab2cc1aa77ac24e1e33c0c2e56
changed declaration of nlp.p_scaling
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/problem.py", "new_path": "bioptim/dynamics/problem.py", "diff": "@@ -580,10 +580,10 @@ class Problem:\nnlp.parameters = ocp.v.parameters_in_list\nnlp.p = ocp.v.parameters.cx\n- if nlp.parameters.__len__():\n+ if len(nlp.parameters):\nnlp.p_sca...
Python
MIT License
pyomeca/bioptim
changed declaration of nlp.p_scaling
538,843
06.04.2021 15:03:51
-7,200
81a2f8f0a93ace24283d79bb78106a98bf33ee67
changed scaling methods of bounds and InitialGuess
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/path_conditions.py", "new_path": "bioptim/limits/path_conditions.py", "diff": "@@ -401,7 +401,7 @@ class Bounds(OptionGeneric):\nself.extra_params = self.min.extra_params\nself.n_shooting = self.min.n_shooting\n- def scale(self, scaling: Union[f...
Python
MIT License
pyomeca/bioptim
changed scaling methods of bounds and InitialGuess
538,843
06.04.2021 15:04:36
-7,200
3b4e056cc7511f427d762cb1a753e1eb2647e83b
added tests of shape and types at the declaration oof parameter scaling
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/parameters.py", "new_path": "bioptim/optimization/parameters.py", "diff": "@@ -37,7 +37,7 @@ class Parameter(OptionGeneric):\nsize: int = None,\npenalty_list: Union[Objective, ObjectiveList] = None,\ncx: Union[Callable, MX, SX] = None,\n- ...
Python
MIT License
pyomeca/bioptim
added tests of shape and types at the declaration oof parameter scaling
538,843
06.04.2021 15:05:08
-7,200
2d2d367e3253514000c13e8c14a085df3eeee986
small docstring mods
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/variable.py", "new_path": "bioptim/optimization/variable.py", "diff": "@@ -53,7 +53,7 @@ class OptimizationVariable:\nGet the parameters in one single Parameter class\nextract_phase_time(self, data: Union[np.array, DM]) -> list\nGet the ph...
Python
MIT License
pyomeca/bioptim
small docstring mods
538,843
06.04.2021 15:05:50
-7,200
76c77d11119f84b840150aaf9827358f885b421e
changed custonm param example
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/custom_parameters.py", "new_path": "examples/getting_started/custom_parameters.py", "diff": "@@ -56,8 +56,6 @@ def set_mass(biorbd_model: biorbd.Model, value: MX):\nThe model to modify by the parameters\nvalue: MX\nThe CasADi variables...
Python
MIT License
pyomeca/bioptim
changed custonm param example
538,841
06.04.2021 16:25:12
-7,200
0883bb98d05f7596823558967d271b9db58d3845
Print parameters to console
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -734,13 +734,25 @@ class OptimalControlProgram:\nm.update(b)\nreturn m\n- def print_console(l_dynamics: list, l_ode: list, l_nodes: lis...
Python
MIT License
pyomeca/bioptim
Print parameters to console
538,843
06.04.2021 17:23:10
-7,200
717108c4d5b647ac6ab2a2c927ce5cce993ad190
changed default value of param
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/parameters.py", "new_path": "bioptim/optimization/parameters.py", "diff": "@@ -136,7 +136,7 @@ class ParameterList(UniquePerProblemOptionList):\nsize: int = None,\nlist_index: int = -1,\npenalty_list: Union[Objective, ObjectiveList] = None...
Python
MIT License
pyomeca/bioptim
changed default value of param
538,843
06.04.2021 17:23:40
-7,200
616cb8a8faea977aba1ab763e60df66481b8fba3
scaled back params in integration of solution
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -134,6 +134,7 @@ class Solution:\nself.J = nlp.J\nself.g = nlp.g\nself.ns = nlp.ns\n+ self.p_scaling = nlp.p_scaling\nclass SimplifiedOCP:\n\"\"\"\n@@ -511,6 +512,7 ...
Python
MIT License
pyomeca/bioptim
scaled back params in integration of solution
538,843
06.04.2021 17:24:25
-7,200
7fac17c056efb0b38902a4abbf3c9efebb07388e
changed tests value according to new scaling of gravity
[ { "change_type": "MODIFY", "old_path": "tests/test_global_getting_started.py", "new_path": "tests/test_global_getting_started.py", "diff": "@@ -424,21 +424,25 @@ def test_parameter_optimization(ode_solver):\nocp = parameter.prepare_ocp(\nbiorbd_model_path=bioptim_folder + \"/examples/getting_started...
Python
MIT License
pyomeca/bioptim
changed tests value according to new scaling of gravity
538,841
07.04.2021 10:01:23
-7,200
980a13565bd18fddc3c462e8e3fbf028c2676e1f
Print parameters on graph
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -789,6 +789,34 @@ class OptimalControlProgram:\nfrom graphviz import Digraph\nG = Digraph('graph_test', node_attr={'shape': 'plaintext'...
Python
MIT License
pyomeca/bioptim
Print parameters on graph
538,841
07.04.2021 10:49:35
-7,200
d1e84b4f709a19582a653884a403ac3a7f8d22be
Fixed display problem
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -841,8 +841,10 @@ class OptimalControlProgram:\n<TD>{l_nodes[phase_idx][node_idx]['Constraints']}</TD>\n</TR>\n</TABLE>>''')\n+ if node...
Python
MIT License
pyomeca/bioptim
Fixed display problem
538,841
07.04.2021 11:30:25
-7,200
70ed5c4aca66aa78a34021f302706918aa99f213
Print bounds and sliced target for each constraint
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -101,11 +101,16 @@ class ConstraintList(OptionList):\nfor g in ocp.g:\nlist_global_constraints.append(g[0][\"constraint\"].name)\n- list_constraints = [[{\"Constraints\": ...
Python
MIT License
pyomeca/bioptim
Print bounds and sliced target for each constraint
538,841
07.04.2021 11:31:18
-7,200
bd195ca97aafef39d0f6a8d5149574498db8fd67
Add an example using print_ocp_structure() in custom_initial_guess.py
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/custom_initial_guess.py", "new_path": "examples/getting_started/custom_initial_guess.py", "diff": "@@ -166,6 +166,10 @@ if __name__ == \"__main__\":\nfor initial_guess in InterpolationType:\nprint(f\"Solving problem using {initial_gues...
Python
MIT License
pyomeca/bioptim
Add an example using print_ocp_structure() in custom_initial_guess.py
538,843
07.04.2021 14:32:08
-7,200
86f2d630df29af1ebede42d99113aaef2a4b53bf
add tests for scaling declaration
[ { "change_type": "MODIFY", "old_path": "tests/test_parameters.py", "new_path": "tests/test_parameters.py", "diff": "import pytest\nfrom bioptim import ParameterList\n-\n+import numpy as np\ndef test_wrong_parameter():\nparam = ParameterList()\n@@ -15,3 +15,34 @@ def test_wrong_parameter():\n\"not us...
Python
MIT License
pyomeca/bioptim
add tests for scaling declaration
538,841
08.04.2021 11:50:17
-7,200
ebbfc067320e11efc7cdaf96ee084e17a3c01ded
Solve display problems + print dynamics and ode
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -793,8 +793,9 @@ class OptimalControlProgram:\nwith G.subgraph(name=f'cluster_parameters') as g:\ng.attr(style='filled', color='lightgr...
Python
MIT License
pyomeca/bioptim
Solve display problems + print dynamics and ode
538,841
08.04.2021 12:00:30
-7,200
71e752ee54a3fbfc22c51a34370fe7db1cd4d4e4
Condense Lagrange objectives for each phase
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -842,13 +842,16 @@ class OptimalControlProgram:\n<TR>\n<TD>ODE: {list_ode[phase_idx]}</TD>\n</TR>\n+ <TR>\n+ <TD>Lagrange: {l_nodes[pha...
Python
MIT License
pyomeca/bioptim
Condense Lagrange objectives for each phase
538,841
08.04.2021 14:14:56
-7,200
70471f89a1847659916dfad691a47142e1395cfc
Modify constraints display
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -837,10 +837,10 @@ class OptimalControlProgram:\ng.node(f'dynamics_&_ode_{phase_idx}', f'''<\n<TABLE BORDER=\"0\" CELLBORDER=\"1\" CELL...
Python
MIT License
pyomeca/bioptim
Modify constraints display
538,843
08.04.2021 14:48:22
-7,200
e3a39dd17131d4c43c6bb7695f6345ba2122bce4
changed valueerror in param scaling def
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/parameters.py", "new_path": "bioptim/optimization/parameters.py", "diff": "@@ -2,6 +2,7 @@ from typing import Callable, Union, Any\nfrom casadi import MX, SX\nimport numpy as np\n+import regex as re\nfrom ..misc.enums import Node\nfrom ..l...
Python
MIT License
pyomeca/bioptim
changed valueerror in param scaling def
538,843
08.04.2021 14:48:38
-7,200
1fec744f5183e878e8d2d9fcec377681c9851902
added tests in param scaling for improving coverage
[ { "change_type": "MODIFY", "old_path": "tests/test_parameters.py", "new_path": "tests/test_parameters.py", "diff": "import pytest\nfrom bioptim import ParameterList\nimport numpy as np\n-\n+import regex as re\ndef test_wrong_parameter():\nparam = ParameterList()\n@@ -48,3 +48,21 @@ def test_param_sc...
Python
MIT License
pyomeca/bioptim
added tests in param scaling for improving coverage
538,843
08.04.2021 14:52:27
-7,200
f9e9c622fc3aa416e0292584834e2a9610e9edfd
removed useless import of regex
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/parameters.py", "new_path": "bioptim/optimization/parameters.py", "diff": "@@ -2,7 +2,6 @@ from typing import Callable, Union, Any\nfrom casadi import MX, SX\nimport numpy as np\n-import regex as re\nfrom ..misc.enums import Node\nfrom ..l...
Python
MIT License
pyomeca/bioptim
removed useless import of regex
538,843
08.04.2021 15:10:43
-7,200
3fd92a3b1971f2693f93700ecca7ae9e3f3e46db
added inf_pr and inf_du in solution
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -42,6 +42,10 @@ class Solution:\nThe Lagrange multiplier of the parameters\nlam_x: list\nThe Lagrange multiplier of the states and controls\n+ inf_pr: list\n+ The un...
Python
MIT License
pyomeca/bioptim
added inf_pr and inf_du in solution
538,841
08.04.2021 17:13:16
-7,200
d03e4d2561558603599179759fedde35a40d817a
Reorganize parameters display
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -752,9 +752,24 @@ class OptimalControlProgram:\ndef mayer_to_str(l_nodes: list, phase_idx: int, node_idx: int):\nmayer_str = \"\"\nfor ...
Python
MIT License
pyomeca/bioptim
Reorganize parameters display
538,841
08.04.2021 17:32:46
-7,200
53344bced7f9440c3c94fd5b0cab9a3e6f7966c9
Only display main nodes
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -890,6 +890,7 @@ class OptimalControlProgram:\nfor _ in l_nodes[phase_idx]:\nconstraints_str = constraints_to_str(l_nodes, phase_idx, n...
Python
MIT License
pyomeca/bioptim
Only display main nodes
538,841
09.04.2021 10:30:15
-7,200
04ef0b8ffaf0504ab434cc35f7dd7da70fde3c33
Solve general display problems + parameters display problems
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -825,7 +825,6 @@ class OptimalControlProgram:\nfrom graphviz import Digraph\nG = Digraph('graph_test', node_attr={'shape': 'plaintext'}...
Python
MIT License
pyomeca/bioptim
Solve general display problems + parameters display problems
538,841
09.04.2021 10:42:56
-7,200
85e119a93168606351f3ad211d72cadc8fa61d95
Separate Lagrange from Dynamic and ODE
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -875,7 +875,6 @@ class OptimalControlProgram:\ng.node_attr.update(style='filled', color='white')\n- lagrange_str = lagrange_to_str(l_no...
Python
MIT License
pyomeca/bioptim
Separate Lagrange from Dynamic and ODE