3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 03:45:51 +00:00

A few changes based on previous reviews

Tested the optimization procedure with:
- unbounded objectives
- bounded with rational solutions
- bounded with irrational solutions
This commit is contained in:
Anh-Dung Phan 2013-10-21 17:25:34 -07:00
parent 3dd72f8f16
commit 3441fc2942
8 changed files with 24 additions and 26 deletions

View file

@ -70,7 +70,7 @@ namespace opt {
if (is_bounded) {
m_objective_value = get_optimizer().get_objective_value(m_objective_var);
} else {
inf_eps_rational<rational> r(rational(1), rational(0));
inf_eps_rational<inf_rational> r(rational(1), inf_rational(0));
m_objective_value = r;
}
}
@ -131,7 +131,7 @@ namespace opt {
m_objective_enabled = enable;
}
inf_eps_rational<rational> opt_solver::get_objective_value() {
inf_eps_rational<inf_rational> opt_solver::get_objective_value() {
return m_objective_value;
}