mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +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);
|
||||
flows.reset();
|
||||
flows.append(m_flows);
|
||||
numeral cost(0);
|
||||
objective = numeral::zero();
|
||||
for (unsigned int i = 0; i < m_flows.size(); ++i) {
|
||||
// FIXME: this * operator is not supported
|
||||
cost += m_costs[i] * m_flows[i];
|
||||
objective += m_costs[i] * m_flows[i];
|
||||
}
|
||||
objective = cost;
|
||||
}
|
||||
|
||||
// Minimize cost flows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue