package lp-glpk
Install
Dune Dependency
Authors
Maintainers
Sources
md5=5e9ec847f25fb939b3c68ae99244cfac
sha512=336c007cc2a26eebbe0027ed43a853518182589e6fa56b127aee33e268cfdc0d147f0bf0280df80bb172aa3a672349f59adf1f5675d4f8f5dfdcfa427558dd34
doc/lp-glpk.bindings/Lp_glpk_bindings/M/index.html
Module Lp_glpk_bindings.M
Source
Parameters
module F : Ctypes.FOREIGN
Signature
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.result
set_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.result
set_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.result
load_matrix prob
ne
ia
ja
ar
sets the constraint matrix. The matrix is represented as an sparce matrix. for k=1 .. ne
, value ar
k
is set at (ia
k
, ja
k
) element.
val simplex :
(prob ->
T.Smcp.t Ctypes.structure Ctypes_static.ptr ->
T.SimplexReturn.t F.return)
F.result
val intopt :
(prob ->
T.Iocp.t Ctypes.structure Ctypes_static.ptr ->
T.IntoptReturn.t F.return)
F.result