mirror of
https://github.com/Z3Prover/z3
synced 2025-06-04 13:21:22 +00:00
cleanup
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9903c722af
commit
72c3473400
1 changed files with 2 additions and 4 deletions
|
@ -166,12 +166,10 @@ namespace smt {
|
||||||
SASSERT(m_is_optimal);
|
SASSERT(m_is_optimal);
|
||||||
flows.reset();
|
flows.reset();
|
||||||
flows.append(m_flows);
|
flows.append(m_flows);
|
||||||
numeral cost(0);
|
objective = numeral::zero();
|
||||||
for (unsigned int i = 0; i < m_flows.size(); ++i) {
|
for (unsigned int i = 0; i < m_flows.size(); ++i) {
|
||||||
// FIXME: this * operator is not supported
|
objective += m_costs[i] * m_flows[i];
|
||||||
cost += m_costs[i] * m_flows[i];
|
|
||||||
}
|
}
|
||||||
objective = cost;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Minimize cost flows
|
// Minimize cost flows
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue