pub unsafe extern "C" fn clingo_model_cost(
    model: *const clingo_model_t,
    costs: *mut i64,
    size: usize
) -> bool
Expand description

! Get the cost vector of a model. ! ! @param[in] model the target ! @param[out] costs the resulting costs ! @param[in] size the number of costs ! @return 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()