3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-16 05:48:44 +00:00
z3/src/opt/fu_malik.h
Nikolaj Bjorner cfedbe3dfd add opt_solver layer
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2013-10-17 17:33:43 -07:00

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