Skip to content

Commit fae6094

Browse files
consolidate some bounds references
1 parent f6fbeda commit fae6094

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/math/lp/lar_core_solver.h

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Copyright (c) 2017 Microsoft Corporation
99
#include "util/vector.h"
1010
#include <string>
1111
#include <utility>
12-
#include "math/lp/lp_core_solver_base.h"
1312
#include <algorithm>
1413
#include "math/lp/indexed_vector.h"
1514
#include "math/lp/lp_primal_core_solver.h"

src/math/lp/lar_solver.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "math/lp/lar_constraints.h"
3333
#include "math/lp/lar_core_solver.h"
3434
#include "math/lp/lp_bound_propagator.h"
35-
#include "math/lp/lp_primal_core_solver.h"
3635
#include "math/lp/lp_types.h"
3736
#include "math/lp/nra_solver.h"
3837
#include "math/lp/numeric_pair.h"
@@ -524,7 +523,7 @@ class lar_solver : public column_namer {
524523
}
525524

526525
inline mpq bound_span_x(lpvar j) const {
527-
return m_mpq_lar_core_solver.m_r_solver.m_upper_bounds[j].x - m_mpq_lar_core_solver.m_r_solver.m_lower_bounds[j].x;
526+
return get_upper_bound(j).x - get_lower_bound(j).x;
528527
}
529528

530529
bool has_lower_bound(lpvar var, u_dependency*& ci, mpq& value, bool& is_strict) const;

0 commit comments

Comments
 (0)