Skip to content
Snippets Groups Projects
Commit f72fcbbe authored by Houtan Bastani's avatar Houtan Bastani
Browse files

preprocessor: make ramsey_policy/ramsey_model and discretionary_policy...

preprocessor: make ramsey_policy/ramsey_model and discretionary_policy mutually exclusive. closes #1047
parent 76970670
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment