Function clingo_sys::clingo_backend_minimize
[−]
[src]
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.
Parameters:
backend
- the target backendpriority
- the priority of the constraintliterals
- the weighted literals whose sum to minimizesize
- the number of weighted literals
Returns whether the call was successful; might set one of the following error codes:
- ::clingo_error_bad_alloc