diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index f14c7b479faa1608ace8a987e0ad569e2ce8c276..6b376764f663629227539f79209b1d1021601232 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -141,6 +141,13 @@ ModFile::checkPass() exit(EXIT_FAILURE); } + if ((mod_file_struct.ramsey_model_present || mod_file_struct.ramsey_policy_present) + && mod_file_struct.discretionary_policy_present) + { + cerr << "ERROR: You cannot use the discretionary_policy command when you use either rasmey_model or ramsey_policy and vice versa" << endl; + exit(EXIT_FAILURE); + } + if (((mod_file_struct.ramsey_model_present || mod_file_struct.discretionary_policy_present) && !mod_file_struct.planner_objective_present) || (!(mod_file_struct.ramsey_model_present || mod_file_struct.discretionary_policy_present)