diff --git a/src/ModelEquationBlock.cc b/src/ModelEquationBlock.cc index d25e9221a95439b12407d10a072c965707e30b79..0bd416b8bc38b599e4e16fb1365961f04a786079 100644 --- a/src/ModelEquationBlock.cc +++ b/src/ModelEquationBlock.cc @@ -34,10 +34,7 @@ PlannerObjective::PlannerObjective(SymbolTable& symbol_table_arg, void PlannerObjective::writeDriverOutput(ostream& output) const { - output << "M_.NNZDerivatives_objective = ["; - for (int i = 1; i < static_cast<int>(NNZDerivatives.size()); i++) - output << (i > computed_derivs_order ? -1 : NNZDerivatives[i]) << ";"; - output << "];" << endl << "M_.objective_tmp_nbr = ["; + output << "M_.objective_tmp_nbr = ["; for (const auto& it : temporary_terms_derivatives) output << it.size() << "; "; output << "];" << endl;