summaryrefslogtreecommitdiff
path: root/src/theory/arith/simplex.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2011-03-17 20:38:32 +0000
committerTim King <taking@cs.nyu.edu>2011-03-17 20:38:32 +0000
commit232042b3e2e265dbfe9c693d018d48388be91018 (patch)
tree55dc6d39bbd5eff9b0b1c220ed33dac3d4bdd316 /src/theory/arith/simplex.h
parent68f8b6b2589320dac3a022a1e5058e5a65cc570b (diff)
- Removes arith_constants.h
- Adds ArithStaticLearner. Consolidates and cleans up the code for static learning in arithmetic. Static learning is now associated with a small amount of state between calls. This is used to track the data for the miplib trick. The goal is to make this inference work without relying on the fact that all of the miplib problem is asserted under the same AND node. - This commit contains miscellaneous other arithmetic cleanup.
Diffstat (limited to 'src/theory/arith/simplex.h')
-rw-r--r--src/theory/arith/simplex.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/theory/arith/simplex.h b/src/theory/arith/simplex.h
index c6bc3c434..6f3ff073f 100644
--- a/src/theory/arith/simplex.h
+++ b/src/theory/arith/simplex.h
@@ -25,9 +25,6 @@ namespace arith {
class SimplexDecisionProcedure {
private:
- /** Stores system wide constants to avoid unnessecary reconstruction. */
- const ArithConstants& d_constants;
-
/**
* Manages information about the assignment and upper and lower bounds on
* variables.
@@ -44,23 +41,22 @@ private:
std::vector<Node> d_delayedLemmas;
uint32_t d_delayedLemmasPos;
+ Rational d_ZERO;
+
public:
- SimplexDecisionProcedure(const ArithConstants& constants,
- ArithPartialModel& pm,
+ SimplexDecisionProcedure(ArithPartialModel& pm,
OutputChannel* out,
Tableau& tableau) :
- d_constants(constants),
d_partialModel(pm),
d_out(out),
d_tableau(tableau),
d_queue(pm, tableau),
d_numVariables(0),
d_delayedLemmas(),
- d_delayedLemmasPos(0)
+ d_delayedLemmasPos(0),
+ d_ZERO(0)
{}
-
-public:
/**
* Assert*(n, orig) takes an bound n that is implied by orig.
* and asserts that as a new bound if it is tighter than the current bound
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback