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,842 | 11.11.2021 16:48:37 | 18,000 | eb15185e0b9f338b9441a3ec67078100cb1c7b5f | readme and i took into account review | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -1384,7 +1384,6 @@ The accepted values are:\n- SPLINE: Requires five columns. It performs a cubic spline to interpolate between the nodes.\n- CUSTOM: User defined interpolation function\n-\n### Enum: Shooting\nT... | Python | MIT License | pyomeca/bioptim | readme and i took into account review |
538,842 | 12.11.2021 09:54:22 | 18,000 | ff7a8bfd23cf040a3a62bc8915553396853113c4 | unmixing the use of scipy or not | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/solution.py",
"new_path": "bioptim/optimization/solution.py",
"diff": "@@ -561,7 +561,7 @@ class Solution:\nif shooting_type != Shooting.MULTIPLE:\nraise RuntimeError(\n\"Integration with direct collocation must using shooting_type=Shootin... | Python | MIT License | pyomeca/bioptim | unmixing the use of scipy or not |
538,842 | 12.11.2021 09:56:33 | 18,000 | 7edd14117fafca3094cdaa06781bc9cc08791d85 | fixing a last test. | [
{
"change_type": "MODIFY",
"old_path": "tests/test_simulate.py",
"new_path": "tests/test_simulate.py",
"diff": "@@ -805,7 +805,7 @@ def test_integrate_multiphase_merged_non_continuous(shooting, integrator, ode_so\n_ = sol.integrate(**opts)\nelif ode_solver == OdeSolver.COLLOCATION:\n- if integrator ... | Python | MIT License | pyomeca/bioptim | fixing a last test. |
538,842 | 12.11.2021 10:00:32 | 18,000 | dd15a5a51fc5f0e1bd6d60dacfcc960d8f91b731 | Default solution integrator as an empty string | [
{
"change_type": "MODIFY",
"old_path": "bioptim/misc/enums.py",
"new_path": "bioptim/misc/enums.py",
"diff": "@@ -110,7 +110,7 @@ class SolutionIntegrator(Enum):\nSelection of integrator to use integrate function\n\"\"\"\n- DEFAULT = None\n+ DEFAULT = \"\"\nSCIPY_RK23 = \"RK23\"\nSCIPY_RK45 = \"RK45... | Python | MIT License | pyomeca/bioptim | Default solution integrator as an empty string |
538,842 | 12.11.2021 11:18:22 | 18,000 | e16441c257cb55f0ecef20ecbb9919657933916a | non empty str for SolutionIntegrator.DEFAULT | [
{
"change_type": "MODIFY",
"old_path": "bioptim/misc/enums.py",
"new_path": "bioptim/misc/enums.py",
"diff": "@@ -110,7 +110,7 @@ class SolutionIntegrator(Enum):\nSelection of integrator to use integrate function\n\"\"\"\n- DEFAULT = \"\"\n+ DEFAULT = \"DEFAULT\"\nSCIPY_RK23 = \"RK23\"\nSCIPY_RK45 =... | Python | MIT License | pyomeca/bioptim | non empty str for SolutionIntegrator.DEFAULT |
538,842 | 17.11.2021 18:11:34 | 18,000 | df3f71d77a85c0edc028da94df217761a9f2ee5d | plot soft contact functions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -3,6 +3,7 @@ from enum import Enum\nfrom casadi import MX, vertcat, Function\nimport numpy as np\n+from biorbd_casadi import biorbd\nfrom .dynamics_functio... | Python | MIT License | pyomeca/bioptim | plot soft contact functions |
538,842 | 17.11.2021 18:49:04 | 18,000 | 0496bf0475b77666781dfed42e8b8125b474d24b | Minimize soft contact forces | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -291,6 +291,7 @@ class ObjectiveFcn:\nMINIMIZE_QDDOT = (PenaltyFunctionAbstract.Functions.minimize_qddot,)\nMINIMIZE_CONTACT_FORCES = (PenaltyFunctionAbstr... | Python | MIT License | pyomeca/bioptim | Minimize soft contact forces |
538,842 | 18.11.2021 09:10:35 | 18,000 | be4dd335a5c55548aa4c53fef458e81b6741f56d | init soft_contact_forces_func | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -328,7 +328,7 @@ class ConfigureProblem:\nnlp: NonLinearProgram\nA reference to the phase\n\"\"\"\n- nlp.soft_contact_forces_func = []\n+\nfor i_sc in rang... | Python | MIT License | pyomeca/bioptim | init soft_contact_forces_func |
538,842 | 19.11.2021 11:28:32 | 18,000 | e78b04df7ceee5e1cfd405bae4dba95f8abbf864 | One Casadi function for all soft contacts | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -156,6 +156,7 @@ class ConfigureProblem:\nif with_contact:\nConfigureProblem.configure_contact_function(ocp, nlp, DynamicsFunctions.forces_from_torque_driv... | Python | MIT License | pyomeca/bioptim | One Casadi function for all soft contacts |
538,842 | 19.11.2021 11:32:07 | 18,000 | b3fd9ac3cbec33625897396325594163452b513b | revert local tests | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/ode_solver.py",
"new_path": "bioptim/dynamics/ode_solver.py",
"diff": "@@ -342,7 +342,7 @@ class OdeSolver:\n\"p\": nlp.controls.cx,\n\"ode\": nlp.dynamics_func(nlp.states.cx, nlp.controls.cx, nlp.parameters.cx),\n}\n- ode_opt = {\"t0\": 0, \"... | Python | MIT License | pyomeca/bioptim | revert local tests |
538,842 | 23.11.2021 16:10:28 | 18,000 | f1d284c18c17a55892bcf9100569cde9b45cc8b8 | implicit torque driven dynamics | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -9,9 +9,10 @@ from .fatigue.fatigue_dynamics import FatigueList, MultiFatigueInterface\nfrom .ode_solver import OdeSolver\nfrom ..gui.plot import CustomPlo... | Python | MIT License | pyomeca/bioptim | implicit torque driven dynamics |
538,859 | 23.11.2021 16:59:50 | 18,000 | e19d6816ea4c1bb02217962f9704accbb74e9970 | Fix typo error + delete backslash for cmake in linux + add right nb of cpu for linux | [
{
"change_type": "MODIFY",
"old_path": "external/acados_install_linux.sh",
"new_path": "external/acados_install_linux.sh",
"diff": "@@ -9,33 +9,42 @@ if [ ! -f acados/CMakeLists.txt ]; then\ngit submodule update --recursive --init\nfi\n+\n+# Check if everything required by the script is present\n+ec... | Python | MIT License | pyomeca/bioptim | Fix typo error + delete backslash for cmake in linux + add right nb of cpu for linux |
538,859 | 23.11.2021 17:07:24 | 18,000 | 3bb4c35acd8aebea90d8e89e0199ad3cb31a7436 | Update message for nb of cpu asked for acados openMP | [
{
"change_type": "MODIFY",
"old_path": "external/acados_install_linux.sh",
"new_path": "external/acados_install_linux.sh",
"diff": "@@ -24,7 +24,7 @@ if [ -z \"$1\" ]; then\nfi\nif [ \"$1\" ]; then\n- echo \" NB_CPU=$1\"\n+ echo \" Number of threads for acados with openMP asked : NB_CPU=$1\"\necho \... | Python | MIT License | pyomeca/bioptim | Update message for nb of cpu asked for acados openMP |
538,842 | 24.11.2021 12:03:59 | 18,000 | d56e9473fd6a6fe0413b2ef97ec1063fce60b27e | taudot and qddot driven in implicit is not a good idea | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -129,42 +129,9 @@ class ConfigureProblem:\nif with_contact:\nConfigureProblem.configure_contact_function(ocp, nlp, DynamicsFunctions.forces_from_torque_dri... | Python | MIT License | pyomeca/bioptim | taudot and qddot driven in implicit is not a good idea |
538,842 | 24.11.2021 12:37:11 | 18,000 | 814a13d7028d20d1d6a7fd9059d0cf62134ecde8 | taudot and jerk driven is a better idea. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -153,7 +153,8 @@ class ConfigureProblem:\nConfigureProblem.configure_taudot(nlp, False, True)\nif implicit_dynamics:\n- ConfigureProblem.configure_qddot(nl... | Python | MIT License | pyomeca/bioptim | taudot and jerk driven is a better idea. |
538,842 | 24.11.2021 14:33:15 | 18,000 | 0733b4baa009c0c6f9e0440b6ed28e8e542ddc05 | RK1 for implicit trials works fine | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/integrator.py",
"new_path": "bioptim/dynamics/integrator.py",
"diff": "@@ -263,6 +263,54 @@ class RK(Integrator):\nreturn x[:, -1], x\n+class RK1(RK):\n+ \"\"\"\n+ Numerical integration using fourth order Runge-Kutta method.\n+\n+ Methods\n+ -... | Python | MIT License | pyomeca/bioptim | RK1 for implicit trials works fine |
538,842 | 24.11.2021 17:59:48 | 18,000 | 9d4c42b91947233e151d2c600240c97a811afe1e | implicit soft contacts | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -97,7 +97,10 @@ class ConfigureProblem:\nnlp.dynamics_type.configure(ocp, nlp, **extra_params)\n@staticmethod\n- def torque_driven(ocp, nlp, with_contact: ... | Python | MIT License | pyomeca/bioptim | implicit soft contacts |
538,842 | 25.11.2021 10:47:01 | 18,000 | 6e233cb94092aaa4c812dea53bb12c05409e274a | blacked and small corrections | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -94,7 +94,9 @@ class ConfigureProblem:\nnlp.dynamics_type.configure(ocp, nlp, **extra_params)\n@staticmethod\n- def torque_driven(ocp, nlp, with_contact: b... | Python | MIT License | pyomeca/bioptim | blacked and small corrections |
538,842 | 25.11.2021 13:05:24 | 18,000 | a56498c924628c3a9dce22930d93bc01d8a1b57d | restored functions after merging. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -469,7 +469,8 @@ class ImplicitConstraintFcn(Enum):\nReturns the type of the penalty\n\"\"\"\n- QDDOT = (ConstraintFunction.Functions.implicit_qddot,)\n+ QDDOT_EQUALS_FORW... | Python | MIT License | pyomeca/bioptim | restored functions after merging. |
538,842 | 25.11.2021 16:58:06 | 18,000 | 44d3fd4e793865f4609c34e1cdec84bccc5434b3 | update the implicit constraint with inverse dynamics | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -12,7 +12,7 @@ from ..limits.path_conditions import Bounds\nfrom ..misc.enums import PlotType, ControlType, VariableType, Node\nfrom ..misc.mapping import ... | Python | MIT License | pyomeca/bioptim | update the implicit constraint with inverse dynamics |
538,842 | 25.11.2021 19:20:48 | 18,000 | a17a12176069003c6feb292028c095f7529d53e0 | adding implicit constraints as a new type of constraint in a dedicated Enum | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -9,7 +9,7 @@ from .fatigue.fatigue_dynamics import FatigueList, MultiFatigueInterface\nfrom .ode_solver import OdeSolver\nfrom ..gui.plot import CustomPlot... | Python | MIT License | pyomeca/bioptim | adding implicit constraints as a new type of constraint in a dedicated Enum |
538,842 | 26.11.2021 10:23:24 | 18,000 | 3223752c65f02b717dc51f9ce32ea5f05af42c91 | corrections from PR not implemented error on external forces and debug concatenation of states for multithread. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/dynamics_functions.py",
"new_path": "bioptim/dynamics/dynamics_functions.py",
"diff": "@@ -248,23 +248,20 @@ class DynamicsFunctions:\ndq = DynamicsFunctions.compute_qdot(nlp, q, qdot)\ndtau = DynamicsFunctions.get(nlp.controls[\"taudot\"], co... | Python | MIT License | pyomeca/bioptim | corrections from PR #409. not implemented error on external forces and debug concatenation of states for multithread. |
538,842 | 26.11.2021 14:12:45 | 18,000 | f2d32a3e19fa798aa86862b1785d94aee65fc461 | added implicit example on pendulum | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "bioptim/examples/getting_started/example_implicit_dynamics.py",
"diff": "+\"\"\"\n+A very simple yet meaningful optimal control program consisting in a pendulum starting downward and ending upward\n+while requiring the minimum of generalized for... | Python | MIT License | pyomeca/bioptim | added implicit example on pendulum |
538,842 | 26.11.2021 14:25:45 | 18,000 | 9e5db4bc8c0d3f653e88bbdf92997d58f4b08a76 | Taking into account review comments. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -214,7 +214,9 @@ class ConfigureProblem:\nConfigureProblem.configure_soft_contact_function(ocp, nlp)\nif implicit_soft_contacts:\nocp.implicit_constraints.... | Python | MIT License | pyomeca/bioptim | Taking into account review comments. |
538,842 | 26.11.2021 14:43:27 | 18,000 | fbf4387587876ae8894cde068fca8420e342a65c | all tests work again | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -154,7 +154,6 @@ class ConfigureProblem:\nif with_contact:\nConfigureProblem.configure_contact_function(ocp, nlp, DynamicsFunctions.forces_from_torque_driv... | Python | MIT License | pyomeca/bioptim | all tests work again |
538,842 | 26.11.2021 15:19:57 | 18,000 | 7bfa67381b5ce3778d4840d9a713df5839c7878a | new test for implicit torque driven | [
{
"change_type": "MODIFY",
"old_path": "tests/test_dynamics.py",
"new_path": "tests/test_dynamics.py",
"diff": "@@ -10,7 +10,7 @@ from bioptim.misc.enums import ControlType\nfrom bioptim.optimization.non_linear_program import NonLinearProgram\nfrom bioptim.optimization.optimization_vector import Opt... | Python | MIT License | pyomeca/bioptim | new test for implicit torque driven |
538,842 | 26.11.2021 15:27:59 | 18,000 | 8578ba6d54f7e7ca9b3b5669979a103f360b303a | torque derivative driven test | [
{
"change_type": "MODIFY",
"old_path": "tests/test_dynamics.py",
"new_path": "tests/test_dynamics.py",
"diff": "@@ -103,12 +103,11 @@ def test_torque_driven_implicit(with_contact, cx):\nFalse,\n)\n- np.random.seed(42)\n-\n# Prepare the dynamics\nConfigureProblem.initialize(ocp, nlp)\n# Test the resu... | Python | MIT License | pyomeca/bioptim | torque derivative driven test |
538,842 | 26.11.2021 16:58:53 | 18,000 | 03be5a94bacd55c3f58bdb79f16bbfb4c46e8204 | Handling mutiple cases with soft contact implicit constraint | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -154,6 +154,7 @@ class ConfigureProblem:\nif with_contact:\nConfigureProblem.configure_contact_function(ocp, nlp, DynamicsFunctions.forces_from_torque_driv... | Python | MIT License | pyomeca/bioptim | Handling mutiple cases with soft contact implicit constraint |
538,842 | 26.11.2021 18:00:33 | 18,000 | 955a1bb3e3bff8c01761804f0b8c72abd98703ab | soft contact example and blacked | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "bioptim/examples/getting_started/example_soft_contact.py",
"diff": "+import numpy as np\n+import biorbd_casadi as biorbd\n+from bioptim import (\n+ OptimalControlProgram,\n+ DynamicsList,\n+ Dynamics,\n+ DynamicsFcn,\n+ ObjectiveList,\n+ Objecti... | Python | MIT License | pyomeca/bioptim | soft contact example and blacked |
538,842 | 29.11.2021 18:30:02 | 18,000 | 342551b35c7d025e0c17d42fac484faf4188ed0d | adding minimize_soft_contact as a cost function | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -291,6 +291,7 @@ class ObjectiveFcn:\nMINIMIZE_QDDOT = (PenaltyFunctionAbstract.Functions.minimize_qddot,)\nMINIMIZE_CONTACT_FORCES = (PenaltyFunctionAbstr... | Python | MIT License | pyomeca/bioptim | adding minimize_soft_contact as a cost function |
538,842 | 29.11.2021 18:41:44 | 18,000 | e83eee432b6456a86863b773e595638cf9462d0d | clean code on implicit constraints. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -328,30 +328,37 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nqdot = nlp.states[\"qdot\"].mx\ntau = nlp.states[\"tau\"].mx if \"tau\" in nlp.states.keys() else nl... | Python | MIT License | pyomeca/bioptim | clean code on implicit constraints. |
538,842 | 29.11.2021 18:44:33 | 18,000 | e4b949ffbfb4381b0359e649bf4e6dc918334458 | raise an error for implicit contraints when there are a external forces | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -334,6 +334,13 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nvar = [nlp.states[\"q\"], nlp.states[\"qdot\"]]\ndynamic_name = nlp.dynamics_type.type.name\n+ if nlp... | Python | MIT License | pyomeca/bioptim | raise an error for implicit contraints when there are a external forces |
538,842 | 29.11.2021 18:52:19 | 18,000 | 1622538223ae1ef43f96ee02ec4a3b4804fbfb9f | test added for RK1 | [
{
"change_type": "MODIFY",
"old_path": "tests/test_global_getting_started.py",
"new_path": "tests/test_global_getting_started.py",
"diff": "@@ -16,7 +16,7 @@ from .utils import TestUtils\n@pytest.mark.parametrize(\"n_threads\", [1, 2])\n@pytest.mark.parametrize(\"use_sx\", [False, True])\n@pytest.ma... | Python | MIT License | pyomeca/bioptim | test added for RK1 |
538,842 | 30.11.2021 17:23:08 | 18,000 | 7c1bccbdb83fc1f1806bc78a2a31fc7a941fd5dc | RK2 and tests | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -102,7 +102,7 @@ class ConfigureProblem:\nnlp,\nwith_contact: bool = False,\nimplicit_dynamics: bool = False,\n- implicit_soft_contacts: bool = False,\n+ i... | Python | MIT License | pyomeca/bioptim | RK2 and tests |
538,842 | 01.12.2021 10:18:30 | 18,000 | 50463c9e8cd5abd7c69bbb6df91e3d9678c81dae | test for implicit graph | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -139,8 +139,10 @@ class ConfigureProblem:\nif implicit_soft_contacts and not implicit_dynamics:\nConfigureProblem.configure_soft_contact_forces(nlp, False,... | Python | MIT License | pyomeca/bioptim | test for implicit graph |
538,842 | 01.12.2021 10:57:32 | 18,000 | 33c22da568e5e42466b191aa7035844d3366d459 | test soft contact | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/getting_started/example_soft_contact.py",
"new_path": "bioptim/examples/getting_started/example_soft_contact.py",
"diff": "@@ -28,6 +28,8 @@ def prepare_single_shooting(\nn_shooting: int,\nfinal_time: float,\node_solver: OdeSolver,\n+ n_thread... | Python | MIT License | pyomeca/bioptim | test soft contact |
538,842 | 01.12.2021 11:02:23 | 18,000 | 0075866c2814ab2055838b48485831d45425bf06 | restored at false implicit soft contact | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -102,7 +102,7 @@ class ConfigureProblem:\nnlp,\nwith_contact: bool = False,\nimplicit_dynamics: bool = False,\n- implicit_soft_contacts: bool = True,\n+ im... | Python | MIT License | pyomeca/bioptim | restored at false implicit soft contact |
538,842 | 01.12.2021 14:49:06 | 18,000 | da57c3637912107cf3d9d05a65a79095dbd0ba32 | Taking into account the review | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/__main__.py",
"new_path": "bioptim/examples/__main__.py",
"diff": "@@ -52,6 +52,7 @@ examples_ = OrderedDict(\n(\"Example optimal time\", \"example_optimal_time.py\"),\n(\"Example save and load\", \"example_save_and_load.py\"),\n(\"Example sim... | Python | MIT License | pyomeca/bioptim | Taking into account the review |
538,842 | 01.12.2021 14:49:06 | 18,000 | 03e6c6e6701ee24c3a4b18d4514e099819a4c2dc | Understanding implicit dynamics as a user. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -102,7 +102,7 @@ class ConfigureProblem:\nnlp,\nwith_contact: bool = False,\nimplicit_dynamics: bool = False,\n- implicit_soft_contacts: bool = False,\n+ i... | Python | MIT License | pyomeca/bioptim | Understanding implicit dynamics as a user. |
538,842 | 01.12.2021 18:27:46 | 18,000 | 71ad47205722f98d7db4ed19deb91f83e5f1afc5 | last commit of the day on implicit soft contacts | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -161,8 +161,8 @@ class ConfigureProblem:\nif with_contact:\nConfigureProblem.configure_contact_function(ocp, nlp, DynamicsFunctions.forces_from_torque_driv... | Python | MIT License | pyomeca/bioptim | last commit of the day on implicit soft contacts |
538,842 | 02.12.2021 14:17:43 | 18,000 | f89329882fc75e999053d242436d4b2c0f106fb2 | Cleaning code of implicit constraints. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/constraints.py",
"new_path": "bioptim/limits/constraints.py",
"diff": "@@ -331,38 +331,10 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nqddot = nlp.controls[\"qddot\"].mx\nqddot_fd = nlp.model.ForwardDynamics(q, qdot, tau).to_mx()\n- va... | Python | MIT License | pyomeca/bioptim | Cleaning code of implicit constraints. |
538,842 | 02.12.2021 14:26:30 | 18,000 | cb350f8f37ac51d7ef12fb255eb8a98b3c4d0f88 | comment soft contact test to see if app_veyor is working. | [
{
"change_type": "MODIFY",
"old_path": "tests/test_soft_contacts.py",
"new_path": "tests/test_soft_contacts.py",
"diff": "@@ -17,49 +17,49 @@ def test_soft_contact(ode_solver, use_sx, n_threads):\node_solver = ode_solver()\n- ocp = ocp_module.prepare_ocp(\n- biorbd_model_path=bioptim_folder + \"/mod... | Python | MIT License | pyomeca/bioptim | comment soft contact test to see if app_veyor is working. |
538,842 | 03.12.2021 10:28:07 | 18,000 | 59c90242574143cf8d623706d65927385d428698 | soft contact tests should now work with biorbd 1.8.3 | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/optimal_control_program.py",
"new_path": "bioptim/optimization/optimal_control_program.py",
"diff": "@@ -34,7 +34,7 @@ from ..misc.utils import check_version\nfrom ..optimization.parameters import ParameterList, Parameter\nfrom ..optimizat... | Python | MIT License | pyomeca/bioptim | soft contact tests should now work with biorbd 1.8.3 |
538,842 | 03.12.2021 16:39:00 | 18,000 | cefdd4fd2389349137afe05a7d797d68d3b14e9b | completion of the README | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -1118,6 +1118,12 @@ Minimizes the non-acceleration points reaction forces towards zero (or a target)\n#### TRACK_CONTACT_FORCES (Lagrange)\nTracks the non-acceleration points reaction forces towards a target\n+#... | Python | MIT License | pyomeca/bioptim | completion of the README |
538,842 | 08.12.2021 09:13:02 | 18,000 | 4d069cfed0e539ebcf77b8a12ba146cdfaef8289 | full strings for ode solvers | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/ode_solver.py",
"new_path": "bioptim/dynamics/ode_solver.py",
"diff": "@@ -74,6 +74,18 @@ class OdeSolverBase:\nif len(nlp.dynamics) == 1:\nnlp.dynamics = nlp.dynamics * nlp.ns\n+ def __str__(self):\n+ if self.is_direct_collocation or self.rk_... | Python | MIT License | pyomeca/bioptim | full strings for ode solvers |
538,842 | 08.12.2021 19:20:57 | 18,000 | a7f07564b02ac01ceaf9db87e04e2a8e49cd57b2 | enhanced __str__ method in OdeSolver class | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/ode_solver.py",
"new_path": "bioptim/dynamics/ode_solver.py",
"diff": "@@ -74,18 +74,6 @@ class OdeSolverBase:\nif len(nlp.dynamics) == 1:\nnlp.dynamics = nlp.dynamics * nlp.ns\n- def __str__(self):\n- if self.is_direct_collocation or self.rk_... | Python | MIT License | pyomeca/bioptim | enhanced __str__ method in OdeSolver class |
538,842 | 15.12.2021 09:29:24 | 18,000 | bb2e339e96c9635d16f88e7d9f063e3289b1e418 | allow multiple phase transitions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/phase_transition.py",
"new_path": "bioptim/limits/phase_transition.py",
"diff": "@@ -181,8 +181,6 @@ class PhaseTransitionList(UniquePerPhaseOptionList):\npt.phase_post_idx = (pt.phase_pre_idx + 1) % ocp.n_phases\nidx_phase = pt.phase_pre_idx\n-... | Python | MIT License | pyomeca/bioptim | allow multiple phase transitions |
538,859 | 03.01.2022 09:40:34 | 18,000 | 5c3885b09e59f44c5371c0f9784470368ea5bcfd | Added horizon acados option for partial condensing HPIPM | [
{
"change_type": "MODIFY",
"old_path": "bioptim/interfaces/SolverOptions.py",
"new_path": "bioptim/interfaces/SolverOptions.py",
"diff": "@@ -429,6 +429,7 @@ class Solver:\ntype: SolverType = SolverType.ACADOS\n_qp_solver: str = \"PARTIAL_CONDENSING_HPIPM\" # FULL_CONDENSING_QPOASES\n+ _qp_solver_co... | Python | MIT License | pyomeca/bioptim | Added horizon acados option for partial condensing HPIPM |
538,842 | 06.01.2022 07:38:03 | 18,000 | 0dc06c4de425cd7af243ca8eaca3157f5855952f | Tests passed again and minor changes according to the the review
restored file from the commit before the merge. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/dynamics_functions.py",
"new_path": "bioptim/dynamics/dynamics_functions.py",
"diff": "@@ -75,6 +75,7 @@ class DynamicsFunctions:\nparameters: MX.sym,\nnlp,\nwith_contact: bool,\n+ implicit_dynamics: bool,\nfatigue: FatigueList,\n) -> MX:\n\"\... | Python | MIT License | pyomeca/bioptim | Tests passed again and minor changes according to the the review
restored file from the commit before the merge. |
538,842 | 06.01.2022 08:56:24 | 18,000 | 2d4c39c983133baa9b6bc865a79eeb618748586a | test with app veyor | [
{
"change_type": "MODIFY",
"old_path": ".appveyor.yml",
"new_path": ".appveyor.yml",
"diff": "@@ -34,7 +34,6 @@ install:\n- conda env update -n bioptim -f environment.yml\n- conda activate bioptim\n- conda install pytest-cov black pytest pytest-cov codecov -cconda-forge\n- - sh: if [[ $CI_LINUX == t... | Python | MIT License | pyomeca/bioptim | test with app veyor |
538,842 | 07.01.2022 03:33:49 | 18,000 | f068c83f9aafd892867c86d63b9b00fa81855740 | pytest modified | [
{
"change_type": "MODIFY",
"old_path": "tests/test_soft_contacts.py",
"new_path": "tests/test_soft_contacts.py",
"diff": "@@ -6,22 +6,23 @@ from bioptim import OdeSolver\nfrom .utils import TestUtils\n-@pytest.mark.parametrize(\"n_threads\", [8])\n-@pytest.mark.parametrize(\"use_sx\", [False])\n-@py... | Python | MIT License | pyomeca/bioptim | pytest modified |
538,842 | 07.01.2022 09:41:48 | 18,000 | d83158936ea7949cbc1e1a5296020c55fccaa625 | Run a graph only on mac and windows. | [
{
"change_type": "MODIFY",
"old_path": "tests/test__global_plots.py",
"new_path": "tests/test__global_plots.py",
"diff": "@@ -125,7 +125,6 @@ def test_add_new_plot():\ndef test_plot_graphs_for_implicit_constraints():\n- # Load graphs_one_phase\nfrom bioptim.examples.getting_started import example_im... | Python | MIT License | pyomeca/bioptim | Run a graph only on mac and windows. |
538,859 | 14.01.2022 09:05:43 | 18,000 | c7cb479fd7c4e09426d72ab7615a113caf89818e | Added horizon set Acados | [
{
"change_type": "MODIFY",
"old_path": "bioptim/interfaces/acados_interface.py",
"new_path": "bioptim/interfaces/acados_interface.py",
"diff": "@@ -655,8 +655,6 @@ class AcadosInterface(SolverInterface):\nself.__set_constraints(self.ocp)\noptions = self.opts.as_dict(self)\n- if options[\"qp_solver\"... | Python | MIT License | pyomeca/bioptim | Added horizon set Acados |
538,842 | 14.01.2022 19:57:33 | 18,000 | 5438c7582916c943994b40fe8cee8f23234dfd55 | now handling parameter optimisation with implicit dyanmics such as time. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/interfaces/biorbd_interface.py",
"new_path": "bioptim/interfaces/biorbd_interface.py",
"diff": "@@ -82,5 +82,6 @@ class BiorbdInterface:\ncx_types = OptimizationVariable, OptimizationVariableList, Parameter, ParameterList\nmx = [var.mx if isinstance(va... | Python | MIT License | pyomeca/bioptim | now handling parameter optimisation with implicit dyanmics such as time. |
538,842 | 15.01.2022 10:24:32 | 18,000 | bd91f092d24846bfe79e64d81c02be88296d789a | fix a if in mx_to_cx | [
{
"change_type": "MODIFY",
"old_path": "bioptim/interfaces/biorbd_interface.py",
"new_path": "bioptim/interfaces/biorbd_interface.py",
"diff": "@@ -83,7 +83,8 @@ class BiorbdInterface:\ncx_types = OptimizationVariable, OptimizationVariableList, Parameter, ParameterList\nmx = [var.mx if isinstance(va... | Python | MIT License | pyomeca/bioptim | fix a if in mx_to_cx |
538,842 | 27.01.2022 17:01:04 | 18,000 | 3737b56f956f7e8c5819a01a85a57f73fcafba7e | Handle implicit with multiphase problems | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -146,6 +146,7 @@ class ConfigureProblem:\nImplicitConstraintFcn.TAU_EQUALS_INVERSE_DYNAMICS,\nnode=Node.ALL_SHOOTING,\nconstraint_type=ConstraintType.IMPLI... | Python | MIT License | pyomeca/bioptim | Handle implicit with multiphase problems |
538,859 | 27.01.2022 17:24:52 | 18,000 | 69b152d052649e4514ed21eebd70329409a874c6 | Add set_option | [
{
"change_type": "MODIFY",
"old_path": "bioptim/interfaces/solver_options.py",
"new_path": "bioptim/interfaces/solver_options.py",
"diff": "@@ -365,6 +365,10 @@ class Solver:\nself._bound_push = val\nself._bound_frac = val\n+ def set_option(self, val, name):\n+ if f\"_{name}\" not in self.__dict__.k... | Python | MIT License | pyomeca/bioptim | Add set_option |
538,842 | 27.01.2022 20:39:32 | 18,000 | baeda72b30674597a53b071c00dbbe9c022c1e3c | last hidden surprise | [
{
"change_type": "MODIFY",
"old_path": "tests/test_dynamics.py",
"new_path": "tests/test_dynamics.py",
"diff": "@@ -307,7 +307,7 @@ def test_torque_derivative_driven_implicit(with_contact, cx):\n)\nnlp.ns = 5\nnlp.cx = cx\n-\n+ nlp.phase_idx = 0\nnlp.x_bounds = np.zeros((nlp.model.nbQ() * 4, 1))\nnl... | Python | MIT License | pyomeca/bioptim | last hidden surprise |
538,855 | 07.02.2022 15:15:13 | 18,000 | b7d8310df818e66fd1740c3e761789749c2b1401 | added cost details to sol | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/getting_started/pendulum.py",
"new_path": "bioptim/examples/getting_started/pendulum.py",
"diff": "@@ -117,7 +117,7 @@ def main():\n# sol.graphs()\n# --- Show the results in a bioviz animation --- #\n- sol.print()\n+ sol.print(to_console=True)... | Python | MIT License | pyomeca/bioptim | added cost details to sol |
538,842 | 16.02.2022 21:48:09 | 18,000 | 092c198c1caf23f0b90e82681b87ee2c8509754f | first draft to handle equality constraints on specify nodes. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/__init__.py",
"new_path": "bioptim/__init__.py",
"diff": "@@ -161,6 +161,7 @@ from .interfaces.biorbd_interface import BiorbdInterface\nfrom .interfaces.solver_options import Solver\nfrom .limits.constraints import ConstraintFcn, ConstraintList, Constr... | Python | MIT License | pyomeca/bioptim | first draft to handle equality constraints on specify nodes. |
538,842 | 16.02.2022 21:49:10 | 18,000 | b3b5fd4cd5d60a4ecba31b1f3dd81826cb1deb9e | blacked in 22.1 | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/getting_started/example_multiphase_test.py",
"new_path": "bioptim/examples/getting_started/example_multiphase_test.py",
"diff": "@@ -97,8 +97,14 @@ def prepare_ocp(\n# Constraints\nmulti_node_constraints = MultiNodeConstraintList()\n- multi_no... | Python | MIT License | pyomeca/bioptim | blacked in 22.1 |
538,842 | 16.02.2022 22:08:25 | 18,000 | c6ccb860717e0c3b3da837070032c82f7a75b7fd | solution show the multi node constraint | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/getting_started/example_multiphase_test.py",
"new_path": "bioptim/examples/getting_started/example_multiphase_test.py",
"diff": "@@ -160,8 +160,8 @@ def main():\nocp = prepare_ocp(long_optim=True)\n# --- Solve the program --- #\n- sol = ocp.so... | Python | MIT License | pyomeca/bioptim | solution show the multi node constraint |
538,842 | 16.02.2022 22:18:56 | 18,000 | 2b32cee88d50e8cc701be9d260872423a8469eeb | fill phase_pre_idx and phase_post_idx just in case. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/multi_node_constraint.py",
"new_path": "bioptim/limits/multi_node_constraint.py",
"diff": "@@ -84,6 +84,8 @@ class MultiNodeConstraint(Constraint):\nself.quadratic = True\nself.phase_first_idx = phase_first_idx\nself.phase_second_idx = phase_sec... | Python | MIT License | pyomeca/bioptim | fill phase_pre_idx and phase_post_idx just in case. |
538,842 | 17.02.2022 12:17:38 | 18,000 | 1c4178b2cc0b319d2f4cf6d527c38669e2ed8cbf | Defining the contour of the current implementation | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/getting_started/example_multiphase_test.py",
"new_path": "bioptim/examples/getting_started/example_multiphase_test.py",
"diff": "@@ -66,9 +66,9 @@ def prepare_ocp(\n# Add objective functions\nobjective_functions = ObjectiveList()\n- # objectiv... | Python | MIT License | pyomeca/bioptim | Defining the contour of the current implementation |
538,842 | 17.02.2022 15:26:07 | 18,000 | 82ad092b7b0368c247514c1bb057dd11261b6eb0 | Renaming the constraint and allow to specify the node idx for the equality constraint. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/__init__.py",
"new_path": "bioptim/__init__.py",
"diff": "@@ -109,6 +109,11 @@ PhaseTransitionList\nPhaseTransitionFcn\nSelection of valid phase transition functions\n+# --- Managing the multinode constraint for multiphase programs at specified nodes--... | Python | MIT License | pyomeca/bioptim | Renaming the constraint and allow to specify the node idx for the equality constraint. |
538,842 | 17.02.2022 16:21:12 | 18,000 | 55567ebad76fcd710f483ef44257490a22d98b4d | better sanity checks and handle nlp in custom MultinodeConstraint | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/multinode_constraint.py",
"new_path": "bioptim/limits/multinode_constraint.py",
"diff": "@@ -76,9 +76,15 @@ class MultinodeConstraint(Constraint):\nmultinode_constraint = MultinodeConstraintFcn.CUSTOM\nsuper(Constraint, self).__init__(penalty=mu... | Python | MIT License | pyomeca/bioptim | better sanity checks and handle nlp in custom MultinodeConstraint |
538,842 | 07.02.2022 14:01:18 | 18,000 | 85e078e619f928c7640774186bb16aaef51e7f13 | custom phase transition update | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -1214,6 +1214,7 @@ This function is expected to return the cost of the phase transition computed fr\nPlease note that MX type is a CasADi type.\nAnyone who wants to define phase transitions should be at least fa... | Python | MIT License | pyomeca/bioptim | custom phase transition update |
538,842 | 02.03.2022 15:54:55 | 18,000 | 018f75204ae8c8ed7817fa2610792b34d6cf2033 | if we have radau | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/integrator.py",
"new_path": "bioptim/dynamics/integrator.py",
"diff": "@@ -542,6 +542,9 @@ class COLLOCATION(Integrator):\n_l *= (time_control_interval - self.step_time[r]) / (self.step_time[j] - self.step_time[r])\n# Evaluate the polynomial a... | Python | MIT License | pyomeca/bioptim | if we have radau |
538,842 | 02.03.2022 16:57:30 | 18,000 | e333acbcd43a77de0db491c3a97fdd8ad5b21e2d | Draft to handle inverse dynamics in collocations | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -163,6 +163,8 @@ class ConfigureProblem:\nimplicit_dynamics=implicit_dynamics,\n)\n+ ConfigureProblem.configure_inverse_dynamics_function(ocp, nlp)\n+\nif ... | Python | MIT License | pyomeca/bioptim | Draft to handle inverse dynamics in collocations |
538,842 | 03.03.2022 13:20:24 | 18,000 | a99868a4cd1ff03eb7cca4aba3445ab727b6b84b | state_dot as a new optimizationVariable and implicit dynamics computing defects for collocation | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -137,8 +137,9 @@ class ConfigureProblem:\nimplicit_soft_contacts = False\nConfigureProblem.configure_q(nlp, True, False)\n- ConfigureProblem.configure_qdot... | Python | MIT License | pyomeca/bioptim | state_dot as a new optimizationVariable and implicit dynamics computing defects for collocation |
538,842 | 03.03.2022 13:20:49 | 18,000 | a6d7918d52ebe84554b86d2dfddb4fa16a3e2261 | associated files | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/dynamics_functions.py",
"new_path": "bioptim/dynamics/dynamics_functions.py",
"diff": "@@ -77,7 +77,7 @@ class DynamicsFunctions:\nwith_contact: bool,\nimplicit_dynamics: bool,\nfatigue: FatigueList,\n- ) -> MX:\n+ ) -> list[MX, MX]:\n\"\"\"\n... | Python | MIT License | pyomeca/bioptim | associated files |
538,842 | 03.03.2022 15:44:55 | 18,000 | a3e165f1dd162f246a4a787c6008aed0f91f72e9 | Let's make the tests work | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -139,10 +139,13 @@ class ConfigureProblem:\nConfigureProblem.configure_q(nlp, True, False)\nConfigureProblem.configure_qdot(nlp, True, False, True)\nConfig... | Python | MIT License | pyomeca/bioptim | Let's make the tests work |
538,842 | 03.03.2022 17:44:46 | 18,000 | b0e92600b28e459587f0d7cb17c72c4808e9b521 | tricked the fatigue to make the tests work | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/dynamics_functions.py",
"new_path": "bioptim/dynamics/dynamics_functions.py",
"diff": "@@ -128,13 +128,12 @@ class DynamicsFunctions:\nif fatigue is not None and \"tau\" in fatigue:\ndxdt = fatigue[\"tau\"].dynamics(dxdt, nlp, states, controls... | Python | MIT License | pyomeca/bioptim | tricked the fatigue to make the tests work |
538,842 | 08.03.2022 14:18:28 | 18,000 | fd504c38076f14202b3d8c5666f366aa10a1e252 | review modifications such as replacing continuous keyword by equality | [
{
"change_type": "RENAME",
"old_path": "bioptim/examples/getting_started/example_multiphase_test.py",
"new_path": "bioptim/examples/getting_started/example_multinode_constraints.py",
"diff": "\"\"\"\nThis example is a trivial box that must superimpose one of its corner to a marker at the beginning o... | Python | MIT License | pyomeca/bioptim | review modifications such as replacing continuous keyword by equality |
538,855 | 08.03.2022 16:22:34 | 18,000 | f4c484063798bafe405ac37f27e40991d1f92a3b | splited the two functions
as requested | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/getting_started/pendulum.py",
"new_path": "bioptim/examples/getting_started/pendulum.py",
"diff": "@@ -117,7 +117,8 @@ def main():\n# sol.graphs()\n# --- Show the results in a bioviz animation --- #\n- sol.print(to_console=True)\n+ sol.detaile... | Python | MIT License | pyomeca/bioptim | splited the two functions
as requested |
538,842 | 08.03.2022 16:53:21 | 18,000 | a520cfe14fa609b4eb58dc948e40639dc8401483 | turning it into a subClass | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/phase_transition.py",
"new_path": "bioptim/limits/phase_transition.py",
"diff": "@@ -6,6 +6,7 @@ import biorbd_casadi as biorbd\nfrom casadi import vertcat, MX\nfrom .constraints import Constraint\n+from .multinode_constraint import MultinodeCon... | Python | MIT License | pyomeca/bioptim | turning it into a subClass |
538,855 | 08.03.2022 16:56:47 | 18,000 | 3250f23151a01203b8318fd96d20cb9e14716970 | blacked + tested | [
{
"change_type": "MODIFY",
"old_path": "bioptim/optimization/solution.py",
"new_path": "bioptim/optimization/solution.py",
"diff": "@@ -1018,8 +1018,6 @@ class Solution:\nself.detailed_cost += [{\"name\": penalty.name, \"cost_value_weighted\": val_weighted, \"cost_value\": val}]\nreturn\n-\n-\ndef p... | Python | MIT License | pyomeca/bioptim | blacked + tested |
538,842 | 08.03.2022 18:23:34 | 18,000 | 62e06816dfdfa5965534a243ef5e14ac995424da | it converged, need to work more on simplifying phasetransition | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/multinode_constraint.py",
"new_path": "bioptim/limits/multinode_constraint.py",
"diff": "@@ -101,7 +101,6 @@ class MultinodeConstraint(Constraint):\nself.node = [self.first_node, self.second_node]\nself.dt = 1\nself.node_idx = [0]\n- self.multin... | Python | MIT License | pyomeca/bioptim | it converged, need to work more on simplifying phasetransition |
538,842 | 08.03.2022 21:54:14 | 18,000 | 753a836099006234029ba87b6e281512cc54f0a2 | removing some lines step by step | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/phase_transition.py",
"new_path": "bioptim/limits/phase_transition.py",
"diff": "@@ -77,7 +77,7 @@ class PhaseTransition(MultinodeConstraint):\nweight=weight,\n# phase_pre_idx=phase_pre_idx,\n# multinode_constraint=None,\n- # custom_function=cus... | Python | MIT License | pyomeca/bioptim | removing some lines step by step |
538,842 | 08.03.2022 21:57:50 | 18,000 | 59f7b92860035dd531c80206abb54e8ab8024806 | I still need to work on this | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/phase_transition.py",
"new_path": "bioptim/limits/phase_transition.py",
"diff": "@@ -58,14 +58,6 @@ class PhaseTransition(MultinodeConstraint):\nmax_bound: float = 0,\n**params: Any,\n):\n- \"\"\"\n- Parameters\n- ----------\n- phase_pre_idx: in... | Python | MIT License | pyomeca/bioptim | I still need to work on this |
538,842 | 08.03.2022 22:19:35 | 18,000 | 810f9994fcce4d947b7742509f5a1dffcc0a6452 | it partly fills the review | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -697,7 +697,7 @@ class ConfigureProblem:\nnlp.states_dot.append(name, cx, mx_states_dot, nlp.variable_mappings[name])\n@staticmethod\n- def configure_q(nlp... | Python | MIT License | pyomeca/bioptim | it partly fills the review |
538,855 | 09.03.2022 10:38:18 | 18,000 | d7f79455cc7ac268d22748c4528f1ed702086abd | Added tests as pointed out by codecov | [
{
"change_type": "MODIFY",
"old_path": "tests/test_global_getting_started.py",
"new_path": "tests/test_global_getting_started.py",
"diff": "@@ -69,16 +69,34 @@ def test_pendulum(ode_solver, use_sx, n_threads):\nnp.testing.assert_equal(f.shape, (1, 1))\nif isinstance(ode_solver, OdeSolver.RK8):\nnp.t... | Python | MIT License | pyomeca/bioptim | Added tests as pointed out by codecov |
538,842 | 09.03.2022 11:10:44 | 18,000 | f1e5231ea836988cd2fc0e17adf2d6b7f6086000 | shrinked PhaseTransition | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/getting_started/custom_phase_transitions.py",
"new_path": "bioptim/examples/getting_started/custom_phase_transitions.py",
"diff": "@@ -27,11 +27,12 @@ from bioptim import (\nPhaseTransition,\nBiMapping,\nSolver,\n+ NonLinearProgram,\n)\ndef cu... | Python | MIT License | pyomeca/bioptim | shrinked PhaseTransition |
538,855 | 25.01.2022 17:26:21 | 18,000 | 3c12e8717dd244d9e436dfa13d0bd80bca1fef44 | Ignored plots for phase_transition | [
{
"change_type": "MODIFY",
"old_path": "bioptim/gui/plot.py",
"new_path": "bioptim/gui/plot.py",
"diff": "@@ -629,6 +629,11 @@ class PlotOcp:\nfor key in self.variable_sizes[i]:\nif not self.plot_func[key][i]:\ncontinue\n+ if self.plot_func[key][i].label:\n+ if len(self.plot_func[key][i].label) > 15... | Python | MIT License | pyomeca/bioptim | Ignored plots for phase_transition |
538,842 | 03.03.2022 18:36:03 | 18,000 | 48f2f8614d89f7ed4094538f265df7f603b1401a | I found how to plot phase transition contraints, | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/getting_started/example_multiphase.py",
"new_path": "bioptim/examples/getting_started/example_multiphase.py",
"diff": "@@ -23,6 +23,7 @@ from bioptim import (\nOdeSolver,\nNode,\nSolver,\n+ CostType,\n)\n@@ -137,13 +138,15 @@ def main():\nDefi... | Python | MIT License | pyomeca/bioptim | I found how to plot phase transition contraints, |
538,855 | 07.02.2022 10:16:31 | 18,000 | 94041f8b2ed79cbc648afabbcb3f2e52c1879946 | added linear/angular momentum | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -959,6 +959,14 @@ The extra parameter `axis_to_track: Axis = (Axis.X, Axis.Y, Axis.Z)` can be sent\nConstraints the center of mass velocity towards a target.\nThe extra parameter `axis_to_track: Axis = (Axis.X, ... | Python | MIT License | pyomeca/bioptim | added linear/angular momentum |
538,842 | 17.02.2022 15:32:20 | 18,000 | 63fade8565a02cd6b670dba915717b5bb6277923 | added cost function to minimize comddot | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -295,6 +295,7 @@ class ObjectiveFcn:\nTRACK_SOFT_CONTACT_FORCES = (PenaltyFunctionAbstract.Functions.minimize_soft_contact_forces,)\nMINIMIZE_COM_POSITION ... | Python | MIT License | pyomeca/bioptim | added cost function to minimize comddot |
538,842 | 18.02.2022 14:02:25 | 18,000 | 1c59f4154300ed80c2ac87c808698fc92cf95dad | raise an Not implemented error for minimize comddot as requested by the reviewer | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/penalty.py",
"new_path": "bioptim/limits/penalty.py",
"diff": "@@ -426,7 +426,10 @@ class PenaltyFunctionAbstract:\npenalty.quadratic = True if penalty.quadratic is None else penalty.quadratic\nnlp = all_pn.nlp\n-\n+ if \"qddot\" not in nlp.stat... | Python | MIT License | pyomeca/bioptim | raise an Not implemented error for minimize comddot as requested by the reviewer |
538,842 | 03.03.2022 17:27:47 | 18,000 | bc4b79bdadce3e5db9753f7e0015fd8e6a524bb4 | tests for the new objectives functions | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/objective_functions.py",
"new_path": "bioptim/limits/objective_functions.py",
"diff": "@@ -332,6 +332,7 @@ class ObjectiveFcn:\nMINIMIZE_PREDICTED_COM_HEIGHT = (PenaltyFunctionAbstract.Functions.minimize_predicted_com_height,)\nMINIMIZE_COM_POSI... | Python | MIT License | pyomeca/bioptim | tests for the new objectives functions |
538,842 | 03.03.2022 18:00:24 | 18,000 | 00e7f81d1c97e71c401b066b468ff4a3a9c3fb89 | Update README.md
modification on readme | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -1142,7 +1142,7 @@ The extra parameter `axis_to_track: Axis = (Axis.X, Axis.Y, Axis.Z)` can be sent\n#### MINIMIZE_COM_ACCELERATION (Lagrange and Mayer)\nMinimizes the center of mass acceleration towards zero (o... | Python | MIT License | pyomeca/bioptim | Update README.md
modification on readme |
538,842 | 08.03.2022 13:27:36 | 18,000 | 7047a51b4192b1f640e025dd9d616979a2febd42 | tested SX and MX with minimize linear momentum | [
{
"change_type": "MODIFY",
"old_path": "tests/test_penalty.py",
"new_path": "tests/test_penalty.py",
"diff": "@@ -24,7 +24,7 @@ from bioptim.optimization.optimization_variable import OptimizationVariableList\nfrom .utils import TestUtils\n-def prepare_test_ocp(with_muscles=False, with_contact=False,... | Python | MIT License | pyomeca/bioptim | tested SX and MX with minimize linear momentum |
538,842 | 09.03.2022 16:24:22 | 18,000 | 966419425933e532b76e995be777afa7be62d5be | together we are better, cleaning and hacking. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/multinode_constraint.py",
"new_path": "bioptim/limits/multinode_constraint.py",
"diff": "@@ -45,8 +45,6 @@ class MultinodeConstraint(Constraint):\nThe nature of the cost function is the multi node constraint\nconstraint_type: ConstraintType\nIf ... | Python | MIT License | pyomeca/bioptim | together we are better, cleaning and hacking. |
538,842 | 09.03.2022 16:35:36 | 18,000 | cb69133ce51725b9efaad4b4e0d288b8251b8b8a | some more modifications left in the review. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/getting_started/custom_phase_transitions.py",
"new_path": "bioptim/examples/getting_started/custom_phase_transitions.py",
"diff": "@@ -23,7 +23,6 @@ from bioptim import (\nPhaseTransitionFcn,\nPhaseTransitionList,\nOdeSolver,\n- OptimizationVa... | Python | MIT License | pyomeca/bioptim | some more modifications left in the review. |
538,842 | 09.03.2022 19:01:08 | 18,000 | b681586b8914035a4750ade3fd6e34330b5644c8 | DynamicsEvaluation, an object to return dxdt and defects | [
{
"change_type": "MODIFY",
"old_path": "bioptim/__init__.py",
"new_path": "bioptim/__init__.py",
"diff": "@@ -62,6 +62,8 @@ DynamicsFcn\nSelection of valid dynamics functions\nDynamicsFunctions\nImplementation of all the dynamic functions\n+DynamicsEvaluation\n+ A placeholder for the dynamics evalua... | Python | MIT License | pyomeca/bioptim | DynamicsEvaluation, an object to return dxdt and defects |
538,842 | 09.03.2022 19:06:17 | 18,000 | 4701290f06c8e2f59ea6b1b4d63e1e092a8d80f4 | tell me these are the last little modifications. | [
{
"change_type": "MODIFY",
"old_path": "bioptim/limits/penalty_option.py",
"new_path": "bioptim/limits/penalty_option.py",
"diff": "@@ -459,7 +459,7 @@ class PenaltyOption(OptionGeneric):\npenalty_type.validate_penalty_time_index(self, all_pn[1])\nself.clear_penalty(ocp, all_pn[0].nlp)\n- elif isins... | Python | MIT License | pyomeca/bioptim | tell me these are the last little modifications. |
538,842 | 10.03.2022 16:17:37 | 18,000 | 9a37220a0b3945eb92744fe453b305efe48b3ea0 | nice tests for multinode constraints | [
{
"change_type": "MODIFY",
"old_path": "bioptim/examples/getting_started/example_multinode_constraints.py",
"new_path": "bioptim/examples/getting_started/example_multinode_constraints.py",
"diff": "@@ -5,7 +5,7 @@ Extra constraints are defined between specific nodes of phases.\nIt is designed to sho... | Python | MIT License | pyomeca/bioptim | nice tests for multinode constraints |
538,842 | 10.03.2022 16:46:13 | 18,000 | 13a4f2a5cb411dbd47e70499874fbb6d643a578f | is this test working ? | [
{
"change_type": "MODIFY",
"old_path": "tests/test_multinode_constraints.py",
"new_path": "tests/test_multinode_constraints.py",
"diff": "@@ -122,8 +122,8 @@ def test_multinode_fail_second_node(node):\n)\n-@pytest.mark.parametrize(\"phase_1\", [-1, 0, 4])\n-@pytest.mark.parametrize(\"phase_2\", [-1,... | Python | MIT License | pyomeca/bioptim | is this test working ? |
538,842 | 10.03.2022 16:54:37 | 18,000 | 8cd420f74eba56fdcadc5080f59b9cb233fbca32 | now it will work | [
{
"change_type": "MODIFY",
"old_path": "tests/test_multinode_constraints.py",
"new_path": "tests/test_multinode_constraints.py",
"diff": "@@ -13,6 +13,7 @@ from bioptim import (\nQAndQDotBounds,\n)\nimport biorbd_casadi as biorbd\n+from .utils import TestUtils\ndef prepare_ocp(biorbd_model_path, pha... | Python | MIT License | pyomeca/bioptim | now it will work |
538,855 | 24.03.2022 11:34:14 | 14,400 | f9bbad420fefa8881496d5a7cb135c339427036f | changed detailed_cost_values_to_sol() for detailed_cost_values() | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -353,10 +353,10 @@ sol.graphs()\n```\nIf you are interested in the results of individual objective functions and constraints, you can print them using the\n-`print_cost()` or access them using the `detailed_cost... | Python | MIT License | pyomeca/bioptim | changed detailed_cost_values_to_sol() for detailed_cost_values() |
538,859 | 28.03.2022 15:19:26 | 14,400 | 5fd09f60147d141d905a0c9c99c62198ecde5adc | Add implicit with muscles | [
{
"change_type": "MODIFY",
"old_path": "bioptim/dynamics/configure_problem.py",
"new_path": "bioptim/dynamics/configure_problem.py",
"diff": "@@ -290,6 +290,7 @@ class ConfigureProblem:\nfatigue: FatigueList = None,\nwith_torque: bool = False,\nwith_contact: bool = False,\n+ implicit_dynamics: bool ... | Python | MIT License | pyomeca/bioptim | Add implicit with muscles |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.