3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-04 22:35:45 +00:00

adding simplex

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-02-12 20:20:52 -08:00
parent a594597906
commit 51cb63b6c0
8 changed files with 42 additions and 13 deletions

View file

@ -161,6 +161,7 @@ namespace simplex {
template<typename Ext>
lbool simplex<Ext>::make_feasible() {
TRACE("simplex", tout << "\n";);
m_left_basis.reset();
m_infeasible_var = null_var;
unsigned num_iterations = 0;
@ -168,6 +169,7 @@ namespace simplex {
var_t v = null_var;
SASSERT(well_formed());
while ((v = select_var_to_fix()) != null_var) {
TRACE("simplex", tout << "v" << v << "\n";);
if (m_cancel || num_iterations > m_max_iterations) {
return l_undef;
}