Skip to content

Commit

Permalink
na
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed May 1, 2022
1 parent b5c7f00 commit 9cc5f69
Showing 1 changed file with 15 additions and 30 deletions.
45 changes: 15 additions & 30 deletions src/opt/maxcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class maxcore : public maxsmt_solver_base {
s_primal,
s_primal_dual,
s_primal_binary,
s_primal_binary_delay,
s_rc2
};
private:
Expand Down Expand Up @@ -115,21 +114,20 @@ class maxcore : public maxsmt_solver_base {
model_ref m_csmodel;
lns_maxcore m_lnsctx;
lns m_lns;
unsigned m_correction_set_size;
bool m_found_feasible_optimum;
bool m_hill_climb; // prefer large weight soft clauses for cores
unsigned m_last_index; // last index used during hill-climbing
bool m_add_upper_bound_block; // restrict upper bound with constraint
unsigned m_max_core_size; // max core size per round.
bool m_maximize_assignment; // maximize assignment to find MCS
unsigned m_max_correction_set_size;// maximal set of correction set that is tolerated.
bool m_wmax; // Block upper bound using wmax
// this option is disabled if SAT core is used.
bool m_pivot_on_cs; // prefer smaller correction set to core.
bool m_dump_benchmarks; // display benchmarks (into wcnf format)
bool m_enable_lns = false; // enable LNS improvements
unsigned m_lns_conflicts = 1000; // number of conflicts used for LNS improvement
bool m_enable_core_rotate = false;
unsigned m_correction_set_size = 0;
bool m_found_feasible_optimum = false;
bool m_hill_climb = true; // prefer large weight soft clauses for cores
bool m_add_upper_bound_block = false; // restrict upper bound with constraint
unsigned m_max_core_size = 3; // max core size per round.
bool m_maximize_assignment = false; // maximize assignment to find MCS
unsigned m_max_correction_set_size = 3; // maximal set of correction set that is tolerated.
bool m_wmax = false; // Block upper bound using wmax
// this option is disabled if SAT core is used.
bool m_pivot_on_cs = true; // prefer smaller correction set to core.
bool m_dump_benchmarks; // display benchmarks (into wcnf format)
bool m_enable_lns = false; // enable LNS improvements
unsigned m_lns_conflicts = 1000; // number of conflicts used for LNS improvement
bool m_enable_core_rotate = false; // enable core rotation
std::string m_trace_id;
typedef ptr_vector<expr> exprs;

Expand All @@ -144,16 +142,7 @@ class maxcore : public maxsmt_solver_base {
m_trail(m),
m_st(st),
m_lnsctx(*this),
m_lns(s(), m_lnsctx),
m_correction_set_size(0),
m_found_feasible_optimum(false),
m_hill_climb(true),
m_add_upper_bound_block(false),
m_max_num_cores(UINT_MAX),
m_max_core_size(3),
m_maximize_assignment(false),
m_max_correction_set_size(3),
m_pivot_on_cs(true)
m_lns(s(), m_lnsctx)
{
switch(st) {
case s_primal:
Expand All @@ -165,9 +154,6 @@ class maxcore : public maxsmt_solver_base {
case s_primal_binary:
m_trace_id = "maxres-bin";
break;
case s_primal_binary_delay:
m_trace_id = "maxres-bin-delay";
break;
case s_rc2:
m_trace_id = "rc2";
break;
Expand Down Expand Up @@ -373,7 +359,6 @@ class maxcore : public maxsmt_solver_base {
switch(m_st) {
case s_primal:
case s_primal_binary:
case s_primal_binary_delay:
case s_rc2:
return mus_solver();
case s_primal_dual:
Expand Down

1 comment on commit 9cc5f69

@NikolajBjorner
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is removing a buggy experiment with changing maxsat core transformation. Users should stick with default configuration.

Please sign in to comment.