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,841
08.06.2021 11:02:40
-7,200
fd02312cb8dd085a7e6540eb4f13b9fdbec15f1f
Updated list index objectives + blacked
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/graph.py", "new_path": "bioptim/gui/graph.py", "diff": "@@ -9,6 +9,7 @@ from ..limits.path_conditions import PathCondition\nfrom ..optimization.parameters import Parameter\nfrom ..misc.enums import Node\n+\nclass GraphAbstract:\n_return_line: \"\"\...
Python
MIT License
pyomeca/bioptim
Updated list index objectives + blacked
538,841
08.06.2021 11:36:51
-7,200
b41bf45511fead4a74ebcdae94fc66debbbb55dc
Updated tests + blacked
[ { "change_type": "MODIFY", "old_path": "tests/test_graph.py", "new_path": "tests/test_graph.py", "diff": "@@ -408,6 +408,8 @@ def prepare_ocp_custom_objectives(biorbd_model_path, ode_solver=OdeSolver.RK4())\nweight=1000,\nlist_index=6,\n)\n+ target = np.array([[1, 2, 3], [4, 5, 6]]).T[:, :, np.newax...
Python
MIT License
pyomeca/bioptim
Updated tests + blacked
538,841
08.06.2021 16:11:22
-7,200
c09e848ef3553611214124d50d167c86e27e155b
Display target instead of sliced_target for parameters
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/graph.py", "new_path": "bioptim/gui/graph.py", "diff": "@@ -479,8 +479,8 @@ class OcpToGraph(GraphAbstract):\nif parameter.penalty_list is not None:\nnode_str += f\"<b>Objective</b>: {self._get_parameter_function_name(parameter)} <br/>\"\nnode_str ...
Python
MIT License
pyomeca/bioptim
Display target instead of sliced_target for parameters
538,842
08.06.2021 16:50:15
14,400
93a998361627b7a3ede88d2bf853b84ca27e8cbf
Changes var_states and var_controls as a class
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/problem.py", "new_path": "bioptim/dynamics/problem.py", "diff": "@@ -395,8 +395,8 @@ class Problem:\n)\nif as_controls:\n+ nlp.var_controls.append(\"q\", nlp.shape[\"q\"], list(range(nlp.x.shape[0], q.shape[0])))\nnlp.u = vertcat(nlp.u, q)\n- ...
Python
MIT License
pyomeca/bioptim
Changes var_states and var_controls as a class
538,841
09.06.2021 17:05:05
-7,200
ab0957a95283aa245283defd267102c2b669757a
Updated display target for parameters
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/graph.py", "new_path": "bioptim/gui/graph.py", "diff": "@@ -477,10 +477,17 @@ class OcpToGraph(GraphAbstract):\nnode_str += f\"<b>Min bound</b>: {min_bound} <br/>\"\nnode_str += f\"<b>Max bound</b>: {max_bound} <br/><br/>\"\nif parameter.penalty_li...
Python
MIT License
pyomeca/bioptim
Updated display target for parameters
538,841
10.06.2021 11:29:41
-7,200
1f6e50b784e9853290daf38398438176714772d9
Display markers index in graph + blacked
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/graph.py", "new_path": "bioptim/gui/graph.py", "diff": "@@ -124,6 +124,8 @@ class GraphAbstract:\nThe string to be completed\n\"\"\"\n+ if hasattr(objective, \"index\"):\n+ string += f\"<b>Index</b>: {objective.index}{self._return_line}\" if object...
Python
MIT License
pyomeca/bioptim
Display markers index in graph + blacked
538,841
18.06.2021 10:06:11
-7,200
6bd91ba1cfa71d7399825bd01a70a381feef0e84
Updated tests on graphs
[ { "change_type": "MODIFY", "old_path": "tests/test_graph.py", "new_path": "tests/test_graph.py", "diff": "@@ -458,6 +458,7 @@ def test_phase_transitions(with_mayer, with_lagrange, with_constraints):\n)\nif with_lagrange and with_mayer is not False:\nocp.nlp[0].J[0][0][\"objective\"].quadratic = Fals...
Python
MIT License
pyomeca/bioptim
Updated tests on graphs
538,841
22.06.2021 16:51:54
-7,200
616d8ad4af3efee4f4bb603e501b823339b8d14a
Updated readme including graphviz dependency
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -136,6 +136,7 @@ Here is a list of all direct dependencies (meaning that some dependencies may re\n- [vtk](https://vtk.org/)\n- [PyQt](https://www.riverbankcomputing.com/software/pyqt)\n- [bioviz](https://github...
Python
MIT License
pyomeca/bioptim
Updated readme including graphviz dependency
538,842
20.07.2021 18:28:57
14,400
77e3532d26e8b1fad81e88022e79a28092e5490c
Updating muscle driven with contact examples to bioptim 2.0.0
[ { "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": "@@ -8,10 +8,7 @@ from matplotlib import pyplot as plt\nimport numpy ...
Python
MIT License
pyomeca/bioptim
Updating muscle driven with contact examples to bioptim 2.0.0
538,841
21.07.2021 14:55:12
-7,200
a08f9ba05348f855ccd736a5b1fd6a80f677a04e
Added control type in graph
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/graph.py", "new_path": "bioptim/gui/graph.py", "diff": "@@ -537,7 +537,8 @@ class OcpToGraph(GraphAbstract):\nnode_str += f\"<b>Phase duration</b>: {round(self.ocp.nlp[phase_idx].t_initial_guess, 2)} s<br/>\"\nnode_str += f\"<b>Shooting nodes</b>: ...
Python
MIT License
pyomeca/bioptim
Added control type in graph
538,855
21.07.2021 13:49:13
14,400
ba21755c1b5d506924ccd29a64c9d8020972071f
Draft First try since the refactor
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/pendulum.py", "new_path": "examples/getting_started/pendulum.py", "diff": "@@ -8,7 +8,8 @@ This simple example is a good place to start investigating bioptim as it describ\nDuring the optimization process, the graphs are updated real-t...
Python
MIT License
pyomeca/bioptim
Draft First try since the refactor
538,855
21.07.2021 14:36:29
14,400
ff8e5b9dd7cac7d3e7c52ab43eef71c5fc75246d
Target + multiple obj
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/pendulum.py", "new_path": "examples/getting_started/pendulum.py", "diff": "@@ -21,10 +21,21 @@ from bioptim import (\nObjectiveFcn,\nObjective,\nPlotType,\n+ ObjectiveList,\n)\n-def plot_objectives(ocp, x, u, p):\n+def plot_objectives(...
Python
MIT License
pyomeca/bioptim
Target + multiple obj
538,855
21.07.2021 16:01:17
14,400
16e7e8a0028874a7a8e113869388c91583313778
Fixed multiphase and added matching colors
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/pendulum.py", "new_path": "examples/getting_started/pendulum.py", "diff": "@@ -8,6 +8,7 @@ This simple example is a good place to start investigating bioptim as it describ\nDuring the optimization process, the graphs are updated real-t...
Python
MIT License
pyomeca/bioptim
Fixed multiphase and added matching colors
538,855
21.07.2021 16:44:39
14,400
280db77cb02931982ca825ac12196a1d8eda037f
First step in adding point plot
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -207,6 +207,7 @@ class PlotOcp:\n\"general_options\": {\"use_tight_layout\": False},\n\"non_integrated_plots\": {\"linestyle\": \"-\", \"markersize\": 3, \"linewidth\": 1.1},\n\"integrated_pl...
Python
MIT License
pyomeca/bioptim
First step in adding point plot
538,841
22.07.2021 11:48:58
-7,200
179a94c04129db500cddba4ead723ee1f34f817d
Added and updated fatigue files (1)
[ { "change_type": "MODIFY", "old_path": "bioptim/__init__.py", "new_path": "bioptim/__init__.py", "diff": "@@ -147,12 +147,23 @@ multiphase can be found in 'examples/torque_driven_ocp'. For ACADOS specific exa\nfrom .misc.__version__ import __version__\nfrom .dynamics.configure_problem import Configu...
Python
MIT License
pyomeca/bioptim
Added and updated fatigue files (1)
538,841
22.07.2021 11:57:10
-7,200
66fdb3094c23287061058e9b631ccf6adab4586f
Updated optimal_control_program.py file with fatigue
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -28,6 +28,7 @@ from ..misc.__version__ import __version__\nfrom ..misc.enums import ControlType, Solver, Shooting\nfrom ..misc.mapping ...
Python
MIT License
pyomeca/bioptim
Updated optimal_control_program.py file with fatigue
538,841
22.07.2021 12:12:52
-7,200
9d3704bf1c8255b70fc41246cca972b481507dda
Updated file adding fatigue in torque_driven() dynamics
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -2,8 +2,9 @@ from typing import Union\nfrom casadi import horzcat, vertcat, MX, SX\n-from ..optimization.non_linear_program import NonLinearProgram\nfrom...
Python
MIT License
pyomeca/bioptim
Updated file adding fatigue in torque_driven() dynamics
538,855
22.07.2021 07:53:18
14,400
e0055962501f9a81cf40eb1bcde98fb0409f2a99
Tried to add the Mayer time to plot
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -39,6 +39,8 @@ class CustomPlot:\nThe ylim of the axes as specified in matplotlib\nbounds: Bounds\nThe bounds to show on the graph\n+ node_to_plot : list\n+ The node time to be plotted on the...
Python
MIT License
pyomeca/bioptim
Tried to add the Mayer time to plot
538,841
22.07.2021 14:40:51
-7,200
e53d0e68dfcae8d1085e8a394b11dc46495d020f
Possibility to apply fatigue on torques
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -5,7 +5,7 @@ from casadi import MX, vertcat, Function\nimport numpy as np\nfrom .dynamics_functions import DynamicsFunctions\n-from ..misc.enums import Plo...
Python
MIT License
pyomeca/bioptim
Possibility to apply fatigue on torques
538,841
22.07.2021 15:43:38
-7,200
1608c1ded19c9bce6c3196565432aed3ff6f954e
Added possibility to apply fatigue on muscles
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -190,7 +190,12 @@ class ConfigureProblem:\n@staticmethod\ndef muscle_driven(\n- ocp, nlp, with_excitations: bool = False, with_residual_torque: bool = Fals...
Python
MIT License
pyomeca/bioptim
Added possibility to apply fatigue on muscles
538,855
22.07.2021 20:42:04
14,400
f2a49500d032fab3f681609221a9ee7f5e1140b9
Made small changes requested by Pariterre
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -600,23 +600,9 @@ class PlotOcp:\nfor y in all_y:\ny_tp.append(y[idx, :])\nself.__append_to_ydata([y_tp])\n- elif self.plot_func[key][i].type == PlotType.POINT:\n+ else:\n+ if self.plot_func[...
Python
MIT License
pyomeca/bioptim
Made small changes requested by Pariterre
538,859
23.07.2021 11:45:11
14,400
9f15c8bf9826c48e9eb74fb50c63d31ec05fb5e0
Reshape objectives function to match Acados cost function dim
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -410,7 +410,7 @@ class AcadosInterface(SolverInterface):\nraise RuntimeError(f\"{objectives.type.name} is an incompatible objective term with LINEAR_LS c...
Python
MIT License
pyomeca/bioptim
Reshape objectives function to match Acados cost function dim
538,855
23.07.2021 14:26:48
14,400
462e468bb8303a3595546967bc05681b3bb8e519
Fixed the Mayer time problem
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -39,7 +39,7 @@ class CustomPlot:\nThe ylim of the axes as specified in matplotlib\nbounds: Bounds\nThe bounds to show on the graph\n- node_to_plot : list\n+ node_idx : list\nThe node time to ...
Python
MIT License
pyomeca/bioptim
Fixed the Mayer time problem
538,855
23.07.2021 15:37:51
14,400
08df1db8f20da5af63b3eb6672f1858642c6a96a
Added label for the legend of the graph can you point me out where I should put the 'plt.legend()' please ?
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -57,6 +57,7 @@ class CustomPlot:\nylim: Union[tuple, list] = None,\nbounds: Bounds = None,\nnode_idx: list = None,\n+ label: list = None,\n**parameters: Any,\n):\n\"\"\"\n@@ -82,6 +83,8 @@ cl...
Python
MIT License
pyomeca/bioptim
Added label for the legend of the graph @pariterre can you point me out where I should put the 'plt.legend()' please ?
538,852
23.07.2021 21:14:32
14,400
3ec0c8ba204421b266df3bf3baf11d5ed4cd6a6b
Modif in integrator for collocations
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/integrator.py", "new_path": "bioptim/dynamics/integrator.py", "diff": "@@ -432,7 +432,7 @@ class COLLOCATION(Integrator):\nself._d = self.cx.zeros(self.degree + 1)\n# Choose collocation points\n- time_points = [0] + collocation_points(self.deg...
Python
MIT License
pyomeca/bioptim
Modif in integrator for collocations
538,852
24.07.2021 07:34:16
14,400
ecb8341a2379dde97bb9366d343fad8ffaa262ef
Improve plot of collocation to account for nonuniform time
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/integrator.py", "new_path": "bioptim/dynamics/integrator.py", "diff": "@@ -510,10 +510,10 @@ class COLLOCATION(Integrator):\nfor j in range(1, self.degree+1):\n# Expression for the state derivative at the collocation point\n- #xp_j = 0\n- xp_j...
Python
MIT License
pyomeca/bioptim
Improve plot of collocation to account for nonuniform time
538,842
28.07.2021 16:27:09
14,400
06b3f136fa07e20a23ecfddbd0b6a9cd7b8335f2
fixed animation with DC
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -252,7 +252,7 @@ class Solution:\n\"\"\"\nself.ocp = Solution.SimplifiedOCP(ocp) if ocp else None\n- self.ns = [nlp.ns for nlp in self.ocp.nlp]\n+ self.ns = [nlp.ns ...
Python
MIT License
pyomeca/bioptim
fixed animation with DC
538,841
29.07.2021 09:13:48
-7,200
01ee05384502cb009eca3f754392c000aa4d4345
Updated examples with fatigue
[ { "change_type": "ADD", "old_path": null, "new_path": "examples/fatigue/pendulum.bioMod", "diff": "+version 4\n+\n+// Seg1\n+segment Seg1\n+ translations y\n+ rotations x\n+ ranges -1 5\n+ -2*pi 2*pi\n+ mass 1\n+ inertia\n+ 1 0 0\n+ 0 1 0\n+ 0 0 0.1\n+ com 0.1 0.1 -1\n+ mesh 0.0 0.0 0.0\n+ mesh 0.0 ...
Python
MIT License
pyomeca/bioptim
Updated examples with fatigue
538,841
29.07.2021 09:46:52
-7,200
17d2a84ae50268d5d03ca2674494f42aa6a0d2d1
Use None instead of mutable as default
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/configure_problem.py", "new_path": "bioptim/dynamics/configure_problem.py", "diff": "@@ -191,7 +191,7 @@ class ConfigureProblem:\ndef muscle_driven(\nocp,\nnlp,\n- fatigue: list = [], # TODO Do not use mutable as Default\n+ fatigue: list = Non...
Python
MIT License
pyomeca/bioptim
Use None instead of mutable as default
538,841
29.07.2021 11:03:06
-7,200
c95dfa8e79d09a22263be68774cf6981c22a0377
Use None instead of mutable for default (2)
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -298,7 +298,7 @@ class DynamicsFunctions:\nnlp,\nwith_contact: bool,\nwith_residual_torque: bool,\n- fatigue: list = [], # TODO Do not use mutable as def...
Python
MIT License
pyomeca/bioptim
Use None instead of mutable for default (2)
538,841
29.07.2021 11:07:51
-7,200
7846a139943638fa96ed4735d1eb99bbcde2f793
Put with_residual_torque to False as default
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/dynamics_functions.py", "new_path": "bioptim/dynamics/dynamics_functions.py", "diff": "@@ -297,7 +297,7 @@ class DynamicsFunctions:\nparameters: MX.sym,\nnlp,\nwith_contact: bool,\n- with_residual_torque: bool,\n+ with_residual_torque: bool = ...
Python
MIT License
pyomeca/bioptim
Put with_residual_torque to False as default
538,841
29.07.2021 14:09:17
-7,200
a8327a77334078f01ff242ba640f1535bfd705af
Added tests using fatigue on torque and muscles
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/test_fatigue.py", "diff": "+import pytest\n+import numpy as np\n+from bioptim import OdeSolver\n+\n+from .utils import TestUtils\n+\n+import biorbd_casadi as biorbd\n+\n+from bioptim.misc.enums import Fatigue\n+from bioptim import (\n+ Opt...
Python
MIT License
pyomeca/bioptim
Added tests using fatigue on torque and muscles
538,842
30.07.2021 16:02:20
14,400
10274efa1f4355582fa0c155e26f011e412ffc51
fix to handle parameter optimizations without penalty functions and associated plots
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -584,7 +584,7 @@ class PlotOcp:\n).states\ndata_controls = sol.controls\ndata_params = sol.parameters\n- data_params_in_dyn = np.array([data_params[key] for key in data_params if key != \"tim...
Python
MIT License
pyomeca/bioptim
fix to handle parameter optimizations without penalty functions and associated plots
538,855
03.08.2021 17:07:13
14,400
ec5b02f6d9acc2e6cbfbe2cfe75d00eb95992256
Fixed size problem for Mayer obj
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -637,6 +637,9 @@ class OptimalControlProgram:\ndef get_plotting_penalty_values(t, x, u, p, objective, dt):\n_target = objective.target[...
Python
MIT License
pyomeca/bioptim
Fixed size problem for Mayer obj
538,855
03.08.2021 17:38:45
14,400
be71930cd067626c5d8ee3f2d9d648aa8b71525c
Fixed time parameter problem
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -653,7 +653,7 @@ class OptimalControlProgram:\ncontinue\ndt = (\n- Function(\"time\", [nlp.parameters.cx], [objective.dt])(nlp.paramete...
Python
MIT License
pyomeca/bioptim
Fixed time parameter problem
538,855
04.08.2021 14:34:44
14,400
6e04b7e4cab7a0250e600b34c202b119c25ef1b3
Fixed variable time for multiphase
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -643,6 +643,10 @@ class OptimalControlProgram:\ndt = dt(p)\ndt = dt / (x.shape[1] - 1) if x.shape[1] > 1 else dt\n+ if not isinstance(o...
Python
MIT License
pyomeca/bioptim
Fixed variable time for multiphase
538,855
04.08.2021 15:20:51
14,400
32375ef3f6f490f0130b8129872de35a194ce735
Added the possibility to plot constraints also
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -734,8 +734,7 @@ class PlotOcp:\n\"\"\"\nUpdate the plotted data from ydata\n\"\"\"\n-\n- assert len(self.plots) == len(self.ydata)\n+ # assert len(self.plots) == len(self.ydata)\nfor i, plot...
Python
MIT License
pyomeca/bioptim
Added the possibility to plot constraints also
538,855
05.08.2021 08:13:42
14,400
bfb1dae0039d1cbb63dd7fa766463958e7b3c74e
Mixed variable/fixed time multi-phase
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -679,6 +679,8 @@ class OptimalControlProgram:\nif isinstance(penalty.type, ObjectiveFcn.Mayer):\ndt = 1\nelif isinstance(penalty.type, ...
Python
MIT License
pyomeca/bioptim
Mixed variable/fixed time multi-phase
538,855
05.08.2021 10:25:55
14,400
055c679ee24a27a797ae52ab0407862ae17976e2
Fixed multiple node_idx problem
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -654,9 +654,10 @@ class PlotOcp:\nself.__append_to_ydata([y_tp])\nelif self.plot_func[key][i].type == PlotType.POINT:\n- for node_idx in self.plot_func[key][i].node_idx:\n- y = np.empty((self...
Python
MIT License
pyomeca/bioptim
Fixed multiple node_idx problem
538,855
05.08.2021 10:40:42
14,400
6921dfa13aca9d14010e1b8b84cac7ffe135df20
Added the feature to an example
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/pendulum.py", "new_path": "examples/getting_started/pendulum.py", "diff": "@@ -106,7 +106,6 @@ def main():\n# Custom plots\nocp.add_plot_penalty(key='objectives')\n- ocp.add_plot_penalty(key='constraints')\n# --- Print ocp structure --...
Python
MIT License
pyomeca/bioptim
Added the feature to an example
538,855
05.08.2021 11:07:35
14,400
a33f603ce25406c68cb76e95cc4b5a44a8f52822
Updated readme + little docstring
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -311,6 +311,12 @@ sol = ocp.solve(show_online_optim=True)\n```\nIf you feel fancy, you can even activate the online optimization graphs!\nHowever, for such an easy problem, `Ipopt` won't leave you the time to ap...
Python
MIT License
pyomeca/bioptim
Updated readme + little docstring
538,855
05.08.2021 14:54:38
14,400
58c3016b713b2e4f32a7fa561c8534d405fd314e
Switched to point for target in default show_optim plots
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty_option.py", "new_path": "bioptim/limits/penalty_option.py", "diff": "@@ -384,11 +384,10 @@ class PenaltyOption(OptionGeneric):\nall_pn.ocp.add_plot(\nself.target_plot_name,\nlambda t, x, u, p: self.target_to_plot,\n- color=\"tab:red\",\n...
Python
MIT License
pyomeca/bioptim
Switched to point for target in default show_optim plots
538,855
05.08.2021 16:26:27
14,400
ded6764ccd5cc5dd308ac99bcc198c0d5d321bea
Patched for tracking of multiple subplots Note that this is a patch since I do not use muscles or actuators so I don't know what is the best way to visualize these data
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty_option.py", "new_path": "bioptim/limits/penalty_option.py", "diff": "@@ -381,10 +381,15 @@ class PenaltyOption(OptionGeneric):\n\"\"\"\nif self.target_to_plot is not None:\n+ if self.target_to_plot.shape[0] > 1:\n+ plot_type = PlotType.S...
Python
MIT License
pyomeca/bioptim
Patched for tracking of multiple subplots Note that this is a patch since I do not use muscles or actuators so I don't know what is the best way to visualize these data
538,855
06.08.2021 13:37:21
14,400
40ace99d34d4c64be8042904491b28a5169984cd
Added internal penalties watch out weighted_function returns weird values for continuity (too large to converge)
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -639,14 +639,20 @@ class OptimalControlProgram:\nfor nlp in self.nlp:\nif key == \"objectives\":\npenalties = nlp.J\n+ penalties_intern...
Python
MIT License
pyomeca/bioptim
Added internal penalties @pariterre watch out weighted_function returns weird values for continuity (too large to converge)
538,855
10.08.2021 11:01:40
14,400
c6f0ac6ee4f73d3589e48e483ec3ad095a6d2f19
Changed for ENUM
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -314,7 +314,7 @@ However, for such an easy problem, `Ipopt` won't leave you the time to appreciat\nFor a more complicated problem, you may also wish to visualize the objectives and constraints during the optimiz...
Python
MIT License
pyomeca/bioptim
Changed for ENUM
538,859
11.08.2021 09:35:45
14,400
c31fdbcbd4ebcc628fe677e9186cca1d1945a483
Add real total time to solve with acados.
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -11,6 +11,7 @@ from .solver_interface import SolverInterface\nfrom ..limits.objective_functions import ObjectiveFunction, ObjectiveFcn\nfrom ..limits.pat...
Python
MIT License
pyomeca/bioptim
Add real total time to solve with acados.
538,859
11.08.2021 09:40:06
14,400
f46cb8b74ba7307d2b2a291ffa7855526fd2430a
Add "frame to export" option and add u_init in advance wind funct
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/receding_horizon_optimization.py", "new_path": "bioptim/optimization/receding_horizon_optimization.py", "diff": "@@ -39,6 +39,8 @@ class RecedingHorizonOptimization(OptimalControlProgram):\nwindow_size: Union[int, list[int]]\nThe number of...
Python
MIT License
pyomeca/bioptim
Add "frame to export" option and add u_init in advance wind funct
538,855
11.08.2021 15:10:33
14,400
b153a845ef55c47a749bd2252930ce2d7b6395fe
Added an example of different nx nu phase transition Still not running, it is just a start :)
[ { "change_type": "ADD", "old_path": null, "new_path": "examples/torque_driven_ocp/double_pendulum.bioMod", "diff": "+version 4\n+\n+segment Seg1\n+ rotations x\n+ ranges -2*pi 2*pi\n+ mass 1\n+ inertia\n+ 1 0 0\n+ 0 1 0\n+ 0 0 0.1\n+ com 0.1 0.1 -1\n+ mesh 0.0 0.0 0.0\n+ mesh 0.0 -0.0 -0.9\n+ mesh 0...
Python
MIT License
pyomeca/bioptim
Added an example of different nx nu phase transition Still not running, it is just a start :)
538,855
11.08.2021 20:08:49
14,400
1ce0f096fe4288913eb666c359ab20423269c669
Addition of states_pre_idx and states_post_idx Still not working, but commiting before touching the mappings
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty_option.py", "new_path": "bioptim/limits/penalty_option.py", "diff": "from typing import Any, Union, Callable\nimport biorbd_casadi as biorbd\n-from casadi import horzcat, Function, MX, SX\n+from casadi import horzcat, vertcat, Function, ...
Python
MIT License
pyomeca/bioptim
Addition of states_pre_idx and states_post_idx Still not working, but commiting before touching the mappings
538,855
12.08.2021 10:25:53
14,400
f092bfe0815b0e0e6d52d96c1ffeb2054772f6fb
special case when no phase is specified in the mapping declaration
[ { "change_type": "MODIFY", "old_path": "bioptim/misc/mapping.py", "new_path": "bioptim/misc/mapping.py", "diff": "@@ -170,7 +170,7 @@ class BiMappingList(OptionDict):\noppose_to_second: Union[Mapping, int, list, tuple, range] = None,\noppose_to_first: Union[Mapping, int, list, tuple, range] = None,\...
Python
MIT License
pyomeca/bioptim
special case when no phase is specified in the mapping declaration
538,855
12.08.2021 14:07:43
14,400
082541b178811d7b744e586dd20b018b2af6f9ed
Continuity between phases
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -227,7 +227,7 @@ class IpoptInterface(SolverInterface):\ndef get_x_and_u_at_idx(_penalty, _idx):\nif _penalty.transition:\nocp = self.ocp\n- _x = horzcat(o...
Python
MIT License
pyomeca/bioptim
Continuity between phases
538,855
13.08.2021 12:46:55
14,400
a2c580fcfa10b04ec018c3ec2b1046d76b4fcfad
Small changes following pariterre's comments
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty_option.py", "new_path": "bioptim/limits/penalty_option.py", "diff": "@@ -167,8 +167,6 @@ class PenaltyOption(OptionGeneric):\nself.transition = False\nself.phase_pre_idx = None\nself.phase_post_idx = None\n- self.states_pre_idx = None\n-...
Python
MIT License
pyomeca/bioptim
Small changes following pariterre's comments #1
538,855
13.08.2021 13:17:22
14,400
1e0fa4d2c5f530a7077c55576fc72591ee9cf340
augmented ___getitem__
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/phase_transition.py", "new_path": "bioptim/limits/phase_transition.py", "diff": "@@ -235,8 +235,8 @@ class PhaseTransitionFunctions(PenaltyFunctionAbstract):\ntransition.states_pre_idx = list(range(nlp_pre.states.cx.shape[0]))\ntransition.states...
Python
MIT License
pyomeca/bioptim
augmented ___getitem__
538,855
13.08.2021 13:34:43
14,400
32964e68d7fa10bcd1b23c179dc8019a02f0c6d3
Modified example + small changes requested
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -383,12 +383,12 @@ class OptimalControlProgram:\nvariable_mappings_per_phase = [{} for _ in range(self.n_phases)]\nfor mappings in vari...
Python
MIT License
pyomeca/bioptim
Modified example + small changes requested #2
538,855
13.08.2021 15:10:56
14,400
385be035902683d407a9f8d390fa2e2409fa57ee
Tried to add the check in _add, but failed :(
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/phase_transition.py", "new_path": "bioptim/limits/phase_transition.py", "diff": "@@ -240,7 +240,8 @@ class PhaseTransitionFunctions(PenaltyFunctionAbstract):\nif states_pre.shape != states_post.shape:\nraise RuntimeError(\n- f\"Continuity can't ...
Python
MIT License
pyomeca/bioptim
Tried to add the check in _add, but failed :(
538,855
17.08.2021 11:46:47
14,400
dc5da1e8daf2f1d2b6e9a7d9622952a373bda5c9
Fixed the free variables problems
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/penalty_option.py", "new_path": "bioptim/limits/penalty_option.py", "diff": "@@ -284,9 +284,9 @@ class PenaltyOption(OptionGeneric):\nnlp_post = all_pn[1].nlp\nname = self.name.replace(\"->\", \"_\").replace(\" \", \"_\")\nif self.states_pre_idx...
Python
MIT License
pyomeca/bioptim
Fixed the free variables problems
538,855
17.08.2021 14:06:30
14,400
9223f79b8abefd4cb6b83afa552baa433289369d
Added a method for filling when all phases
[ { "change_type": "MODIFY", "old_path": "bioptim/misc/mapping.py", "new_path": "bioptim/misc/mapping.py", "diff": "@@ -190,16 +190,6 @@ class BiMappingList(OptionDict):\nbimapping: BiMapping\nThe BiMapping to copy\n\"\"\"\n- # To be removed when the check is ok in option.py line 27\n- self.automatic_...
Python
MIT License
pyomeca/bioptim
Added a method for filling when all phases
538,855
17.08.2021 14:31:17
14,400
3e11ff1de60e68b72035e0b8cbae48f40c836850
Small changes to the example to make it look like a gymnast on bars
[ { "change_type": "MODIFY", "old_path": "examples/torque_driven_ocp/double_pendulum.bioMod", "new_path": "examples/torque_driven_ocp/double_pendulum.bioMod", "diff": "@@ -54,8 +54,8 @@ endsegment\nrotations x\nrtinmatrix 0\nrt 0 0 0 xyz 0.1 0.1 -1\n- ranges -10*pi 10*pi\n- mass 2\n+ ranges -pi/2 pi/2...
Python
MIT License
pyomeca/bioptim
Small changes to the example to make it look like a gymnast on bars
538,855
20.08.2021 15:29:46
14,400
746a67801056a2a7f7fac51882c63479193d4875
Fixed custom_transitions with sx
[ { "change_type": "MODIFY", "old_path": "bioptim/limits/constraints.py", "new_path": "bioptim/limits/constraints.py", "diff": "@@ -29,7 +29,7 @@ class Constraint(PenaltyOption):\nmin_bound: Union[np.ndarray, float] = None,\nmax_bound: Union[np.ndarray, float] = None,\nquadratic: bool = False,\n- phas...
Python
MIT License
pyomeca/bioptim
Fixed custom_transitions with sx
538,855
23.08.2021 14:13:46
14,400
f22121e45fdc8da52bdeab383155c93da0511203
Added the mapping for controls too
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -231,7 +231,10 @@ class IpoptInterface(SolverInterface):\nocp.nlp[_penalty.phase_pre_idx].X[-1][_penalty.states_pre_idx, 0],\nocp.nlp[_penalty.phase_post_i...
Python
MIT License
pyomeca/bioptim
Added the mapping for controls too
538,842
02.09.2021 11:23:47
14,400
8b1dd47ff825d359af1891e7f6e31049a1e8f515
adapting the tests
[ { "change_type": "MODIFY", "old_path": "examples/optimal_time_ocp/pendulum_min_time_Mayer.py", "new_path": "examples/optimal_time_ocp/pendulum_min_time_Mayer.py", "diff": "@@ -117,7 +117,7 @@ def main():\node_solver=OdeSolver.RK4())\n# Let's show the objectives\n- # ocp.add_plot_penalty(CostType.OBJ...
Python
MIT License
pyomeca/bioptim
adapting the tests
538,842
02.09.2021 11:25:08
14,400
1ab0adaf4204b9b4b722016b65e3ab4a1c711621
double pendulum correction
[ { "change_type": "MODIFY", "old_path": "examples/torque_driven_ocp/double_pendulum.bioMod", "new_path": "examples/torque_driven_ocp/double_pendulum.bioMod", "diff": "@@ -22,14 +22,14 @@ endsegment\n// Marker 2\nmarker marker_2\nparent Seg1\n- position -0.0005 0.0688 -0.9542\n+ position 0 0 -1\nendma...
Python
MIT License
pyomeca/bioptim
double pendulum correction
538,842
22.09.2021 11:34:25
14,400
4a8b57a14db5b4fa1889b5969aa2c333cecda66a
updating the use of CVODES
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/ode_solver.py", "new_path": "bioptim/dynamics/ode_solver.py", "diff": "@@ -318,18 +318,14 @@ class OdeSolver:\nA list of integrators\n\"\"\"\n- if not isinstance(ocp.cx(), MX):\n- raise RuntimeError(\"CVODES integrator can only be used with MX...
Python
MIT License
pyomeca/bioptim
updating the use of CVODES
538,842
23.09.2021 16:38:40
14,400
498b6b291f738d20968139c06c018fbf3c4451b0
keep adapting CVODES and blacked
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/ode_solver.py", "new_path": "bioptim/dynamics/ode_solver.py", "diff": "-from casadi import MX, SX, integrator as casadi_integrator, horzcat\n+from typing import Union, Callable\n+\n+from casadi import MX, SX, integrator as casadi_integrator, h...
Python
MIT License
pyomeca/bioptim
keep adapting CVODES and blacked
538,842
24.09.2021 14:44:54
14,400
94d266f0f29e0e7124985a05e1e9b69c204ac84a
Remove the unecessary
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/solution.py", "new_path": "bioptim/optimization/solution.py", "diff": "@@ -556,10 +556,6 @@ class Solution:\nif shooting_type != Shooting.MULTIPLE:\nraise RuntimeError(\"Integration with direct collocation must using shooting_type=Shooting...
Python
MIT License
pyomeca/bioptim
Remove the unecessary
538,859
05.10.2021 12:13:26
14,400
f7a31636c1a5b8c4cf2e04ef1b9ca21c2038868e
Added number of CPUs for Acados multiprocessing in installation file.
[ { "change_type": "MODIFY", "old_path": "external/acados_install_linux.sh", "new_path": "external/acados_install_linux.sh", "diff": "@@ -9,11 +9,19 @@ if [ ! -f acados/CMakeLists.txt ]; then\ngit submodule update --recursive --init\nfi\n+# Check if there are a number of CPUs for Acados multiprocessin...
Python
MIT License
pyomeca/bioptim
Added number of CPUs for Acados multiprocessing in installation file.
538,859
05.10.2021 12:24:59
14,400
afde3e70e11e055afc9311ed504460bed7107810
Added nb of CPUs for mac acados installation file
[ { "change_type": "MODIFY", "old_path": "external/acados_install_mac.sh", "new_path": "external/acados_install_mac.sh", "diff": "@@ -9,11 +9,19 @@ if [ ! -f acados/CMakeLists.txt ]; then\ngit submodule update --recursive --init\nfi\n+# Check if there are a number of CPUs for Acados multiprocessing\n+...
Python
MIT License
pyomeca/bioptim
Added nb of CPUs for mac acados installation file
538,842
06.10.2021 14:47:59
14,400
982a719c2d51b3a8bba917cad8c222aa05b13030
converge and contraint tol generation
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -98,12 +98,21 @@ class IpoptInterface(SolverInterface):\nsolver_options = {}\noptions = {\n- \"ipopt.tol\": 1e-6,\n+ \"ipopt.tol\": 1e-6, # default in ipop...
Python
MIT License
pyomeca/bioptim
converge and contraint tol generation
538,842
06.10.2021 14:49:19
14,400
021e80c0f04c888afc46516ac826804a9e3302ef
Auto stash before revert of "converge and contraint tol generation"
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -285,3 +285,31 @@ class IpoptInterface(SolverInterface):\np = vertcat(p, penalty.weighted_function(x, u, param, penalty.weight, target, penalty.dt))\nout =...
Python
MIT License
pyomeca/bioptim
Auto stash before revert of "converge and contraint tol generation"
538,842
06.10.2021 15:04:41
14,400
08f184a50d8f7f671a333bdca353f93d58a6f2e1
adding more default settings of ipopt
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -98,7 +98,14 @@ class IpoptInterface(SolverInterface):\nsolver_options = {}\noptions = {\n- \"ipopt.tol\": 1e-6,\n+ \"ipopt.tol\": 1e-6, # default in ipopt...
Python
MIT License
pyomeca/bioptim
adding more default settings of ipopt
538,842
06.10.2021 19:08:21
14,400
b34a9114e4fdb6d022824cde702e1a543b3e81b8
Adding SolverOptions Class
[ { "change_type": "MODIFY", "old_path": "bioptim/__init__.py", "new_path": "bioptim/__init__.py", "diff": "@@ -152,6 +152,7 @@ from .dynamics.fatigue_dynamics import FatigueList\nfrom .dynamics.xia_fatigue import XiaFatigue, XiaTauFatigue\nfrom .dynamics.ode_solver import OdeSolver\nfrom .interfaces....
Python
MIT License
pyomeca/bioptim
Adding SolverOptions Class
538,842
07.10.2021 15:32:43
14,400
735d607394635b67636ea699e1a0f0434569d03b
If no option is given, set default options.
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/ipopt_interface.py", "new_path": "bioptim/interfaces/ipopt_interface.py", "diff": "@@ -98,7 +98,7 @@ class IpoptInterface(SolverInterface):\nif self.opts:\nreturn\nelse:\n- solver_options = {}\n+ solver_options = SolverOptionsIPOPT()\noption...
Python
MIT License
pyomeca/bioptim
If no option is given, set default options.
538,842
07.10.2021 18:43:54
14,400
bbd7d82e56c665355c6df22143d3d04f22dc301d
First corrections on PR
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -88,6 +88,8 @@ As a tour guide that uses this binder, you can watch the `bioptim` workshop that\n- [InterpolationType](#enum-interpolationtype)\n- [Shooting](#enum-shooting)\n- [CostType](#enum-costtype)\n+ - [S...
Python
MIT License
pyomeca/bioptim
First corrections on PR
538,842
08.10.2021 10:28:17
14,400
6ed01ce547c614d505fb212123a6ae8884847628
setting options on solvers becomes easier
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/SolverOptions.py", "new_path": "bioptim/interfaces/SolverOptions.py", "diff": "@@ -37,6 +37,7 @@ class SolverOptions(ABC):\nGlobal constraint tolerance value\n\"\"\"\n+ @abstractmethod\ndef set_maximum_iterations(self, num: int):\n\"\"\"\nTh...
Python
MIT License
pyomeca/bioptim
setting options on solvers becomes easier
538,842
08.10.2021 13:15:45
14,400
75ff01eb3934e18abcf07b9486c74110c3252d12
Restoring pendulum example
[ { "change_type": "MODIFY", "old_path": "examples/getting_started/pendulum.py", "new_path": "examples/getting_started/pendulum.py", "diff": "@@ -10,8 +10,6 @@ appreciate it). Finally, once it finished optimizing, it animates the model usin\n\"\"\"\nimport biorbd_casadi as biorbd\n-import numpy as np\...
Python
MIT License
pyomeca/bioptim
Restoring pendulum example
538,842
08.10.2021 14:14:17
14,400
eeb7aa92f49740e4836bc4b97810e944a22fcdbb
finalizing options structures into SolverOptions Class
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/SolverOptions.py", "new_path": "bioptim/interfaces/SolverOptions.py", "diff": "@@ -48,6 +48,17 @@ class SolverOptions(ABC):\nNumber of iterations\n\"\"\"\n+ @abstractmethod\n+ def finalize_options(self, solver):\n+ \"\"\"\n+ This function re...
Python
MIT License
pyomeca/bioptim
finalizing options structures into SolverOptions Class
538,842
08.10.2021 17:27:44
14,400
b0a2f7152bcccccbdb1d15c4f50fb16395186bcf
Half of the tests works
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/SolverOptions.py", "new_path": "bioptim/interfaces/SolverOptions.py", "diff": "@@ -44,7 +44,7 @@ class SolverOptions(ABC):\nParameters\n----------\n- tol: int\n+ num: int\nNumber of iterations\n\"\"\"\n@@ -103,6 +103,10 @@ class SolverOption...
Python
MIT License
pyomeca/bioptim
Half of the tests works
538,842
12.10.2021 11:07:07
14,400
d024c077f7562b6e5e6cc61debefcd91456cd806
warm start tests fixed and finalize options for ACADOS
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/SolverOptions.py", "new_path": "bioptim/interfaces/SolverOptions.py", "diff": "@@ -251,22 +251,7 @@ class SolverOptionsAcados(SolverOptions):\nif \"constr_type\" in options:\ndel options[\"constr_type\"]\n- if solver.ocp_solver is None:\nfor...
Python
MIT License
pyomeca/bioptim
warm start tests fixed and finalize options for ACADOS
538,842
12.10.2021 11:42:40
14,400
e23b605956f45b335cab64b1cfb3dd7a784fcf64
fix a test on direct collocation
[ { "change_type": "MODIFY", "old_path": "tests/test_global_optimal_time.py", "new_path": "tests/test_global_optimal_time.py", "diff": "@@ -585,7 +585,7 @@ def test_multiphase_time_constraint(ode_solver):\n# initial and final controls\nnp.testing.assert_almost_equal(tau[:, 0], np.array((5.71428583, 9....
Python
MIT License
pyomeca/bioptim
fix a test on direct collocation
538,842
12.10.2021 14:04:00
14,400
2e9e476b9c95b87aacd4ab89c8f45af8d281f83e
fix on simulate for non continous merge of direct collocation problems
[ { "change_type": "MODIFY", "old_path": "tests/test_simulate.py", "new_path": "tests/test_simulate.py", "diff": "@@ -764,7 +764,12 @@ def test_integrate_multiphase_merged_non_continuous(shooting, use_scipy, ode_sol\nnp.testing.assert_almost_equal(sol_integrated.states[key][:, [0, -1]], expected, deci...
Python
MIT License
pyomeca/bioptim
fix on simulate for non continous merge of direct collocation problems
538,842
12.10.2021 15:27:31
14,400
ac0aa97372e020a2d3a7c038e331a0eba8fc96a7
add an if to compare tau with DC
[ { "change_type": "MODIFY", "old_path": "tests/test_global_optimal_time.py", "new_path": "tests/test_global_optimal_time.py", "diff": "@@ -585,7 +585,11 @@ def test_multiphase_time_constraint(ode_solver):\n# initial and final controls\nnp.testing.assert_almost_equal(tau[:, 0], np.array((5.71428583, 9...
Python
MIT License
pyomeca/bioptim
add an if to compare tau with DC
538,864
14.10.2021 23:55:27
-7,200
d020d7bdcb78c07ad684e9b5d1fddfb29b359f51
modification 3 :)
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -243,8 +243,8 @@ dynamics = Dynamics(DynamicsFcn.TORQUE_DRIVEN)\n```\nThe pendulum is required to start in a downward position (0 rad) and to finish in an upward position (3.14 rad) with no velocity at start and...
Python
MIT License
pyomeca/bioptim
modification 3 :)
538,842
15.10.2021 10:10:30
14,400
bca311369a644afdb023525c4965bea40eddf041
print_level setter and initialization setter for ipopt
[ { "change_type": "MODIFY", "old_path": "bioptim/optimization/optimal_control_program.py", "new_path": "bioptim/optimization/optimal_control_program.py", "diff": "@@ -839,11 +839,13 @@ class OptimalControlProgram:\nsolver_options = SolverOptionsIpopt() if solver_options is None else solver_options\ns...
Python
MIT License
pyomeca/bioptim
print_level setter and initialization setter for ipopt
538,842
19.10.2021 07:54:57
14,400
896a597c4c5a23a12e3bd266d38de7864f1c11e5
enhancing SolverOptions class for Mhe
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -59,7 +59,8 @@ class AcadosInterface(SolverInterface):\nThe Lagrange state objective functions\nVxe: np.ndarray\nThe Mayer state objective functions\n-\n...
Python
MIT License
pyomeca/bioptim
enhancing SolverOptions class for Mhe
538,864
19.10.2021 15:59:22
14,400
b760c97f04b89027bbc4df256a03dd948de357f5
ajout de commentaires et explications de symmetry by mapping
[ { "change_type": "MODIFY", "old_path": "examples/symmetrical_torque_driven_ocp/symmetry_by_mapping.py", "new_path": "examples/symmetrical_torque_driven_ocp/symmetry_by_mapping.py", "diff": "@@ -4,19 +4,24 @@ same rod at the end, while keeping the degrees of freedom opposed. It does this\nmapping, th...
Python
MIT License
pyomeca/bioptim
ajout de commentaires et explications de symmetry by mapping
538,842
19.10.2021 17:12:14
14,400
d02a69b401bc3663ce0036ed378711248ac00a10
SolverOptionsAcados is handled in MHE and c_compile is handled in SolverOptionsIpopt
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/acados_interface.py", "new_path": "bioptim/interfaces/acados_interface.py", "diff": "@@ -99,6 +99,8 @@ class AcadosInterface(SolverInterface):\nsuper().__init__(ocp)\n# solver_options = solver_options.__dict__\n+ if solver_options is None:\n...
Python
MIT License
pyomeca/bioptim
SolverOptionsAcados is handled in MHE and c_compile is handled in SolverOptionsIpopt
538,842
19.10.2021 18:29:27
14,400
769a894cebfbffbe2fccaec85b017bba328ac3d4
fix default values of Ipopt and mhe if there is options only on the first iteration.
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/SolverOptions.py", "new_path": "bioptim/interfaces/SolverOptions.py", "diff": "@@ -132,8 +132,8 @@ class SolverOptionsIpopt(SolverOptions):\n_dual_inf_tol: float = 1.0\n_constr_viol_tol: float = 0.0001\n_compl_inf_tol: float = 0.0001\n- _acc...
Python
MIT License
pyomeca/bioptim
fix default values of Ipopt and mhe if there is options only on the first iteration.
538,842
19.10.2021 18:47:09
14,400
ec48981e2dadd3b730c47f3bb2c7e3b378cfea9d
remove a method from solveroptions.
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/SolverOptions.py", "new_path": "bioptim/interfaces/SolverOptions.py", "diff": "@@ -606,16 +606,3 @@ class SolverOptionsAcados(SolverOptions):\n\"_nlp_solver_tol_ineq\",\n\"_nlp_solver_tol_stat\",\n]\n-\n- @staticmethod\n- def get_non_editabl...
Python
MIT License
pyomeca/bioptim
remove a method from solveroptions.
538,842
19.10.2021 19:07:10
14,400
e9fb3fe964d1b034766068a76cbe6cc325030d44
last typo fixed in SolverOptions
[ { "change_type": "MODIFY", "old_path": "bioptim/interfaces/SolverOptions.py", "new_path": "bioptim/interfaces/SolverOptions.py", "diff": "@@ -524,7 +524,7 @@ class SolverOptionsAcados(SolverOptions):\nreturn self._nlp_solver_tol_eq\ndef set_nlp_solver_tol_eq(self, val: float):\n- self._nlp_solver_to...
Python
MIT License
pyomeca/bioptim
last typo fixed in SolverOptions
538,855
22.10.2021 11:23:16
14,400
3a5d1a858560912071d568fff65b0389701461ed
Changed for the biorbd function
[ { "change_type": "MODIFY", "old_path": "examples/torque_driven_ocp/trampo_quaternions.py", "new_path": "examples/torque_driven_ocp/trampo_quaternions.py", "diff": "@@ -7,6 +7,7 @@ It is designed to show how to use a model that has quaternions in their degrees\nimport numpy as np\nimport biorbd_casad...
Python
MIT License
pyomeca/bioptim
Changed for the biorbd function
538,855
22.10.2021 11:24:23
14,400
cc5d26ec786813be25352156f814ed8dabe2a07c
added path constraints on the initial node
[ { "change_type": "MODIFY", "old_path": "examples/torque_driven_ocp/trampo_quaternions.py", "new_path": "examples/torque_driven_ocp/trampo_quaternions.py", "diff": "@@ -75,10 +75,6 @@ def prepare_ocp(\ndynamics = DynamicsList()\ndynamics.add(DynamicsFcn.TORQUE_DRIVEN)\n- # Path constraint\n- x_bounds...
Python
MIT License
pyomeca/bioptim
added path constraints on the initial node
538,855
22.10.2021 11:24:45
14,400
411351b52dc29d0464ea5ceebf92c376f01d3b3a
no interpolation in animate
[ { "change_type": "MODIFY", "old_path": "examples/torque_driven_ocp/trampo_quaternions.py", "new_path": "examples/torque_driven_ocp/trampo_quaternions.py", "diff": "@@ -136,7 +136,7 @@ def main():\nsol = ocp.solve(Solver.IPOPT(show_online_optim=True))\n# Print the last solution\n- sol.animate()\n+ so...
Python
MIT License
pyomeca/bioptim
no interpolation in animate
538,855
22.10.2021 11:33:59
14,400
03593302272cf8092e27f314c20a824f93571112
Changed test for fixed initial condition
[ { "change_type": "MODIFY", "old_path": "tests/test_global_torque_driven_ocp.py", "new_path": "tests/test_global_torque_driven_ocp.py", "diff": "@@ -304,45 +304,25 @@ def test_trampo_quaternions():\nq, qdot, tau = sol.states[\"q\"], sol.states[\"qdot\"], sol.controls[\"tau\"]\n# initial and final pos...
Python
MIT License
pyomeca/bioptim
Changed test for fixed initial condition
538,842
27.10.2021 19:34:21
14,400
894b2d1e2dd1ddfd71736f3880b8ac44c313d125
ocp.print() now works with CVODES
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/integrator.py", "new_path": "bioptim/dynamics/integrator.py", "diff": "@@ -613,3 +613,22 @@ class IRK(COLLOCATION):\n[\"x0\", \"p\", \"params\"],\n[\"xf\", \"xall\"],\n)\n+\n+\n+class CVODES(Integrator):\n+ \"\"\"\n+ Abstract class for CVODES ...
Python
MIT License
pyomeca/bioptim
ocp.print() now works with CVODES
538,842
28.10.2021 15:12:32
14,400
62b5af23d159e951117e2a59378eb5260331a470
Add a test for CVODES
[ { "change_type": "MODIFY", "old_path": "bioptim/dynamics/integrator.py", "new_path": "bioptim/dynamics/integrator.py", "diff": "@@ -617,7 +617,7 @@ class IRK(COLLOCATION):\nclass CVODES(Integrator):\n\"\"\"\n- Abstract class for CVODES integrators\n+ Class for CVODES integrators\n\"\"\"\n" }, { ...
Python
MIT License
pyomeca/bioptim
Add a test for CVODES
538,842
28.10.2021 17:03:01
14,400
6bdbd10dc5eca13732bf9b6682c0e21ae764b8e0
back to tests, changing how the test is risen
[ { "change_type": "MODIFY", "old_path": "tests/test_global_getting_started.py", "new_path": "tests/test_global_getting_started.py", "diff": "@@ -116,7 +116,7 @@ def test_pendulum_save_and_load(n_threads, use_sx, ode_solver):\nif isinstance(ode_solver, OdeSolver.IRK):\nif use_sx:\n- with pytest.raises...
Python
MIT License
pyomeca/bioptim
back to tests, changing how the test is risen
538,859
03.11.2021 11:24:13
14,400
d7f1e06b25c3ebb978a7d88849c6105024a75a25
Added pyqt app to run example as application. Pyqtgraph need to be installed.
[ { "change_type": "ADD", "old_path": "examples/__init__.py", "new_path": "examples/__init__.py", "diff": "" }, { "change_type": "ADD", "old_path": null, "new_path": "examples/example_app.py", "diff": "+# based on https://github.com/pyqtgraph/pyqtgraph/tree/master/pyqtgraph/example...
Python
MIT License
pyomeca/bioptim
Added pyqt app to run example as application. Pyqtgraph need to be installed.
538,859
04.11.2021 10:22:04
14,400
3ea31968fbb476efea1efaa1af3553970ea4f3a0
Added fatigue examples and not display acados examples when acados is not found
[ { "change_type": "MODIFY", "old_path": "examples/__main__.py", "new_path": "examples/__main__.py", "diff": "@@ -11,11 +11,27 @@ from functools import lru_cache\nfrom collections import OrderedDict\nfrom PyQt5 import QtCore, QtGui, QtWidgets\n+try:\n+ import acados\n+\n+ is_acados = True\n+except Mod...
Python
MIT License
pyomeca/bioptim
Added fatigue examples and not display acados examples when acados is not found
538,869
04.11.2021 12:29:59
14,400
037b5a0af06e7b08bcb5f454517f50bb5674c987
Update readme for examples application
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -149,6 +149,7 @@ Here is a list of all direct dependencies (meaning that some dependencies may re\n- [graphviz](https://graphviz.org/)\n- [`Ipopt`](https://github.com/coin-or/Ipopt)\n- [`Acados`](https://github....
Python
MIT License
pyomeca/bioptim
Update readme for examples application
538,842
11.11.2021 15:25:16
18,000
2bf1d66147d914da6170fc5234cadb7957e3691f
Add a new enum to choose the integrator of the solution
[ { "change_type": "MODIFY", "old_path": "bioptim/gui/plot.py", "new_path": "bioptim/gui/plot.py", "diff": "@@ -10,7 +10,7 @@ from matplotlib.ticker import StrMethodFormatter\nfrom casadi import Callback, nlpsol_out, nlpsol_n_out, Sparsity, DM\nfrom ..limits.path_conditions import Bounds\n-from ..misc...
Python
MIT License
pyomeca/bioptim
Add a new enum to choose the integrator of the solution