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,851 | 12.06.2020 17:18:39 | 14,400 | 210cf3be8231558cba6032df192eae9968ebadf9 | Adapts examples : use a dict for problem type | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/custom_constraint.py",
"new_path": "examples/getting_started/custom_constraint.py",
"diff": "@@ -9,6 +9,7 @@ from biorbd_optim import (\nInstant,\nOptimalControlProgram,\nProblemType,\n+ Problem,\nObjective,\nConstraint,\nBounds,\n@@ -... | Python | MIT License | pyomeca/bioptim | Adapts examples : use a dict for problem type |
538,851 | 15.06.2020 09:56:05 | 14,400 | 45f9f39c9d802a3e89dd2bc03226e66f1d01b44a | Add custom dynamic in pendulum | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "import biorbd\nimport pickle\nfrom time import time\n+from casadi import vertcat\nfrom biorbd_optim import (\nOptimalControlProgram,\n@@ -14,16 +15,20 @@ from b... | Python | MIT License | pyomeca/bioptim | Add custom dynamic in pendulum |
538,851 | 15.06.2020 09:56:55 | 14,400 | 4c16044a41b2ff170f7e4e51902c40c4fa155d12 | __apply... and __dispatch... have to be public | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -17,8 +17,8 @@ class Dynamics:\n:param parameters: The MX associated to the parameters\n:return: Vertcat of derived states. (MX.sym from CasADi)\n\"\"\"\n- Dynamics.__apply_paramete... | Python | MIT License | pyomeca/bioptim | __apply... and __dispatch... have to be public |
538,851 | 15.06.2020 10:01:40 | 14,400 | 28d0fb109096ecd602498e7a43a75c6a8441896b | adds "classic way" to call dynamic | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -46,6 +46,7 @@ def prepare_ocp(biorbd_model_path, final_time, number_shooting_points, nb_thread\n# Dynamics\nproblem_type = {\"type\": ProblemType.CUSTOM, \"... | Python | MIT License | pyomeca/bioptim | adds "classic way" to call dynamic |
538,851 | 15.06.2020 10:07:03 | 14,400 | 2e95d9711b839b44d1c168e6edc35eb375c61b49 | adds 3 ways to use custom with problem_type and dynamic | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -45,8 +45,9 @@ def prepare_ocp(biorbd_model_path, final_time, number_shooting_points, nb_thread\nobjective_functions = {\"type\": Objective.Lagrange.MINIMIZE... | Python | MIT License | pyomeca/bioptim | adds 3 ways to use custom with problem_type and dynamic |
538,851 | 15.06.2020 10:11:56 | 14,400 | 48220505362b2334a033d36c5d8f7085b14f2003 | adds "dynamic" in problem_type to call custom dynamic | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -29,6 +29,9 @@ class Problem:\n\"\"\"\nProblem.configure_q_qdot(nlp, True, False)\nProblem.configure_tau(nlp, False, True)\n+ if \"dynamic\" in nlp[\"problem_type\"]:\n+ Pro... | Python | MIT License | pyomeca/bioptim | adds "dynamic" in problem_type to call custom dynamic |
538,851 | 15.06.2020 10:27:35 | 14,400 | 5d3a2ad13c733ae1b57e95e2e08fc2d6b52dbd50 | muscle_activations_and_torque_driven can call custom dynamic | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -107,6 +107,9 @@ class Problem:\nnlp[\"nu\"] = nlp[\"u\"].rows()\nnlp[\"var_controls\"][\"muscles\"] = nlp[\"nbMuscle\"]\n+ if \"dynamic\" in nlp[\"problem_type\"]:\n+ Probl... | Python | MIT License | pyomeca/bioptim | muscle_activations_and_torque_driven can call custom dynamic |
538,851 | 16.06.2020 09:53:53 | 14,400 | 1a08f6f1cdbc720b17cbcfa668022fc99266267b | Add exemple of custom problem_type/dynamic | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/getting_started/custom_problem_type_and_dynamics.py",
"diff": "+\"\"\"\n+File that shows an example of a custom dynamic.\n+As an example, this custom constraint reproduces exactly the behavior of the TORQUE_DRIVEN problem_type and dynam... | Python | MIT License | pyomeca/bioptim | Add exemple of custom problem_type/dynamic |
538,851 | 16.06.2020 09:54:25 | 14,400 | 7f5f78da1b97388b35d089d520309837a4e3ce1f | restore pendulum without custom problem_type | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -15,24 +15,6 @@ from biorbd_optim import (\nObjective,\n)\n-\n-def custom_dynamic(states, controls, parameters, nlp):\n- Dynamics.apply_parameters(parameters... | Python | MIT License | pyomeca/bioptim | restore pendulum without custom problem_type |
538,851 | 16.06.2020 09:55:16 | 14,400 | e4e526762e4fceb38bcfdedc03f031f342c704ec | Add a function for custom dynamic (it apply a vertcat) | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -7,6 +7,11 @@ class Dynamics:\nDifferent dynamics types\n\"\"\"\n+ @staticmethod\n+ def custom(states, controls, parameters, nlp):\n+ qdot, qddot = nlp[\"problem_type\"][\"dynamic\"... | Python | MIT License | pyomeca/bioptim | Add a function for custom dynamic (it apply a vertcat) |
538,851 | 16.06.2020 09:55:38 | 14,400 | 75462c17483d9d7bb2179a87725b86074efc340e | Use dynamic custom | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -12,6 +12,7 @@ class Problem:\nIncludes methods suitable for several situations\n\"\"\"\n+\n@staticmethod\ndef initialize(ocp, nlp):\nnlp[\"problem_type\"][\"type\"](ocp, nl... | Python | MIT License | pyomeca/bioptim | Use dynamic custom |
538,851 | 16.06.2020 11:10:11 | 14,400 | aa25b5d41e9989f0b46a69956b4640a0d34c9268 | Add option of custom dynamic for all problem_type | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -12,7 +12,6 @@ class Problem:\nIncludes methods suitable for several situations\n\"\"\"\n-\n@staticmethod\ndef initialize(ocp, nlp):\nnlp[\"problem_type\"][\"type\"](ocp, nl... | Python | MIT License | pyomeca/bioptim | Add option of custom dynamic for all problem_type |
538,851 | 16.06.2020 11:10:49 | 14,400 | 2e6747b24a5a294441021a3eab108250e3d6de7c | Adapt problem_type in align_markers | [
{
"change_type": "MODIFY",
"old_path": "examples/align/align_and_minimize_marker_velocity.py",
"new_path": "examples/align/align_and_minimize_marker_velocity.py",
"diff": "@@ -61,7 +61,7 @@ def prepare_ocp(\n)\n# Dynamics\n- problem_type = ProblemType.torque_driven\n+ problem_type = {\"type\": Probl... | Python | MIT License | pyomeca/bioptim | Adapt problem_type in align_markers |
538,851 | 16.06.2020 11:11:12 | 14,400 | 48aa8e8138a9b7a6dc6e39f6a06d7b07e4076eed | Adapt problem_type in getting started | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/custom_problem_type_and_dynamics.py",
"new_path": "examples/getting_started/custom_problem_type_and_dynamics.py",
"diff": "@@ -35,7 +35,6 @@ def custom_torque_driven(ocp, nlp):\nProblem.configure_forward_dyn_func(ocp, nlp, Dynamics.cus... | Python | MIT License | pyomeca/bioptim | Adapt problem_type in getting started |
538,851 | 16.06.2020 11:11:38 | 14,400 | 175a5a3fd761dc4279eb7e9dfa8badb516d4e6d1 | Adapt problem_type in muscle_driven_ocp | [
{
"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, final_time, number_shooting_points):\n)\n# Dynamics\n- problem_type = ProblemType.muscle_activation... | Python | MIT License | pyomeca/bioptim | Adapt problem_type in muscle_driven_ocp |
538,851 | 16.06.2020 11:12:29 | 14,400 | 4c0b1b44aa1c2aa63595a0dc38984279c3ba062e | Adapt problem_type in muscle_driven_with_contact | [
{
"change_type": "MODIFY",
"old_path": "examples/muscle_driven_with_contact/contact_forces_inequality_constraint_muscle.py",
"new_path": "examples/muscle_driven_with_contact/contact_forces_inequality_constraint_muscle.py",
"diff": "@@ -30,7 +30,7 @@ def prepare_ocp(model_path, phase_time, number_sho... | Python | MIT License | pyomeca/bioptim | Adapt problem_type in muscle_driven_with_contact |
538,851 | 16.06.2020 11:13:06 | 14,400 | 1abb41260e85c1201c0c5e95b2fd0395e4c74c7e | Adapt problem_type in optimal_time | [
{
"change_type": "MODIFY",
"old_path": "examples/optimal_time_ocp/multiphase_time_constraint.py",
"new_path": "examples/optimal_time_ocp/multiphase_time_constraint.py",
"diff": "@@ -37,7 +37,11 @@ def prepare_ocp(\n)\n# Dynamics\n- problem_type = (ProblemType.torque_driven, ProblemType.torque_driven... | Python | MIT License | pyomeca/bioptim | Adapt problem_type in optimal_time |
538,851 | 16.06.2020 11:13:18 | 14,400 | 1a638dee728d2d3be86426d2a29144fedb0355d0 | Adapt problem_type in hand_spinning | [
{
"change_type": "MODIFY",
"old_path": "examples/q_tracking_constraint/hand_spinning.py",
"new_path": "examples/q_tracking_constraint/hand_spinning.py",
"diff": "@@ -36,7 +36,7 @@ def prepare_ocp(biorbd_model_path=\"HandSpinner.bioMod\"):\n)\n# Dynamics\n- problem_type = ProblemType.muscle_activatio... | Python | MIT License | pyomeca/bioptim | Adapt problem_type in hand_spinning |
538,851 | 16.06.2020 11:13:29 | 14,400 | cbfa6ecdd24678a9d9a36f15b2d815e8208bde44 | Adapt problem_type in symmetrical | [
{
"change_type": "MODIFY",
"old_path": "examples/symmetrical_torque_driven_ocp/symmetry_by_constraint.py",
"new_path": "examples/symmetrical_torque_driven_ocp/symmetry_by_constraint.py",
"diff": "@@ -28,7 +28,7 @@ def prepare_ocp(biorbd_model_path=\"cubeSym.bioMod\", ode_solver=OdeSolver.RK):\nobjec... | Python | MIT License | pyomeca/bioptim | Adapt problem_type in symmetrical |
538,851 | 16.06.2020 11:13:52 | 14,400 | 01fe29ba2baa75acb5c10b06b0b4555d5b566fda | Adapt problem_type in torque_driven | [
{
"change_type": "MODIFY",
"old_path": "examples/torque_driven_ocp/align_markers.py",
"new_path": "examples/torque_driven_ocp/align_markers.py",
"diff": "@@ -30,9 +30,9 @@ def prepare_ocp(biorbd_model_path, number_shooting_points, final_time, use_actua\n# Dynamics\nif use_actuators:\n- problem_type ... | Python | MIT License | pyomeca/bioptim | Adapt problem_type in torque_driven |
538,851 | 16.06.2020 11:14:32 | 14,400 | 424f591a9573031e6ab8b4e15cec10fe9473703c | Adapt problem_type in torque_driven_with_contact | [
{
"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": "@@ -26,7 +26,7 @@ def prepare_ocp(model_path, phase_time, number_shooting_points, ... | Python | MIT License | pyomeca/bioptim | Adapt problem_type in torque_driven_with_contact |
538,851 | 16.06.2020 11:44:48 | 14,400 | f883965d3b61997757b886938f170c1b7385e043 | add dict in variable_type multiphase align markers | [
{
"change_type": "MODIFY",
"old_path": "tests/test_optimal_time.py",
"new_path": "tests/test_optimal_time.py",
"diff": "@@ -292,7 +292,11 @@ def partial_ocp_parameters():\ntime_min = [1, 3, 0.1]\ntime_max = [2, 4, 0.8]\ntorque_min, torque_max, torque_init = -100, 100, 0\n- problem_type = (ProblemTyp... | Python | MIT License | pyomeca/bioptim | add dict in variable_type multiphase align markers |
538,851 | 16.06.2020 11:57:29 | 14,400 | 1e866c53e37d1416682c66af93e61e8bbb87e189 | use dict for variable_type | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/custom_problem_type_and_dynamics.py",
"new_path": "examples/getting_started/custom_problem_type_and_dynamics.py",
"diff": "@@ -29,7 +29,7 @@ def custom_dynamic(states, controls, parameters, nlp):\nreturn (qdot, qddot)\n-def custom_torq... | Python | MIT License | pyomeca/bioptim | use dict for variable_type |
538,851 | 16.06.2020 11:57:43 | 14,400 | e3a22aaf58d21c1395e54e7a01c83f3de0ed589c | rename function in configure | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -18,7 +18,7 @@ class Problem:\n@staticmethod\ndef custom(ocp, nlp):\n- nlp[\"problem_type\"][\"function\"](ocp, nlp)\n+ nlp[\"problem_type\"][\"configure\"](ocp, nlp)\n@stat... | Python | MIT License | pyomeca/bioptim | rename function in configure |
538,851 | 16.06.2020 12:10:27 | 14,400 | e75ecf73db9733614eebe9cd4f481c110cdc92ca | add situation with non custom problem_type and custom dynamic | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/custom_problem_type_and_dynamics.py",
"new_path": "examples/getting_started/custom_problem_type_and_dynamics.py",
"diff": "@@ -35,7 +35,7 @@ def custom_configure(ocp, nlp):\nProblem.configure_forward_dyn_func(ocp, nlp, Dynamics.custom)... | Python | MIT License | pyomeca/bioptim | add situation with non custom problem_type and custom dynamic |
538,851 | 16.06.2020 12:12:17 | 14,400 | 7163a20bf4f31e1ab521cf6c939d149b76fc1811 | add 2 tests about custom problem_type/dynamic | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -345,3 +345,47 @@ def test_parameter_optimization():\n# For some reason, the custom function can't be found from here...\n# The save and load test is therefore skipped\n# ... | Python | MIT License | pyomeca/bioptim | add 2 tests about custom problem_type/dynamic |
538,858 | 17.06.2020 11:24:25 | 14,400 | 9934f885c575b72d5e1fdc46d57071e115b69244 | Added J_acados_mayer variable in nlp | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -80,6 +80,7 @@ def prepare_acados(self):\nacados_ocp.model.cost_expr_ext_cost = SX(0,0)\nacados_ocp.model.cost_expr_ext_cost_e = SX(0,0)\n+ k = 0;\nfor i in range(se... | Python | MIT License | pyomeca/bioptim | Added J_acados_mayer variable in nlp |
538,858 | 17.06.2020 11:46:09 | 14,400 | 10eca77e661656d70786ae57c44375a702a4ac40 | Added add_to_penalty_acados_mayer to fill J_acados_mayer | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/objective_functions.py",
"new_path": "biorbd_optim/objective_functions.py",
"diff": "@@ -91,9 +91,14 @@ class ObjectiveFunction:\n\"\"\"\nif quadratic:\nJ = casadi.dot(val, val) * weight\n+ J_acados_mayer = casadi.dot(nlp['X'][0], nlp['X'][0]) * w... | Python | MIT License | pyomeca/bioptim | Added add_to_penalty_acados_mayer to fill J_acados_mayer |
538,858 | 17.06.2020 16:35:24 | 14,400 | a7de814789c9e707f16754c97a151c1dfd1b4ea0 | Added generic interface functions | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -539,7 +539,8 @@ class OptimalControlProgram:\nnlp[\"plot\"][plot_name] = custom_plot\n- def solve(self, solver=\"ipopt\", show_online_optim=False, ret... | Python | MIT License | pyomeca/bioptim | Added generic interface functions |
538,858 | 17.06.2020 16:36:02 | 14,400 | d75fa55dd1e54f491bf8fc8d418464e7cc3581b2 | Added SolverInterface class | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -7,16 +7,16 @@ import scipy.linalg\nfrom .objective_functions import ObjectiveFunction\n-def acados_export_model(self):\n- # Declare model variables\n- x = self.nlp[... | Python | MIT License | pyomeca/bioptim | Added SolverInterface class |
538,858 | 17.06.2020 16:36:29 | 14,400 | 84a605e2f5891e5dc8b8c577b2f3b4a107b5c226 | Added AcadosInterface class | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -41,7 +41,17 @@ class SolverInterface:\nacados_model = acados_export_model(self)\nacados_ocp.model = acados_model\n- for i in range(self.nb_phases):\n+class AcadosIn... | Python | MIT License | pyomeca/bioptim | Added AcadosInterface class |
538,858 | 17.06.2020 16:37:18 | 14,400 | f42941c2540d3c2698eea51a3a146917aa2e1dc6 | Modified acados_export_model to work with new class | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -52,6 +52,26 @@ class AcadosInterface(SolverInterface):\nself.ocp_solver = None\n+ def acados_export_model(self, ocp):\n+ # Declare model variables\n+ x = ocp.nlp[0]... | Python | MIT License | pyomeca/bioptim | Modified acados_export_model to work with new class |
538,858 | 17.06.2020 16:39:24 | 14,400 | f777f7a5073a972b3ef8bcc7da1a0d50948333c5 | Modified prepare_acados to work with new class | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -72,63 +72,71 @@ class AcadosInterface(SolverInterface):\nself.acados_model.p = []\nself.acados_model.name = \"model_name\"\n+ def prepare_acados(self, ocp):\n+ # se... | Python | MIT License | pyomeca/bioptim | Modified prepare_acados to work with new class |
538,858 | 17.06.2020 16:40:05 | 14,400 | 58dbe88f025062c372b480feebef20eca5c72914 | Added configure() for Acados solver | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -172,3 +172,22 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.dims.nbx_e = self.acados_ocp.dims.nx\nreturn self.acados_ocp\n+\n+ def configure(self, opt... | Python | MIT License | pyomeca/bioptim | Added configure() for Acados solver |
538,858 | 17.06.2020 16:40:38 | 14,400 | 9289b36592a4d04b428f51c5fe1b362099430ce5 | Added get_iterations() for Acados solver
Not implemented so pass for now | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -191,3 +191,6 @@ class AcadosInterface(SolverInterface):\nfor key in options:\nsetattr(self.acados_ocp.solver_options, key, options[key])\n+\n+ def get_iterations(se... | Python | MIT License | pyomeca/bioptim | Added get_iterations() for Acados solver
Not implemented so pass for now |
538,858 | 17.06.2020 16:41:19 | 14,400 | 7b0fa50cc6a194b876a70fc5d9274ac4c7ad3d88 | Added get_optimized_value() for Acados solver | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -194,3 +194,20 @@ class AcadosInterface(SolverInterface):\ndef get_iterations(self):\npass\n+\n+ def get_optimized_value(self, ocp):\n+ acados_x = np.array([self.ocp... | Python | MIT License | pyomeca/bioptim | Added get_optimized_value() for Acados solver |
538,858 | 17.06.2020 16:41:51 | 14,400 | 805124ede1adcd25dbb2f5d16512e5cfc1357638 | Added solve() for Acados solver | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -10,22 +10,9 @@ from .objective_functions import ObjectiveFunction\nclass SolverInterface:\ndef __init__(self):\nself.solver = None\n- u = self.nlp[0]['U'][0]\n- p =... | Python | MIT License | pyomeca/bioptim | Added solve() for Acados solver |
538,858 | 17.06.2020 16:43:57 | 14,400 | 00c98f23bddef1e278b35651890c2cbc0f612004 | Added SX_func variable in nlp | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -253,6 +253,7 @@ class OptimalControlProgram:\nnlp[\"J_acados_mayer\"] = []\nnlp[\"g\"] = []\nnlp[\"g_bounds\"] = []\n+ nlp[\"SX_func\"] = []\ndef __ad... | Python | MIT License | pyomeca/bioptim | Added SX_func variable in nlp |
538,858 | 17.06.2020 16:44:29 | 14,400 | 4b7100af26fa7b2b6b37a8e2ac7ba67d9c59eb16 | [WIP] Preparing ipopt_interface | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -551,18 +551,6 @@ class OptimalControlProgram:\n:return: Solution of the problem. (dictionary)\n\"\"\"\n- if solver == \"acados\":\n- os.environ[\"ACAD... | Python | MIT License | pyomeca/bioptim | [WIP] Preparing ipopt_interface |
538,858 | 17.06.2020 16:49:30 | 14,400 | b8c775591ed5082f725c001fc5203ccd41d6df85 | Added new file: solver_interface.py contains class SolverInterface | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "biorbd_optim/solver_interface.py",
"diff": "+\n+class SolverInterface:\n+ def __init__(self):\n+ self.solver = None\n+\n+ def configure(self, **options):\n+ raise RuntimeError(\"SolverInterface is an abstract class\")\n+\n+ def solve(self):\n+ r... | Python | MIT License | pyomeca/bioptim | Added new file: solver_interface.py contains class SolverInterface |
538,858 | 17.06.2020 16:51:16 | 14,400 | 38018d0ba12642fb3e744c01f816c171501dd9f7 | Import SolverInterface in acados_interface.py | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -5,23 +5,7 @@ from casadi import MX, Function, SX, vertcat\nimport numpy as np\nimport scipy.linalg\nfrom .objective_functions import ObjectiveFunction\n-\n-\n-class... | Python | MIT License | pyomeca/bioptim | Import SolverInterface in acados_interface.py |
538,858 | 18.06.2020 09:22:19 | 14,400 | 549b48eaefdc20e2e352bd93c0227bdc30c94866 | Added new ipopt_interface.py file | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "biorbd_optim/ipopt_interface.py",
"diff": "+import os\n+import biorbd\n+from casadi import MX, Function, SX, vertcat\n+import numpy as np\n+import casadi\n+from .solver_interface import SolverInterface\n+from .path_conditions import Bounds, Inte... | Python | MIT License | pyomeca/bioptim | Added new ipopt_interface.py file |
538,858 | 18.06.2020 10:11:44 | 14,400 | 224776d3f0507b171f1caf6deb71286dd77f88b0 | Added online_optim and get_iterations func | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/ipopt_interface.py",
"new_path": "biorbd_optim/ipopt_interface.py",
"diff": "-import os\n-import biorbd\n-from casadi import MX, Function, SX, vertcat\n-import numpy as np\n+import pickle\n+from casadi import sum1\nimport casadi\n-from .solver_int... | Python | MIT License | pyomeca/bioptim | Added online_optim and get_iterations func |
538,858 | 18.06.2020 10:41:56 | 14,400 | b19c56426f2e8be91c7cad3d9073e175a0646d41 | Moved error to acados_interface | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -40,8 +40,13 @@ class AcadosInterface(SolverInterface):\nself.acados_model.name = \"model_name\"\ndef prepare_acados(self, ocp):\n+\n+ if ocp.nb_phases > 1:\n+ raise... | Python | MIT License | pyomeca/bioptim | Moved error to acados_interface |
538,858 | 18.06.2020 10:42:19 | 14,400 | 098f57354c39af2edd944e909542e82f9685020f | Added dispatch functions | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/ipopt_interface.py",
"new_path": "biorbd_optim/ipopt_interface.py",
"diff": "import pickle\n-from casadi import sum1\nimport casadi\n-from .path_conditions import Bounds, InterpolationType\nfrom .plot import OnlineCallback\n-\n-\n-\n-\nfrom .acado... | Python | MIT License | pyomeca/bioptim | Added dispatch functions |
538,858 | 19.06.2020 09:45:22 | 14,400 | 735923554ee8968c14afa0c6a9aa0ca9bfbb00b3 | Change p for p_SX | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/constraints.py",
"new_path": "biorbd_optim/constraints.py",
"diff": "@@ -126,7 +126,7 @@ class ConstraintFunction(PenaltyFunctionAbstract):\npenalty_idx = ConstraintFunction._reset_penalty(ocp, None, -1)\n# Loop over shooting nodes or use parallel... | Python | MIT License | pyomeca/bioptim | Change p for p_SX |
538,858 | 19.06.2020 09:46:23 | 14,400 | 529cba5fe544f55ef1b1dd1ead1bf2b83f1c2df1 | Added acados_dir in solver_options | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -559,11 +559,13 @@ class OptimalControlProgram:\nsolver_ocp.prepare_ipopt(self)\nelif solver == \"acados\":\n- os.environ[\"ACADOS_SOURCE_DIR\"] = list... | Python | MIT License | pyomeca/bioptim | Added acados_dir in solver_options |
538,858 | 19.06.2020 09:47:05 | 14,400 | 8cbcf37faf752d119cf1262d91f5cf6733925997 | Fixed show_online_optim for ipopt | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/ipopt_interface.py",
"new_path": "biorbd_optim/ipopt_interface.py",
"diff": "@@ -15,8 +15,8 @@ class IpoptInterface(SolverInterface):\n# Dispatch the objective function values and create arg\nself.nlp, self.arg = ocp.dispatch_bounds()\n- def onlin... | Python | MIT License | pyomeca/bioptim | Fixed show_online_optim for ipopt |
538,858 | 19.06.2020 09:49:50 | 14,400 | 5e95155e7360c4d3a3816c1d944039a870c19702 | [WIP] Added NONLINEAR_LS cost type for acados | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -59,8 +59,8 @@ class AcadosInterface(SolverInterface):\nself.acados_ocp.dims.N = ocp.nlp[i][\"ns\"]\n# set cost module\n- self.acados_ocp.cost.cost_type = 'EXTERNAL'... | Python | MIT License | pyomeca/bioptim | [WIP] Added NONLINEAR_LS cost type for acados |
538,858 | 19.06.2020 09:50:31 | 14,400 | 47128fc1159b3fef70685ca59fb66cb5660c925f | [WIP] Added add_to_sx_func for penalty | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -137,6 +137,13 @@ class PenaltyFunctionAbstract:\n)\npenalty_type._add_to_penalty(ocp, nlp, val, **extra_param)\n+ @staticmethod\n+ def _add_to_sx_func(nlp, name, function, *all_param... | Python | MIT License | pyomeca/bioptim | [WIP] Added add_to_sx_func for penalty |
538,855 | 19.06.2020 10:43:55 | 14,400 | eb6f2681a0fa327f7d35002ddc56e67d86596fe3 | Initial guess spline interpolation
X and U | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/enums.py",
"new_path": "biorbd_optim/enums.py",
"diff": "@@ -49,6 +49,7 @@ class InterpolationType(Enum):\nCONSTANT_WITH_FIRST_AND_LAST_DIFFERENT = 1\nLINEAR = 2\nEACH_FRAME = 3\n+ SPLINE = 4\nclass PlotType(Enum):\n"
},
{
"change_type": "... | Python | MIT License | pyomeca/bioptim | Initial guess spline interpolation
X and U |
538,851 | 19.06.2020 12:56:18 | 14,400 | ba4117346aed1c12556fc2a7042ec27484d7c7ea | Add CustomPlot class 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 | Add CustomPlot class in __init__ |
538,851 | 19.06.2020 12:57:47 | 14,400 | 7d2e595ab065155dce38201ec866a58e8d028467 | fix : something can be before q and qdot in nlp["x"] | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -265,7 +265,7 @@ class Problem:\nlegend_qdot = [\"qdot_\" + nlp[\"model\"].nameDof()[idx].to_string() for idx in nlp[\"q_dot_mapping\"].reduce.map_idx]\nif as_states:\n- nlp... | Python | MIT License | pyomeca/bioptim | fix : something can be before q and qdot in nlp["x"] |
538,851 | 19.06.2020 12:58:27 | 14,400 | 20a92bf658885b378c155c15db11feba8c6bdb15 | recalculate nx and nu after each configuration | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -280,6 +280,9 @@ class Problem:\nnlp[\"var_controls\"] = {\"q\": nlp[\"nbQ\"], \"q_dot\": nlp[\"nbQdot\"]}\n# Add plot if it happens\n+ nlp[\"nx\"] = nlp[\"x\"].rows()\n+ nl... | Python | MIT License | pyomeca/bioptim | recalculate nx and nu after each configuration |
538,851 | 19.06.2020 12:59:16 | 14,400 | 36a0ed1665aa74d1ebd6ef33125c0da83a300307 | fix : something can be before tau in controls nlp["u"] | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -295,19 +295,19 @@ class Problem:\n)\ndof_names = nlp[\"model\"].nameDof()\n- u = MX()\n+ tau = MX()\nfor i in nlp[\"tau_mapping\"].reduce.map_idx:\n- u = vertcat(u, MX.sym(... | Python | MIT License | pyomeca/bioptim | fix : something can be before tau in controls nlp["u"] |
538,851 | 19.06.2020 12:59:52 | 14,400 | 2d8c09fb185324be5d5876b4adfb518f29bcd7c3 | Adds muscles in configure_muscles | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -352,6 +352,12 @@ class Problem:\ncombine = None\nif as_states:\n+ muscles = MX()\n+ for i in range(nlp[\"nbMuscle\"]):\n+ muscles = vertcat(muscles, MX.sym(f\"Muscle_{nlp['... | Python | MIT License | pyomeca/bioptim | Adds muscles in configure_muscles |
538,851 | 19.06.2020 13:02:07 | 14,400 | 1b143c909b6097bda9d830f1eeb4fc6e6c2a519f | remove adding of muscle in all problem because adding is in config_mus | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -92,12 +92,6 @@ class Problem:\nProblem.configure_q_qdot(nlp, True, False)\nProblem.configure_muscles(nlp, False, True)\n- u = MX()\n- for i in range(nlp[\"nbMuscle\"]):\n- ... | Python | MIT License | pyomeca/bioptim | remove adding of muscle in all problem because adding is in config_mus |
538,851 | 19.06.2020 13:32:05 | 14,400 | eca985852778fbae8ccbcc1da39534d4053bb3e2 | fix bug : create dict varstates/controls if it dosen't exit | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -217,7 +217,12 @@ class Problem:\nif as_states:\nnlp[\"x\"] = vertcat(nlp[\"x\"], q, q_dot)\n+ if \"var_states\" in nlp.keys():\n+ nlp[\"var_states\"][\"q\"] = nlp[\"nbQ\"]\... | Python | MIT License | pyomeca/bioptim | fix bug : create dict varstates/controls if it dosen't exit |
538,855 | 19.06.2020 13:46:28 | 14,400 | 5ce477b26666392cdc8e72b65779c4fef90dc908 | Bounds spline interpolation | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -337,15 +337,15 @@ class OptimalControlProgram:\noffset = 0\nfor k in range(nlp[\"ns\"] + 1):\nX.append(V.nz[offset : offset + nlp[\"nx\"]])\n- V_bound... | Python | MIT License | pyomeca/bioptim | Bounds spline interpolation |
538,855 | 19.06.2020 15:59:33 | 14,400 | 9f9bd5a8ee510dd2db1bc3a753a131141aed1176 | Custom bound function | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/enums.py",
"new_path": "biorbd_optim/enums.py",
"diff": "@@ -50,7 +50,7 @@ class InterpolationType(Enum):\nLINEAR = 2\nEACH_FRAME = 3\nSPLINE = 4\n-\n+ CUSTOM = 5\nclass PlotType(Enum):\n\"\"\"\n"
},
{
"change_type": "MODIFY",
"old_pat... | Python | MIT License | pyomeca/bioptim | Custom bound function |
538,851 | 22.06.2020 11:24:33 | 14,400 | 2e63ad04cde8af64acfc0e55f6e40607fd78b99f | add var_states and var_controls at the creation of nlp | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -243,6 +243,8 @@ class OptimalControlProgram:\nnlp[\"nbTau\"] = 0\nnlp[\"nbMuscles\"] = 0\nnlp[\"plot\"] = {}\n+ nlp[\"var_states\"] = {}\n+ nlp[\"var_... | Python | MIT License | pyomeca/bioptim | add var_states and var_controls at the creation of nlp |
538,851 | 22.06.2020 11:25:06 | 14,400 | fcd7d6bbe458ba5db79178b03fb777385a50f323 | var_states and _var_controls already exit now | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -217,11 +217,8 @@ class Problem:\nif as_states:\nnlp[\"x\"] = vertcat(nlp[\"x\"], q, q_dot)\n- if \"var_states\" in nlp.keys():\nnlp[\"var_states\"][\"q\"] = nlp[\"nbQ\"]\nn... | Python | MIT License | pyomeca/bioptim | var_states and _var_controls already exit now |
538,857 | 22.06.2020 14:20:26 | 14,400 | f509138b5aafb9062bb691c1793d256ed0b3ede5 | Started to add possibility to limit plots to bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -17,7 +17,7 @@ from .utils import check_version\nclass CustomPlot:\ndef __init__(\n- self, update_function, plot_type=PlotType.PLOT, axes_idx=None, legend=(), combine_to=None, color=None, y... | Python | MIT License | pyomeca/bioptim | Started to add possibility to limit plots to bounds |
538,855 | 22.06.2020 17:51:01 | 14,400 | bf60b8e0bba6d520b1e140de64da27032559f975 | Changed the test to numeric equalities | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -11,6 +11,8 @@ from biorbd_optim import (\nData,\nOdeSolver,\nInterpolationType,\n+ Bounds,\n+ InitialConditions,\n)\nfrom .utils import TestUtils\n@@ -158,50 +160,460 @@ ... | Python | MIT License | pyomeca/bioptim | Changed the test to numeric equalities |
538,857 | 23.06.2020 09:16:23 | 14,400 | 6a0ea5370217fcc48ee234b026dabce1159cd98f | [WIP] Temporary modification | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -17,7 +17,7 @@ from .utils import check_version\nclass CustomPlot:\ndef __init__(\n- self, update_function, plot_type=PlotType.PLOT, axes_idx=None, legend=(), combine_to=None, color=None, y... | Python | MIT License | pyomeca/bioptim | [WIP] Temporary modification |
538,858 | 23.06.2020 14:30:31 | 14,400 | 76aa9505da60a6d4b5b4f511f4eecd2f53ceffd3 | Added SX_func for align_markers | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -5,7 +5,7 @@ from math import inf\nimport biorbd\nimport casadi\n-from casadi import MX, vertcat, sum1\n+from casadi import MX, vertcat, sum1, SX\nfrom... | Python | MIT License | pyomeca/bioptim | Added SX_func for align_markers |
538,858 | 23.06.2020 14:31:21 | 14,400 | a57ed3f05039083af56978f42c71409687817a7f | Added SX_func for minimize_markers | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -64,11 +64,12 @@ class PenaltyFunctionAbstract:\ndata_to_track, [3, max(markers_idx) + 1, nlp[\"ns\"] + 1]\n)\n+ PenaltyFunctionAbstract._add_to_sx_func(nlp, \"biorbd_markers\", nlp[\... | Python | MIT License | pyomeca/bioptim | Added SX_func for minimize_markers |
538,858 | 23.06.2020 14:31:57 | 14,400 | f1fe7a515d8fd14ffcc2ec7e1436546115575a0b | Added SX func for minimize_predicted_com_height | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -285,12 +285,13 @@ class PenaltyFunctionAbstract:\nThe height is assumed to be the third axis.\n\"\"\"\ng = -9.81 # get gravity from biorbd\n-\n+ PenaltyFunctionAbstract._add_to_sx_fu... | Python | MIT License | pyomeca/bioptim | Added SX func for minimize_predicted_com_height |
538,858 | 23.06.2020 14:32:35 | 14,400 | 4e0afaaad4583eeade3c7199f949518909530bc3 | Added SX_func for align_segment_with_custom_rt | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -334,11 +334,16 @@ class PenaltyFunctionAbstract:\nPenaltyFunctionAbstract._check_idx(\"segment\", segment_idx, nlp[\"model\"].nbSegment())\nPenaltyFunctionAbstract._check_idx(\"rt\",... | Python | MIT License | pyomeca/bioptim | Added SX_func for align_segment_with_custom_rt |
538,858 | 23.06.2020 16:23:04 | 14,400 | 623bd41d80ff8ab6d74a28434dbad9bfe56f67f6 | [WIP] Added SX_func to minimize_markers_displacement | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -87,16 +87,21 @@ class PenaltyFunctionAbstract:\nmarkers_idx = PenaltyFunctionAbstract._check_and_fill_index(\nmarkers_idx, nlp[\"model\"].nbMarkers(), \"markers_idx\"\n)\n+\n+ Penalt... | Python | MIT License | pyomeca/bioptim | [WIP] Added SX_func to minimize_markers_displacement |
538,858 | 23.06.2020 16:23:28 | 14,400 | 7a602acb13d52285ea844392ac9d9d1aa1cf642a | Added SX_func to minmize_markers_velocity | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -138,10 +138,14 @@ class PenaltyFunctionAbstract:\ndata_to_track, [3, max(markers_idx) + 1, nlp[\"ns\"] + 1]\n)\n+ #TODO: make sure third argument is the right one\n+ PenaltyFunctionA... | Python | MIT License | pyomeca/bioptim | Added SX_func to minmize_markers_velocity |
538,858 | 23.06.2020 16:23:53 | 14,400 | 31b9eeb973cee3fe41670b8561bde61cc039851c | [WIP] Added SX_func to align_segment_with_custom_rt | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/penalty.py",
"new_path": "biorbd_optim/penalty.py",
"diff": "@@ -352,11 +352,13 @@ class PenaltyFunctionAbstract:\nnq = nlp[\"q_mapping\"].reduce.len\nfor v in x:\nq = nlp[\"q_mapping\"].expand.map(v[:nq])\n- r_seg = nlp[\"SX_func\"][\"biorbd_glob... | Python | MIT License | pyomeca/bioptim | [WIP] Added SX_func to align_segment_with_custom_rt |
538,857 | 23.06.2020 20:19:04 | 14,400 | e1e50a03f2405f9a15bc9a11c1b00a452090d600 | Bounds slicing function | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "+import numpy as np\n+from casadi import MX, vertcat, Function\n+from enum import Enum\n+\n+from .dynamics import Dynamics\n+from .mapping import BidirectionalMapping, Mapping\... | Python | MIT License | pyomeca/bioptim | Bounds slicing function |
538,857 | 23.06.2020 20:19:38 | 14,400 | c9aef05384061a46692e21fd5abdd448885779aa | q and qdot slicing test | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -273,19 +273,21 @@ class Problem:\nlegend_q = [\"q_\" + nlp[\"model\"].nameDof()[idx].to_string() for idx in nlp[\"q_mapping\"].reduce.map_idx]\nlegend_qdot = [\"qdot_\" + n... | Python | MIT License | pyomeca/bioptim | q and qdot slicing test |
538,857 | 23.06.2020 20:20:34 | 14,400 | 278361c841c472f3cd5d7bd07a128e72e90b1db0 | Started to add the possibility to have bounds when ProblemType is called | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -184,15 +184,20 @@ class OptimalControlProgram:\n# Declare the time to optimize\nself.__define_variable_time(initial_time_guess, time_min, time_max)\n-... | Python | MIT License | pyomeca/bioptim | Started to add the possibility to have bounds when ProblemType is called |
538,857 | 23.06.2020 20:21:28 | 14,400 | dc094a2608f05c3c489c99129ab9177865a50ec9 | [WIP-X11Crash] Modify plot for ylim with bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -17,7 +17,7 @@ from .utils import check_version\nclass CustomPlot:\ndef __init__(\n- self, update_function, plot_type=PlotType.PLOT, axes_idx=None, legend=(), combine_to=None, color=None, y... | Python | MIT License | pyomeca/bioptim | [WIP-X11Crash] Modify plot for ylim with bounds |
538,857 | 23.06.2020 20:22:52 | 14,400 | a8e168e368303e1ade85030079a41a064bbe54bf | Removing involuntary modifs | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -7,13 +7,6 @@ from .mapping import BidirectionalMapping, Mapping\nfrom .plot import CustomPlot\nfrom .enums import PlotType\nfrom .path_conditions import Bounds\n-from casad... | Python | MIT License | pyomeca/bioptim | Removing involuntary modifs |
538,857 | 24.06.2020 13:52:45 | 14,400 | 947a14489915809ee18977bdfb66ad749cb09979 | Started to plot bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -46,7 +46,7 @@ class CustomPlot:\nclass PlotOcp:\n- def __init__(self, ocp, automatically_organize=True, use_bounds_as_ylimit=True, show_bounds=False):\n+ def __init__(self, ocp, automatica... | Python | MIT License | pyomeca/bioptim | Started to plot bounds |
538,857 | 24.06.2020 13:54:10 | 14,400 | d6996c90555d2066103f498ff658fd82deef64e5 | Tau bounds managing and fix on slicing function of path condition class | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/problem_type.py",
"new_path": "biorbd_optim/problem_type.py",
"diff": "@@ -309,12 +309,13 @@ class Problem:\nif as_states:\nnlp[\"x\"] = u\nnlp[\"var_states\"] = {\"tau\": nlp[\"nbTau\"]}\n- # Add plot if it happens\n+ # Add plot if it happens, do... | Python | MIT License | pyomeca/bioptim | Tau bounds managing and fix on slicing function of path condition class |
538,857 | 24.06.2020 15:26:36 | 14,400 | 62e94a12e3fdb6c4d78ee1eb3d25b9ee9bd65742 | Margins added | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -174,8 +174,8 @@ class PlotOcp:\nif nlp[\"plot\"][variable].ylim:\nax.set_ylim(nlp[\"plot\"][variable].ylim)\nelif self.use_bounds_as_ylimit and nlp[\"plot\"][variable].bounds is not None:\... | Python | MIT License | pyomeca/bioptim | Margins added |
538,857 | 24.06.2020 15:28:04 | 14,400 | 3e2bcb0081028150bf33a71856f1f4819b64249c | Plot bounds management | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -217,9 +217,8 @@ class PlotOcp:\nbounds_min = np.array([self.axes[variable][0].bounds.min.evaluate_at(k)[j] for k in range(nlp[\"ns\"]+1)])\nbounds_max = np.array([self.axes[variable][0].bo... | Python | MIT License | pyomeca/bioptim | Plot bounds management |
538,855 | 25.06.2020 17:50:44 | 14,400 | aadfab7fe2326ea20459e0a3cf0822bf261219ab | Deal with quaternions | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -25,6 +25,10 @@ class Dynamics:\nDynamics.apply_parameters(parameters, nlp)\nq, qdot, tau = Dynamics.dispatch_q_qdot_tau_data(states, controls, nlp)\n+ if biorbd.Model.nbQuat(nlp[\"... | Python | MIT License | pyomeca/bioptim | Deal with quaternions |
538,851 | 25.06.2020 18:42:08 | 14,400 | ba73e67c92bd971f025348477a96165e1228d80e | adds Simulate class | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "from .__version__ import __version__\n-from .enums import Axe, OdeSolver, Instant, InterpolationType, PlotType\nfrom .constraints import Constraint\n-from .objective_functions import O... | Python | MIT License | pyomeca/bioptim | adds Simulate class |
538,851 | 25.06.2020 18:42:48 | 14,400 | 962076d0b0402e0660aa0f06b221eaecbb12ae9a | New file to single shooting/simulation with controls given | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/simulate.py",
"new_path": "biorbd_optim/simulate.py",
"diff": "+import numpy as np\n+\n+\n+class Simulate:\n+ @staticmethod\n+ def _concat_variables(variables, offset_phases, idx_nodes):\n+ var = np.ndarray(0)\n+ for key in variables.keys():\n+ va... | Python | MIT License | pyomeca/bioptim | New file to single shooting/simulation with controls given |
538,855 | 25.06.2020 18:58:28 | 14,400 | e0545e295763bf3647a59aa99a36abae6a01736b | Added example
The convergence is challenging. If you have other ideas of other simpler example, I'm interested. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/torque_driven_ocp/Trampo_Quaternions.py",
"diff": "+import numpy as np\n+import biorbd\n+\n+from biorbd_optim import (\n+ OptimalControlProgram,\n+ ProblemType,\n+ Objective,\n+ Bounds,\n+ QAndQDotBounds,\n+ InitialConditions,\n+ ShowRe... | Python | MIT License | pyomeca/bioptim | Added example
The convergence is challenging. If you have other ideas of other simpler example, I'm interested. |
538,857 | 25.06.2020 22:50:30 | 14,400 | 5741cac22ca841ed4f54369f338f24501cfa27e9 | plots_bounds changed | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -214,11 +214,17 @@ class PlotOcp:\nself.plots_vertical_lines.append(ax.axvline(time, linestyle=\"--\", linewidth=1.2, c=\"k\"))\nif self.show_bounds and self.use_bounds_as_ylimit and self.a... | Python | MIT License | pyomeca/bioptim | plots_bounds changed |
538,857 | 25.06.2020 22:51:46 | 14,400 | 8c629f7426a0835d3917353f3dba0a2d34cdd5f5 | ylim values fix | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -165,7 +165,7 @@ class PlotOcp:\nself.plot_func[variable][i] = nlp[\"plot\"][variable]\nmapping = self.plot_func[variable][i].phase_mappings.map_idx\n- for k in mapping:\n+ for ctr, k in en... | Python | MIT License | pyomeca/bioptim | ylim values fix |
538,857 | 25.06.2020 22:53:51 | 14,400 | a4893876761459444c25c7272f2b5e90db5204c3 | updating xdata for plot bounds right way | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -362,9 +362,10 @@ class PlotOcp:\nax.set_xlim(0, self.t[-1][-1])\nif self.plots_bounds:\n- for plot_bounds in self.plots_bounds[0]:\n- plot_bounds.set_xdata(self.t[phase_idx])\n- ax = plot_... | Python | MIT License | pyomeca/bioptim | updating xdata for plot bounds right way |
538,843 | 26.06.2020 15:08:30 | -7,200 | bb7190d55040a0c305cf5d75ed8b91de2c17862b | Necessary changes for tests to pass. TODO colocation is broken with SX graph. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/__init__.py",
"new_path": "biorbd_optim/__init__.py",
"diff": "@@ -10,3 +10,4 @@ from .mapping import Mapping, BidirectionalMapping\nfrom .optimal_control_program import OptimalControlProgram\nfrom .variable_optimization import Data\nfrom .continu... | Python | MIT License | pyomeca/bioptim | Necessary changes for tests to pass. TODO colocation is broken with SX graph. |
538,855 | 26.06.2020 10:04:00 | 14,400 | 646f943bc5e9a3337c81512bcda6cb929a598787 | Oups, forgot to change a m.nbDof for a m.nbQ | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/integrator.py",
"new_path": "biorbd_optim/integrator.py",
"diff": "@@ -33,7 +33,7 @@ def RK4(Model, ode, ode_opt):\nx[:, i] = x[:, i - 1] + h / 6 * (k1 + 2 * k2 + 2 * k3 + k4)\nQuat_idx = []\n- for j in range(Model.nbDof() + 1):\n+ for j in range(... | Python | MIT License | pyomeca/bioptim | Oups, forgot to change a m.nbDof for a m.nbQ |
538,855 | 26.06.2020 16:26:38 | 14,400 | f65e6fafd7d5a52b8a1bf75cc7ecb34cff64c89a | Applied changes to all types of dynamics | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/dynamics.py",
"new_path": "biorbd_optim/dynamics.py",
"diff": "@@ -55,7 +55,8 @@ class Dynamics:\nqddot = biorbd.Model.ForwardDynamicsConstraintsDirect(nlp[\"model\"], q, qdot, tau).to_mx()\n- qdot_reduced = nlp[\"q_mapping\"].reduce.map(qdot)\n+ ... | Python | MIT License | pyomeca/bioptim | Applied changes to all types of dynamics |
538,855 | 26.06.2020 18:23:00 | 14,400 | b02c490e0b3d381f2ada22e54670428986892e25 | Changed quaternion index | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/integrator.py",
"new_path": "biorbd_optim/integrator.py",
"diff": "@@ -33,17 +33,20 @@ def RK4(ode, ode_opt):\nk4 = fun(x[:, i - 1] + h * k3, u, p)[:, idx]\nx[:, i] = x[:, i - 1] + h / 6 * (k1 + 2 * k2 + 2 * k3 + k4)\n+ nb_dof = 0\nquat_idx = []\n... | Python | MIT License | pyomeca/bioptim | Changed quaternion index |
538,843 | 29.06.2020 09:24:25 | -7,200 | 6ee32f2f8ff6c9757595975b29aba945e81f4f48 | cleaned tests. | [
{
"change_type": "MODIFY",
"old_path": "tests/test_getting_started.py",
"new_path": "tests/test_getting_started.py",
"diff": "@@ -63,8 +63,7 @@ def test_pendulum(nb_threads):\nTestUtils.save_and_load(sol, ocp, True)\n-@pytest.mark.parametrize(\"ode_solver\", [OdeSolver.RK])\n-def test_custom_constra... | Python | MIT License | pyomeca/bioptim | cleaned tests. |
538,843 | 29.06.2020 14:45:25 | -7,200 | 95fb48df8b7c997ab63cddcaab3b4ea51587c715 | Added possibility of building SX and MX graph | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/acados_interface.py",
"new_path": "biorbd_optim/acados_interface.py",
"diff": "@@ -23,13 +23,12 @@ class AcadosInterface(SolverInterface):\n# Declare model variables\nx = ocp.nlp[0][\"X\"][0]\nu = ocp.nlp[0][\"U\"][0]\n- p = ocp.nlp[0][\"p_SX\"]\n... | Python | MIT License | pyomeca/bioptim | Added possibility of building SX and MX graph |
538,843 | 29.06.2020 14:48:41 | -7,200 | 0cc5c837f2648edfc25f45cf68cf1d72eb15d98f | Added test on SX/MX graph construction and resolution with IPOPT | [
{
"change_type": "MODIFY",
"old_path": "examples/getting_started/pendulum.py",
"new_path": "examples/getting_started/pendulum.py",
"diff": "@@ -13,7 +13,7 @@ from biorbd_optim import (\n)\n-def prepare_ocp(biorbd_model_path, final_time, number_shooting_points, nb_threads):\n+def prepare_ocp(biorbd_m... | Python | MIT License | pyomeca/bioptim | Added test on SX/MX graph construction and resolution with IPOPT |
538,843 | 29.06.2020 15:05:10 | -7,200 | 53a8e36614f6f8d179e4fce77fca748cd791ab16 | blacked code. | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/ipopt_interface.py",
"new_path": "biorbd_optim/ipopt_interface.py",
"diff": "-\nimport pickle\nimport casadi\nfrom .plot import OnlineCallback\n"
},
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
... | Python | MIT License | pyomeca/bioptim | blacked code. |
538,855 | 29.06.2020 09:32:29 | 14,400 | 5f4831461a7c6680a2d009cedfe15b11c35ca69a | Fixed collocation tests | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -287,11 +287,11 @@ class OptimalControlProgram:\nif nlp[\"ode_solver\"] == OdeSolver.COLLOCATION or nlp[\"ode_solver\"] == OdeSolver.RK:\node_opt[\"num... | Python | MIT License | pyomeca/bioptim | Fixed collocation tests |
538,857 | 29.06.2020 15:54:31 | 14,400 | a3449dc2fa5adb30b336c19c86a9a729e83ce03e | Small modifs of ocp completed | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/optimal_control_program.py",
"new_path": "biorbd_optim/optimal_control_program.py",
"diff": "@@ -184,20 +184,14 @@ class OptimalControlProgram:\n# Declare the time to optimize\nself.__define_variable_time(initial_time_guess, time_min, time_max)\n-... | Python | MIT License | pyomeca/bioptim | Small modifs of ocp completed |
538,857 | 29.06.2020 15:54:57 | 14,400 | af3af948f2c0304b6ad0e590f45082bbb14f5d5d | Correction in error of path_condition | [
{
"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 | Correction in error of path_condition |
538,857 | 29.06.2020 15:56:07 | 14,400 | 2d5641600866e1b95cd1131b5ee01cd4ac1ba53d | Adapted plots for a better show of bounds | [
{
"change_type": "MODIFY",
"old_path": "biorbd_optim/plot.py",
"new_path": "biorbd_optim/plot.py",
"diff": "@@ -46,7 +46,7 @@ class CustomPlot:\nclass PlotOcp:\n- def __init__(self, ocp, automatically_organize=True, use_bounds_as_ylimit=True, show_bounds=True):\n+ def __init__(self, ocp, automatical... | Python | MIT License | pyomeca/bioptim | Adapted plots for a better show of bounds |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.