Skip to content
Snippets Groups Projects
Verified Commit 2a048a48 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Throw an error if mh_tune_guess is used without mh_tune_jscale.

parent 3c6a2313
No related branches found
No related tags found
No related merge requests found
...@@ -1222,6 +1222,13 @@ EstimationStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsoli ...@@ -1222,6 +1222,13 @@ EstimationStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsoli
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
if (options_list.num_options.find("mh_tune_jscale.guess") != options_list.num_options.end()
&& options_list.num_options.find("mh_tune_jscale.target") == options_list.num_options.end())
{
cerr << "ERROR: The option mh_tune_guess in estimation statement cannot be used without option mh_tune_jscale." << endl;
exit(EXIT_FAILURE);
}
/* Check that we are not trying to estimate a parameter appearing in the /* Check that we are not trying to estimate a parameter appearing in the
planner discount factor (see dynare#1173) */ planner discount factor (see dynare#1173) */
vector<int> estimated_params_in_planner_discount; vector<int> estimated_params_in_planner_discount;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment