Function clingo_sys::clingo_model_cost
[−]
[src]
pub unsafe extern "C" fn clingo_model_cost(
model: *const clingo_model_t,
costs: *mut i64,
size: usize
) -> bool
Get the cost vector of a model.
Parameters:
model
- the targetcosts
- the resulting costssize
- the number of costs
Returns whether the call was successful; might set one of the following error codes:
- ::clingo_error_bad_alloc
- ::clingo_error_runtime if the size is too small
@see clingo_model_cost_size() @see clingo_model_optimality_proven()