Commit 25ea2b89 authored by snuverink_j's avatar snuverink_j
Browse files

add CONSTRAINT to optimiser keywords, fixes #179

parent e3fedace
......@@ -45,12 +45,10 @@ bool AbsFileStream::optimCmdPresent(std::string str) {
std::string s = str;
std::transform(s.begin(), s.end(),s.begin(), ::toupper);
return (s.find("DVAR")!=std::string::npos) ||
(s.find("DVARS")!=std::string::npos) ||
(s.find("OBJECTIVE")!=std::string::npos) ||
(s.find("OBJECTIVES")!=std::string::npos) ||
(s.find("CONSTRAINTS")!=std::string::npos) ||
(s.find("OPTIMIZE")!=std::string::npos);
return (s.find("DVAR") !=std::string::npos) || // will also find DVARS
(s.find("OBJECTIVE") !=std::string::npos) || // will also find OBJECTIVES
(s.find("CONSTRAINT") !=std::string::npos) || // will also find CONSTRAINTS
(s.find("OPTIMIZE") !=std::string::npos);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment