Commit 3ca77f74 authored by snuverink_j's avatar snuverink_j
Browse files

bugfix: don't add constraint if no variables required at all; for issue #153

parent ad690449
......@@ -36,6 +36,7 @@ public:
for(auto constraint : constraints) {
bool allDesignVariables = true;
std::set<std::string> req_vars = constraint.second->getReqVars();
if (req_vars.empty()) allDesignVariables = false;
for (std::string req_var : req_vars) {
// check if it is a design variable
if (std::find(dNames_m.begin(),dNames_m.end(),req_var) == dNames_m.end()) {
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