[][src]Function clingo_sys::clingo_backend_minimize

pub unsafe extern "C" fn clingo_backend_minimize(
    backend: *mut clingo_backend_t,
    priority: clingo_weight_t,
    literals: *const clingo_weighted_literal_t,
    size: usize
) -> bool

! Add a minimize constraint (or weak constraint) to the program. ! ! @param[in] backend the target backend ! @param[in] priority the priority of the constraint ! @param[in] literals the weighted literals whose sum to minimize ! @param[in] size the number of weighted literals ! @return whether the call was successful; might set one of the following error codes: ! - ::clingo_error_bad_alloc