Skip to content

Commit

Permalink
Auto stash before checking out "HEAD"
Browse files Browse the repository at this point in the history
docs: variational model
  • Loading branch information
Ipuch committed Nov 1, 2024
1 parent 9091a67 commit 7812c0a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bioptim/models/biorbd/variational_biorbd_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ def __init__(
control_discrete_approximation: QuadratureRule = QuadratureRule.MIDPOINT,
parameters: ParameterList = None,
):
"""
Initialize the VariationalBiorbdModel.
Parameters
----------
bio_model : str | biorbd.Model
The path to the biorbd model file or a biorbd.Model instance.
discrete_approximation : QuadratureRule, optional
The quadrature rule for the discrete approximation (default is QuadratureRule.TRAPEZOIDAL).
control_type : ControlType, optional
The type of control to be used (default is ControlType.CONSTANT).
control_discrete_approximation : QuadratureRule, optional
The quadrature rule for the control discrete approximation (default is QuadratureRule.MIDPOINT).
parameters : ParameterList, optional
A list of parameters for the model (default is None).
"""
super().__init__(bio_model, parameters=parameters)
self.discrete_approximation = discrete_approximation
self.control_type = control_type
Expand Down

0 comments on commit 7812c0a

Please sign in to comment.