Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def create_ocp_formulation_without_opts(cost_type, degree_u_polynom, explicit_sy

ocp.constraints.x0 = np.array([0.0, np.pi, 0.0, 0.0])

evaluate_polynomial_u_fun = model.augment_model_with_polynomial_control(degree_u_polynom)
evaluate_polynomial_u_fun = model.reformulate_with_polynomial_control(degree_u_polynom)

return ocp, evaluate_polynomial_u_fun

Expand Down
4 changes: 4 additions & 0 deletions interfaces/acados_template/acados_template/acados_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ def substitute(self, var: Union[ca.SX, ca.MX], expr_new: Union[ca.SX, ca.MX]) ->


def augment_model_with_polynomial_control(self, degree: int) -> None:
print("Deprecation warning: augment_model_with_polynomial_control() is deprecated and has been renamed to reformulate_with_polynomial_control().")
self.reformulate_with_polynomial_control()

def reformulate_with_polynomial_control(self, degree: int) -> None:
"""
Augment the model with polynomial control.

Expand Down