Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 25ea2b89 authored by snuverink_j's avatar snuverink_j
Browse files

add CONSTRAINT to optimiser keywords, fixes #179

parent e3fedace
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment