Use names for the bounds.

This commit is contained in:
chriseth
2022-02-17 11:55:51 +01:00
parent 7c7132bff8
commit 76485dff82
3 changed files with 38 additions and 30 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ public:
size_t index = variableIndex(_variable);
if (index >= m_solvingState.bounds.size())
m_solvingState.bounds.resize(index + 1);
m_solvingState.bounds.at(index)[0] = _value;
m_solvingState.bounds.at(index).lower = _value;
}
void addUpperBound(string _variable, rational _value)
@@ -85,7 +85,7 @@ public:
size_t index = variableIndex(_variable);
if (index >= m_solvingState.bounds.size())
m_solvingState.bounds.resize(index + 1);
m_solvingState.bounds.at(index)[1] = _value;
m_solvingState.bounds.at(index).upper = _value;
}
void feasible(vector<pair<string, rational>> const& _solution)