diff --git a/src/ComputingTasks.cc b/src/ComputingTasks.cc index b0609cd5b7593936dcd7c0a07ff46120190910dc..8f5c5a546d9ac961c9a50eae94f5985927780649 100644 --- a/src/ComputingTasks.cc +++ b/src/ComputingTasks.cc @@ -1215,6 +1215,13 @@ EstimationStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsoli exit(EXIT_FAILURE); } + if (options_list.num_options.find("mh_tune_jscale.target") != options_list.num_options.end() + && options_list.num_options.find("mh_jscale") != options_list.num_options.end()) + { + cerr << "ERROR: The mh_tune_jscale and mh_jscale options of the estimation statement are incompatible." << endl; + exit(EXIT_FAILURE); + } + /* Check that we are not trying to estimate a parameter appearing in the planner discount factor (see dynare#1173) */ vector<int> estimated_params_in_planner_discount;