summaryrefslogtreecommitdiff
path: root/src/theory/arith/simplex.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2011-02-16 23:23:04 +0000
committerTim King <taking@cs.nyu.edu>2011-02-16 23:23:04 +0000
commit977730599a67d53fb4479b32714fafa7867cfa11 (patch)
tree5a751a9ccca72726f00517199126803db969d2f6 /src/theory/arith/simplex.h
parentd9c4e43fe7314aa5ddeeca3ca710612e8b1d92a9 (diff)
Overview of the changes:
- Preparing to remove row ejection from the code base! - Checks for conflicts immediately after a pivot to avoid potentially wasteful search. - Added arithvar_set.h. This replaces ArithVarSet that was previously in the Tableau, and ArithVarDenseSet. - Removes variables that have no preregistered bounds during presolve(). - Theory::isLeafOf() currently returns true for atoms. (I was unaware.) I modified Variable::isMember() to account for this exclude atoms. - Added statistics all over the place. This commit effects both boolean search and simplex search so expect running times to go all over the place. The time differences should be roughly as follows: http://goedel.cims.nyu.edu/regress-results/compare_jobs.php?job_id=1486&reference_id=1447&p=10&category=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,29
Diffstat (limited to 'src/theory/arith/simplex.h')
-rw-r--r--src/theory/arith/simplex.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/theory/arith/simplex.h b/src/theory/arith/simplex.h
index 2ae6b091d..587f468e0 100644
--- a/src/theory/arith/simplex.h
+++ b/src/theory/arith/simplex.h
@@ -5,7 +5,7 @@
#define __CVC4__THEORY__ARITH__SIMPLEX_H
#include "theory/arith/arith_utilities.h"
-#include "theory/arith/arithvar_dense_set.h"
+#include "theory/arith/arithvar_set.h"
#include "theory/arith/delta_rational.h"
#include "theory/arith/tableau.h"
#include "theory/arith/partial_model.h"
@@ -55,7 +55,7 @@ private:
*/
ArithPartialModel& d_partialModel;
- ArithVarDenseSet& d_basicManager;
+ ArithVarSet& d_basicManager;
ActivityMonitor& d_activityMonitor;
OutputChannel* d_out;
@@ -70,7 +70,7 @@ private:
public:
SimplexDecisionProcedure(const ArithConstants& constants,
ArithPartialModel& pm,
- ArithVarDenseSet& bm,
+ ArithVarSet& bm,
OutputChannel* out,
ActivityMonitor& am,
Tableau& tableau) :
@@ -197,6 +197,15 @@ private:
/** Check to make sure all of the basic variables are within their bounds. */
void checkBasicVariable(ArithVar basic);
+ /**
+ * Checks a basic variable, b, to see if it is in conflict.
+ * If a conflict is discovered a node summarizing the conflict is returned.
+ * Otherwise, Node::null() is returned.
+ */
+ Node checkBasicForConflict(ArithVar b);
+
+ bool d_foundAConflict;
+ unsigned d_pivotsSinceConflict;
/** These fields are designed to be accessable to TheoryArith methods. */
class Statistics {
@@ -207,7 +216,11 @@ private:
IntStat d_statEjections, d_statUnEjections;
IntStat d_statEarlyConflicts, d_statEarlyConflictImprovements;
+
TimerStat d_selectInitialConflictTime;
+
+ IntStat d_pivotsAfterConflict, d_checksWithWastefulPivots;
+ TimerStat d_pivotTime;
Statistics();
~Statistics();
};
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback