lpsolve
calling conventionsThe library is able to solve linear and mixed integer programming problems, depending on which function is selected. The function to call the linear programming solver is of the form
library('lpsolve','stdform')
and the mixed integer programming functions are of the form
library('lpsolve','iform')
library('lpsolve','bform')
library('lpsolve','biform')
The argument to the stdform
function represents a triple
(
c,(
m,
y))
, which has the same interpretation
described in glpk input parameters. The arguments to the iform
,
bform
, and biform
functions are tuples
(
i,(
c,(
m,
y)))
(
b,(
c,(
m,
y)))
, and
((
b,
i),(
c,(
m,
y)))
, respectively, where
c, m, and y are as above, and
where column indices pertain to the constraint matrix, and are numbered from zero. Specifying some or all variables as integers directs the solver to seek only solutions in which those variables have integer values, and specifying any as binary directs the solver to seek only solutions in which those variables have values of zero or one. The IEEE floating point representation is used for all variables regardless (math).