package lp-glpk
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=92a179cb5ff0feb598b9cc404779f6dc
sha512=c34ee01cc8ffa980b7e94a951179292a40df98fb4afa6d0d7bbeb6ae0a8d60c3fbfc031a634e2ee74236b493f38ee548bf22acfb6b5c47baccbbf2778ff89c7c
doc/lp-glpk.bindings/Lp_glpk_bindings/M/index.html
Module Lp_glpk_bindings.MSource
Parameters
module F : Ctypes.FOREIGNSignature
set_row_bnds prob i bnd lb ub sets bounds of i-th row (constraint). If the row is not lower (upper) bounded, lb (ub) is just ignored. If the row is equality constraint (Bnd.FX), only lb is used and ub is ignored.
set_col_bnds prob j bnd lb ub sets bounds of j-th col (variable). If the col is not lower (upper) bounded, lb (ub) is just ignored. If the col is equality constraint (Bnd.FX), only lb is used and ub is ignored.
set_obj_coef prob j sets the objective coefficient at j-th col (variable)
val set_mat_row :
(prob ->
int ->
int ->
unit Ctypes_static.ptr ->
unit Ctypes_static.ptr ->
unit F.return)
F.resultset_mat_row prob i len indices vals sets the i-th row of constraint matrix.
val set_mat_col :
(prob ->
int ->
int ->
unit Ctypes_static.ptr ->
unit Ctypes_static.ptr ->
unit F.return)
F.resultset_mat_col prob j len indices vals sets the j-th column of constraint matrix.
val load_matrix :
(prob ->
int ->
unit Ctypes_static.ptr ->
unit Ctypes_static.ptr ->
unit Ctypes_static.ptr ->
unit F.return)
F.resultload_matrix prob ne ia ja ar sets the constraint matrix. The matrix is represented as an sparce matrix. for k=1 .. ne, value ark is set at (iak, jak) element.