mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
roll back changes in get_model
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
0dbe8982ce
commit
b6f07e2a23
4 changed files with 6 additions and 8 deletions
|
@ -1252,8 +1252,6 @@ void lar_solver::get_infeasibility_explanation_for_inf_sign(
|
|||
|
||||
void lar_solver::get_model(std::unordered_map<var_index, mpq> & variable_values) const {
|
||||
lp_assert(m_mpq_lar_core_solver.m_r_solver.calc_current_x_is_feasible_include_non_basis());
|
||||
if (m_status != lp_status::OPTIMAL)
|
||||
return;
|
||||
mpq delta = mpq(1, 2); // start from 0.5 to have less clashes
|
||||
unsigned i;
|
||||
unsigned n = m_mpq_lar_core_solver.m_r_x.size();
|
||||
|
|
|
@ -29,8 +29,8 @@ namespace nra {
|
|||
scoped_ptr<scoped_anum> m_zero;
|
||||
vector<mon_eq> m_monomials;
|
||||
unsigned_vector m_monomials_lim;
|
||||
mutable vector<rational> m_variable_values; // current model
|
||||
mutable std::unordered_map<lp::var_index, rational> m_term_values;
|
||||
mutable std::unordered_map<lp::var_index, rational> m_variable_values; // current model
|
||||
|
||||
imp(lp::lar_solver& s, reslimit& lim, params_ref const& p):
|
||||
s(s),
|
||||
m_limit(lim),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue