Skip to main content

Crate papilo_sys

Crate papilo_sys 

Source

Re-exports§

pub use self::Papilo_RowType as PAPILO_ROW_TYPE;
pub use self::Papilo_ParamResult as PAPILO_PARAM_RESULT;
pub use self::Papilo_SolveResult as PAPILO_SOLVE_RESULT;

Structs§

PAPILO_SOLVING_INFO
Papilo_Problem
Papilo_Solver
__fsid_t
max_align_t

Constants§

INT8_MAX
INT8_MIN
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
PTRDIFF_MAX
PTRDIFF_MIN
Papilo_ParamResult_PAPILO_PARAM_CHANGED
parameter was successfully changed
Papilo_ParamResult_PAPILO_PARAM_INVALID_VALUE
parameter was set to an invalid value
Papilo_ParamResult_PAPILO_PARAM_NOT_FOUND
parameter does not exist
Papilo_ParamResult_PAPILO_PARAM_WRONG_TYPE
parameter is of a different type
Papilo_RowType_PAPILO_ROW_TYPE_EQUAL
Papilo_RowType_PAPILO_ROW_TYPE_GREATER
Papilo_RowType_PAPILO_ROW_TYPE_LESSER
Papilo_SolveResult_PAPILO_SOLVE_RESULT_FEASIBLE
solving stopped early with a feasible solution due to limits or interrupts
Papilo_SolveResult_PAPILO_SOLVE_RESULT_INFEASIBLE
problem was detected to be infeasible
Papilo_SolveResult_PAPILO_SOLVE_RESULT_OPTIMAL
problem was solved to optimality
Papilo_SolveResult_PAPILO_SOLVE_RESULT_STOPPED
solving stopped early and without a solution due to limits or interrupts
Papilo_SolveResult_PAPILO_SOLVE_RESULT_UNBND_OR_INFEAS
problem was detected to be unbounded or infeasible
Papilo_SolveResult_PAPILO_SOLVE_RESULT_UNBOUNDED
problem was detected to be unbounded
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_STDINT_INTN_H
_BITS_STDINT_LEAST_H
_BITS_STDINT_UINTN_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_SYS_CDEFS_H
__FD_SETSIZE
__GLIBC_MINOR__
__GLIBC_USE_C23_STRTOL
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C23
__GLIBC_USE_IEC_60559_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C23
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2Y
__GLIBC_USE_ISOC23
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI
__OFF_T_MATCHES_OFF64_T
__RLIM_T_MATCHES_RLIM64_T
__STATFS_MATCHES_STATFS64
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_IEC_60559_BFP__
__STDC_IEC_60559_COMPLEX__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_TIME_BITS64
__USE_XOPEN2K
__USE_XOPEN2K8
__USE_XOPEN2K24
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
__glibc_c99_flexarr_available

Functions§

papilo_problem_add_col⚠
Adds a column (variable) to the problem and returns its index. If colnames is NULL a generic name is used.
papilo_problem_add_cols⚠
Add columns (variables) to the problem and returns the index of the first new column or -1 if it does not exist (i.e. num == 0). If colnames is NULL generic names are used.
papilo_problem_add_generic_row⚠
Add one linear constraints with given left and right hand side to the problem and returns its index. If the rowname is NULL generic names are used. The row can be a ranged row if both lhs and rhs are finite.
papilo_problem_add_generic_rows⚠
Add linear constraints with given left and right hand sides to the problem and returns the index of the first new row or -1 if it does not exist (i.e. num == 0). If rownames is NULL generic names are used. The rows can be a ranged row if both lhs and rhs are finite.
papilo_problem_add_nonzero⚠
Add a nonzero entry for the given column to the given constraint
papilo_problem_add_nonzeros_col⚠
Add the nonzero entries for the given column to the given rows
papilo_problem_add_nonzeros_csc⚠
Add the nonzero entries given in compressed sparse column format. The array colstart must have size at least ncols + 1 and the arrays rows and vals must have size at least colstart[ncols].
papilo_problem_add_nonzeros_csr⚠
Add the nonzero entries given in compressed sparse row format. The array rowstart must have size at least nrows + 1 and the arrays cols and vals must have size at least rowstart[nrows].
papilo_problem_add_nonzeros_row⚠
Add the nonzero entries for the given columns to the given row
papilo_problem_add_simple_row⚠
Add one simple linear constraint (no ranged row) to the problem and returns its index. If rowname is NULL generic names are used.
papilo_problem_add_simple_rows⚠
Add simple linear constraints (no ranged rows) to the problem and returns the index of the first new row or -1 if it does not exist (i.e. num == 0). If rownames is NULL generic names are used.
papilo_problem_change_col_integral⚠
Change columns integrality restrictions
papilo_problem_change_col_lb⚠
Change columns lower bound
papilo_problem_change_col_obj⚠
Change columns objective coefficient
papilo_problem_change_col_ub⚠
Change columns upper bound
papilo_problem_create⚠
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.
papilo_problem_free⚠
Free the problem datastructure
papilo_problem_get_num_cols⚠
returns number of columns
papilo_problem_get_num_nonzeros⚠
returns number of columns
papilo_problem_get_num_rows⚠
returns number of rows
papilo_solver_create⚠
Create a new solver datastructure
papilo_solver_free⚠
Free the problem datastructure
papilo_solver_load_problem⚠
Load the problem into the solver, the problem datastructure will be empty afterwards and can be reused to build another problem
papilo_solver_set_lp_param_bool⚠
Set boolean parameter with given key to the given value
papilo_solver_set_lp_param_char⚠
Set character parameter with given key to the given value
papilo_solver_set_lp_param_int⚠
Set integer parameter with given key to the given value
papilo_solver_set_lp_param_int64⚠
Set 64bit integer parameter with given key to the given value
papilo_solver_set_lp_param_real⚠
Set real parameter with given key to the given value
papilo_solver_set_lp_param_string⚠
Set string parameter with given key to the given value
papilo_solver_set_mip_param_bool⚠
Set boolean parameter with given key to the given value
papilo_solver_set_mip_param_char⚠
Set character parameter with given key to the given value
papilo_solver_set_mip_param_int⚠
Set integer parameter with given key to the given value
papilo_solver_set_mip_param_int64⚠
Set 64bit integer parameter with given key to the given value
papilo_solver_set_mip_param_real⚠
Set real parameter with given key to the given value
papilo_solver_set_mip_param_string⚠
Set string parameter with given key to the given value
papilo_solver_set_num_threads⚠
Set the maximum number of threads to be used when the solver is started. Can be -1 to determine the number of threads automatically based on the hardware (default behavior), or a number larger or equal to 1.
papilo_solver_set_param_bool⚠
Set bool parameter with given key to the given value
papilo_solver_set_param_char⚠
Set character parameter with given key to the given value
papilo_solver_set_param_int⚠
Set integer parameter with given key to the given value
papilo_solver_set_param_real⚠
Set real parameter with given key to the given value
papilo_solver_set_param_string⚠
Set string parameter with given key to the given value
papilo_solver_set_trace_callback⚠
Set callback for message output. If the callback is set to NULL output is printed to stdout. The level argument is set as follows: 1 - errors, 2 - warnings, 3 - info, 4 - detailed
papilo_solver_start⚠
Start the solving process
papilo_solver_write_mps⚠
Write the problem to an mps file. Must be called after the problem was loaded into the solver. If the filename ends with .gz or .bz2 the file is written compressed

Type Aliases§

PAPILO_PROBLEM
PAPILO_SOLVER
Solver type for presolve library
Papilo_ParamResult
Return values for setting solver parameters
Papilo_RowType
Enum type to specify the rows with a single side value
Papilo_SolveResult
Return values for solving
__blkcnt64_t
__blkcnt_t
__blksize_t
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds64_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
wchar_t