Skip to content

Commit

Permalink
Include generated Jacobian files for external cost
Browse files Browse the repository at this point in the history
Added missing CasADi-generated Jacobian files for the external cost in the MATLAB template.
  • Loading branch information
mindThomas authored and FreyJo committed Aug 24, 2020
1 parent eebbb10 commit 5611fef
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -58,6 +58,7 @@
'{{ model.name }}_cost/{{ model.name }}_cost_y_hess.c ',...
{%- elif cost.cost_type == "EXTERNAL" %}
'{{ model.name }}_cost/{{ model.name }}_cost_ext_cost_fun.c ',...
'{{ model.name }}_cost/{{ model.name }}_cost_ext_cost_fun_jac.c ',...
'{{ model.name }}_cost/{{ model.name }}_cost_ext_cost_fun_jac_hess.c ',...
{%- endif %}
{%- if cost.cost_type_e == "NONLINEAR_LS" %}
Expand All @@ -66,6 +67,7 @@
'{{ model.name }}_cost/{{ model.name }}_cost_y_e_hess.c ',...
{%- elif cost.cost_type_e == "EXTERNAL" %}
'{{ model.name }}_cost/{{ model.name }}_cost_ext_cost_e_fun.c ',...
'{{ model.name }}_cost/{{ model.name }}_cost_ext_cost_e_fun_jac.c ',...
'{{ model.name }}_cost/{{ model.name }}_cost_ext_cost_e_fun_jac_hess.c ',...
{%- endif %}
{%- if constraints.constr_type == "BGH" and dims.nh > 0 %}
Expand Down

0 comments on commit 5611fef

Please sign in to comment.