Skip to main content

papilo_problem_create

Function papilo_problem_create 

Source
pub unsafe extern "C" fn papilo_problem_create(
    infinity: f64,
    name: *const c_char,
    nnz_hint: c_int,
    row_hint: c_int,
    col_hint: c_int,
) -> *mut PAPILO_PROBLEM
Expand description

Create a new problem datastructure. Reserves space for the given number of rows, columns, and nonzeros to prevent unnecessary reallocation during problem creation. The given value of infinity is used to determine the finiteness of bounds and rowsides. The name pointer and the space hints are optional and can be NULL/0.