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,865 | 23.04.2020 16:51:32 | 14,400 | 351cf207bc4d7c0b18f6c5bd5c2d6a95089ec550 | Added the plot for muscle driven with contact | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/objective_functions.py",
"new_path": "biorbd_optim/objective_functions.py",
"diff": "@@ -18,7 +18,7 @@ class ObjectiveFunction:\n@staticmethod\ndef minimize_states(ocp, nlp, weight=1, states_idx=(), data_to_track=()):\nstates_idx = ObjectiveFuncti... | Python | MIT License | pyomeca/bioptim | Added the plot for muscle driven with contact |
538,865 | 23.04.2020 17:30:32 | 14,400 | bd56aae39083c3d85716c0f32e9b192516d8bb1e | made test for muscle driven with contact (and fixed a bug) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -150,6 +150,7 @@ class ProblemType:\nnlp[\"problem_type\"] == ProblemType.torque_driven\nor nlp[\"problem_type\"] == ProblemType.torque_driven_with_contact\nor nlp[\"problem... | Python | MIT License | pyomeca/bioptim | made test for muscle driven with contact (and fixed a bug) |
538,851 | 24.04.2020 10:38:41 | 14,400 | 3fe8df5488641fbc03e52bb5ceb5cfbeb84848e0 | Adds __projectionOnPlaneConstraint. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -19,9 +19,10 @@ class Constraint:\nMARKERS_TO_MATCH = 0\nALIGN_WITH_CUSTOM_RT = 1\n- PROPORTIONAL_Q = 2\n- PROPORTIONAL_CONTROL = 3\n- CONTACT_FORCE_GREATER_THAN = 4\n+ PROJEC... | Python | MIT License | pyomeca/bioptim | Adds __projectionOnPlaneConstraint. |
538,850 | 24.04.2020 20:18:11 | 14,400 | a1adc9c39d8f7d2e107874b610b464b56e6b2bf4 | [WIP] Change the name of two 'problem_type' and so change all files which have used normaly with Crtl-F check | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -72,7 +72,8 @@ class ProblemType:\nnlp[\"nbMuscle\"] = 0\n@staticmethod\n- def muscles_and_torque_driven(nlp):\n+ def muscle_activations_and_torque_driven(nlp):\n+ # old nam... | Python | MIT License | pyomeca/bioptim | [WIP] Change the name of two 'problem_type' and so change all files which have used normaly with Crtl-F check |
538,850 | 24.04.2020 21:04:09 | 14,400 | 9aa0d94f7bf8366baca4ea0f2f2a3cc4bcffb46f | [WIP] Modification of 'dynamics' files after recommandation of pariterre (1/2) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -103,11 +103,10 @@ class Dynamics:\ntau = muscles_tau + residual_tau\nqddot = biorbd.Model.ForwardDynamics(nlp[\"model\"], q, qdot, tau).to_mx()\n- qddot_reduced = nlp[\"dof_mapping... | Python | MIT License | pyomeca/bioptim | [WIP] Modification of 'dynamics' files after recommandation of pariterre (1/2) |
538,850 | 25.04.2020 14:16:27 | 14,400 | 252f158dbab6fff564d633b3fabaa376ba100e69 | [WIP] Modification of 'dynamics' files after recommandation of pariterre (2/2) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -83,7 +83,7 @@ class Dynamics:\nreturn vertcat(qdot_reduced, qddot_reduced)\n@staticmethod\n- def forward_dynamics_excitation_driven(states, controls, nlp):\n+ def forward_dynamics_... | Python | MIT License | pyomeca/bioptim | [WIP] Modification of 'dynamics' files after recommandation of pariterre (2/2) |
538,850 | 25.04.2020 14:17:44 | 14,400 | 0bf47197df4a2d95db0952fd88758db491ccf935 | [WIP] Remark to myself : not necessary to creat a new 'obj-func' for the excitation, could be the same with activation | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/objective_functions.py",
"new_path": "biorbd_optim/objective_functions.py",
"diff": "@@ -109,6 +109,8 @@ class ObjectiveFunction:\n@staticmethod\ndef minimize_muscle(ocp, nlp, weight=1, muscles_idx=(), data_to_track=()):\n+ # It could be solve als... | Python | MIT License | pyomeca/bioptim | [WIP] Remark to myself : not necessary to creat a new 'obj-func' for the excitation, could be the same with activation |
538,850 | 25.04.2020 15:38:27 | 14,400 | accf00b7fb4503df6f88d3d6a719cb9d0729daea | Change name of one 'ProblemType', and so repercution on 'plot' file | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -37,7 +37,7 @@ class PlotOcp:\nif (\nself.problem_type == ProblemType.torque_driven\nor self.problem_type == ProblemType.torque_driven_with_contact\n- or self.problem_type == ProblemType.mu... | Python | MIT License | pyomeca/bioptim | Change name of one 'ProblemType', and so repercution on 'plot' file |
538,851 | 27.04.2020 09:32:25 | 14,400 | f4e4893f2ab39ed7acc1a5c3c83763b6aec353d2 | Started to add integration to plot | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -207,49 +207,86 @@ class ShowResult:\ntry:\nfrom BiorbdViz import BiorbdViz\nexcept ModuleNotFoundError:\n- raise RuntimeError(\"BiorbdViz must be installed for animating the optimization\"... | Python | MIT License | pyomeca/bioptim | Started to add integration to plot |
538,851 | 27.04.2020 09:32:51 | 14,400 | bf31801a34d4aae70ea6ac7ef9bd7b1e6bba4d12 | Started to add a save and load ocp | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "+from copy import copy\n+import pickle\n+\nimport biorbd\nimport casadi\nfrom casadi import MX, vertcat\n@@ -63,6 +66,8 @@ class OptimalControlProgram:\nb... | Python | MIT License | pyomeca/bioptim | Started to add a save and load ocp |
538,857 | 27.04.2020 10:10:18 | 14,400 | 12923899a86ce042ca0a64df3463666dd81f5107 | removed useless horzsplit and cat | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "from math import inf\nfrom enum import Enum\n-from casadi import vertcat, horzsplit, Function, fabs\n+from casadi import vertcat, Function, fabs\nfrom .enums import Instant\nfrom... | Python | MIT License | pyomeca/bioptim | removed useless horzsplit and cat |
538,851 | 27.04.2020 10:15:23 | 14,400 | f1e4c21b130be44eb17bf7b65464d8c5aeb09c31 | Finalizes save/load files. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -298,8 +298,17 @@ class OptimalControlProgram:\ndef _get_a_reduced_ocp(self):\nreduced_ocp = copy(self)\n- delattr(object, \"tata\")\n-\n+ del (\n+ red... | Python | MIT License | pyomeca/bioptim | Finalizes save/load files. |
538,851 | 27.04.2020 10:17:17 | 14,400 | b492bc03eb2ce692b47e0281226b1020e1c81a63 | Adds example of a loading of file. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/multiphase_torque_driven_ocp/load_eocar.py",
"diff": "+from biorbd_optim import OptimalControlProgram, ShowResult\n+\n+ocp, sol = OptimalControlProgram.load(biorbd_model_path=\"eocar.bioMod\", name=\"eocar_tata\")\n+result = ShowResult(... | Python | MIT License | pyomeca/bioptim | Adds example of a loading of file. |
538,851 | 27.04.2020 10:18:34 | 14,400 | e8340cec78ec91f098b2496e79890cbac8a5ee63 | Better name for backup file. | [
{
"change_type": "MODIFY",
"old_path": "examples/multiphase_torque_driven_ocp/eocar.py",
"new_path": "examples/multiphase_torque_driven_ocp/eocar.py",
"diff": "@@ -95,4 +95,6 @@ if __name__ == \"__main__\":\n# --- Show results --- #\nresult = ShowResult(ocp, sol)\n+ result.graphs()\nresult.animate()... | Python | MIT License | pyomeca/bioptim | Better name for backup file. |
538,857 | 27.04.2020 10:34:22 | 14,400 | 51f151600db785d2d5f7485e2b8aa8ccd5d03d19 | proportional_variable function adapted | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -101,12 +101,14 @@ class PenaltyFunctionAbstract:\n\"\"\"\nif which_var == \"states\":\nux = x\n+ nb_val = nlp[\"nx\"]\nelif which_var == \"controls\":\nux = u\n+ nb_val = nlp[\"nu\"]... | Python | MIT License | pyomeca/bioptim | proportional_variable function adapted |
538,851 | 27.04.2020 10:52:29 | 14,400 | 3b48e706de8a1d5e28ab7a13c24521516cc46bf5 | Adds "_idx" to markers in align_markers | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -71,22 +71,23 @@ class PenaltyFunctionAbstract:\npenalty_type._add_to_penalty(ocp, nlp, val, **extra_param)\n@staticmethod\n- def align_markers(penalty_type, ocp, nlp, t, x, u, first_... | Python | MIT License | pyomeca/bioptim | Adds "_idx" to markers in align_markers |
538,851 | 27.04.2020 10:57:08 | 14,400 | d3734f381a9927ec30826e2b6e7977dbc50c7ac3 | Adds "_idx" to markers in align_markers (for all examples) | [
{
"change_type": "MODIFY",
"old_path": "examples/multiphase_torque_driven_ocp/eocar.py",
"new_path": "examples/multiphase_torque_driven_ocp/eocar.py",
"diff": "@@ -36,10 +36,11 @@ def prepare_ocp(biorbd_model_path=\"eocar.bioMod\", show_online_optim=False, ode_s\n# Constraints\nconstraints = (\n(\n-... | Python | MIT License | pyomeca/bioptim | Adds "_idx" to markers in align_markers (for all examples) |
538,851 | 27.04.2020 11:42:42 | 14,400 | 3ce12a5475018f9655d305a612890d6d46bfe11f | Better example for save/load files. | [
{
"change_type": "MODIFY",
"old_path": "examples/multiphase_torque_driven_ocp/load_eocar.py",
"new_path": "examples/multiphase_torque_driven_ocp/load_eocar.py",
"diff": "+import importlib.util\n+from pathlib import Path\n+\nfrom biorbd_optim import OptimalControlProgram, ShowResult\n+# Load eocar\n+... | Python | MIT License | pyomeca/bioptim | Better example for save/load files. |
538,851 | 27.04.2020 11:43:31 | 14,400 | 473135b9d7e4eb822a2e29201af657f5bbcefdad | Better test for multiphase_torque_driven_ocp (rotation 1.57). | [
{
"change_type": "MODIFY",
"old_path": "examples/multiphase_torque_driven_ocp/eocar.py",
"new_path": "examples/multiphase_torque_driven_ocp/eocar.py",
"diff": "@@ -55,6 +55,10 @@ def prepare_ocp(biorbd_model_path=\"eocar.bioMod\", show_online_optim=False, ode_s\nbounds.last_node_max[i] = 0\nX_bounds... | Python | MIT License | pyomeca/bioptim | Better test for multiphase_torque_driven_ocp (rotation 1.57). |
538,857 | 27.04.2020 18:19:39 | 14,400 | 1d3e3a0bc8c6bc09e410a98620b46db4125d0cfe | torque_driven_with_contact for ShowResult.animate | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -210,7 +210,7 @@ class ProblemType:\n@staticmethod\ndef get_q_from_V(ocp, V, num_phase=None):\n- if ocp.nlp[0][\"problem_type\"] == ProblemType.torque_driven:\n+ if ocp.nlp[... | Python | MIT License | pyomeca/bioptim | torque_driven_with_contact for ShowResult.animate |
538,857 | 27.04.2020 18:20:58 | 14,400 | 2ae56dbd66c42cf6b1cbb639a12765c9fc093ff0 | [WIP] Simple example for torque_driven_with_contact and contact_forces | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/symmetrical_torque_driven_ocp/symByConstructionWithContact.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+ ... | Python | MIT License | pyomeca/bioptim | [WIP] Simple example for torque_driven_with_contact and contact_forces |
538,851 | 28.04.2020 09:54:33 | 14,400 | 48dec8b4baae7f35375b442dc505d466b6c296b1 | Adds "_idx" to marker condition and show meshes. | [
{
"change_type": "MODIFY",
"old_path": "examples/muscle_driven_ocp/static_arm.py",
"new_path": "examples/muscle_driven_ocp/static_arm.py",
"diff": "@@ -26,7 +26,7 @@ def prepare_ocp(biorbd_model_path=\"arm26.bioMod\", show_online_optim=False):\nobjective_functions = (\n{\"type\": Objective.Lagrange.... | Python | MIT License | pyomeca/bioptim | Adds "_idx" to marker condition and show meshes. |
538,851 | 28.04.2020 09:55:59 | 14,400 | 85c36b0219466f06bdb6bd075178bb1694772635 | Adds .bo if user does not give extension. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "from copy import copy\nimport pickle\n-\n+import os\nimport biorbd\nimport casadi\nfrom casadi import MX, vertcat\n@@ -321,11 +321,17 @@ class OptimalCont... | Python | MIT License | pyomeca/bioptim | Adds .bo if user does not give extension. |
538,851 | 28.04.2020 16:25:05 | 14,400 | 312bcfe23039635e1dbe5f501fcb6b49981c2955 | WIP integrate | [
{
"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 casadi\n-from scipy import interpolate\n+from scipy import interpolate, integrate\nfrom matplotlib import pyplot as pl... | Python | MIT License | pyomeca/bioptim | WIP integrate |
538,857 | 28.04.2020 22:05:10 | 14,400 | 42223af9ea9926ff6578e4401bd6ce86431d811c | Start to develop an example for torque_driven_with_contact | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/torque_driven_with_contact/example_maximize_predicted_height_CoM.py",
"diff": "+import numpy as np\n+import biorbd\n+\n+from biorbd_optim import (\n+ Instant,\n+ OptimalControlProgram,\n+ Constraint,\n+ Objective,\n+ ProblemType,\n+ Bid... | Python | MIT License | pyomeca/bioptim | Start to develop an example for torque_driven_with_contact |
538,857 | 28.04.2020 22:06:41 | 14,400 | efa7b0faa59c0c8456b0b16a81b230c8995aef61 | Inadequate first try of example of torque_driven_with_contact deleted | [
{
"change_type": "DELETE",
"old_path": "examples/symmetrical_torque_driven_ocp/symByConstructionWithContact.py",
"new_path": null,
"diff": "-import biorbd\n-\n-from biorbd_optim import (\n- Instant,\n- OptimalControlProgram,\n- ProblemType,\n- Objective,\n- Constraint,\n- Bounds,\n- QAndQDotBounds,\... | Python | MIT License | pyomeca/bioptim | Inadequate first try of example of torque_driven_with_contact deleted |
538,858 | 29.04.2020 11:35:17 | 14,400 | 336f23b82dc71c382bb6d0a385a55d8f5c34e329 | Added nb_variable_time: nb of phases with a variable time (-1)
And variable_time_phases: Phases with a variable time | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -68,6 +68,10 @@ class OptimalControlProgram:\n# Define some aliases\nself.__add_to_nlp(\"ns\", number_shooting_points, False)\n+\n+ nb_variable_time = ... | Python | MIT License | pyomeca/bioptim | Added nb_variable_time: nb of phases with a variable time (-1)
And variable_time_phases: Phases with a variable time |
538,858 | 29.04.2020 11:36:39 | 14,400 | 3ddc68828f74f17008319bd61eb8419d353a9434 | Added MX to nlp("tf") if time is variable | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -72,6 +72,14 @@ class OptimalControlProgram:\nnb_variable_time = 0\nvariable_time_phases = []\n+ for i in range(self.nb_phases):\n+ if phase_time[i] >=... | Python | MIT License | pyomeca/bioptim | Added MX to nlp("tf") if time is variable |
538,865 | 29.04.2020 12:23:27 | 14,400 | 38f43607958082ff7cf61394e63257f5d7f7387c | Added function to compute contact forces from forward dynamics with muscle and contact | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -82,6 +82,24 @@ class Dynamics:\nqddot_reduced = nlp[\"q_dot_mapping\"].reduce.map(qddot)\nreturn vertcat(qdot_reduced, qddot_reduced)\n+ @staticmethod\n+ def forces_from_forward_dy... | Python | MIT License | pyomeca/bioptim | Added function to compute contact forces from forward dynamics with muscle and contact |
538,865 | 29.04.2020 14:03:11 | 14,400 | 55320e4039f53843bb15e018dedce958623298bf | Added function minimize_contact_forces | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -169,6 +169,30 @@ class PenaltyFunctionAbstract:\npenalty_type._add_to_penalty(ocp, nlp, CoM_height, **extra_param)\n+ @staticmethod\n+ def minimize_contact_forces(penalty_type, ocp, ... | Python | MIT License | pyomeca/bioptim | Added function minimize_contact_forces |
538,865 | 29.04.2020 14:14:05 | 14,400 | b0a85f7bd746f53d554c2908e9b90d9a9e48b5a6 | Added TRACK CONTACTS FORCES as a Penalty Type | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -275,6 +275,7 @@ class PenaltyFunctionAbstract:\nor penalty_function == PenaltyType.MINIMIZE_ALL_CONTROLS\nor penalty_function == PenaltyType.ALIGN_SEGMENT_WITH_CUSTOM_RT\nor penalty_... | Python | MIT License | pyomeca/bioptim | Added TRACK CONTACTS FORCES as a Penalty Type |
538,865 | 29.04.2020 14:18:13 | 14,400 | 481800b891e1be50c3618d766c362417e275b549 | Added TRACK CONTACT FORCES in objective function | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/objective_functions.py",
"new_path": "biorbd_optim/objective_functions.py",
"diff": "@@ -103,6 +103,7 @@ class Objective:\nALIGN_SEGMENT_WITH_CUSTOM_RT = (PenaltyType.ALIGN_SEGMENT_WITH_CUSTOM_RT,)\nALIGN_MARKER_WITH_SEGMENT_AXIS = (PenaltyType.AL... | Python | MIT License | pyomeca/bioptim | Added TRACK CONTACT FORCES in objective function |
538,851 | 30.04.2020 10:02:50 | 14,400 | fd5e9cccafa12c65fa4d88ec9c8ce7978d6b1cfb | Remove adding of ".bo" at the loading. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -322,16 +322,13 @@ class OptimalControlProgram:\n@staticmethod\ndef save(ocp, sol, name):\n_, ext = os.path.splitext(name)\n- if ext == '':\n+ if ext =... | Python | MIT License | pyomeca/bioptim | Remove adding of ".bo" at the loading. |
538,851 | 30.04.2020 10:03:51 | 14,400 | a7013deaf5ed92f1d21e624762716054a2987685 | Add example of load/save | [
{
"change_type": "RENAME",
"old_path": "examples/multiphase_torque_driven_ocp/load_eocar.py",
"new_path": "examples/multiphase_torque_driven_ocp/save_and_load_cube.py",
"diff": "@@ -5,25 +5,21 @@ from biorbd_optim import OptimalControlProgram, ShowResult\n# Load eocar\nPROJECT_FOLDER = Path(__file__... | Python | MIT License | pyomeca/bioptim | Add example of load/save |
538,851 | 30.04.2020 10:08:03 | 14,400 | 0abed0464d9e837e0b92073cec5f294aeac3716f | adds get data/q integrated. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -209,66 +209,63 @@ class ProblemType:\nreturn q, q_dot, tau\n@staticmethod\n- def get_states_integrated_from_V(ocp, V, number_elements=1, concatenate_phases=False):\n- v = P... | Python | MIT License | pyomeca/bioptim | adds get data/q integrated. |
538,851 | 30.04.2020 10:08:32 | 14,400 | 6dd0f46c2ceca4aacf6374bc1db497241f72ed4c | return always a list for q/qdot/tau/muscle | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -198,11 +198,6 @@ class ProblemType:\nelse:\nraise RuntimeError(f\"{nlp['problem_type'].__name__} not implemented yet in get_data_from_V\")\n- if len(num_phase) == 1:\n- q =... | Python | MIT License | pyomeca/bioptim | return always a list for q/qdot/tau/muscle |
538,851 | 30.04.2020 10:09:27 | 14,400 | 2827c3223d83e1175ad047dfaeb490288a7a4198 | Adds new t (integrated) for plot. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -30,8 +30,11 @@ class PlotOcp:\nif i == 0:\nself.t = np.linspace(0, nlp[\"tf\"], nlp[\"ns\"] + 1)\n+ self.t_integrated = PlotOcp.generate_integrated_time(self.t)\nelse:\n- self.t = np.appen... | Python | MIT License | pyomeca/bioptim | Adds new t (integrated) for plot. |
538,851 | 30.04.2020 10:10:09 | 14,400 | 03764543dcf2ae71956aa0ae71f221add3add521 | Get data integrated for plot. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -175,7 +175,7 @@ class PlotOcp:\nor self.problem_type == ProblemType.torque_driven_with_contact\n):\n# TODO: Add an integrator for the states\n- q, q_dot, tau = ProblemType.get_data_from_V(... | Python | MIT License | pyomeca/bioptim | Get data integrated for plot. |
538,851 | 30.04.2020 10:10:37 | 14,400 | 43e7421c7436813a36b90bcaef11cf6bb1b5bb17 | Animate with integrate and interpolate | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -240,14 +240,37 @@ class ShowResult:\nfrom BiorbdViz import BiorbdViz\nexcept ModuleNotFoundError:\nraise RuntimeError(\"BiorbdViz must be install to animate the model\")\n+ if integrated:\... | Python | MIT License | pyomeca/bioptim | Animate with integrate and interpolate |
538,865 | 30.04.2020 11:35:18 | 14,400 | 1ec5533eb0ba990c6767a32a3d65b96dbc43db0a | Added tracking on the last node using the last control value | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -197,6 +197,10 @@ class PenaltyFunctionAbstract:\nval = force[contacts_idx] - data_to_track[t[i], contacts_idx]\npenalty_type._add_to_penalty(ocp, nlp, val, **extra_param)\n+ force = ... | Python | MIT License | pyomeca/bioptim | Added tracking on the last node using the last control value |
538,865 | 30.04.2020 11:50:56 | 14,400 | e276ef9aa847c804e95c430f37d9aeba4523c33b | Move position of TRACK CONTRACT FORCES | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/objective_functions.py",
"new_path": "biorbd_optim/objective_functions.py",
"diff": "@@ -100,10 +100,10 @@ class Objective:\nTRACK_MUSCLES_CONTROL = (PenaltyType.TRACK_MUSCLES_CONTROL,)\nMINIMIZE_ALL_CONTROLS = (PenaltyType.MINIMIZE_ALL_CONTROLS,)... | Python | MIT License | pyomeca/bioptim | Move position of TRACK CONTRACT FORCES |
538,858 | 30.04.2020 13:10:06 | 14,400 | 2fbc4b53155f0d406bd37d7314a5e9c4b0d9aaa3 | Changed way to fill nlp with variable times | [
{
"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+\nimport biorbd\nimport casadi\nfrom casadi import MX, vertcat\n@@ -9,6 +11,7 @@ from .constraints import Constraint, ConstraintFu... | Python | MIT License | pyomeca/bioptim | Changed way to fill nlp with variable times |
538,858 | 30.04.2020 13:10:31 | 14,400 | 957b3fbca17e362a38f2f18123dffac253f6e93c | Added define_variable_time | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -286,6 +286,33 @@ class OptimalControlProgram:\nself.V_bounds.expand(V_bounds)\nself.V_init.expand(V_init)\n+ def __define_variable_time(self, initial_... | Python | MIT License | pyomeca/bioptim | Added define_variable_time |
538,858 | 30.04.2020 13:11:55 | 14,400 | b117e037e4f8d0705a8c19695249813fe0c5143d | Added Mayer objective function MINIMIZE_TIME | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/objective_functions.py",
"new_path": "biorbd_optim/objective_functions.py",
"diff": "@@ -66,6 +66,11 @@ class ObjectiveFunction:\nPenaltyFunctionAbstract._add(ocp, nlp, \"objective_functions\")\n+ class Functions:\n+ @staticmethod\n+ def minimize_... | Python | MIT License | pyomeca/bioptim | Added Mayer objective function MINIMIZE_TIME |
538,858 | 30.04.2020 14:08:20 | 14,400 | 294aa7988f73f46d20a81d28748de99c35cf7934 | delete minimum and maximum in obj. func | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/objective_functions.py",
"new_path": "biorbd_optim/objective_functions.py",
"diff": "@@ -46,6 +46,10 @@ class ObjectiveFunction:\n# Everything that should change the entry parameters depending on the penalty can be added here\nPenaltyFunctionAbstr... | Python | MIT License | pyomeca/bioptim | delete minimum and maximum in obj. func |
538,857 | 30.04.2020 15:00:25 | 14,400 | a3e152873f4d555716785572ebd32e9d0244e94e | nlp["CS_func"] added to generalize contact_forces_inequality constraint | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -27,7 +27,7 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nCS_func = Function(\n\"Contact_force_inequality\",\n[ocp.symbolic_states, ocp.symbolic_controls],\n- [Dynami... | Python | MIT License | pyomeca/bioptim | nlp["CS_func"] added to generalize contact_forces_inequality constraint |
538,857 | 30.04.2020 15:03:13 | 14,400 | 07fadabee3cf0e7a7215d156cb9e9e208c07c7ee | Debug of plotting one dof | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -50,8 +50,16 @@ class PlotOcp:\nself.all_figures.append(\nplt.figure(_type, figsize=(min(nlp[\"nb\" + _type] * width_step, width_max), height))\n)\n- axes_dof = self.all_figures[-1].subplot... | Python | MIT License | pyomeca/bioptim | Debug of plotting one dof |
538,857 | 30.04.2020 15:04:53 | 14,400 | c5988790087deb4def88a7db03ee15956604a186 | [WIP] More relevant example to test maximizing height_prediction | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -166,7 +166,6 @@ class PenaltyFunctionAbstract:\nCoM = nlp[\"model\"].CoM(q).to_mx()\nCoM_dot = nlp[\"model\"].CoMdot(q, q_dot).to_mx()\nCoM_height = (CoM_dot[2] * CoM_dot[2]) / (2 * ... | Python | MIT License | pyomeca/bioptim | [WIP] More relevant example to test maximizing height_prediction |
538,858 | 30.04.2020 15:22:14 | 14,400 | aae042ef1077c0388a97611f8490b9fc28d4d4e0 | Convert phase_time to list to add MX and convert back to tuple | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -76,11 +76,12 @@ class OptimalControlProgram:\nvariable_time_min = []\nvariable_time_max = []\n+ phase_time = list(phase_time)\nfor i in range(self.nb_... | Python | MIT License | pyomeca/bioptim | Convert phase_time to list to add MX and convert back to tuple |
538,858 | 30.04.2020 15:22:48 | 14,400 | 11cafae1985686c441cccdf04356e0cbbb1ee94c | Added minimize_time objective function to example | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/multiphase_align_markers.py",
"new_path": "examples/torque_driven_ocp/multiphase_align_markers.py",
"diff": "@@ -30,7 +30,10 @@ def prepare_ocp(biorbd_model_path=\"cube.bioMod\", show_online_optim=False, ode_so\n# Add objective funct... | Python | MIT License | pyomeca/bioptim | Added minimize_time objective function to example |
538,865 | 30.04.2020 18:11:02 | 14,400 | 7b7da27a5b20a5e182a76f3795b51b277842164b | Remove track for last node | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "from enum import Enum\nfrom math import inf\n+from casadi import Function\nimport numpy as np\nimport biorbd\nfrom .enums import Instant\nfrom .enums import Axe\n+from .dynamics import D... | Python | MIT License | pyomeca/bioptim | Remove track for last node |
538,851 | 30.04.2020 18:44:29 | 14,400 | 800af03b992d72f81609b27016dfa5aa70f4193c | Adds nlp["has_muscles"] and move get_data_... | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "from casadi import MX, vertcat\n-import numpy as np\nfrom .dynamics import Dynamics\nfrom .mapping import BidirectionalMapping, Mapping\n@@ -19,6 +18,7 @@ class ProblemType:\n\... | Python | MIT License | pyomeca/bioptim | Adds nlp["has_muscles"] and move get_data_... |
538,851 | 30.04.2020 18:46:00 | 14,400 | 911f1d8667c0722d84d8163fef6fa5959fbdee47 | Adds "_dix" and save/load | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/multiphase_align_markers.py",
"new_path": "examples/torque_driven_ocp/multiphase_align_markers.py",
"diff": "@@ -39,10 +39,10 @@ def prepare_ocp(biorbd_model_path=\"cube.bioMod\", show_online_optim=False, ode_so\n# Constraints\nconst... | Python | MIT License | pyomeca/bioptim | Adds "_dix" and save/load |
538,851 | 01.05.2020 09:55:39 | 14,400 | cdd6a476814025753f6961beb9e82398af6f770b | Adds data integrated | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -8,6 +8,7 @@ from matplotlib import pyplot as plt\nfrom casadi import Callback, nlpsol_out, nlpsol_n_out, Sparsity\nfrom .problem_type import ProblemType\n+from .variable_optimisation impor... | Python | MIT License | pyomeca/bioptim | Adds data integrated |
538,857 | 01.05.2020 12:21:34 | 14,400 | 71433a63065ed51783682eebceaecfce48a72c9c | Put plot of contact forces in this example | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_with_contact/example_maximize_predicted_height_CoM.bioMod",
"new_path": "examples/torque_driven_with_contact/example_maximize_predicted_height_CoM.bioMod",
"diff": "@@ -52,7 +52,7 @@ segment Seg1\nmesh 0 0 -0.5\nendsegment\n-// Seg1\n+//... | Python | MIT License | pyomeca/bioptim | Put plot of contact forces in this example |
538,857 | 01.05.2020 12:25:38 | 14,400 | 5863a4fe0b0b65a513d8d27232834373e46bfc47 | Lighter example for testing obj. func. maximizing height of CoM | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/torque_driven_with_contact/simple_maximize_predicted_height_CoM.py",
"diff": "+from math import inf\n+\n+import numpy as np\n+import biorbd\n+\n+from biorbd_optim import (\n+ Instant,\n+ OptimalControlProgram,\n+ Constraint,\n+ Objectiv... | Python | MIT License | pyomeca/bioptim | Lighter example for testing obj. func. maximizing height of CoM |
538,857 | 01.05.2020 12:26:44 | 14,400 | 13a1b230cd84da905cb0ac3f4062316395e1deef | Started to develop example for testing constraint of positivity of CS
CS = Contact forces | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/torque_driven_with_contact/contact_forces_inequality_constraint.py",
"diff": "+from math import inf\n+\n+import numpy as np\n+import biorbd\n+\n+from biorbd_optim import (\n+ Instant,\n+ OptimalControlProgram,\n+ Constraint,\n+ Objectiv... | Python | MIT License | pyomeca/bioptim | Started to develop example for testing constraint of positivity of CS
CS = Contact forces |
538,865 | 01.05.2020 15:28:26 | 14,400 | 0557b34aaef45eae45110337616f942295aee7e1 | Move position of TRACK CONTACT FORCES | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -282,9 +282,9 @@ class PenaltyFunctionAbstract:\nor penalty_function == PenaltyType.MINIMIZE_TORQUE\nor penalty_function == PenaltyType.MINIMIZE_MUSCLES_CONTROL\nor penalty_function =... | Python | MIT License | pyomeca/bioptim | Move position of TRACK CONTACT FORCES |
538,857 | 01.05.2020 17:27:29 | 14,400 | 0fd35e5b3447f1f98e31ac3829f6598ac6dc9e7f | Adapt new name of key to dico for contact_forces constraint | [
{
"change_type": "MODIFY",
"old_path": "examples/jumper/jumper2contacts.py",
"new_path": "examples/jumper/jumper2contacts.py",
"diff": "@@ -69,12 +69,12 @@ def prepare_ocp(\ncontact_axes = (1, 2, 4, 5)\nfor i in contact_axes:\nconstraints_first_phase.append(\n- {\"type\": Constraint.CONTACT_FORCE_GR... | Python | MIT License | pyomeca/bioptim | Adapt new name of key to dico for contact_forces constraint |
538,857 | 01.05.2020 17:28:50 | 14,400 | 6e3c20184c23a88f0151107320da486360607575 | Commit to save current state of my example
I need to go back to previous commit to debug | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_with_contact/contact_forces_inequality_constraint.py",
"new_path": "examples/torque_driven_with_contact/contact_forces_inequality_constraint.py",
"diff": "@@ -43,8 +43,8 @@ def prepare_ocp(show_online_optim=False):\n# Constraints\nconstr... | Python | MIT License | pyomeca/bioptim | Commit to save current state of my example
I need to go back to previous commit to debug |
538,865 | 04.05.2020 17:42:30 | 14,400 | 8639a6df40579699ac3b91b6346f4909020a3f84 | Bug for custom | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/objective_functions.py",
"new_path": "biorbd_optim/objective_functions.py",
"diff": "@@ -13,7 +13,7 @@ class ObjectiveFunction:\n\"\"\"\n@staticmethod\n- def _add_to_penalty(ocp, nlp, val, weight=1, quadratic=False):\n+ def _add_to_penalty(ocp, nl... | Python | MIT License | pyomeca/bioptim | Bug for custom |
538,851 | 04.05.2020 19:07:33 | 14,400 | 982a0fec492cce45e3d6312a496046df99057b20 | Integration, interpolation, data classe and plot with all of that, yeah! | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -8,3 +8,4 @@ from .path_conditions import Bounds, QAndQDotBounds, InitialConditions\nfrom .dynamics import Dynamics\nfrom .mapping import Mapping, BidirectionalMapping\nfrom .optima... | Python | MIT License | pyomeca/bioptim | Integration, interpolation, data classe and plot with all of that, yeah! |
538,857 | 04.05.2020 19:29:34 | 14,400 | bf55eb7d411164950b53682d4d7dcf3bbeb81daa | nlp["contact_forces_func"] new key + contact_force_inequality fixed | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -27,7 +27,7 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nCS_func = Function(\n\"Contact_force_inequality\",\n[ocp.symbolic_states, ocp.symbolic_controls],\n- [nlp[\"... | Python | MIT License | pyomeca/bioptim | nlp["contact_forces_func"] new key + contact_force_inequality fixed |
538,857 | 04.05.2020 19:32:04 | 14,400 | 9cc6a9a5a440bbd80086b6bfea7556feefed8ae0 | non_slipping constraint improved and fixed | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -51,13 +51,16 @@ class ConstraintFunction(PenaltyFunctionAbstract):\nt,\nx,\nu,\n- normal_component_idx,\ntangential_component_idx,\n+ normal_component_idx,\nstatic_friction_c... | Python | MIT License | pyomeca/bioptim | non_slipping constraint improved and fixed |
538,857 | 04.05.2020 19:34:06 | 14,400 | 79b6df4bdeff859bdcc4679a92cdf75be2daaf54 | Contact_forces_inequality constraint fixef | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -137,19 +137,13 @@ class ConstraintFunction(PenaltyFunctionAbstract):\ndef _parameter_modifier(constraint_function, parameters):\n# Everything that should change the entry par... | Python | MIT License | pyomeca/bioptim | Contact_forces_inequality constraint fixef |
538,857 | 04.05.2020 19:35:11 | 14,400 | 1240926e60a57554ac78c99867ad29731554c69d | Constraints in jumper example adapted to recent changes | [
{
"change_type": "MODIFY",
"old_path": "examples/jumper/jumper2contacts.py",
"new_path": "examples/jumper/jumper2contacts.py",
"diff": "@@ -69,19 +69,20 @@ def prepare_ocp(\ncontact_axes = (1, 2, 4, 5)\nfor i in contact_axes:\nconstraints_first_phase.append(\n- {\"type\": Constraint.CONTACT_FORCE_GR... | Python | MIT License | pyomeca/bioptim | Constraints in jumper example adapted to recent changes |
538,857 | 04.05.2020 19:36:28 | 14,400 | 3251503dcabbf799455cb3e1d0d0fd6453816964 | Correction of the display of contact forces and minor changes | [
{
"change_type": "MODIFY",
"old_path": "examples/jumper/jumper2contacts.py",
"new_path": "examples/jumper/jumper2contacts.py",
"diff": "@@ -12,25 +12,20 @@ from biorbd_optim import (\nBounds,\nQAndQDotBounds,\nInitialConditions,\n+ Dynamics,\n)\n-def prepare_ocp(\n+def prepare_ocp(model_path, phase_... | Python | MIT License | pyomeca/bioptim | Correction of the display of contact forces and minor changes |
538,857 | 04.05.2020 19:38:56 | 14,400 | 0f619f02599b5d2eeb7b971cd91baf62027f18a6 | maximize_predicted_height_CoM example added | [
{
"change_type": "RENAME",
"old_path": "examples/torque_driven_with_contact/simple_maximize_predicted_height_CoM.bioMod",
"new_path": "examples/torque_driven_with_contact/2segments_4dof_2contacts.bioMod",
"diff": ""
},
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_with_c... | Python | MIT License | pyomeca/bioptim | maximize_predicted_height_CoM example added |
538,857 | 04.05.2020 19:39:18 | 14,400 | 7aff9451348122324b7a70b4904d5cc99afa6009 | contact_forces_inequality_constraint example added | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_with_contact/contact_forces_inequality_constraint.py",
"new_path": "examples/torque_driven_with_contact/contact_forces_inequality_constraint.py",
"diff": "@@ -5,10 +5,12 @@ import biorbd\nfrom biorbd_optim import (\nInstant,\n+\nOptimalC... | Python | MIT License | pyomeca/bioptim | contact_forces_inequality_constraint example added |
538,857 | 04.05.2020 19:39:35 | 14,400 | 5be2944425c2a17d32f578e91e404ca61f483849 | non_slipping_constraint example added | [
{
"change_type": "RENAME",
"old_path": "examples/torque_driven_with_contact/simple_maximize_predicted_height_CoM.py",
"new_path": "examples/torque_driven_with_contact/non_slipping_constraint.py",
"diff": "@@ -5,10 +5,12 @@ import biorbd\nfrom biorbd_optim import (\nInstant,\n+\nOptimalControlProgram... | Python | MIT License | pyomeca/bioptim | non_slipping_constraint example added |
538,857 | 04.05.2020 21:36:10 | 14,400 | 158f02834f976973f91c74f48e822d4c632c7705 | Test for torque_driven_with_contact with associated obj and constraints | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "tests/test_torque_driven_with_contact.py",
"diff": "+\"\"\"\n+Test for file IO.\n+It tests the results of an optimal control problem with torque_driven_with_contact problem type regarding the proper functioning of :\n+- the maximize/minimize_pre... | Python | MIT License | pyomeca/bioptim | Test for torque_driven_with_contact with associated obj and constraints |
538,858 | 05.05.2020 08:49:03 | 14,400 | cf4f4a9435c43a999c455aab651788214539ea6a | Added MINIMIZE_TIME to Mayer functions list | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/objective_functions.py",
"new_path": "biorbd_optim/objective_functions.py",
"diff": "@@ -33,6 +33,11 @@ class ObjectiveFunction:\n\"\"\"\nDifferent conditions between biorbd geometric structures.\n\"\"\"\n+ # class Functions:\n+ @staticmethod\n+ d... | Python | MIT License | pyomeca/bioptim | Added MINIMIZE_TIME to Mayer functions list |
538,858 | 05.05.2020 13:24:33 | 14,400 | 67c15c9a85125c70d3ef4935b690177b982d9910 | Added the time in parameters to optimize | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -78,27 +78,7 @@ class OptimalControlProgram:\n# Define some aliases\nself.__add_to_nlp(\"ns\", number_shooting_points, False)\n- initial_time_guess = [... | Python | MIT License | pyomeca/bioptim | Added the time in parameters to optimize |
538,851 | 05.05.2020 18:02:33 | 14,400 | ef0a615e0359bc27820a092fa1cce583e97e81f6 | Adds a directory align with 2 examples/tests | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/align/align_marker_on_segment.py",
"diff": "+import biorbd\n+\n+from biorbd_optim import (\n+ Instant,\n+ Axe,\n+ OptimalControlProgram,\n+ ProblemType,\n+ Objective,\n+ Constraint,\n+ Bounds,\n+ QAndQDotBounds,\n+ InitialConditions,\n+... | Python | MIT License | pyomeca/bioptim | Adds a directory align with 2 examples/tests |
538,851 | 05.05.2020 18:10:42 | 14,400 | d8e283e71eabe3627019cf20cafb24ea7434df7a | Without collocation | [
{
"change_type": "MODIFY",
"old_path": "tests/test_align.py",
"new_path": "tests/test_align.py",
"diff": "@@ -61,7 +61,7 @@ align_marker_on_segment = importlib.util.module_from_spec(spec)\nspec.loader.exec_module(align_marker_on_segment)\n-@pytest.mark.parametrize(\"ode_solver\", [OdeSolver.RK, OdeS... | Python | MIT License | pyomeca/bioptim | Without collocation |
538,857 | 06.05.2020 09:38:24 | 14,400 | afa5aa80d6c5e135d26a0c54da4bbdb603b1956c | Tests and example fixed | [
{
"change_type": "MODIFY",
"old_path": "examples/jumper/jumper2contacts.py",
"new_path": "examples/jumper/jumper2contacts.py",
"diff": "@@ -13,6 +13,7 @@ from biorbd_optim import (\nQAndQDotBounds,\nInitialConditions,\nDynamics,\n+ Data,\n)\n@@ -203,7 +204,10 @@ if __name__ == \"__main__\":\n[\"cont... | Python | MIT License | pyomeca/bioptim | Tests and example fixed |
538,851 | 06.05.2020 09:58:54 | 14,400 | 5da1b2259c27518825e51bf7fc9b741e9e49bea1 | moved time to parameters | [
{
"change_type": "MODIFY",
"old_path": "examples/align/align_marker_on_segment.py",
"new_path": "examples/align/align_marker_on_segment.py",
"diff": "@@ -15,14 +15,14 @@ from biorbd_optim import (\n)\n-def prepare_ocp(biorbd_model_path=\"cube_and_line.bioMod\", show_online_optim=False, ode_solver=Od... | Python | MIT License | pyomeca/bioptim | moved time to parameters |
538,851 | 06.05.2020 10:56:09 | 14,400 | c39dd47e10d317133e046532c787607cb5a10a11 | End of test align | [
{
"change_type": "MODIFY",
"old_path": "examples/align/align_marker_on_segment.py",
"new_path": "examples/align/align_marker_on_segment.py",
"diff": "@@ -15,7 +15,7 @@ from biorbd_optim import (\n)\n-def prepare_ocp(biorbd_model_path, final_time, number_shooting_points, ode_solver, initialize_near_s... | Python | MIT License | pyomeca/bioptim | End of test align |
538,857 | 06.05.2020 13:26:15 | 14,400 | adeab64e342244fe06aa3611d89d660b6c586ba8 | Started to save and load | [
{
"change_type": "MODIFY",
"old_path": "examples/jumper/jumper2contacts.py",
"new_path": "examples/jumper/jumper2contacts.py",
"diff": "@@ -220,7 +220,7 @@ if __name__ == \"__main__\":\n[\"contact_forces\"],\n).expand()\n- states, controls = Data.get_data_from_V(ocp, sol[\"x\"], num_phase=i)\n+ stat... | Python | MIT License | pyomeca/bioptim | Started to save and load |
538,858 | 06.05.2020 13:30:17 | 14,400 | f83f553b77bd232985c09c3d27cdcfa302d8d1a2 | Added Lagrange minimize time function | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/objective_functions.py",
"new_path": "biorbd_optim/objective_functions.py",
"diff": "@@ -11,6 +11,11 @@ class ObjectiveFunction:\n\"\"\"\nDifferent conditions between biorbd geometric structures.\n\"\"\"\n+ class Functions:\n+ @staticmethod\n+ def... | Python | MIT License | pyomeca/bioptim | Added Lagrange minimize time function |
538,858 | 06.05.2020 14:30:39 | 14,400 | d0a929e61da3c2898b33e269010181fa4f867e41 | Finalized pendulum example with mapping | [
{
"change_type": "RENAME",
"old_path": "examples/pendulum/pendulum.bioMod",
"new_path": "examples/getting_started/pendulum.bioMod",
"diff": "@@ -9,13 +9,13 @@ gravity 0 0 -9.81\ntranslations y\nrotations x\nranges -5 5\n- -pi pi\n+ -2*pi 2*pi\nmass 1\ninertia\n- 1 0 0\n- 0 1 0\n- 0 0 1\n+ 0.01 0 0\n... | Python | MIT License | pyomeca/bioptim | Finalized pendulum example with mapping |
538,858 | 06.05.2020 14:50:55 | 14,400 | 69d7c9c7d417cdb3455ed3a95ed01d205c0d66d4 | Added new pendulum examples with minimize_time functions | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -270,7 +270,7 @@ class OptimalControlProgram:\ninitial_time_guess, time_min, time_max = [], [], []\nfor i, nlp in enumerate(self.nlp):\nfor obj_fun in ... | Python | MIT License | pyomeca/bioptim | Added new pendulum examples with minimize_time functions |
538,858 | 06.05.2020 15:48:53 | 14,400 | 68c4407e5c16fd2575da70409bdf08f932392452 | new pendulum | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.bioMod",
"new_path": "examples/getting_started/pendulum.bioMod",
"diff": "@@ -15,16 +15,35 @@ gravity 0 0 -9.81\ninertia\n0.01 0 0\n0 0.01 0\n- 0 0 0.0001\n- com 0 0 -1\n- mesh 0 0 0\n- mesh 0 0 -1\n+ 0 0 0.001\n+ com 0.1 0.1 ... | Python | MIT License | pyomeca/bioptim | new pendulum |
538,858 | 06.05.2020 15:49:12 | 14,400 | b44744d71fdb50f050d0cad0893d2554f57206ff | Starting to interpolate with time optim | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/variable_optimization.py",
"new_path": "biorbd_optim/variable_optimization.py",
"diff": "@@ -110,6 +110,10 @@ class Data:\ndata_parameters[key] = np.array(V[offset:offset+nb_param])\noffset += nb_param\n+ if key == \"time\":\n+ for key_stat in dat... | Python | MIT License | pyomeca/bioptim | Starting to interpolate with time optim |
538,857 | 06.05.2020 17:51:14 | 14,400 | bc3236db9fa5d40e1805aba9523f4ecd4b99cf46 | load function can now handle several biorbd model (for multiphasing) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -334,6 +334,6 @@ class OptimalControlProgram:\ndata = pickle.load(file)\nocp = data[\"ocp\"]\nsol = data[\"sol\"]\n- for nlp in ocp.nlp:\n- nlp[\"model... | Python | MIT License | pyomeca/bioptim | load function can now handle several biorbd model (for multiphasing) |
538,857 | 06.05.2020 17:53:20 | 14,400 | 0b1a0c32e1b9a2613f6aa1869b56149f96111316 | jumper adapted to use the save function | [
{
"change_type": "MODIFY",
"old_path": "examples/jumper/jumper2contacts.py",
"new_path": "examples/jumper/jumper2contacts.py",
"diff": "@@ -190,32 +190,36 @@ def prepare_ocp(\nshow_online_optim=show_online_optim,\n)\n-\n-if __name__ == \"__main__\":\n- model_path = (\"jumper2contacts.bioMod\", \"jum... | Python | MIT License | pyomeca/bioptim | jumper adapted to use the save function |
538,857 | 06.05.2020 17:54:16 | 14,400 | 5b3dc7954b98303f1b4d62ad43f541416e63d5dc | jumper example adapted to use ShowResult | [
{
"change_type": "MODIFY",
"old_path": "examples/jumper/jumper2contacts.py",
"new_path": "examples/jumper/jumper2contacts.py",
"diff": "@@ -14,6 +14,7 @@ from biorbd_optim import (\nInitialConditions,\nDynamics,\nData,\n+ ShowResult,\n)\n@@ -244,28 +245,33 @@ if __name__ == \"__main__\":\nplt.title(... | Python | MIT License | pyomeca/bioptim | jumper example adapted to use ShowResult |
538,857 | 06.05.2020 17:55:26 | 14,400 | 6027614bee75239256f691096bce7ebf8dcbaa8a | Remove the use of save function for this example | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_with_contact/maximize_predicted_height_CoM.py",
"new_path": "examples/torque_driven_with_contact/maximize_predicted_height_CoM.py",
"diff": "@@ -80,18 +80,7 @@ def prepare_ocp(model_path, phase_time, number_shooting_points, show_online_o... | Python | MIT License | pyomeca/bioptim | Remove the use of save function for this example |
538,857 | 06.05.2020 21:01:32 | 14,400 | ec18b11cb8140641fca6c04ea89d419e3677b5ab | Add test of LESSER_THAN constraint for contact forces + black | [
{
"change_type": "MODIFY",
"old_path": "examples/jumper/jumper2contacts.py",
"new_path": "examples/jumper/jumper2contacts.py",
"diff": "@@ -191,6 +191,7 @@ def prepare_ocp(\nshow_online_optim=show_online_optim,\n)\n+\ndef run_and_save_ocp(model_path):\nocp = prepare_ocp(\nmodel_path=model_path,\n@@ ... | Python | MIT License | pyomeca/bioptim | Add test of LESSER_THAN constraint for contact forces + black |
538,850 | 06.05.2020 21:20:38 | 14,400 | f05890d8fd666fe88540fb7aca049dc14eac5110 | Linear state / controle initialisation - 'path_conditions' file | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/path_conditions.py",
"new_path": "biorbd_optim/path_conditions.py",
"diff": "@@ -111,7 +111,7 @@ class QAndQDotBounds(Bounds):\nclass InitialConditions(PathCondition):\n- def __init__(self, initial_guess=()):\n+ def __init__(self, initial_guess=()... | Python | MIT License | pyomeca/bioptim | Linear state / controle initialisation - 'path_conditions' file |
538,850 | 06.05.2020 21:21:02 | 14,400 | 242afa6123d26bd1c281950b83155812ef091dad | Linear state / controle initialisation - 'optimal_control_program' file | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -238,6 +238,12 @@ class OptimalControlProgram:\nelse:\nV_bounds.min[offset : offset + nlp[\"nx\"]] = nlp[\"X_bounds\"].min\nV_bounds.max[offset : offse... | Python | MIT License | pyomeca/bioptim | Linear state / controle initialisation - 'optimal_control_program' file |
538,850 | 06.05.2020 21:50:24 | 14,400 | 2f8e6c566c808bd3498d000698218d05501307eb | Linear state / controle initialisation - add an exemple | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/align/align_marker_on_segment_with_linear_initial_option.py",
"diff": "+import biorbd\n+\n+from biorbd_optim import (\n+ Instant,\n+ Axe,\n+ OptimalControlProgram,\n+ ProblemType,\n+ Objective,\n+ Constraint,\n+ Bounds,\n+ QAndQDotBound... | Python | MIT License | pyomeca/bioptim | Linear state / controle initialisation - add an exemple |
538,858 | 07.05.2020 15:01:19 | 14,400 | 8b79f66d85054a46b1f44433cb5396d28998679b | [WIP] Created test_getting_started | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "tests/test_getting_started.py",
"diff": "+\"\"\"\n+Test for file IO\n+\"\"\"\n+import importlib.util\n+from pathlib import Path\n+\n+import pytest\n+import numpy as np\n+\n+from biorbd_optim import Data, OdeSolver\n+\n+# Load pendulum\n+PROJECT_... | Python | MIT License | pyomeca/bioptim | [WIP] Created test_getting_started |
538,858 | 07.05.2020 16:30:33 | 14,400 | 72ec87c3c717ced9fd34dca4a51e1def72912355 | Removed collocation for testing on align | [
{
"change_type": "MODIFY",
"old_path": "tests/test_align.py",
"new_path": "tests/test_align.py",
"diff": "@@ -18,7 +18,7 @@ align_segment_on_rt = importlib.util.module_from_spec(spec)\nspec.loader.exec_module(align_segment_on_rt)\n-@pytest.mark.parametrize(\"ode_solver\", [OdeSolver.RK, OdeSolver.CO... | Python | MIT License | pyomeca/bioptim | Removed collocation for testing on align |
538,858 | 08.05.2020 10:42:59 | 14,400 | bf17acbe06571d77498c9067309c23a962b62e81 | Removed unnecessary imports and MINIMIZE_TORQUE function | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -3,9 +3,6 @@ import biorbd\nfrom biorbd_optim import (\nOptimalControlProgram,\nProblemType,\n- Objective,\n- BidirectionalMapping,\n- Mapping,\nBounds,\nQAn... | Python | MIT License | pyomeca/bioptim | Removed unnecessary imports and MINIMIZE_TORQUE function |
538,858 | 08.05.2020 11:17:51 | 14,400 | 43b180cc10bbb0a167292928859ff4d23e09324d | Changed number of shooting point to 10 for pendulum tests | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -21,7 +21,7 @@ def test_pendulum(ode_solver):\nocp = pendulum.prepare_ocp(\nbiorbd_model_path=str(PROJECT_FOLDER) + \"/examples/getting_started/pendulum.bioMod\",\nfinal_t... | Python | MIT License | pyomeca/bioptim | Changed number of shooting point to 10 for pendulum tests |
538,858 | 08.05.2020 11:23:27 | 14,400 | adeefe38ff37fd75cc2d2c91fd0a6b85a3a18f65 | Black formatting on pendulum files | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -10,9 +10,7 @@ from biorbd_optim import (\n)\n-def prepare_ocp(\n- biorbd_model_path, final_time, number_shooting_points, show_online_optim=False\n-):\n+def ... | Python | MIT License | pyomeca/bioptim | Black formatting on pendulum files |
538,858 | 08.05.2020 11:33:14 | 14,400 | 7f3e067bed70d1c81d8e89a1c689e983beb42a7a | Black formatted other files in biorbdOptim | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/integrator.py",
"new_path": "biorbd_optim/integrator.py",
"diff": "@@ -2,11 +2,11 @@ from casadi import MX, Function\ndef RK4(ode, ode_opt):\n- t_span = ode_opt['t0'], ode_opt['tf']\n- n_step = ode_opt['number_of_finite_elements']\n- x_sym = ode['... | Python | MIT License | pyomeca/bioptim | Black formatted other files in biorbdOptim |
538,851 | 08.05.2020 13:31:45 | 14,400 | 0a5e60310c0b393950994aa6b676053f213739bd | Add external forces. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -35,6 +35,22 @@ class Dynamics:\nqddot_reduced = nlp[\"q_dot_mapping\"].reduce.map(qddot)\nreturn vertcat(qdot_reduced, qddot_reduced)\n+ @staticmethod\n+ def forward_dynamics_torqu... | Python | MIT License | pyomeca/bioptim | Add external forces. |
538,857 | 08.05.2020 13:41:19 | 14,400 | 686e46cb3d658f89397deaa06dff0e06c49cce96 | custom function fixed regarding weight parameter | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -217,8 +217,8 @@ class PenaltyFunctionAbstract:\nweight = None\nif \"weight\" in parameters.keys():\nweight = parameters[\"weight\"]\n- del parameters[\"function\"]\ndel parameters[\"... | Python | MIT License | pyomeca/bioptim | custom function fixed regarding weight parameter |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.