mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
Normalize diff logic's optimal assignments
This commit is contained in:
parent
cc3d65e544
commit
fff3a1aae5
2 changed files with 14 additions and 3 deletions
|
@ -50,9 +50,10 @@ namespace smt {
|
|||
edge const & e = es[i];
|
||||
tout << "(assert (<= (- v" << e.get_source() << " v" << e.get_target() << ") " << e.get_weight() << "))" << std::endl;
|
||||
};
|
||||
tout << "(maximize (+ ";
|
||||
tout << "(assert (= v0 0))" << std::endl;
|
||||
tout << "(maximize (+";
|
||||
for (unsigned i = 0; i < balances.size(); ++i) {
|
||||
tout << "(* " << balances[i] << " v" << i << ") ";
|
||||
tout << " (* " << balances[i] << " v" << i << ")";
|
||||
};
|
||||
tout << "))" << std::endl;
|
||||
tout << "(optimize)" << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue