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,857 | 28.05.2020 19:18:32 | 14,400 | d06fab6d54da9265efd54a85921ef694bc85ca15 | Enum PhaseTransition added in the __init__.py public interface | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -9,3 +9,4 @@ from .dynamics import Dynamics\nfrom .mapping import Mapping, BidirectionalMapping\nfrom .optimal_control_program import OptimalControlProgram\nfrom .variable_optimizat... | Python | MIT License | pyomeca/bioptim | Enum PhaseTransition added in the __init__.py public interface |
538,857 | 28.05.2020 19:21:41 | 14,400 | 1164e2ab2f64f63b84f669388ecc510c887e4101 | Started to add continous, impact and custom phase transition | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/phase_transition.py",
"new_path": "biorbd_optim/phase_transition.py",
"diff": "-class PhaseTransition:\n+from enum import Enum\n+\n+import biorbd\n+from casadi import vertcat\n+\n+class PhaseTransitionFunctions:\n@staticmethod\ndef continuous(ocp,... | Python | MIT License | pyomeca/bioptim | Started to add continous, impact and custom phase transition |
538,857 | 28.05.2020 19:22:49 | 14,400 | 6e7faac0d86caeb92c8972c8f2ce0e4fc3d9cce5 | Adapt former continuity constraints to new phase transition class | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -6,6 +6,8 @@ from casadi import vertcat, sum1, horzcat\nfrom .enums import Instant, InterpolationType\nfrom .penalty import PenaltyType, PenaltyFunctionAbstract\nfrom .path_co... | Python | MIT License | pyomeca/bioptim | Adapt former continuity constraints to new phase transition class |
538,857 | 28.05.2020 19:55:51 | 14,400 | 7f319f4fc5527a0caaf4564d18e82ec5e724c7b7 | small fix for multiphase time constraint | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -340,7 +340,7 @@ class OptimalControlProgram:\nor pen_fun[\"type\"] == Objective.Lagrange.MINIMIZE_TIME\nor pen_fun[\"type\"] == Constraint.TIME_CONSTR... | Python | MIT License | pyomeca/bioptim | small fix for multiphase time constraint |
538,857 | 28.05.2020 19:59:43 | 14,400 | 578474ef619db8e671045d047cf1e3ada33ea87d | example for multiphase time constraint added | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/optimal_time_ocp/multiphase_time_constraint.py",
"diff": "+import biorbd\n+\n+from biorbd_optim import (\n+ Instant,\n+ OptimalControlProgram,\n+ ProblemType,\n+ Objective,\n+ Constraint,\n+ Bounds,\n+ QAndQDotBounds,\n+ InitialConditio... | Python | MIT License | pyomeca/bioptim | example for multiphase time constraint added |
538,857 | 28.05.2020 20:00:10 | 14,400 | bac797c7e196deb031eda525870ce55b654e0c07 | .bioMod associated to multiphase time constraint added (cube.bioMod) | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/optimal_time_ocp/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+ -3 3\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 | .bioMod associated to multiphase time constraint added (cube.bioMod) |
538,857 | 29.05.2020 11:47:05 | 14,400 | 906ee190aa74d2725d9f1a4d43b9114cd46438c1 | started to develop test for time constraint multiphase | [
{
"change_type": "MODIFY",
"old_path": "examples/optimal_time_ocp/multiphase_time_constraint.py",
"new_path": "examples/optimal_time_ocp/multiphase_time_constraint.py",
"diff": "@@ -15,7 +15,7 @@ from biorbd_optim import (\n)\n-def prepare_ocp(final_time, time_min, time_max, biorbd_model_path=\"cube... | Python | MIT License | pyomeca/bioptim | started to develop test for time constraint multiphase |
538,857 | 29.05.2020 12:49:09 | 14,400 | 51c2ff1f797895911cb337793e373dcbd3b8ff73 | phase transition enhanced | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/phase_transition.py",
"new_path": "biorbd_optim/phase_transition.py",
"diff": "@@ -5,26 +5,27 @@ from casadi import vertcat\nclass PhaseTransitionFunctions:\n+\n+ class Functions:\n@staticmethod\ndef continuous(ocp, phase_before_idx):\n\"\"\"\nTOD... | Python | MIT License | pyomeca/bioptim | phase transition enhanced |
538,851 | 29.05.2020 11:45:17 | 14,400 | 938717d9009238603e1234636cb2f68b3d97fc66 | Add option to save iterations in solve() | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -455,11 +455,14 @@ class OptimalControlProgram:\nnlp[\"plot\"][plot_name] = custom_plot\n- def solve(self, solver=\"ipopt\", show_online_optim=False, o... | Python | MIT License | pyomeca/bioptim | Add option to save iterations in solve() |
538,851 | 29.05.2020 11:45:48 | 14,400 | b0099d3d1d283ceaa97f87fe6bff083384973754 | Save iterations in a tempory file | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "import multiprocessing as mp\nimport numpy as np\nimport tkinter\n+import pickle\n+import os\nfrom itertools import accumulate\nfrom matplotlib import pyplot as plt, lines\n@@ -420,7 +422,18 @... | Python | MIT License | pyomeca/bioptim | Save iterations in a tempory file |
538,851 | 29.05.2020 11:49:26 | 14,400 | 74bf1275daad27700eeb30ba3c2c79bf653cde13 | add option to save iterations in pendulum
Good thing or not ?
# --- Access to all iterations --- #
nb_iter = len(iterations)
third_iteration = iterations[2] | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -68,11 +68,16 @@ if __name__ == \"__main__\":\n# --- Solve the program --- #\ntic = time()\n- sol = ocp.solve(show_online_optim=False)\n+ sol, iterations = o... | Python | MIT License | pyomeca/bioptim | add option to save iterations in pendulum
Good thing or not ?
# --- Access to all iterations --- #
nb_iter = len(iterations)
third_iteration = iterations[2] |
538,851 | 29.05.2020 11:50:05 | 14,400 | 349bf66d359fe47416d856da4297625d8e0f5039 | add test of iteration save ! | [
{
"change_type": "MODIFY",
"old_path": "tests/utils.py",
"new_path": "tests/utils.py",
"diff": "@@ -18,10 +18,15 @@ from biorbd_optim import (\nclass TestUtils:\n@staticmethod\n- def save_and_load(sol, ocp, test_solve_of_loaded=False):\n+ def save_and_load(sol, ocp, test_solve_of_loaded=False, itera... | Python | MIT License | pyomeca/bioptim | add test of iteration save ! |
538,851 | 29.05.2020 11:56:12 | 14,400 | 969070b63f6851cfd5b2a48bddf9c7ac08a6c9ca | test save iteration with pendulum | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -29,7 +29,7 @@ def test_pendulum(nb_threads):\nnumber_shooting_points=10,\nnb_threads=nb_threads,\n)\n- sol = ocp.solve()\n+ sol, iterations = ocp.solve(show_online_optim=... | Python | MIT License | pyomeca/bioptim | test save iteration with pendulum |
538,851 | 29.05.2020 15:09:24 | 14,400 | 2e5c086f663805011cc863c447dd5e4d5be18ac8 | rename save_iter in return_iterations and [] in None | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -456,13 +456,13 @@ class OptimalControlProgram:\nnlp[\"plot\"][plot_name] = custom_plot\n- def solve(self, solver=\"ipopt\", show_online_optim=False, s... | Python | MIT License | pyomeca/bioptim | rename save_iter in return_iterations and [] in None |
538,851 | 29.05.2020 15:09:44 | 14,400 | ab04846519d7475617cb9c56e667a0fda9bf111b | Rename in return_iterations | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -68,16 +68,14 @@ if __name__ == \"__main__\":\n# --- Solve the program --- #\ntic = time()\n- sol, iterations = ocp.solve(show_online_optim=True, save_iterat... | Python | MIT License | pyomeca/bioptim | Rename in return_iterations |
538,851 | 29.05.2020 15:10:01 | 14,400 | c2cdfafa703ef009a8a544e58548ae4eebb29836 | Rename return_iterations (part2) | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -31,7 +31,7 @@ def test_pendulum(nb_threads):\nnumber_shooting_points=10,\nnb_threads=nb_threads,\n)\n- sol, iterations = ocp.solve(show_online_optim=True, save_iterations... | Python | MIT License | pyomeca/bioptim | Rename return_iterations (part2) |
538,865 | 29.05.2020 15:28:54 | 14,400 | 120b23a335f593bf0e0c03f29b7b53ceaf308b8e | Added axis_to_track (either Axe.X,Y,Z or 0,1,2) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -27,7 +27,7 @@ class PenaltyFunctionAbstract:\n)\n@staticmethod\n- def minimize_markers(penalty_type, ocp, nlp, t, x, u, markers_idx=(), data_to_track=(), **extra_param):\n+ def minim... | Python | MIT License | pyomeca/bioptim | Added axis_to_track (either Axe.X,Y,Z or 0,1,2) |
538,851 | 29.05.2020 15:58:22 | 14,400 | 2b463ba9e35317b37720caa8415adefb0d662d30 | Adds a test file for iterations | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "tests/test_iterations.py",
"diff": "+import os\n+import pickle\n+import numpy as np\n+\n+from biorbd_optim import Iterations\n+\n+\n+def test_iterations():\n+ V = [np.random.random((10, 1)) for _ in range(5)]\n+\n+ directory = \".__tmp_biorbd_op... | Python | MIT License | pyomeca/bioptim | Adds a test file for iterations |
538,851 | 29.05.2020 15:58:55 | 14,400 | 8a0b34173783725d8eadbdc7010e764926092807 | test of iterations is in another file now | [
{
"change_type": "MODIFY",
"old_path": "tests/utils.py",
"new_path": "tests/utils.py",
"diff": "@@ -18,15 +18,10 @@ from biorbd_optim import (\nclass TestUtils:\n@staticmethod\n- def save_and_load(sol, ocp, test_solve_of_loaded=False, iterations=None):\n+ def save_and_load(sol, ocp, test_solve_of_lo... | Python | MIT License | pyomeca/bioptim | test of iterations is in another file now |
538,851 | 29.05.2020 15:59:16 | 14,400 | 41ed7c5ea110d99f8fbfa0d2ef3798aa974bcd9f | rename in sol_iterations | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -68,13 +68,13 @@ if __name__ == \"__main__\":\n# --- Solve the program --- #\ntic = time()\n- sol, iterations = ocp.solve(show_online_optim=True, return_iter... | Python | MIT License | pyomeca/bioptim | rename in sol_iterations |
538,851 | 29.05.2020 15:59:42 | 14,400 | b3252b8035c7ff351c57b59f2888ab09adc163ad | New extension : .bobo ! | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -490,7 +490,9 @@ class OptimalControlProgram:\nif show_online_optim:\noptions_common[\"iteration_callback\"] = OnlineCallback(self)\nif return_iteratio... | Python | MIT License | pyomeca/bioptim | New extension : .bobo ! |
538,851 | 29.05.2020 16:00:04 | 14,400 | 29a4a7d9694d71e942ac74c5ff9de87e8f829733 | Adds Iteration in __init__ | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -3,7 +3,7 @@ from .enums import Axe, OdeSolver, Instant, InterpolationType, PlotType\nfrom .constraints import Constraint\nfrom .objective_functions import Objective\nfrom .problem_... | Python | MIT License | pyomeca/bioptim | Adds Iteration in __init__ |
538,851 | 29.05.2020 16:05:38 | 14,400 | a25ee22291d8a863f225c73f88c2382f3222bbd3 | remove iterations from this test | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -31,7 +31,7 @@ def test_pendulum(nb_threads):\nnumber_shooting_points=10,\nnb_threads=nb_threads,\n)\n- sol, iterations = ocp.solve(show_online_optim=True, return_iteratio... | Python | MIT License | pyomeca/bioptim | remove iterations from this test |
538,851 | 29.05.2020 17:04:56 | 14,400 | 488bda6d9d7bb6221307b09f2d26d8c2ff5b1156 | test with travis | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -15,6 +15,7 @@ install:\n- conda env update -n root -f environment.yml\n- conda install pytest-cov black pytest pytest-cov codecov -cconda-forge\n- conda install xorg-libx11 xorg-libxtst -cconda-forge\n+ - c... | Python | MIT License | pyomeca/bioptim | test with travis |
538,851 | 29.05.2020 17:05:18 | 14,400 | fc2f60df8fd65f7732a8cf5ef49dc041fdbf2c38 | remove Iterations from __init__ | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -3,7 +3,7 @@ from .enums import Axe, OdeSolver, Instant, InterpolationType, PlotType\nfrom .constraints import Constraint\nfrom .objective_functions import Objective\nfrom .problem_... | Python | MIT License | pyomeca/bioptim | remove Iterations from __init__ |
538,851 | 29.05.2020 17:05:52 | 14,400 | 46701c366a07daad61ddf3092e05f4d30535d2ea | save_get_data save get_data for all iterations | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -555,7 +555,10 @@ class OptimalControlProgram:\nraise RuntimeError(f\"Incorrect extension({ext}), it should be (.bob) or (.bo) if you use save.\")\ndic... | Python | MIT License | pyomeca/bioptim | save_get_data save get_data for all iterations |
538,851 | 29.05.2020 17:11:06 | 14,400 | d8c9cdf98ff5571a810085e5b646b8346f49e191 | text with travis second try ! | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -15,7 +15,7 @@ install:\n- conda env update -n root -f environment.yml\n- conda install pytest-cov black pytest pytest-cov codecov -cconda-forge\n- conda install xorg-libx11 xorg-libxtst -cconda-forge\n- - c... | Python | MIT License | pyomeca/bioptim | text with travis second try ! |
538,857 | 29.05.2020 19:50:36 | 14,400 | 4981cf4426003f0a8822707b534bdf9200092d22 | Fixing default parameter of this example | [
{
"change_type": "MODIFY",
"old_path": "examples/optimal_time_ocp/multiphase_time_constraint.py",
"new_path": "examples/optimal_time_ocp/multiphase_time_constraint.py",
"diff": "@@ -108,7 +108,7 @@ if __name__ == \"__main__\":\nfinal_time = (2, 5, 4)\ntime_min = [1, 3, 0.1]\ntime_max = [2, 4, 0.8]\n... | Python | MIT License | pyomeca/bioptim | Fixing default parameter of this example |
538,857 | 29.05.2020 19:52:02 | 14,400 | ff88f2bac339c848c9319c2f4e69a96aa22a35e8 | Fixing expected values of monophased time constraint testing | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -200,16 +200,16 @@ def test_monophase_time_constraint(ode_solver):\ntf = param[\"time\"][0, 0]\n# initial and final position\n- np.testing.assert_almost_equal(q[:, 0], np.array(... | Python | MIT License | pyomeca/bioptim | Fixing expected values of monophased time constraint testing |
538,857 | 29.05.2020 19:53:42 | 14,400 | 8a431bd9fd2f30709630c0f7b7d4b23aa04016ee | positive test of a successful multiphased time constraint added | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -216,3 +216,56 @@ def test_monophase_time_constraint(ode_solver):\n# save and load\nTestUtils.save_and_load(sol, ocp, True)\n+\n+# Load time_constraint\n+PROJECT_FOLDER = Path(_... | Python | MIT License | pyomeca/bioptim | positive test of a successful multiphased time constraint added |
538,857 | 29.05.2020 19:54:42 | 14,400 | 42a06a6a1e66764a78750b91f382d795a4d09007 | function to create various args for constructing ocp added | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -269,3 +269,40 @@ def test_multiphase_time_constraint(ode_solver):\n# save and load\nTestUtils.save_and_load(sol, ocp, True)\n+\n+def partial_ocp_parameters():\n+ biorbd_model_p... | Python | MIT License | pyomeca/bioptim | function to create various args for constructing ocp added |
538,857 | 29.05.2020 19:55:28 | 14,400 | bde49b222cb471f4fc4aee36af93c9b1475723d6 | some necessary imports added in test file | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -6,8 +6,9 @@ from pathlib import Path\nimport pytest\nimport numpy as np\n+import biorbd\n-from biorbd_optim import Data, OdeSolver\n+from biorbd_optim import Data, OdeSolver, C... | Python | MIT License | pyomeca/bioptim | some necessary imports added in test file |
538,857 | 29.05.2020 19:56:33 | 14,400 | 163a059a714cfd999e78b469535b201c9b855288 | negative test for failure with monophased time constraint added | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -307,3 +307,40 @@ def partial_ocp_parameters():\nU_init = (U_init, U_init, U_init)\nreturn biorbd_model, number_shooting_points,final_time, time_min, time_max, torque_min, torqu... | Python | MIT License | pyomeca/bioptim | negative test for failure with monophased time constraint added |
538,857 | 29.05.2020 19:58:21 | 14,400 | 8344b91f314aaffef258ecf60389951ef80792aa | negative test for mayer obj fun conflict with multiphase time constraint | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -344,3 +344,50 @@ def test_mayer_neg_monophase_time_constraint(ode_solver):\nconstraints,\node_solver=ode_solver,\n)\n+\n+spec = importlib.util.spec_from_file_location(\n+ \"tes... | Python | MIT License | pyomeca/bioptim | negative test for mayer obj fun conflict with multiphase time constraint |
538,857 | 29.05.2020 20:20:43 | 14,400 | a30937c13a78d50969d7371e22c0a01196d50b72 | second different neg test for multiphase time constraint | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -391,3 +391,50 @@ def test_mayer1_neg_multiphase_time_constraint():\nconstraints,\node_solver=OdeSolver.RK,\n)\n+\n+spec = importlib.util.spec_from_file_location(\n+ \"test_maye... | Python | MIT License | pyomeca/bioptim | second different neg test for multiphase time constraint |
538,857 | 29.05.2020 20:21:59 | 14,400 | 337234f2a163d83a83398b440fc134a99c023847 | test for multiphase time constraint with free variables bypassed | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -438,3 +438,55 @@ def test_mayer2_neg_multiphase_time_constraint():\nconstraints,\node_solver=OdeSolver.RK,\n)\n+\n+spec = importlib.util.spec_from_file_location(\n+ \"test_maye... | Python | MIT License | pyomeca/bioptim | test for multiphase time constraint with free variables bypassed |
538,857 | 01.06.2020 11:05:56 | 14,400 | 4f4d6132348649863f4b56e54459febd99f91afb | Fix that prevent from free variables problem in these tests | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -273,8 +273,7 @@ def test_multiphase_time_constraint(ode_solver):\ndef partial_ocp_parameters():\nbiorbd_model_path = str(PROJECT_FOLDER) + \"/examples/optimal_time_ocp/cube.bio... | Python | MIT License | pyomeca/bioptim | Fix that prevent from free variables problem in these tests |
538,857 | 01.06.2020 11:07:28 | 14,400 | eabda9b6b42d29dbce5f811602ff8de637d523c5 | test with mayer obj for multiphase time constraint | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -450,10 +450,7 @@ spec.loader.exec_module(test_mayer_multiphase_time_constraint)\ndef test_mayer_multiphase_time_constraint():\n- with pytest.raises(RuntimeError, match=\"Functi... | Python | MIT License | pyomeca/bioptim | test with mayer obj for multiphase time constraint |
538,857 | 01.06.2020 11:08:43 | 14,400 | 079f654526b0b1d8391d07bcde8f07fc32d48fd9 | Negative test with lagrange obj for monophase time constraint | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -489,4 +489,40 @@ def test_mayer_multiphase_time_constraint():\node_solver=OdeSolver.RK,\n)\n-#TODO : Need to test error if the same objective function or constraint on time is ... | Python | MIT License | pyomeca/bioptim | Negative test with lagrange obj for monophase time constraint |
538,857 | 01.06.2020 11:10:24 | 14,400 | 8b38aa7743c5abf8a3a2a09009be523b8147149b | Two versions of negative tests with Lagrange obj for time constraint | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -526,3 +526,99 @@ def test_lagrange_neg_monophase_time_constraint(ode_solver):\nconstraints,\node_solver=ode_solver,\n)\n+\n+PROJECT_FOLDER = Path(__file__).parent / \"..\"\n+sp... | Python | MIT License | pyomeca/bioptim | Two versions of negative tests with Lagrange obj for time constraint |
538,857 | 01.06.2020 11:11:23 | 14,400 | 1ba27009e3129d33c9fcac4f89e92324e0ef6d87 | Positive test with Lagrange obj for multiphase time constraint | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -622,3 +622,54 @@ def test_lagrange2_neg_multiphase_time_constraint():\nconstraints,\node_solver=OdeSolver.RK,\n)\n+\n+PROJECT_FOLDER = Path(__file__).parent / \"..\"\n+spec = i... | Python | MIT License | pyomeca/bioptim | Positive test with Lagrange obj for multiphase time constraint |
538,857 | 01.06.2020 13:31:33 | 14,400 | 6a8968048217ea4c5d107e9201413c0cca62cb01 | Automatic filling of missing elts of phase_transition with continuous | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -187,13 +187,21 @@ class OptimalControlProgram:\nself.__prepare_dynamics(self.nlp[i])\n# Prepare phase transitions\n- self.phase_transitions = deepcopy... | Python | MIT License | pyomeca/bioptim | Automatic filling of missing elts of phase_transition with continuous |
538,858 | 02.06.2020 11:43:31 | 14,400 | 363ed2e99d8091e48a8b49b01ddf21f1ce26c9e2 | Added acados default solver options | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -556,6 +556,20 @@ class OptimalControlProgram:\nocp.constraints.idxbx_e = np.array(range(ocp.dims.nx))\nocp.dims.nbx_e = ocp.dims.nx\n+ ocp.solver_opti... | Python | MIT License | pyomeca/bioptim | Added acados default solver options |
538,858 | 02.06.2020 11:44:05 | 14,400 | 5129ca3e42ab7def388d6220b35903ba186b3587 | Added acados option in "solve" definition | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -579,7 +579,10 @@ class OptimalControlProgram:\n\"\"\"\nif solver == \"acados\":\n- self.__prepare_acados()\n+ from acados_template import AcadosOcpSol... | Python | MIT License | pyomeca/bioptim | Added acados option in "solve" definition |
538,858 | 02.06.2020 11:51:22 | 14,400 | 4985f1d1b522a2c30fdcf9c53be239719e7d2633 | Added export_eocar_ode_model definition | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -461,9 +461,9 @@ class OptimalControlProgram:\nnlp[\"plot\"][plot_name] = custom_plot\n- def __prepare_acados(self):\n- from acados_template import Aca... | Python | MIT License | pyomeca/bioptim | Added export_eocar_ode_model definition |
538,858 | 02.06.2020 13:53:16 | 14,400 | 66da190d7b3e1392a12ef960f306dd436a34bf26 | Changed bioMod name to work with all examples | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -466,8 +466,8 @@ class OptimalControlProgram:\nfrom casadi import MX, Function, external, SX, vertcat, sin, cos\n- m = biorbd.Model(\"eocar-6D.bioMod\"... | Python | MIT License | pyomeca/bioptim | Changed bioMod name to work with all examples |
538,865 | 02.06.2020 16:22:12 | 14,400 | e6c31dd08fdc211e57183b4f622b4b7beaae80cc | Added example track2D + test | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/torque_driven_ocp/pendulum.bioMod",
"diff": "+version 4\n+\n+// Seg1\n+segment Seg1\n+ translations y\n+ rotations x\n+ ranges\n+ -1 5\n+ -2*pi 2*pi\n+ mass 1\n+ inertia\n+ 1 0 0\n+ 0 1 0\n+ 0 0 0.1\n+ com 0.1 0.1 -1\n+\n+ mesh 0.0 0.0 ... | Python | MIT License | pyomeca/bioptim | Added example track2D + test |
538,855 | 02.06.2020 17:57:42 | 14,400 | b816feb7e0c91e756ec96a090f88392ceb055ab7 | RK4 intermediate states
made RK4 intermediate states accessible and added an option for choosing the number of steps to perform in RK4 | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/integrator.py",
"new_path": "biorbd_optim/integrator.py",
"diff": "@@ -21,6 +21,6 @@ def RK4(ode, ode_opt):\nk3 = fun(x[:, i - 1] + h / 2 * k2, u)[:, idx]\nk4 = fun(x[:, i - 1] + h * k3, u)[:, idx]\nx[:, i] = x[:, i - 1] + h / 6 * (k1 + 2 * k2 + 2... | Python | MIT License | pyomeca/bioptim | RK4 intermediate states
made RK4 intermediate states accessible and added an option for choosing the number of steps to perform in RK4 |
538,857 | 02.06.2020 20:06:05 | 14,400 | 72b185e985b2981a2efb3be87bf11bfcb376b5e2 | Total handling of phase transitions class | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -134,7 +134,7 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nraise RuntimeError(\"Phase constraints without same nx is not supported yet\")\npenalty_idx = ConstraintFu... | Python | MIT License | pyomeca/bioptim | Total handling of phase transitions class |
538,865 | 03.06.2020 10:11:41 | 14,400 | d9da35019e15d0a913f64ccc2b0cb95eec70aec2 | Added markers + used first pendulum bioMod | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.bioMod",
"new_path": "examples/getting_started/pendulum.bioMod",
"diff": "@@ -40,3 +40,15 @@ segment Seg1\nmesh 0.2 -0.0 -0.9\nmesh 0.2 -0.0 -1.1\nendsegment\n+\n+// Marker 1\n+ marker marker_1\n+ parent Seg1\n+ position 0 0 0... | Python | MIT License | pyomeca/bioptim | Added markers + used first pendulum bioMod |
538,865 | 03.06.2020 10:14:56 | 14,400 | a3c1daaf67df2af5fa229961f517a845452cfdc3 | Used pendulum bioMod from getting started | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/track_markers_2D_pendulum.py",
"new_path": "examples/torque_driven_ocp/track_markers_2D_pendulum.py",
"diff": "@@ -87,12 +87,13 @@ def prepare_ocp(biorbd_model, final_time, number_shooting_points, markers_ref, t\nif __name__ == \"__m... | Python | MIT License | pyomeca/bioptim | Used pendulum bioMod from getting started |
538,858 | 03.06.2020 12:47:56 | 14,400 | cbbba3e182bda7e0d091b85b78eec246efc8b108 | error raised if more than 1 phase | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -586,6 +586,9 @@ class OptimalControlProgram:\n\"\"\"\nif solver == \"acados\":\n+ if self.nb_phases > 1:\n+ raise NotImplementedError(\"more than 1 ph... | Python | MIT License | pyomeca/bioptim | error raised if more than 1 phase |
538,858 | 03.06.2020 12:48:25 | 14,400 | 4b246c3a6ce8b88b1b9b06fe7376d96132c2c4c7 | changed nlp[0] to nlp[i] (loop) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -499,6 +499,7 @@ class OptimalControlProgram:\nimport numpy as np\nimport scipy.linalg\n+\nos.environ[\"ACADOS_SOURCE_DIR\"] = \"/home/dangzilla/Docume... | Python | MIT License | pyomeca/bioptim | changed nlp[0] to nlp[i] (loop) |
538,857 | 03.06.2020 13:36:52 | 14,400 | 31ffe5916e868f689ed646ef9b0d3bafde694f85 | Fix for a functionnal cyclic continuity | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -132,6 +132,7 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nfor i in range(len(ocp.nlp) - 1):\nif ocp.nlp[i][\"nx\"] != ocp.nlp[i + 1][\"nx\"]:\nraise RuntimeError(\"... | Python | MIT License | pyomeca/bioptim | Fix for a functionnal cyclic continuity |
538,858 | 03.06.2020 13:27:39 | 14,400 | b75cfb6c8f06c8ec43cf7fea12989f74f6025df2 | Added NotImplementedError for return_iteration and show_online_optim options | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -566,6 +566,8 @@ class OptimalControlProgram:\nacados_ocp.constraints.idxbx_e = np.array(range(acados_ocp.dims.nx))\nacados_ocp.dims.nbx_e = acados_ocp... | Python | MIT License | pyomeca/bioptim | Added NotImplementedError for return_iteration and show_online_optim options |
538,857 | 03.06.2020 14:43:11 | 14,400 | 044c1747a2ac58264bee89293a3c3899710eee32 | Proper loop for handling phase transitions | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -132,10 +132,10 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nfor i in range(len(ocp.nlp) - 1):\nif ocp.nlp[i][\"nx\"] != ocp.nlp[i + 1][\"nx\"]:\nraise NotImplemente... | Python | MIT License | pyomeca/bioptim | Proper loop for handling phase transitions |
538,858 | 04.06.2020 14:18:26 | 14,400 | b8e45727d83415647af975c81ef468c126ecbb23 | Used nlp['dynamics'] for f_expl | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -23,7 +23,7 @@ class PrepareAcados:\nx = SX.sym('x', m.nbQ() * 2)\nu = SX.sym('u', m.nbQ())\nxdot = SX.sym('dx', m.nbQ() * 2)\n- f_expl = f(x, u)\n+ f_expl = self.nl... | Python | MIT License | pyomeca/bioptim | Used nlp['dynamics'] for f_expl |
538,858 | 04.06.2020 14:18:43 | 14,400 | 6b114858863185ab865c261c8251a7fcdc715267 | removed PrepareAcados class | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -7,19 +7,17 @@ import scipy.linalg\n#TODO: change the name of the function\n-class PrepareAcados:\n+\ndef export_eocar_ode_model(self):\nfor i in range(self.nb_phase... | Python | MIT License | pyomeca/bioptim | removed PrepareAcados class |
538,858 | 04.06.2020 14:19:58 | 14,400 | 786a421586df3769559f86df71d33f613b809920 | Import .acados_interface to ocp file | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -18,7 +18,7 @@ from .plot import OnlineCallback, CustomPlot\nfrom .integrator import RK4\nfrom .biorbd_interface import BiorbdInterface\nfrom .variable... | Python | MIT License | pyomeca/bioptim | Import .acados_interface to ocp file |
538,858 | 04.06.2020 16:08:03 | 14,400 | c7078f72f6b78b2a51fcf83590fb117594cb5077 | Added acados_dir in solve definition | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -461,13 +461,15 @@ class OptimalControlProgram:\nnlp[\"plot\"][plot_name] = custom_plot\n- def solve(self, solver=\"ipopt\", show_online_optim=False, r... | Python | MIT License | pyomeca/bioptim | Added acados_dir in solve definition |
538,857 | 04.06.2020 16:39:47 | 14,400 | 8a2a1b5631c193b91bf036d3943abfecc3688fe8 | Example of phase transitions | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/cube.bioMod",
"new_path": "examples/getting_started/cube.bioMod",
"diff": "@@ -54,3 +54,9 @@ endsegment\nposition 2 0 0\nendmarker\n+ // Contact\n+ contact Seg1_contact1\n+ parent Seg1\n+ position 0 0 0\n+ axis xz\n+ endcontact\n"
},... | Python | MIT License | pyomeca/bioptim | Example of phase transitions |
538,857 | 04.06.2020 16:39:59 | 14,400 | 960c61be78750cdeffa82f14e896a2b7dfd5d61b | Test of phase transitions | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -239,3 +239,52 @@ def test_cyclic_constraint():\n# save and load\nTestUtils.save_and_load(sol, ocp, True)\n+\n+def test_phase_transitions():\n+ # Load cube_phase_transitio... | Python | MIT License | pyomeca/bioptim | Test of phase transitions |
538,858 | 04.06.2020 16:56:47 | 14,400 | ab0f2166f59d6eb143d9acaa3f5a3e0329ddeab5 | Added nlp elements to acados_interface | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -10,26 +10,26 @@ import scipy.linalg\ndef export_eocar_ode_model(self):\nfor i in range(self.nb_phases):\n- m = self.nlp[0]['model']\n+ m = self.nlp[i]['model']\nmod... | Python | MIT License | pyomeca/bioptim | Added nlp elements to acados_interface |
538,858 | 04.06.2020 16:59:32 | 14,400 | f648312382aa1416e3740109101a398246ab1e7d | Added default options for acados solver | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "-from math import inf\n-from copy import deepcopy\n-import pickle\nimport os\n+import pickle\n+from copy import deepcopy\n+from math import inf\nimport bi... | Python | MIT License | pyomeca/bioptim | Added default options for acados solver |
538,858 | 04.06.2020 17:03:29 | 14,400 | 15f48f10540d6441cf66a6eaa53a20750479d129 | Changed name function acados_export_model and removed reloading model | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -6,21 +6,12 @@ import numpy as np\nimport scipy.linalg\n-#TODO: change the name of the function\n-\n-def export_eocar_ode_model(self):\n- for i in range(self.nb_phas... | Python | MIT License | pyomeca/bioptim | Changed name function acados_export_model and removed reloading model |
538,857 | 04.06.2020 17:29:12 | 14,400 | 496b03bc89fea1239065248cadda6458fff4a9da | Black + some better explanations ! | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/phase_transition.py",
"new_path": "biorbd_optim/phase_transition.py",
"diff": "@@ -3,6 +3,7 @@ from enum import Enum\nfrom casadi import vertcat\n+\nclass PhaseTransitionFunctions:\nclass Functions:\n@staticmethod\n"
},
{
"change_type": "M... | Python | MIT License | pyomeca/bioptim | Black + some better explanations ! |
538,865 | 05.06.2020 10:14:21 | 14,400 | 3710bc9f6468d9ab4c0a2f4e89c11304ae90747c | Used expand in phase transition | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/phase_transition.py",
"new_path": "biorbd_optim/phase_transition.py",
"diff": "@@ -21,16 +21,18 @@ class PhaseTransitionFunctions:\n\"\"\"\n# Aliases\nnlp_pre, nlp_post = PhaseTransitionFunctions.Functions.__get_nlp_pre_and_post(ocp, phase_pre_idx... | Python | MIT License | pyomeca/bioptim | Used expand in phase transition |
538,858 | 05.06.2020 10:24:37 | 14,400 | 3eb1ba31b2f7d5442ab90dd33fa3b75316d9c29a | Redefined x in model variables | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -11,8 +11,12 @@ def acados_export_model(self):\n# Declare model variables\nx = self.nlp[0]['x']\nu = self.nlp[0]['u']\n- x_dot = MX.sym(\"x_dot\", self.nlp[0]['nx'],... | Python | MIT License | pyomeca/bioptim | Redefined x in model variables |
538,865 | 05.06.2020 11:01:07 | 14,400 | f97bff9997f203331a81ad4c327f5b874bebc7e6 | Fixed bug : loaded model post | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/continuity.py",
"new_path": "biorbd_optim/continuity.py",
"diff": "from warnings import warn\nfrom enum import Enum\n+import biorbd\nfrom casadi import vertcat\nfrom .constraints import ConstraintFunction\n@@ -43,18 +44,22 @@ class PhaseTransition... | Python | MIT License | pyomeca/bioptim | Fixed bug : loaded model post |
538,857 | 05.06.2020 19:29:21 | 14,400 | ce0f07992133e2401f082073f91221df7e0012d5 | New name for phase transition on states : state transitions ! | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -9,4 +9,4 @@ from .dynamics import Dynamics\nfrom .mapping import Mapping, BidirectionalMapping\nfrom .optimal_control_program import OptimalControlProgram\nfrom .variable_optimizat... | Python | MIT License | pyomeca/bioptim | New name for phase transition on states : state transitions ! |
538,843 | 08.06.2020 14:17:18 | -7,200 | a5740e5ea72205f060b7a6a87e28f9ab4d6fa5fc | [wip] full info estimation works. TODO : implement windowed estimation | [
{
"change_type": "MODIFY",
"old_path": "examples/moving_horizon_estimation/mhe.py",
"new_path": "examples/moving_horizon_estimation/mhe.py",
"diff": "@@ -13,56 +13,42 @@ from biorbd_optim import (\nInitialConditions,\nShowResult,\nInterpolationType,\n+ PlotType,\n+ Data\n)\n-def prepare_ocp(biorbd_m... | Python | MIT License | pyomeca/bioptim | [wip] full info estimation works. TODO : implement windowed estimation |
538,857 | 08.06.2020 09:33:43 | 14,400 | 3c57430a6626e98da174296bc07b9336721c6484 | examples adapted to new name | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/cyclic_movement.py",
"new_path": "examples/getting_started/cyclic_movement.py",
"diff": "@@ -11,7 +11,7 @@ from biorbd_optim import (\nInitialConditions,\nShowResult,\nOdeSolver,\n- PhaseTransition,\n+ StateTransition,\n)\n@@ -51,13 +5... | Python | MIT License | pyomeca/bioptim | examples adapted to new name |
538,857 | 08.06.2020 09:34:07 | 14,400 | a8a018fafbc6f77b6a4c1668d99307e061f4bee7 | BiorbdOptim adapted to new name | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/continuity.py",
"new_path": "biorbd_optim/continuity.py",
"diff": "@@ -18,8 +18,7 @@ class StateTransitionFunctions:\n\"\"\"\nif ocp.nlp[phase_pre_idx][\"nx\"] != ocp.nlp[(phase_pre_idx + 1) % ocp.nb_phases][\"nx\"]:\nraise RuntimeError(\n- \"Cont... | Python | MIT License | pyomeca/bioptim | BiorbdOptim adapted to new name |
538,857 | 08.06.2020 09:38:37 | 14,400 | 01c6f4ded7aa32afda194447606e01f4818b2039 | Commentaries adapted to PEP8 | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -75,7 +75,8 @@ class OptimalControlProgram:\n:param q_dot_mapping: Generalized coordinates velocity states mapping. (Instance of class Mapping)\n:param... | Python | MIT License | pyomeca/bioptim | Commentaries adapted to PEP8 |
538,857 | 08.06.2020 14:12:56 | 14,400 | 3be8d0b934cbd94b4b898331816283a20e88cd93 | tf in show adapted for variable time | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -63,7 +63,7 @@ class PlotOcp:\nfor i, nlp in enumerate(self.ocp.nlp):\nif isinstance(nlp[\"tf\"], MX):\nself.t_idx_to_optimize.append(i)\n- self.__init_time_vector()\n+ self.__init_time_vec... | Python | MIT License | pyomeca/bioptim | tf in show adapted for variable time |
538,843 | 09.06.2020 10:25:21 | -7,200 | 3c870ca10e78979cef3d89c4524e5ed878f94cea | MHE works with ipopt ! | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/path_conditions.py",
"new_path": "biorbd_optim/path_conditions.py",
"diff": "@@ -114,7 +114,7 @@ class PathCondition(np.ndarray):\nelif self.type == InterpolationType.EACH_FRAME:\nif self.shape[1] != self.nb_shooting:\nraise RuntimeError(\n- f\"In... | Python | MIT License | pyomeca/bioptim | MHE works with ipopt ! |
538,843 | 09.06.2020 13:28:21 | -7,200 | a43f60b162247eb16b0509b05f9b1fa30355a789 | added plots and comments | [
{
"change_type": "MODIFY",
"old_path": "examples/moving_horizon_estimation/mhe.py",
"new_path": "examples/moving_horizon_estimation/mhe.py",
"diff": "-from mhe_simulation import run_simulation\n+from mhe_simulation import run_simulation, check_results\nimport biorbd\nimport numpy as np\nimport time\... | Python | MIT License | pyomeca/bioptim | added plots and comments |
538,843 | 09.06.2020 14:17:24 | -7,200 | 6ca9d0d73fbb47242489cdefdd50fce2927af888 | modified numerical opts of example | [
{
"change_type": "MODIFY",
"old_path": "examples/moving_horizon_estimation/mhe.py",
"new_path": "examples/moving_horizon_estimation/mhe.py",
"diff": "@@ -100,12 +100,12 @@ if __name__ == \"__main__\":\nbiorbd_model_path = \"./cart_pendulum.bioMod\"\nbiorbd_model = biorbd.Model(biorbd_model_path)\n- ... | Python | MIT License | pyomeca/bioptim | modified numerical opts of example |
538,858 | 09.06.2020 13:04:18 | 14,400 | 2c5227aa2b97f4a23921bd94a69a2f28f930e7fd | Added nlp's dynamics_func to acados model | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -7,24 +7,23 @@ import scipy.linalg\ndef acados_export_model(self):\n-\n# Declare model variables\nx = self.nlp[0]['x']\nu = self.nlp[0]['u']\n- mod = biorbd.Model(\"... | Python | MIT License | pyomeca/bioptim | Added nlp's dynamics_func to acados model |
538,858 | 09.06.2020 14:35:50 | 14,400 | 585aa58c8431eb8410426674c5963de5f49b0e37 | Added p (parameters) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -10,11 +10,11 @@ def acados_export_model(self):\n# Declare model variables\nx = self.nlp[0]['x']\nu = self.nlp[0]['u']\n-\n+ p = self.nlp[0]['p']\nmod = self.nlp[0][... | Python | MIT License | pyomeca/bioptim | Added p (parameters) |
538,843 | 10.06.2020 10:25:41 | -7,200 | 91462fd9144422f4afe103572b702ebe7ab1aabb | Added running cost on prediction | [
{
"change_type": "MODIFY",
"old_path": "examples/moving_horizon_estimation/mhe.py",
"new_path": "examples/moving_horizon_estimation/mhe.py",
"diff": "@@ -49,8 +49,11 @@ def prepare_ocp(\ntorque_min, torque_max, torque_init = -max_torque, max_torque, 0\n# Add objective functions\n- objective_function... | Python | MIT License | pyomeca/bioptim | Added running cost on prediction |
538,843 | 10.06.2020 10:27:58 | -7,200 | 915916bf32062207e505a9c6d7f49181866bb3b3 | changed numerical values in examples | [
{
"change_type": "MODIFY",
"old_path": "examples/moving_horizon_estimation/mhe.py",
"new_path": "examples/moving_horizon_estimation/mhe.py",
"diff": "@@ -108,7 +108,7 @@ if __name__ == \"__main__\":\nN = Tf * 50 # number of shooting nodes per sec\nnoise_std = 0.05 # STD of noise added to measurement... | Python | MIT License | pyomeca/bioptim | changed numerical values in examples |
538,858 | 10.06.2020 09:32:51 | 14,400 | acd80c6155b41af20bf3dd2d28e36884daaa2488 | Added RunTimeError if min and max are unequal | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -50,7 +50,7 @@ def prepare_acados(self):\n# set cost module\n# TODO: test external cost_type\nacados_ocp.cost.cost_type = 'EXTERNAL'\n- acados_ocp.cost.cost_type_e =... | Python | MIT License | pyomeca/bioptim | Added RunTimeError if min and max are unequal |
538,858 | 10.06.2020 20:13:04 | 14,400 | 57ed972356c46e135997ecd9a731fa9ccc48fda1 | Changed output of acados solver to enable graph and animate functions | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -626,9 +626,19 @@ class OptimalControlProgram:\nocp_solver = AcadosOcpSolver(acados_ocp, json_file='acados_ocp.json')\nocp_solver.solve()\n- out={'x': ... | Python | MIT License | pyomeca/bioptim | Changed output of acados solver to enable graph and animate functions |
538,857 | 11.06.2020 09:29:38 | 14,400 | 2ad1023d314d2a775e4974bc1e8921eb2fe3f810 | Started to fix mapping for custom plot | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -163,7 +163,7 @@ class PlotOcp:\nfor k in mapping:\nax = axes[k]\nif k < len(self.plot_func[variable][i].legend):\n- axes[k].set_title(self.plot_func[variable][i].legend[mapping[k]])\n+ axe... | Python | MIT License | pyomeca/bioptim | Started to fix mapping for custom plot |
538,857 | 11.06.2020 09:30:19 | 14,400 | ce34c64ab3f0a7aa76fb118307a906dd352f372c | Fix for mapping with plot of contact forces | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -61,6 +61,7 @@ class ProblemType:\n)\nProblemType.__configure_contact(ocp, nlp, Dynamics.forces_from_forward_dynamics_with_contact)\n+\n@staticmethod\ndef muscle_activations... | Python | MIT License | pyomeca/bioptim | Fix for mapping with plot of contact forces |
538,858 | 11.06.2020 15:26:50 | 14,400 | f949b7d7440f3ada31298a489e3a768dda0664d7 | Major SX refactor in BiordOptim for compatibility with ACADOS. MX type were kept for now, but they need to be cleaned where possible : TODO. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -8,15 +8,15 @@ import scipy.linalg\ndef acados_export_model(self):\n# Declare model variables\n- x = self.nlp[0]['x']\n- u = self.nlp[0]['u']\n- p = self.nlp[0]['p']... | Python | MIT License | pyomeca/bioptim | Major SX refactor in BiordOptim for compatibility with ACADOS. MX type were kept for now, but they need to be cleaned where possible : TODO. |
538,858 | 11.06.2020 16:19:48 | 14,400 | f93d865854d511aa08b09dd4c5434d7f5f51f751 | Removed unused MX type variables | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -71,7 +71,6 @@ class ProblemType:\nProblemType.__configure_q_qdot(nlp, True, False)\nProblemType.__configure_muscles(nlp, False, True)\n- u_mx = MX()\nu_sx = SX()\nfor i in ... | Python | MIT License | pyomeca/bioptim | Removed unused MX type variables |
538,851 | 11.06.2020 19:09:06 | 14,400 | fc1ee67aaccb1190418a9b62b02950da9facb91a | Adds custom problem type | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -5,6 +5,7 @@ from time import time\nfrom biorbd_optim import (\nOptimalControlProgram,\nProblemType,\n+ ProblemContext,\nBounds,\nQAndQDotBounds,\nInitialCon... | Python | MIT License | pyomeca/bioptim | Adds custom problem type |
538,851 | 11.06.2020 19:09:26 | 14,400 | 7912d5a6c7d7dfb6813afdda0c27740e3ad97a30 | add custom and list all problem type | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "from casadi import MX, vertcat, Function\n+from enum import Enum\nfrom .dynamics import Dynamics\nfrom .mapping import BidirectionalMapping, Mapping\n@@ -10,6 +11,13 @@ class P... | Python | MIT License | pyomeca/bioptim | add custom and list all problem type |
538,851 | 11.06.2020 19:09:47 | 14,400 | 703e280d911ec379f09cdbfbdd094d12572963dd | use a dict in problem type | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -14,6 +14,7 @@ from .constraints import ConstraintFunction, Constraint\nfrom .continuity import ContinuityFunctions, StateTransitionFunctions\nfrom .ob... | Python | MIT License | pyomeca/bioptim | use a dict in problem type |
538,851 | 11.06.2020 19:10:03 | 14,400 | ffb79412f91afd7d9ca8a8d48fcac0a7df6099ad | Add problemcontext | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -2,7 +2,7 @@ from .__version__ import __version__\nfrom .enums import Axe, OdeSolver, Instant, InterpolationType, PlotType\nfrom .constraints import Constraint\nfrom .objective_func... | Python | MIT License | pyomeca/bioptim | Add problemcontext |
538,857 | 11.06.2020 20:30:44 | 14,400 | 53acde9a40cb4f88ede397ad2b1cf3007e01e587 | Remove useless nbActuators | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -43,7 +43,6 @@ class ProblemType:\n\"\"\"\nProblemType.__configure_q_qdot(nlp, True, False)\nProblemType.__configure_tau(nlp, False, True)\n- nlp[\"nbActuators\"] = nlp[\"nb... | Python | MIT License | pyomeca/bioptim | Remove useless nbActuators |
538,857 | 11.06.2020 20:31:28 | 14,400 | 4d850f1c779fbfaf3745e18cd3a8b0e4ce436343 | Better way for contact names (in the same order as in the .bioMod) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -288,8 +288,7 @@ class ProblemType:\nall_contact_names = []\nfor elt in ocp.nlp:\n- all_contact_names.extend([name.to_string() for name in elt[\"model\"].contactNames()])\n-... | Python | MIT License | pyomeca/bioptim | Better way for contact names (in the same order as in the .bioMod) |
538,858 | 12.06.2020 12:57:00 | 14,400 | 3289b8d648e586244bf636b395b6f01bd16ea77c | Added error if cost_type is different for Lagrange and Mayer terms | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -52,7 +52,9 @@ def prepare_acados(self):\nacados_ocp.cost.cost_type = 'EXTERNAL'\nacados_ocp.cost.cost_type_e = 'EXTERNAL'\n- # Cost for states and controls (default... | Python | MIT License | pyomeca/bioptim | Added error if cost_type is different for Lagrange and Mayer terms |
538,858 | 12.06.2020 13:04:53 | 14,400 | a8ec840c7abfd163318f009ea8f453e94185493e | Use nlp['J'] values to construct external cost type varibales | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -4,6 +4,7 @@ from acados_template import AcadosModel, AcadosOcp\nfrom casadi import MX, Function, SX, vertcat\nimport numpy as np\nimport scipy.linalg\n+from .object... | Python | MIT License | pyomeca/bioptim | Use nlp['J'] values to construct external cost type varibales |
538,851 | 12.06.2020 17:14:32 | 14,400 | cc0dbb26247c431c47d512ca7d736503bf4ca981 | rename problemtype in problem | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -14,7 +14,7 @@ from .constraints import ConstraintFunction, Constraint\nfrom .continuity import ContinuityFunctions, StateTransitionFunctions\nfrom .ob... | Python | MIT License | pyomeca/bioptim | rename problemtype in problem |
538,851 | 12.06.2020 17:17:12 | 14,400 | 5b6b836d626431ba4774b154e69103254fc2ef11 | Pass configure in public access, custom problem type needs these. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -136,9 +136,9 @@ class ProblemType:\nWorks with torques and muscles.\n:param nlp: An OptimalControlProgram class.\n\"\"\"\n- ProblemType.__configure_q_qdot(nlp, True, False)... | Python | MIT License | pyomeca/bioptim | Pass configure in public access, custom problem type needs these. |
538,851 | 12.06.2020 17:17:41 | 14,400 | 3f950ba34721b2beada88cf7f2deec3f5c1baf62 | Adds new class Problemtype | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -136,9 +136,9 @@ class ProblemType:\nWorks with torques and muscles.\n:param nlp: An OptimalControlProgram class.\n\"\"\"\n- Problem.configure_q_qdot(nlp, True, False)\n- Pr... | Python | MIT License | pyomeca/bioptim | Adds new class Problemtype |
538,851 | 12.06.2020 17:18:06 | 14,400 | 710d5bd175d262d7dd19fef82ba4a4383397f23c | Rename of __configure into configure and ProblemType in problem | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -7,10 +7,11 @@ from .plot import CustomPlot\nfrom .enums import PlotType\n-class ProblemType:\n+class Problem:\n\"\"\"\nIncludes methods suitable for several situations\n\"\... | Python | MIT License | pyomeca/bioptim | Rename of __configure into configure and ProblemType in problem |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.