Skip to content
Snippets Groups Projects
Verified Commit c07b8c90 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Provide equation name tags for Ramsey FOC

Ref. #125
parent b0c1b14a
Branches
Tags
No related merge requests found
Pipeline #10646 passed
......@@ -2968,6 +2968,10 @@ DynamicModel::computeRamseyPolicyFOCs(const StaticModel& planner_objective,
{
orig_endo_nbr++;
neweqs_lineno.emplace_back(nullopt);
if (string eqname {"Ramsey FOC w.r.t. "s + symbol_table.getName(symb_id)};
!equation_tags.exists("name", eqname))
neweqs_tags.emplace(neweqs.size() - 1, map<string, string> {{"name", eqname}});
if (cloned_ramsey_constraints.contains(symb_id))
{
auto& [lower_bound, upper_bound] = cloned_ramsey_constraints.at(symb_id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment