author
int64
658
755k
date
stringdate
2012-06-12 08:34:29
2024-07-22 14:51:21
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
listlengths
1
16
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
538,843
30.10.2020 15:05:26
-3,600
ed02cc36a19db7315aaa3473425e6467646887fa
changed default integrator in ACADOS
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -298,7 +298,7 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.solver_options.qp_solver = \"PARTIAL_CONDENSING_HPIPM\" # FULL_CONDENSING_QPOAS...
Python
MIT License
pyomeca/bioptim
changed default integrator in ACADOS
538,843
30.10.2020 16:04:22
-3,600
f50390cf4d76ed1eb99897ece1eb74508a6c8c16
changed ipopt success convention
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -64,7 +64,8 @@ class IpoptInterface(SolverInterface):\n# Solve the problem\nself.out = {\"sol\": solver.call(self.ipopt_limits)}\nself.out[\"sol\"][\"time_...
Python
MIT License
pyomeca/bioptim
changed ipopt success convention
538,843
09.11.2020 16:53:59
-3,600
f1b368b9eafe00748f54f16b11f19d5886a26c43
added Mayer target handling when recursive call to acados solver
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -233,6 +233,8 @@ class AcadosInterface(SolverInterface):\n# Set dimensions\nself.acados_ocp.dims.ny = self.acados_ocp.model.cost_y_expr.shape[0]\nself.ac...
Python
MIT License
pyomeca/bioptim
added Mayer target handling when recursive call to acados solver
538,855
11.11.2020 14:07:09
18,000
abd94bb9dd84814eda43794f803cd1aafb3250a3
Separated configure_q_qdot + blacked
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/problem.py", "new_path": "bioptim/dynamics/problem.py", "diff": "@@ -192,54 +192,75 @@ class Problem:\n)\n@staticmethod\n- def configure_q_qdot(nlp, as_states, as_controls):\n+ def configure_q(nlp, as_states, as_controls):\n\"\"\"\nConfigures ...
Python
MIT License
pyomeca/bioptim
Separated configure_q_qdot + blacked
538,862
13.11.2020 11:30:05
-3,600
625806da5e15d8ae022329b118123effd2528296
Add non linear bound for custom constraints to bioptim
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty.py", "new_path": "bioptim/limits/penalty.py", "diff": "@@ -457,6 +457,14 @@ class PenaltyFunctionAbstract:\nparameters[\"penalty\"] -> Index of the penalty (integer), parameters.weight -> Weight of the penalty\n(float)\n\"\"\"\n+ val = p...
Python
MIT License
pyomeca/bioptim
Add non linear bound for custom constraints to bioptim
538,843
16.11.2020 09:51:05
-3,600
98001f853e89d1963051207e7482de0225484a8d
cleaned set_costs in acados interface
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -110,13 +110,12 @@ class AcadosInterface(SolverInterface):\n## TODO: implement constraints in g\n- # path control constraints\n- self.u_bound_max = ocp.n...
Python
MIT License
pyomeca/bioptim
cleaned set_costs in acados interface
538,862
16.11.2020 14:09:43
-3,600
a0500fc2740fc8320eb3eb7d13135da59fee99fd
Add test for non linear bounds for custom constraint
[ { "change_type": "MODIFY", "old_path": "tests/test_penalty.py", "new_path": "tests/test_penalty.py", "diff": "@@ -725,3 +725,26 @@ def test_penalty_custom(penalty_origin, value):\nif isinstance(penalty_type, Constraint):\nnp.testing.assert_almost_equal(ocp.nlp[0].g_bounds[0][0].min, np.array([[0]] *...
Python
MIT License
pyomeca/bioptim
Add test for non linear bounds for custom constraint
538,843
16.11.2020 17:28:56
-3,600
6c09664eac795aea25e186bb9c351ce9e9d6e348
Changed declaration of target dims
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -77,8 +77,8 @@ class AcadosInterface(SolverInterface):\n# set dimensions\nself.acados_ocp.dims.nx = ocp.nlp[0].nx + ocp.nlp[0].np\nself.acados_ocp.dims.n...
Python
MIT License
pyomeca/bioptim
Changed declaration of target dims
538,843
16.11.2020 18:59:45
-3,600
9e04256d94f7e137d09f7603824d16b8fb2eaef5
Added possibility to change weights after solver creation
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -77,8 +77,6 @@ class AcadosInterface(SolverInterface):\n# set dimensions\nself.acados_ocp.dims.nx = ocp.nlp[0].nx + ocp.nlp[0].np\nself.acados_ocp.dims.n...
Python
MIT License
pyomeca/bioptim
Added possibility to change weights after solver creation
538,843
16.11.2020 19:15:27
-3,600
22549e50d316519e0e1d03928c5768469bc85ba7
Added possibility to change acados tol after creation
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -287,12 +287,14 @@ class AcadosInterface(SolverInterface):\nelse:\nself.ocp_solver.set(self.acados_ocp.dims.N, \"x\", self.ocp.nlp[0].x_init.init[:, self...
Python
MIT License
pyomeca/bioptim
Added possibility to change acados tol after creation
538,843
17.11.2020 09:28:43
-3,600
3260c6f63de87fdd7579e10072b1bc0834739e71
removed wrong LS implementation
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -162,16 +162,6 @@ class AcadosInterface(SolverInterface):\nself.W_e = np.zeros((0, 0))\nif self.acados_ocp.cost.cost_type == \"LINEAR_LS\":\nraise Runtim...
Python
MIT License
pyomeca/bioptim
removed wrong LS implementation
538,843
17.11.2020 09:54:46
-3,600
1f94e72870fee11d7a4dc7c48e9a34b8a72c2bcf
Changed setup target size to remove error when no mayer term
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -218,14 +218,14 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.dims.ny = self.acados_ocp.model.cost_y_expr.shape[0]\nself.acados_ocp.dims.ny...
Python
MIT License
pyomeca/bioptim
Changed setup target size to remove error when no mayer term
538,843
18.11.2020 18:40:44
-3,600
234278d1677a9468f1081319d749cec643cacc3c
changed default parallelization to ON with ACADOS
[ { "change_type": "MODIFY", "old_path": "external/acados_install.sh", "new_path": "external/acados_install.sh", "diff": "@@ -44,8 +44,8 @@ cmake . .. \\\n-DACADOS_PYTHON=ON\\\n-DACADOS_WITH_QPOASES=ON\\\n-DBLASFEO_TARGET=\"$ARG2\"\\\n- -DCMAKE_INSTALL_PREFIX=\"$ARG1\"\n-\n+ -DCMAKE_INSTALL_PREFIX=\"$...
Python
MIT License
pyomeca/bioptim
changed default parallelization to ON with ACADOS
538,855
18.11.2020 12:54:13
18,000
54d9b328bccda38812d407c61155a1d11336b090
Added IRK in tests with different solvers
[ { "change_type": "MODIFY", "old_path": "tests/test_global_symmetrical_torque_driven_ocp.py", "new_path": "tests/test_global_symmetrical_torque_driven_ocp.py", "diff": "@@ -11,7 +11,7 @@ from bioptim import Data, OdeSolver\nfrom .utils import TestUtils\n-@pytest.mark.parametrize(\"ode_solver\", [OdeS...
Python
MIT License
pyomeca/bioptim
Added IRK in tests with different solvers
538,862
20.11.2020 14:43:32
-3,600
746a48ccbc7e2f7e95ac335cb3fcf70f9b6aa12c
Add modification for non linear bounds in constraint
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -174,8 +174,10 @@ class ConstraintFunction(PenaltyFunctionAbstract):\ng_bounds = Bounds(interpolation=InterpolationType.CONSTANT)\npenalty.min_bound = 0 if penalty.min_bou...
Python
MIT License
pyomeca/bioptim
Add modification for non linear bounds in constraint
538,862
20.11.2020 14:51:40
-3,600
90683ced624a234e295e0236bc483f3e0d1d2d05
Adding more check for list check in constraints
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -175,8 +175,8 @@ class ConstraintFunction(PenaltyFunctionAbstract):\npenalty.min_bound = 0 if penalty.min_bound is None else penalty.min_bound\npenalty.max_bound = 0 if pe...
Python
MIT License
pyomeca/bioptim
Adding more check for list check in constraints
538,862
23.11.2020 10:33:32
-3,600
2d4081df18be20da71e7cc1b6ec2c55787d235ec
Add error raisin when using SX, MX with Ipopt
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "import os\nimport pickle\n-from casadi import vertcat, sum1, nlpsol\n+from casadi import vertcat, sum1, nlpsol, SX, MX\nfrom .solver_interface import SolverIn...
Python
MIT License
pyomeca/bioptim
Add error raisin when using SX, MX with Ipopt
538,843
23.11.2020 18:04:28
-3,600
64eac70ead1533819f04deadbe4634c032b953aa
cleaned repo
[ { "change_type": "ADD", "old_path": null, "new_path": "examples/ACADOS/cube.py", "diff": "+\"\"\"\n+File that shows a TORQUE_DRIVEN problem_type and dynamic.\n+\"\"\"\n+import biorbd\n+import numpy as np\n+\n+from bioptim import (\n+ OptimalControlProgram,\n+ DynamicsTypeOption,\n+ DynamicsType,\n+ ...
Python
MIT License
pyomeca/bioptim
cleaned repo
538,843
23.11.2020 18:06:46
-3,600
c1962bd6af06417fd68d7f6ae9833a5519c00981
comment update of weight in acados. Seems not to work for now
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -236,7 +236,8 @@ class AcadosInterface(SolverInterface):\nparam_init = []\nfor n in range(self.acados_ocp.dims.N):\nself.ocp_solver.cost_set(n, \"yref\",...
Python
MIT License
pyomeca/bioptim
comment update of weight in acados. Seems not to work for now
538,843
23.11.2020 18:09:24
-3,600
dd7533ec76f2c21f857585fd65c41da60b9c1a29
removed tmp acados cube file
[ { "change_type": "DELETE", "old_path": "examples/ACADOS/cube.py", "new_path": null, "diff": "-\"\"\"\n-File that shows a TORQUE_DRIVEN problem_type and dynamic.\n-\"\"\"\n-import biorbd\n-import numpy as np\n-\n-from bioptim import (\n- OptimalControlProgram,\n- DynamicsTypeOption,\n- DynamicsType,\...
Python
MIT License
pyomeca/bioptim
removed tmp acados cube file
538,855
23.11.2020 14:43:30
18,000
2bcc4cee119530a87bbfc895a9d2054726a4be1c
Fixed parameters problems Changes done during the zoom call
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/integrator.py", "new_path": "bioptim/interfaces/integrator.py", "diff": "@@ -104,7 +104,6 @@ def IRK(ode, ode_opt):\ndef dxdt(h, states, controls, params):\nnu = controls.shape[0]\nnx = states.shape[0]\n- p = params\nnb_dof = 0\nquat_idx = [...
Python
MIT License
pyomeca/bioptim
Fixed parameters problems Changes done during the zoom call
538,855
23.11.2020 15:27:09
18,000
547b06a3e2ef75df9f93bb7abcbd0b4ddf20e8b3
Made tests pass except Quaternions
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/integrator.py", "new_path": "bioptim/interfaces/integrator.py", "diff": "@@ -165,7 +165,7 @@ def IRK(ode, ode_opt):\nxp_j += C[r, j] * X[r]\n# Append collocation equations\n- f_j = fun(X[j], get_u(U, t_norm_init), P)\n+ f_j = fun(X[j], get_u...
Python
MIT License
pyomeca/bioptim
Made tests pass except Quaternions
538,855
23.11.2020 16:16:54
18,000
3a7682a2408524f1bbd5845756db7a84adaa0817
Raised error for Quaternion with IRK I'm opening a separate issue for that because internet says it's not that obvious to implement.
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/integrator.py", "new_path": "bioptim/interfaces/integrator.py", "diff": "@@ -105,15 +105,6 @@ def IRK(ode, ode_opt):\nnu = controls.shape[0]\nnx = states.shape[0]\n- nb_dof = 0\n- quat_idx = []\n- quat_number = 0\n- for j in range(model.nbSe...
Python
MIT License
pyomeca/bioptim
Raised error for Quaternion with IRK I'm opening a separate issue for that because internet says it's not that obvious to implement.
538,855
23.11.2020 16:44:51
18,000
086eaca994beb8d386765e4e03c327e4f1c9689b
Changed notation
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/integrator.py", "new_path": "bioptim/interfaces/integrator.py", "diff": "@@ -88,9 +88,8 @@ def IRK(ode, ode_opt):\nu_sym = ode[\"p\"]\nparam_sym = ode_opt[\"param\"]\nfun = ode[\"ode\"]\n- model = ode_opt[\"model\"]\nstep_time = t_span[1] - ...
Python
MIT License
pyomeca/bioptim
Changed notation
538,855
23.11.2020 19:08:42
18,000
9fda78e362a375f5713d9fb15890cc68b8519349
Fixed plots Plots are not integrated.
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/problem.py", "new_path": "bioptim/dynamics/problem.py", "diff": "from casadi import MX, vertcat, horzcat, Function\nfrom .dynamics_functions import DynamicsFunctions\n-from ..misc.enums import PlotType, ControlType\n+from ..misc.enums import P...
Python
MIT License
pyomeca/bioptim
Fixed plots Plots are not integrated.
538,849
23.11.2020 22:24:08
18,000
49de607b2e14bf9ecd0bc27b42cce70907ad6e0e
nan handling in up to date version
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/objective_functions.py", "new_path": "bioptim/limits/objective_functions.py", "diff": "@@ -2,7 +2,7 @@ from enum import Enum\nimport numpy as np\nimport casadi\n-from casadi import dot, sum1\n+from casadi import dot, sum1, sum2\nfrom .penalty im...
Python
MIT License
pyomeca/bioptim
nan handling in up to date version
538,843
24.11.2020 14:23:38
-3,600
29f8c4cc5b2ce3ecaafdd05311b20f59c3859c0b
added small test in acados interface for lagrange cost
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -235,6 +235,7 @@ class AcadosInterface(SolverInterface):\ndef __update_solver(self):\nparam_init = []\nfor n in range(self.acados_ocp.dims.N):\n+ if self...
Python
MIT License
pyomeca/bioptim
added small test in acados interface for lagrange cost
538,843
24.11.2020 18:53:01
-3,600
03869c2f7bb8a3ad973601f1ac6e2605fa9f88fa
changed dynamic library name created by acados to avoid conflicts when running several problems in a row
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "+from datetime import datetime\n+\nimport numpy as np\nfrom scipy import linalg\nfrom casadi import SX, vertcat, sum1, Function\n@@ -62,7 +64,8 @@ class Aca...
Python
MIT License
pyomeca/bioptim
changed dynamic library name created by acados to avoid conflicts when running several problems in a row
538,843
24.11.2020 18:55:30
-3,600
fe2f772a05d9ed056c14765066fd8e46e6b1fca2
cleaned merge
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -238,15 +238,9 @@ class AcadosInterface(SolverInterface):\ndef __update_solver(self):\nparam_init = []\nfor n in range(self.acados_ocp.dims.N):\n-<<<<<<<...
Python
MIT License
pyomeca/bioptim
cleaned merge
538,843
24.11.2020 14:13:57
-3,600
530d580ea4032324be24b2c9d68a9e70ed980d6e
renamed acados example folder
[ { "change_type": "RENAME", "old_path": "examples/ACADOS/arm26.bioMod", "new_path": "examples/acados/arm26.bioMod", "diff": "" }, { "change_type": "ADD", "old_path": null, "new_path": "examples/acados/cube.py", "diff": "+\"\"\"\n+File that shows an example of a custom constraint.\...
Python
MIT License
pyomeca/bioptim
renamed acados example folder
538,843
24.11.2020 14:19:02
-3,600
10d1b694ac945bf40f43c946b2e2383ce8d4b190
added cube biomod in acados
[ { "change_type": "ADD", "old_path": null, "new_path": "examples/acados/cube.bioMod", "diff": "+version 4\n+\n+// DEFINITION DU SEGMENTS\n+\n+// Seg1\n+ segment Seg1\n+ translations xz\n+ rotations y\n+ rangesQ -0.70 2.30\n+ -1 1\n+ -pi pi\n+ mass 1\n+ inertia\n+ 1 0 0\n+ 0 1 0\n+ 0 0 1\n+ com 0 0 0\...
Python
MIT License
pyomeca/bioptim
added cube biomod in acados
538,843
24.11.2020 14:22:21
-3,600
709c1c5b512af237d42f5cb59ce8e95a36240d82
slight changes to acados cube
[ { "change_type": "MODIFY", "old_path": "examples/acados/cube.py", "new_path": "examples/acados/cube.py", "diff": "\"\"\"\n-File that shows an example of a custom constraint.\n-As an example, this custom constraint reproduces exactly the behavior of the ALIGN_MARKERS constraint.\n+File that shows a T...
Python
MIT License
pyomeca/bioptim
slight changes to acados cube
538,843
24.11.2020 14:22:37
-3,600
355db971e4ca2b95eb166f8f5a54185a535304b8
wip for acados test
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/test_acados_interface.py", "diff": "+\"\"\"\n+Test for file IO.\n+It tests the results of an optimal control problem with acados regarding the proper functioning of :\n+- the handling of mayer and lagrange obj\n+\"\"\"\n+import importlib.u...
Python
MIT License
pyomeca/bioptim
wip for acados test
538,843
24.11.2020 14:44:47
-3,600
d96174e8c82352f15b9a6ad4f23ebf699c6760a7
updated bounds in acados cube
[ { "change_type": "MODIFY", "old_path": "examples/acados/cube.bioMod", "new_path": "examples/acados/cube.bioMod", "diff": "@@ -6,9 +6,9 @@ version 4\nsegment Seg1\ntranslations xz\nrotations y\n- rangesQ -0.70 2.30\n- -1 1\n- -pi pi\n+ rangesQ -10 10\n+ -10 10\n+ -10 10\nmass 1\ninertia\n1 0 0\n" }...
Python
MIT License
pyomeca/bioptim
updated bounds in acados cube
538,843
24.11.2020 14:45:07
-3,600
4d5c48b5cfcc396b616994db4cc34942b22379bc
updated cube.py in acados example
[ { "change_type": "MODIFY", "old_path": "examples/acados/cube.py", "new_path": "examples/acados/cube.py", "diff": "@@ -71,10 +71,12 @@ if __name__ == \"__main__\":\n# --- Solve the program --- #\nobjective_functions = ObjectiveList()\n- objective_functions.add(Objective.Mayer.MINIMIZE_STATE, weight=1...
Python
MIT License
pyomeca/bioptim
updated cube.py in acados example
538,843
24.11.2020 14:45:24
-3,600
557c5f3d27920d79931d0e6c808a118c0db59648
added test for no mayer and one mayer with acados
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -9,10 +9,11 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n-from bioptim import Data\n+import biorbd\n+from bioptim import Data, Solver, ObjectiveList, ...
Python
MIT License
pyomeca/bioptim
added test for no mayer and one mayer with acados
538,843
24.11.2020 14:47:05
-3,600
ce83aa9bdd51f8a4cb70f28951ac44d0f45a4f65
added tests for several mayers in acados
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -51,3 +51,28 @@ def test_acados_one_mayer():\nq = np.array(sol[\"qqdot\"])[:model.nbQ()]\nnp.testing.assert_almost_equal(q[0, -1], 1.)\n+def test_acados_several_mayer():...
Python
MIT License
pyomeca/bioptim
added tests for several mayers in acados
538,843
24.11.2020 18:49:50
-3,600
ffbae018c297174f5c3557c10b9ccf297c1af5b8
changed acados examples to match new bioptim template
[ { "change_type": "MODIFY", "old_path": "examples/acados/cube.py", "new_path": "examples/acados/cube.py", "diff": "@@ -71,8 +71,8 @@ if __name__ == \"__main__\":\n# --- Solve the program --- #\nobjective_functions = ObjectiveList()\n- # objective_functions.add(Objective.Mayer.MINIMIZE_STATE, weight=1...
Python
MIT License
pyomeca/bioptim
changed acados examples to match new bioptim template
538,843
24.11.2020 18:51:10
-3,600
3d1c14add0442d7cd4ddcf0cac34a3ff0e4f793d
updated test_acados
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -8,10 +8,12 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n+import os\n+import shutil\nimport biorbd\nfrom bioptim import Data, Solver, ObjectiveList, O...
Python
MIT License
pyomeca/bioptim
updated test_acados
538,843
25.11.2020 10:25:17
-3,600
794a52f3abe2c4eeea05833bc9a2325604422cf9
changed acados_interface to comply with new bioptim standards
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -48,7 +48,7 @@ def test_acados_one_mayer():\nbiorbd_model_path=str(PROJECT_FOLDER) + \"/examples/acados/cube.bioMod\",\n)\nobjective_functions = ObjectiveList()\n- objec...
Python
MIT License
pyomeca/bioptim
changed acados_interface to comply with new bioptim standards
538,843
25.11.2020 10:25:56
-3,600
fbd5443f503c950c213bffb57bcab61a681f02bb
increased time precision in acados model naming for avoiding doublons on fast problems
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -65,7 +65,7 @@ class AcadosInterface(SolverInterface):\nself.acados_model.u = u\nself.acados_model.p = []\nnow = datetime.now() # current date and time\n...
Python
MIT License
pyomeca/bioptim
increased time precision in acados model naming for avoiding doublons on fast problems
538,843
25.11.2020 10:27:13
-3,600
28ff60af05b7eaea43b0ee66d7f75a06179a5827
removed .orig from rebase
[ { "change_type": "DELETE", "old_path": "examples/acados/pendulum.py.orig", "new_path": null, "diff": "-import biorbd\n-import numpy as np\n-\n-from bioptim import (\n- OptimalControlProgram,\n- ObjectiveList,\n- Objective,\n- DynamicsTypeList,\n- DynamicsType,\n- BoundsList,\n- QAndQDotBounds,\n- In...
Python
MIT License
pyomeca/bioptim
removed .orig from rebase
538,843
25.11.2020 11:19:22
-3,600
379caa9cc0717a2e83cd9b32164796335a5f9a05
update bound in cube acados
[ { "change_type": "MODIFY", "old_path": "examples/acados/cube.bioMod", "new_path": "examples/acados/cube.bioMod", "diff": "@@ -6,9 +6,9 @@ version 4\nsegment Seg1\ntranslations xz\nrotations y\n- rangesQ -10 10\n- -10 10\n- -10 10\n+ rangesQ -100 100\n+ -100 100\n+ -100 100\nmass 1\ninertia\n1 0 0\n"...
Python
MIT License
pyomeca/bioptim
update bound in cube acados
538,843
25.11.2020 11:20:46
-3,600
a81d0e48c593d5b6a8a957c3281159575309aebe
added lagrange test WIP
[ { "change_type": "MODIFY", "old_path": "examples/acados/cube.py", "new_path": "examples/acados/cube.py", "diff": "@@ -34,7 +34,6 @@ def prepare_ocp(biorbd_model_path, nbs, tf, ode_solver=OdeSolver.RK, use_SX=True\n# Path constraint\nx_bounds = BoundsOption(QAndQDotBounds(biorbd_model))\n- x_bounds[:...
Python
MIT License
pyomeca/bioptim
added lagrange test WIP
538,843
25.11.2020 11:21:23
-3,600
db4dde6bcf428a2ad38133912768151a751699e8
TMP mod in acados interface. problem with cost set at last node with lagrange
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -260,8 +260,13 @@ class AcadosInterface(SolverInterface):\nself.ocp_solver.constraints_set(n, \"lbx\", self.x_bound_min[:, 1])\nself.ocp_solver.constrain...
Python
MIT License
pyomeca/bioptim
TMP mod in acados interface. problem with cost set at last node with lagrange
538,843
26.11.2020 09:22:58
-3,600
e75611c995713adc90414f985dd3bfabd6a5d7dc
corrected indx in mayer cost
[ { "change_type": "MODIFY", "old_path": "examples/acados/pendulum.py", "new_path": "examples/acados/pendulum.py", "diff": "@@ -32,7 +32,7 @@ def prepare_ocp(biorbd_model_path, final_time, number_shooting_points, nb_thread\nobjective_functions.add(\nObjective.Mayer.MINIMIZE_STATE,\nweight=50000.0,\n- ...
Python
MIT License
pyomeca/bioptim
corrected indx in mayer cost
538,843
26.11.2020 11:16:08
-3,600
f7506d765f3e37a0fa580006ebee72b6f24e936e
added one test for lagrange and mayer combined and corrected acados_interface
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -260,17 +260,10 @@ class AcadosInterface(SolverInterface):\nself.ocp_solver.constraints_set(n, \"lbx\", self.x_bound_min[:, 1])\nself.ocp_solver.constrai...
Python
MIT License
pyomeca/bioptim
added one test for lagrange and mayer combined and corrected acados_interface
538,843
26.11.2020 11:21:16
-3,600
a313d37ff8e5df3f3db76b98205c72f30261dee6
removed useless weights
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -52,7 +52,7 @@ def test_acados_one_mayer():\ntf=2,\n)\nobjective_functions = ObjectiveList()\n- objective_functions.add(Objective.Mayer.MINIMIZE_STATE, weight=1000, inde...
Python
MIT License
pyomeca/bioptim
removed useless weights
538,843
26.11.2020 11:36:45
-3,600
12b5f531bfb7e6120fadd20761548079d37ddf11
added acados mhe test
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -165,3 +165,39 @@ def test_acados_one_lagrange_and_one_mayer():\n# Clean test folder\nos.remove(f\"./acados_ocp.json\")\nshutil.rmtree(f\"./c_generated_code/\")\n+\n+def...
Python
MIT License
pyomeca/bioptim
added acados mhe test
538,843
26.11.2020 12:11:04
-3,600
fae82f65ae60185d4d6bc3f351c3af549a3c693e
updated pendulum acados ex
[ { "change_type": "MODIFY", "old_path": "examples/acados/pendulum.py", "new_path": "examples/acados/pendulum.py", "diff": "@@ -16,7 +16,7 @@ from bioptim import (\n)\n-def prepare_ocp(biorbd_model_path, final_time, number_shooting_points, nb_threads, use_SX=False):\n+def prepare_ocp(biorbd_model_path...
Python
MIT License
pyomeca/bioptim
updated pendulum acados ex
538,843
26.11.2020 12:11:37
-3,600
471133405df2f780fb7be1ad05fae1f4c55d09c5
added possibility to get iter after acados conv
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -342,6 +342,7 @@ class AcadosInterface(SolverInterface):\n\"x\": [],\n\"u\": acados_u,\n\"time_tot\": self.ocp_solver.get_stats(\"time_tot\")[0],\n+ \"it...
Python
MIT License
pyomeca/bioptim
added possibility to get iter after acados conv
538,843
26.11.2020 12:12:07
-3,600
2ed6ee3a34ef72a50e396a33065748129b926125
added test of options setter after solver creation
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -178,7 +178,6 @@ def test_acados_mhe():\nnbs = 5\nnbsample = 20\ntarget = np.expand_dims(np.cos(np.arange(0, nbsample + 1)), axis=0)\n- target[0, -1] = nbs - 2\nocp = cu...
Python
MIT License
pyomeca/bioptim
added test of options setter after solver creation
538,862
26.11.2020 12:56:51
-3,600
4593bc6707468745586105f5645421d2966fbd1f
Add test for custom constraint mx bound
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/test_global_fail.py", "diff": "+import pytest\n+\n+from pathlib import Path\n+\n+import biorbd\n+from casadi import vertcat, MX\n+\n+from bioptim import (\n+ Node,\n+ OptimalControlProgram,\n+ DynamicsTypeOption,\n+ DynamicsType,\n+ Object...
Python
MIT License
pyomeca/bioptim
Add test for custom constraint mx bound
538,843
26.11.2020 16:15:16
-3,600
27a1dc0f62c2233583700e077cd32608beddc3b6
updated travis.yml for installing acados
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -16,6 +16,9 @@ install:\n- conda install pytest-cov black pytest pytest-cov codecov -cconda-forge\n- conda install xorg-libx11 xorg-libxtst -cconda-forge\n- conda list\n+ - cd external\n+ - ./acados_install....
Python
MIT License
pyomeca/bioptim
updated travis.yml for installing acados
538,843
26.11.2020 16:45:32
-3,600
502d82046c8dd21112876a575e4b3d79e26803b7
added translation of lagrange last node in mayer of acados
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -166,6 +166,9 @@ class AcadosInterface(SolverInterface):\nself.mayer_costs = SX()\nself.W = np.zeros((0, 0))\nself.W_e = np.zeros((0, 0))\n+ exclude_lagr...
Python
MIT License
pyomeca/bioptim
added translation of lagrange last node in mayer of acados
538,843
26.11.2020 16:46:50
-3,600
6794bd6ed591334df3dafe73b4930da4b707b0e3
changed tests in acados now that lagrange terms are handled the bioptim's way in acados
[ { "change_type": "MODIFY", "old_path": "examples/acados/pendulum.py", "new_path": "examples/acados/pendulum.py", "diff": "@@ -27,7 +27,7 @@ def prepare_ocp(biorbd_model_path, final_time, number_shooting_points, use_SX=Tr\ndata_to_track[:, 1] = 3.14\n# Add objective functions\nobjective_functions = O...
Python
MIT License
pyomeca/bioptim
changed tests in acados now that lagrange terms are handled the bioptim's way in acados
538,843
26.11.2020 17:55:56
-3,600
b3409e84562fe32c6628ed95790f05ce41c2d546
changed testing of on the fly options for acados interface Corrected error in cooncatenation of yref and yrefe in acados interface
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -189,13 +189,14 @@ class AcadosInterface(SolverInterface):\nself.W_e = linalg.block_diag(\nself.W_e, np.diag([J[0][\"objective\"].weight] * J[0][\"val\"]...
Python
MIT License
pyomeca/bioptim
changed testing of on the fly options for acados interface Corrected error in cooncatenation of yref and yrefe in acados interface
538,843
26.11.2020 18:07:18
-3,600
ed5006fa9a077e7b955ff69edfd9e377d54a3f64
corrected concatenate in update-solver
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -279,7 +279,7 @@ class AcadosInterface(SolverInterface):\nself.ocp_solver.constraints_set(n, \"ubx\", self.x_bound_max[:, 1])\nif self.y_ref_end:\n- self...
Python
MIT License
pyomeca/bioptim
corrected concatenate in update-solver
538,843
26.11.2020 18:37:05
-3,600
c040dfde6e341379e41a26718ac7def8e562eda6
REcorrected concatenate in update-solver
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -192,11 +192,10 @@ class AcadosInterface(SolverInterface):\nself.mayer_costs = vertcat(self.mayer_costs, mayer_func_tp(ocp.nlp[i].X[0]).reshape((-1, 1)))...
Python
MIT License
pyomeca/bioptim
REcorrected concatenate in update-solver
538,843
27.11.2020 10:03:15
-3,600
40963bba4f88501a36e2a69560e6cabb265521b4
added auto install tera in acados script
[ { "change_type": "MODIFY", "old_path": "external/acados_install.sh", "new_path": "external/acados_install.sh", "diff": "@@ -80,3 +80,9 @@ sed -i \"s/$REPLACE_PYTHON_REQUIRED_BY/$TO_REPLACE_PYTHON_REQUIRED/\" setup.py\nsed -i \"s/$REPLACE_CASADI_DEP_BY/$TO_REPLACE_CASADI_DEP/\" setup.py\nsed -i \"s/$...
Python
MIT License
pyomeca/bioptim
added auto install tera in acados script
538,843
27.11.2020 10:17:58
-3,600
5d7eb683eeb700968b2755cf7623fa9272ba6f72
added one test on control lagrange
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -166,6 +166,38 @@ def test_acados_one_lagrange_and_one_mayer():\nos.remove(f\"./acados_ocp.json\")\nshutil.rmtree(f\"./c_generated_code/\")\n+def test_acados_control_lag...
Python
MIT License
pyomeca/bioptim
added one test on control lagrange
538,843
27.11.2020 10:18:20
-3,600
940642b5c6efe402fbeae47dcbfcf1a5b4196a5c
changed testing of last node for lagrange costs
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -166,9 +166,6 @@ class AcadosInterface(SolverInterface):\nself.mayer_costs = SX()\nself.W = np.zeros((0, 0))\nself.W_e = np.zeros((0, 0))\n- exclude_lagr...
Python
MIT License
pyomeca/bioptim
changed testing of last node for lagrange costs
538,843
27.11.2020 11:14:04
-3,600
6c745b0a79a24c9b14ead8d287ba71682b8eda00
changed tera install script so it passes on travis
[ { "change_type": "MODIFY", "old_path": "external/acados_install.sh", "new_path": "external/acados_install.sh", "diff": "@@ -82,7 +82,7 @@ sed -i \"s/$REPLACE_PATH_BY/$TO_REPLACE_PATH/\" acados_template/utils.py\n# Automatically download Tera\nTERA_INSTALL_SCRIPT=$(pwd)/../../ci/linux/install_t_rende...
Python
MIT License
pyomeca/bioptim
changed tera install script so it passes on travis
538,862
27.11.2020 12:02:29
-3,600
d94cd9c338c44f13a5d952ba58cf9efffef54048
Simplified test_global_fail
[ { "change_type": "MODIFY", "old_path": "tests/test_global_fail.py", "new_path": "tests/test_global_fail.py", "diff": "@@ -10,86 +10,27 @@ from bioptim import (\nOptimalControlProgram,\nDynamicsTypeOption,\nDynamicsType,\n- ObjectiveOption,\n- Objective,\nConstraintList,\n- BoundsOption,\n- QAndQDotB...
Python
MIT License
pyomeca/bioptim
Simplified test_global_fail
538,862
27.11.2020 14:59:16
-3,600
873315534f88bccce8fcbd49659de05f1ad9cf5c
Moved function inside test
[ { "change_type": "MODIFY", "old_path": "tests/test_global_fail.py", "new_path": "tests/test_global_fail.py", "diff": "@@ -14,11 +14,9 @@ from bioptim import (\n)\n+def test_custom_constraint_mx_fail():\ndef custom_mx_fail(ocp, nlp, t, x, u, p):\nreturn MX(0), vertcat(*u), MX(0)\n-\n-\n-def test_cust...
Python
MIT License
pyomeca/bioptim
Moved function inside test
538,843
15.12.2020 10:41:17
-3,600
8092e3c240d7e63fcf1e0ecfa5aa64ba2754b477
add test fail external
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -267,3 +267,24 @@ def test_acados_options():\n# Clean test folder\nos.remove(f\"./acados_ocp.json\")\nshutil.rmtree(f\"./c_generated_code/\")\n+\n+def test_acados_fail_e...
Python
MIT License
pyomeca/bioptim
add test fail external
538,843
15.12.2020 10:42:29
-3,600
c892566263e968aedccb7ecf064c541c2fcde074
add test fail linear ls
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -268,6 +268,7 @@ def test_acados_options():\nos.remove(f\"./acados_ocp.json\")\nshutil.rmtree(f\"./c_generated_code/\")\n+\ndef test_acados_fail_external():\nPROJECT_FOL...
Python
MIT License
pyomeca/bioptim
add test fail linear ls
538,843
15.12.2020 12:20:24
-3,600
0d59ba02a4220269368fa045eb76475642998840
added LINEAR_LS to acados interface
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -166,9 +166,111 @@ class AcadosInterface(SolverInterface):\nself.mayer_costs = SX()\nself.W = np.zeros((0, 0))\nself.W_e = np.zeros((0, 0))\n+ ctrl_objs ...
Python
MIT License
pyomeca/bioptim
added LINEAR_LS to acados interface
538,843
15.12.2020 12:28:42
-3,600
69da96ef835393bdf3035a9b2d3da1fe8ef0cc46
raise error if incorrect obj type
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -211,6 +211,7 @@ class AcadosInterface(SolverInterface):\nself.y_ref.append([np.zeros((ocp.nlp[0].nx, 1)) for J_tp in J])\nelse:\nraise RuntimeError(\"In...
Python
MIT License
pyomeca/bioptim
raise error if incorrect obj type
538,843
15.12.2020 12:29:07
-3,600
14561f94fa14b681e26aa396087d7a84e1f91989
changed lls acados test
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -293,19 +293,21 @@ def test_acados_fail_external():\ndef test_acados_fail_lls():\nPROJECT_FOLDER = Path(__file__).parent / \"..\"\nspec = importlib.util.spec_from_file_l...
Python
MIT License
pyomeca/bioptim
changed lls acados test
538,843
15.12.2020 15:05:10
-3,600
5a9bf4f2ffe1962083df0b950c1f86624f279431
small changes to acados_interface
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -201,9 +201,9 @@ class AcadosInterface(SolverInterface):\nself.Vu = np.vstack((self.Vu, np.zeros((ocp.nlp[0].nx, ocp.nlp[0].nu))))\nself.W = linalg.block...
Python
MIT License
pyomeca/bioptim
small changes to acados_interface
538,843
15.12.2020 15:05:28
-3,600
65a3e600ccb5f345d363e2f359d74c33c87336de
added test of LINEAR_LS
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -14,8 +14,8 @@ import shutil\nimport biorbd\nfrom bioptim import Data, Solver, ObjectiveList, Objective\n-\n-def test_acados_no_obj():\n+@pytest.mark.parametrize(\"cost_...
Python
MIT License
pyomeca/bioptim
added test of LINEAR_LS
538,862
15.12.2020 15:17:43
-3,600
0b2144049990c47da52fc6a32b804505abe67810
Add first version of constraint actuators
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_type.py", "new_path": "bioptim/dynamics/dynamics_type.py", "diff": "@@ -36,8 +36,10 @@ class DynamicsType(Enum):\nMUSCLE_ACTIVATIONS_AND_TORQUE_DRIVEN_WITH_CONTACT = (Problem.muscle_activations_and_torque_driven_with_contact,)\nTORQUE...
Python
MIT License
pyomeca/bioptim
Add first version of constraint actuators
538,862
16.12.2020 12:09:24
-3,600
5b99a0687a39fdb9ffae8186e7ca0d9930e73b27
Add flag to add actuator constraint in ocp constructor
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/problem.py", "new_path": "bioptim/dynamics/problem.py", "diff": "@@ -41,38 +41,7 @@ class Problem:\nWorks with torques but without muscles, must be used with dynamics without contacts.\n:param nlp: An instance of the OptimalControlProgram clas...
Python
MIT License
pyomeca/bioptim
Add flag to add actuator constraint in ocp constructor
538,862
16.12.2020 12:25:11
-3,600
51a8d31a8e032d39c3c1cdb1a81cbb489275c2c0
Moved down adding of actuator constraint
[ { "change_type": "MODIFY", "old_path": "bioptim/misc/optimal_control_program.py", "new_path": "bioptim/misc/optimal_control_program.py", "diff": "import os\nimport pickle\n+import numpy as np\nfrom copy import deepcopy\nfrom math import inf\n@@ -10,7 +11,7 @@ from casadi import MX, vertcat, SX\nfrom...
Python
MIT License
pyomeca/bioptim
Moved down adding of actuator constraint
538,843
16.12.2020 16:14:59
-3,600
d4fda0940b26728b8e46f8c5a057b30fedb8399b
changed tests obj type in lls acados
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -7,6 +7,7 @@ from acados_template import AcadosModel, AcadosOcp, AcadosOcpSolver\nfrom .solver_interface import SolverInterface\nfrom ..limits.objective_...
Python
MIT License
pyomeca/bioptim
changed tests obj type in lls acados
538,859
16.12.2020 16:55:47
18,000
09381bd157f9a49d0822a2a18d2cccfc95029f3a
Add constraints in same way than objectives
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -187,12 +187,12 @@ class ConstraintFunction(PenaltyFunctionAbstract):\n)\ng_bounds.concatenate(Bounds(min_bound, max_bound, interpolation=InterpolationType.CONSTANT))\n+ g...
Python
MIT License
pyomeca/bioptim
Add constraints in same way than objectives
538,859
16.12.2020 16:56:53
18,000
ad9664b43999c16325bdf0d6cab3fec1e7de198f
Added constraints in Acados interface
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -2,11 +2,13 @@ from datetime import datetime\nimport numpy as np\nfrom scipy import linalg\n-from casadi import SX, vertcat, sum1, Function\n+from casadi...
Python
MIT License
pyomeca/bioptim
Added constraints in Acados interface
538,859
16.12.2020 16:58:55
18,000
461b36fafd9240ea7fe8d267b2ee93b62b5af522
Fixed g_bounds for lh and uh
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -185,13 +185,13 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.dims.nbx_e = self.acados_ocp.dims.nx\n# setup algebraic constraint\n- self.ac...
Python
MIT License
pyomeca/bioptim
Fixed g_bounds for lh and uh
538,859
16.12.2020 18:48:51
18,000
5e2678d5b2c6d977bea4869fc1c506211d895cd8
Adapt Ipopt to new constraints dict
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -84,13 +84,13 @@ class IpoptInterface(SolverInterface):\nall_g_bounds = Bounds(interpolation=InterpolationType.CONSTANT)\nfor i in range(len(self.ocp.g)):\...
Python
MIT License
pyomeca/bioptim
Adapt Ipopt to new constraints dict
538,859
16.12.2020 18:49:49
18,000
148e16e06f320b7348031bf3b80f6247fb017b86
Deleted ocp.g_bounds and nlp.g_bounds when clear penalty
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -232,10 +232,8 @@ class ConstraintFunction(PenaltyFunctionAbstract):\n\"\"\"\nif nlp:\ng_to_add_to = nlp.g\n- g_bounds_to_add_to = nlp.g_bounds\nelse:\ng_to_add_to = ocp.g...
Python
MIT License
pyomeca/bioptim
Deleted ocp.g_bounds and nlp.g_bounds when clear penalty
538,859
16.12.2020 18:50:44
18,000
2e1de0abefd76e9ee566d302cc8a9a11afa1e16e
Fix test to adapt to new constraints dict
[ { "change_type": "MODIFY", "old_path": "tests/test_penalty.py", "new_path": "tests/test_penalty.py", "diff": "@@ -106,7 +106,7 @@ def test_penalty_track_state(penalty_origin, value):\nif isinstance(penalty_type, (Objective.Lagrange, Objective.Mayer)):\nres = ocp.nlp[0].J[0][0][\"val\"]\nelse:\n- res...
Python
MIT License
pyomeca/bioptim
Fix test to adapt to new constraints dict
538,859
16.12.2020 18:51:28
18,000
a8c50ba26db953eb4c9115ec1bd63e5f61ce3a9f
Update constraints and fix g_bounds
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -9,6 +9,7 @@ from .solver_interface import SolverInterface\nfrom ..limits.objective_functions import ObjectiveFunction\nfrom ..limits.path_conditions imp...
Python
MIT License
pyomeca/bioptim
Update constraints and fix g_bounds
538,843
17.12.2020 11:19:49
-3,600
0d26af26ff9460a1151c3354fc2cba9f753978c5
Update README.md Author lists updated, to be completed
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -44,11 +44,11 @@ TODO + It is expected to slow down the optimization by about 15%\n## Citing\n-If you use `biorb-optim`, we would be grateful if you could cite it as follows:\n+If you use `bioptim`, we would be ...
Python
MIT License
pyomeca/bioptim
Update README.md Author lists updated, to be completed
538,859
17.12.2020 09:47:18
18,000
e311b708a5f0a0f9f5e94ca8722ac041871bf978
Test that was not passing on certain CPU
[ { "change_type": "MODIFY", "old_path": "tests/test_global_optimal_time.py", "new_path": "tests/test_global_optimal_time.py", "diff": "@@ -135,13 +135,13 @@ def test_pendulum_min_time_mayer_constrained(ode_solver):\nif ode_solver == OdeSolver.IRK:\n# initial and final controls\n- np.testing.assert_al...
Python
MIT License
pyomeca/bioptim
Test that was not passing on certain CPU
538,859
17.12.2020 11:52:47
18,000
17f186c177cca34d05e036154fa9cd40f4346c80
Deal with constraint on last node
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -109,6 +109,7 @@ class AcadosInterface(SolverInterface):\nx_max = np.array(ocp.nlp[0].x_bounds.max)\nself.all_constr = SX()\nself.end_constr = SX()\n+ ##...
Python
MIT License
pyomeca/bioptim
Deal with constraint on last node
538,859
17.12.2020 12:27:31
18,000
3f96ad0c43c15cf069abaa90feab5b5c755e85e0
Fix runtimeerror if constraint on first node
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -132,7 +132,7 @@ class AcadosInterface(SolverInterface):\nself.end_g_bounds.concatenate(G[0][\"bounds\"])\nelse:\n- RuntimeError(\"Acados solver only han...
Python
MIT License
pyomeca/bioptim
Fix runtimeerror if constraint on first node
538,859
18.12.2020 11:00:20
18,000
d7419f57f82e68f56ea5b57506be7c4f36c6b726
Test if there are a constraint + modifications to fix y_ref when custom parameters
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -114,7 +114,8 @@ class AcadosInterface(SolverInterface):\nself.end_g_bounds = Bounds(interpolation=InterpolationType.CONSTANT)\nfor i in range(ocp.nb_pha...
Python
MIT License
pyomeca/bioptim
Test if there are a constraint + modifications to fix y_ref when custom parameters
538,859
18.12.2020 11:45:26
18,000
49f091bbb28aa2ebc91879fa6f106c431d137d05
Raise run time error when using time constraint
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -49,10 +49,18 @@ class AcadosInterface(SolverInterface):\nself.out = {}\ndef __acados_export_model(self, ocp):\n+ if ocp.nb_phases > 1:\n+ raise NotImple...
Python
MIT License
pyomeca/bioptim
Raise run time error when using time constraint
538,859
22.12.2020 15:58:03
18,000
2637eb2e716192eccbdd770e0a111d2d424e3a68
Added test for constraints, parameters and custom dynamics
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -12,7 +12,19 @@ import os\nimport shutil\nimport biorbd\n-from bioptim import Data, Solver, ObjectiveList, Objective\n+from bioptim import (\n+ Axe,\n+ Data,\n+ Solver,\...
Python
MIT License
pyomeca/bioptim
Added test for constraints, parameters and custom dynamics
538,859
22.12.2020 15:58:41
18,000
7baefcd42094c243cca49b8d1fc48de3d1a98698
Modified examples to use also with Acados
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/custom_dynamics.py", "new_path": "examples/getting_started/custom_dynamics.py", "diff": "@@ -20,6 +20,7 @@ from bioptim import (\nInitialGuessOption,\nShowResult,\nOdeSolver,\n+ Solver,\n)\n@@ -38,7 +39,7 @@ def custom_configure(ocp, n...
Python
MIT License
pyomeca/bioptim
Modified examples to use also with Acados
538,859
22.12.2020 15:59:09
18,000
12e613da13555ae40c219396b723f63492bf5b55
Added align marker on segment in acados to test constraints
[ { "change_type": "ADD", "old_path": null, "new_path": "examples/acados/align_marker_on_segment.py", "diff": "+import biorbd\n+\n+from bioptim import (\n+ Node,\n+ Axe,\n+ OptimalControlProgram,\n+ DynamicsTypeList,\n+ DynamicsType,\n+ ObjectiveList,\n+ Objective,\n+ ConstraintList,\n+ Constraint,\n+...
Python
MIT License
pyomeca/bioptim
Added align marker on segment in acados to test constraints
538,859
22.12.2020 15:59:29
18,000
c5ae847b72c75ffc3288f32c49a067942af40b01
Run time error when time constraint
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -56,13 +56,14 @@ class AcadosInterface(SolverInterface):\nx = ocp.nlp[0].X[0]\nu = ocp.nlp[0].U[0]\np = ocp.nlp[0].p\n+ if ocp.nlp[0].parameters_to_optim...
Python
MIT License
pyomeca/bioptim
Run time error when time constraint
538,862
04.01.2021 11:03:08
-3,600
dbd4f6238b4c62d4c2fb94d33a1e0374152b9155
Correct bug plot when number of contact forces increase with phases
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -169,14 +169,16 @@ class PlotOcp:\nself.plot_func = {}\nfor i, nlp in enumerate(self.ocp.nlp):\nfor variable in self.variable_sizes[i]:\n- nb = max(nlp.plot[variable].phase_mappings.map_idx) ...
Python
MIT License
pyomeca/bioptim
Correct bug plot when number of contact forces increase with phases
538,859
04.01.2021 14:18:16
18,000
ec02b13a1b875c224de93bfb6c211091073effab
Deleted useless function
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -97,16 +97,6 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.constraints.constr_type = constr_type\nself.acados_ocp.constraints.constr_type_e...
Python
MIT License
pyomeca/bioptim
Deleted useless function
538,859
04.01.2021 14:37:36
18,000
c9a756c29e0161399c4663cce6af4e5e894b5a6f
Deleted align_marker_on_segment and use instead the example in align directory
[ { "change_type": "DELETE", "old_path": "examples/acados/align_marker_on_segment.py", "new_path": null, "diff": "-import biorbd\n-\n-from bioptim import (\n- Node,\n- Axe,\n- OptimalControlProgram,\n- DynamicsTypeList,\n- DynamicsType,\n- ObjectiveList,\n- Objective,\n- ConstraintList,\n- Constraint,...
Python
MIT License
pyomeca/bioptim
Deleted align_marker_on_segment and use instead the example in align directory
538,859
04.01.2021 14:38:22
18,000
2fe44c2b5a03d66f44c16f0c6bb47c4f11f811da
Modified to use for acados test
[ { "change_type": "MODIFY", "old_path": "examples/align/align_marker_on_segment.py", "new_path": "examples/align/align_marker_on_segment.py", "diff": "@@ -19,7 +19,7 @@ from bioptim import (\ndef prepare_ocp(\n- biorbd_model_path, final_time, number_shooting_points, initialize_near_solution, ode_solv...
Python
MIT License
pyomeca/bioptim
Modified to use for acados test
538,859
04.01.2021 14:38:38
18,000
2872093a83a76ff7b50f2de92452483ef5b24f00
Adapt test to changes on constraints test
[ { "change_type": "MODIFY", "old_path": "tests/test_acados_interface.py", "new_path": "tests/test_acados_interface.py", "diff": "@@ -479,7 +479,7 @@ def test_acados_constraints_all():\nPROJECT_FOLDER = Path(__file__).parent / \"..\"\nspec = importlib.util.spec_from_file_location(\n\"constraint\",\n- ...
Python
MIT License
pyomeca/bioptim
Adapt test to changes on constraints test
538,859
04.01.2021 14:41:17
18,000
4031bef6ee599a896ed28c327d3177da942a6bdc
Deleted useless model
[ { "change_type": "DELETE", "old_path": "examples/acados/cube_and_line.bioMod", "new_path": null, "diff": "-version 4\n-\n-// DEFINITION DU SEGMENTS\n-\n-// Seg1\n- segment Seg1\n- translations xz\n- rotations y\n- rangesQ -0.70 2.30\n- -1 1\n- -pi pi\n- mass 1\n- inertia\n- 1 0 0\n- 0 1 0\n- 0 0 1\n...
Python
MIT License
pyomeca/bioptim
Deleted useless model
538,859
04.01.2021 14:45:41
18,000
5e3274ee3df84466a9d041f7fd2577e9ffc5a1f8
Deleted useless command
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -62,8 +62,7 @@ class AcadosInterface(SolverInterface):\nfor i in range(len(ocp.nlp[0].parameters_to_optimize)):\nif str(ocp.nlp[0].p[i]) == f\"time_phase...
Python
MIT License
pyomeca/bioptim
Deleted useless command