The SymPy backend should natively support sympy.physics.mechanics.dynamicsymbols as well as sympy.Symbol objects (as was the case prior to 24eb461). It is common for users to use sympy.physics.mechanics to derive equations of motion (EoMs) that are then used to construct their optimal control problem. These EoMs will be built from both sympy.physics.mechanics.dynamicsymbols and sympy.Symbol objects. It should be possible to directly set sympy.physics.mechanics.dynamicsymbols as state and control variables in the OCP definition when the SymPy backend is being used to save users doing a replacement to sympy.Symbol objects, which can be costly for large and complex models.
Note: the workaround until this issue is resolved is for users to manually substitute sympy.Symbol objects in place of sympy.physics.mechanics.dynamicsymbols before constructing their OCP via pycollo.OptimalControlProblem.
The SymPy backend should natively support
sympy.physics.mechanics.dynamicsymbolsas well assympy.Symbolobjects (as was the case prior to 24eb461). It is common for users to usesympy.physics.mechanicsto derive equations of motion (EoMs) that are then used to construct their optimal control problem. These EoMs will be built from bothsympy.physics.mechanics.dynamicsymbolsandsympy.Symbolobjects. It should be possible to directly setsympy.physics.mechanics.dynamicsymbolsas state and control variables in the OCP definition when the SymPy backend is being used to save users doing a replacement tosympy.Symbolobjects, which can be costly for large and complex models.Note: the workaround until this issue is resolved is for users to manually substitute
sympy.Symbolobjects in place ofsympy.physics.mechanics.dynamicsymbolsbefore constructing their OCP viapycollo.OptimalControlProblem.