Skip to main content

Z3_optimize_assert_soft

Function Z3_optimize_assert_soft 

Source
pub unsafe extern "C" fn Z3_optimize_assert_soft(
    c: Z3_context,
    o: Z3_optimize,
    a: Z3_ast,
    weight: Z3_string,
    id: Option<Z3_symbol>,
) -> c_uint
Expand description

Assert soft constraint to the optimization context.

  • c: context
  • o: optimization context
  • a: formula
  • weight: a penalty for violating soft constraint. Negative weights convert into rewards.
  • id: optional identifier to group soft constraints

ยงSee also