mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix model generation in opt
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4b940bde11
commit
22507281cf
2 changed files with 44 additions and 24 deletions
|
@ -36,6 +36,10 @@ static void test1() {
|
|||
|
||||
opt::inf_eps value = mbo.maximize();
|
||||
std::cout << value << "\n";
|
||||
std::cout << "x: " << mbo.get_value(x) << "\n";
|
||||
std::cout << "y: " << mbo.get_value(y) << "\n";
|
||||
std::cout << "z: " << mbo.get_value(z) << "\n";
|
||||
std::cout << "u: " << mbo.get_value(u) << "\n";
|
||||
}
|
||||
|
||||
// test with lower bounds
|
||||
|
@ -105,6 +109,10 @@ static void test4() {
|
|||
|
||||
opt::inf_eps value = mbo.maximize();
|
||||
std::cout << value << "\n";
|
||||
std::cout << "x: " << mbo.get_value(x) << "\n";
|
||||
std::cout << "y: " << mbo.get_value(y) << "\n";
|
||||
std::cout << "z: " << mbo.get_value(z) << "\n";
|
||||
std::cout << "u: " << mbo.get_value(u) << "\n";
|
||||
}
|
||||
|
||||
// test with mix of upper and lower bounds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue