mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 20:38:43 +00:00
parameter example
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9777f43e75
commit
1e32f1fbb5
|
@ -37,6 +37,7 @@ namespace sat {
|
|||
m_psm_glue("psm_glue") {
|
||||
m_num_threads = 1;
|
||||
m_local_search = false;
|
||||
m_local_search_parameter1 = 0;
|
||||
updt_params(p);
|
||||
}
|
||||
|
||||
|
@ -81,6 +82,7 @@ namespace sat {
|
|||
m_max_conflicts = p.max_conflicts();
|
||||
m_num_threads = p.threads();
|
||||
m_local_search = p.local_search();
|
||||
m_local_search_parameter1 = p.local_search_int();
|
||||
|
||||
// These parameters are not exposed
|
||||
m_simplify_mult1 = _p.get_uint("simplify_mult1", 300);
|
||||
|
|
|
@ -59,6 +59,7 @@ namespace sat {
|
|||
unsigned m_max_conflicts;
|
||||
unsigned m_num_threads;
|
||||
bool m_local_search;
|
||||
unsigned m_local_search_parameter1;
|
||||
|
||||
unsigned m_simplify_mult1;
|
||||
double m_simplify_mult2;
|
||||
|
|
|
@ -226,6 +226,7 @@ namespace sat {
|
|||
local_search::local_search(solver& s) :
|
||||
m_par(0) {
|
||||
|
||||
std::cout << "Parameter1: " << s.m_config.m_local_search_parameter1 << "\n";
|
||||
m_vars.reserve(s.num_vars());
|
||||
|
||||
// copy units
|
||||
|
|
|
@ -29,4 +29,5 @@ def_module_params('sat',
|
|||
('cardinality.solver', BOOL, False, 'use cardinality solver'),
|
||||
('xor.solver', BOOL, False, 'use xor solver'),
|
||||
('local_search', BOOL, False, 'add local search co-processor to find satisfiable solution'),
|
||||
('local_search.int', UINT, 0, 'arbitrary integer'),
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue