mirror of
https://github.com/Z3Prover/z3
synced 2025-04-16 05:48:44 +00:00
35 lines
591 B
C++
35 lines
591 B
C++
/*++
|
|
Copyright (c) 2013 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
fu_malik.h
|
|
|
|
Abstract:
|
|
Fu&Malik built-in optimization method.
|
|
Adapted from sample code in C.
|
|
|
|
Author:
|
|
|
|
Anh-Dung Phan (t-anphan) 2013-10-15
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
#ifndef _OPT_FU_MALIK_H_
|
|
#define _OPT_FU_MALIK_H_
|
|
|
|
#include "solver.h"
|
|
|
|
namespace opt {
|
|
/**
|
|
Takes solver with hard constraints added.
|
|
Returns a maximal satisfying subset of soft_constraints
|
|
that are still consistent with the solver state.
|
|
*/
|
|
|
|
lbool fu_malik_maxsat(::solver& s, expr_ref_vector& soft_constraints);
|
|
};
|
|
|
|
#endif
|