Title: | R Interface to C API of GLPK |
---|---|
Description: | R Interface to C API of GLPK, depends on GLPK Version >= 4.42. |
Authors: | Mihail Anton [cre], Mayo Roettger [ctb], Gabriel Gelius-Dietrich [aut], Louis Luangkesorn [ctb] |
Maintainer: | Mihail Anton <[email protected]> |
License: | GPL-3 | file LICENSE |
Version: | 1.3.4 |
Built: | 2024-11-01 11:38:13 UTC |
Source: | CRAN |
A low level interface to the GNU Linear Programming Kit (GLPK).
The package glpkAPI
provides access to the callable library
of the GNU Linear Programming Kit from within R.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
# load package library(glpkAPI) # preparing the model lp <- initProbGLPK() # model data nrows <- 5 ncols <- 8 # constraint matrix ne <- 14 ia <- c(1, 5, 1, 2, 2, 3, 1, 4, 1, 5, 3, 4, 1, 5) ja <- c(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 8) ar <- c(3.0, 5.6, 1.0, 2.0, 1.1, 1.0, -2.0, 2.8, -1.0, 1.0, 1.0, -1.2, -1.0, 1.9) # objective function obj <- c(1, 0, 0, 0, 2, 0, 0, -1) # upper and lower bounds of the rows rlower <- c(2.5, -1000, 4, 1.8, 3) rupper <- c(1000, 2.1, 4, 5, 15) # upper and lower bounds of the columns clower <- c(2.5, 0, 0, 0, 0.5, 0, 0, 0) cupper <- c(1000, 4.1, 1, 1, 4, 1000, 1000, 4.3) # direction of optimization setObjDirGLPK(lp, GLP_MIN) # add rows and columns addRowsGLPK(lp, nrows) addColsGLPK(lp, ncols) setColsBndsObjCoefsGLPK(lp, c(1:ncols), clower, cupper, obj) setRowsBndsGLPK(lp, c(1:nrows), rlower, rupper) # load constraint matrix loadMatrixGLPK(lp, ne, ia, ja, ar) # solve lp problem solveSimplexGLPK(lp) # retrieve the results getSolStatGLPK(lp) getObjValGLPK(lp) getColsPrimGLPK(lp) # remove problem object delProbGLPK(lp)
# load package library(glpkAPI) # preparing the model lp <- initProbGLPK() # model data nrows <- 5 ncols <- 8 # constraint matrix ne <- 14 ia <- c(1, 5, 1, 2, 2, 3, 1, 4, 1, 5, 3, 4, 1, 5) ja <- c(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 8) ar <- c(3.0, 5.6, 1.0, 2.0, 1.1, 1.0, -2.0, 2.8, -1.0, 1.0, 1.0, -1.2, -1.0, 1.9) # objective function obj <- c(1, 0, 0, 0, 2, 0, 0, -1) # upper and lower bounds of the rows rlower <- c(2.5, -1000, 4, 1.8, 3) rupper <- c(1000, 2.1, 4, 5, 15) # upper and lower bounds of the columns clower <- c(2.5, 0, 0, 0, 0.5, 0, 0, 0) cupper <- c(1000, 4.1, 1, 1, 4, 1000, 1000, 4.3) # direction of optimization setObjDirGLPK(lp, GLP_MIN) # add rows and columns addRowsGLPK(lp, nrows) addColsGLPK(lp, ncols) setColsBndsObjCoefsGLPK(lp, c(1:ncols), clower, cupper, obj) setRowsBndsGLPK(lp, c(1:nrows), rlower, rupper) # load constraint matrix loadMatrixGLPK(lp, ne, ia, ja, ar) # solve lp problem solveSimplexGLPK(lp) # retrieve the results getSolStatGLPK(lp) getObjValGLPK(lp) getColsPrimGLPK(lp) # remove problem object delProbGLPK(lp)
Low level interface function to the GLPK function glp_add_cols
.
Consult the GLPK documentation for more detailed information.
addColsGLPK(lp, ncols)
addColsGLPK(lp, ncols)
lp |
An object of class |
ncols |
The number of columns to add. |
Interface to the C function addCols
which calls the GLPK
function glp_add_cols
.
The ordinal number of the first new column added to the problem object is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html
Low level interface function to the GLPK function glp_add_rows
.
Consult the GLPK documentation for more detailed information.
addRowsGLPK(lp, nrows)
addRowsGLPK(lp, nrows)
lp |
An object of class |
nrows |
The number of rows to add. |
Interface to the C function addRows
which calls the GLPK
function glp_add_rows
.
The ordinal number of the first new row added to the problem object is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html
Low level interface function to the GLPK function glp_adv_basis
.
Consult the GLPK documentation for more detailed information.
advBasisGLPK(lp)
advBasisGLPK(lp)
lp |
An object of class |
Interface to the C function advBasis
which calls the GLPK
function glp_adv_basis
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html
Low level interface function to the GLPK function glp_bf_exists
.
Consult the GLPK documentation for more detailed information.
bfExistsGLPK(lp)
bfExistsGLPK(lp)
lp |
An object of class |
Interface to the C function bfExists
which calls the GLPK
function glp_bf_exists
.
Returns non-zero if the basis factorization for the specified problem object exists. Otherwise the routine returns zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_bf_updated
.
Consult the GLPK documentation for more detailed information.
bfUpdatedGLPK(lp)
bfUpdatedGLPK(lp)
lp |
An object of class |
Interface to the C function bfUpdated
which calls the GLPK
function glp_bf_updated
.
Returns non-zero if the basis factorization has been updated at least once. Otherwise the routine returns zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_check_dup
.
Consult the GLPK documentation for more detailed information.
checkDupGLPK(m, n, ne, ia, ja)
checkDupGLPK(m, n, ne, ia, ja)
m |
Number of rows in the matrix. |
n |
Number of columns in the matrix. |
ne |
Number of non-zero elements in the matrix. |
ia |
Row indices of the non-zero elements. |
ja |
Column indices of the non-zero elements. |
Interface to the C function checkDup
which calls the GLPK
function glp_check_dup
.
Returns one of the following values:
0 |
No duplikate elements. |
-k |
Indices |
+k |
Element |
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html
Low level interface function to the GLPK function glp_copy_prob
.
Consult the GLPK documentation for more detailed information.
copyProbGLPK(lp, clp, name = GLP_OFF)
copyProbGLPK(lp, clp, name = GLP_OFF)
lp |
An object of class |
clp |
A pointer to a GLPK problem object (destination). |
name |
If set to |
Interface to the C function copyProb
which calls the GLPK
function glp_copy_prob
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘enable/disable flag’.
Low level interface function to the GLPK function glp_cpx_basis
.
Consult the GLPK documentation for more detailed information.
cpxBasisGLPK(lp)
cpxBasisGLPK(lp)
lp |
An object of class |
Interface to the C function cpxBasis
which calls the GLPK
function glp_cpx_basis
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_create_index
.
Consult the GLPK documentation for more detailed information.
createIndexGLPK(lp)
createIndexGLPK(lp)
lp |
An object of class |
Interface to the C function createIndex
which calls the GLPK
function glp_create_index
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_del_cols
.
Consult the GLPK documentation for more detailed information.
delColsGLPK(lp, ncols, j)
delColsGLPK(lp, ncols, j)
lp |
An object of class |
ncols |
Number of columns to delete. |
j |
Ordinal numbers of columns to delete. |
Interface to the C function delCols
which calls the GLPK
function glp_del_cols
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_delete_index
.
Consult the GLPK documentation for more detailed information.
deleteIndexGLPK(lp)
deleteIndexGLPK(lp)
lp |
An object of class |
Interface to the C function deleteIndex
which calls the GLPK
function glp_delete_index
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_delete_prob
.
Consult the GLPK documentation for more detailed information.
delProbGLPK(lp)
delProbGLPK(lp)
lp |
An object of class |
Interface to the C function delProb
which calls the GLPK
function glp_delete_prob
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_del_rows
.
Consult the GLPK documentation for more detailed information.
delRowsGLPK(lp, nrows, i)
delRowsGLPK(lp, nrows, i)
lp |
An object of class |
nrows |
Number of rows to delete. |
i |
Ordinal numbers of rows to delete. |
Interface to the C function delRows
which calls the GLPK
function glp_del_rows
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_erase_prob
.
Consult the GLPK documentation for more detailed information.
eraseProbGLPK(lp)
eraseProbGLPK(lp)
lp |
An object of class |
Interface to the C function eraseProb
which calls the GLPK
function glp_erase_prob
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_factorize
.
Consult the GLPK documentation for more detailed information.
factorizeGLPK(lp)
factorizeGLPK(lp)
lp |
An object of class |
Interface to the C function factorize
which calls the GLPK
function glp_factorize
.
Returns zero if the basis factorization has been successfully computed. Otherwise the routine returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘return codes’.
Low level interface function to the GLPK function glp_find_col
.
Consult the GLPK documentation for more detailed information.
findColGLPK(lp, cname)
findColGLPK(lp, cname)
lp |
An object of class |
cname |
A column name. |
Interface to the C function findCol
which calls the GLPK
function glp_find_column
.
Returns the ordinal number of a column, which is assigned the specified cname.
Before calling findColGLPK
for the first time on a problem object
lp
, an index has to created via a call to
createIndexGLPK
.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_find_row
.
Consult the GLPK documentation for more detailed information.
findRowGLPK(lp, rname)
findRowGLPK(lp, rname)
lp |
An object of class |
rname |
A row name. |
Interface to the C function findRow
which calls the GLPK
function glp_find_row
.
Returns the ordinal number of a row, which is assigned the specified rname.
Before calling findRowGLPK
for the first time on a problem object
lp
, an index has to created via a call to
createIndexGLPK
.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Returns the names and values of members in the structure
glp_bfcp
. Consult the GLPK documentation for
more detailed information.
getBfcpGLPK(lp)
getBfcpGLPK(lp)
lp |
An object of class |
Interface to the C function getBfcp
.
The function returns a list.
integer |
The names and corresponding values of all integer
control parameters in |
double |
The names and corresponding values of all double
control parameters in |
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘Control Parameters’.
Low level interface function to the GLPK function glp_get_bhead
.
Consult the GLPK documentation for more detailed information.
getBheadGLPK(lp, k)
getBheadGLPK(lp, k)
lp |
An object of class |
k |
Index of the basic variable. |
Interface to the C function getBhead
which calls the GLPK
function glp_get_bhead
.
Index of the auxiliary/structural variable.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_col_bind
.
Consult the GLPK documentation for more detailed information.
getCbindGLPK(lp, j)
getCbindGLPK(lp, j)
lp |
An object of class |
j |
Structural variable |
Interface to the C function getCbind
which calls the GLPK
function glp_get_col_bind
.
Index of the basic variable.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_col_dual
.
Consult the GLPK documentation for more detailed information.
getColDualGLPK(lp, j)
getColDualGLPK(lp, j)
lp |
An object of class |
j |
Column number |
Interface to the C function getColDual
which calls the GLPK
function glp_get_col_dual
.
Column dual value
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_ipt_col_dual
.
Consult the GLPK documentation for more detailed information.
getColDualIptGLPK(lp, j)
getColDualIptGLPK(lp, j)
lp |
An object of class |
j |
Column number |
Interface to the C function getColDualIpt
which calls the GLPK
function glp_ipt_col_dual
.
Column dual value
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_col_kind
.
Consult the GLPK documentation for more detailed information.
getColKindGLPK(lp, j)
getColKindGLPK(lp, j)
lp |
An object of class |
j |
Column number |
Interface to the C function getColKind
which calls the GLPK
function glp_get_col_kind
.
Column Kind
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_col_lb
.
Consult the GLPK documentation for more detailed information.
getColLowBndGLPK(lp, j)
getColLowBndGLPK(lp, j)
lp |
An object of class |
j |
Column number j. |
Interface to the C function getColLowBnd
which calls the GLPK
function glp_get_col_lb
.
The lower bound of the j
-th column (the corresponding structural
variable) is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_col_name
.
Consult the GLPK documentation for more detailed information.
getColNameGLPK(lp, j)
getColNameGLPK(lp, j)
lp |
An object of class |
j |
Column number j. |
Interface to the C function getColName
which calls the GLPK
function glp_get_col_name
.
The assigned name of the j
-th column is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_col_prim
.
Consult the GLPK documentation for more detailed information.
getColPrimGLPK(lp, j)
getColPrimGLPK(lp, j)
lp |
An object of class |
j |
Column number j. |
Interface to the C function getColPrim
which calls the GLPK
function glp_get_col_prim
.
The primal value of the j
-th column (the corresponding structural
variable) is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_ipt_col_prim
.
Consult the GLPK documentation for more detailed information.
getColPrimIptGLPK(lp, j)
getColPrimIptGLPK(lp, j)
lp |
An object of class |
j |
Column number j. |
Interface to the C function getColPrimIpt
which calls the GLPK
function glp_ipt_col_prim
.
The primal value of the j
-th column (the corresponding structural
variable) is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getColDualGLPK
.
getColsDualGLPK(lp)
getColsDualGLPK(lp)
lp |
An object of class |
Interface to the C function getColsDual
which calls the GLPK
function glp_get_col_dual
.
The column dual values of all columns (structural variables) are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getColDualIptGLPK
.
getColsDualIptGLPK(lp)
getColsDualIptGLPK(lp)
lp |
An object of class |
Interface to the C function getColDualIpt
which calls the GLPK
function glp_ipt_col_dual
.
The column dual values of all columns are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getColKindGLPK
.
getColsKindGLPK(lp, j)
getColsKindGLPK(lp, j)
lp |
An object of class |
j |
Vector of column numbers. |
Interface to the C function getColsKind
which calls the GLPK
function glp_get_col_ub
.
The column kinds of all specified columns (j
) are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getColLowBndGLPK
.
Here, j
can be an integer vector.
getColsLowBndsGLPK(lp, j)
getColsLowBndsGLPK(lp, j)
lp |
An object of class |
j |
Vector of column numbers. |
Interface to the C function getColsLowBnds
which calls the GLPK
function glp_get_col_lb
.
The lower bounds of all specified columns (j
) (the
corresponding structural variables) are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getColPrimGLPK
.
getColsPrimGLPK(lp)
getColsPrimGLPK(lp)
lp |
An object of class |
Interface to the C function getColsPrim
which calls the GLPK
functions glp_get_col_prim
and glp_get_num_cols
.
Returns all values of the stuctural variables as a numeric vector.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getColPrimGLPK
.
getColsPrimIptGLPK(lp)
getColsPrimIptGLPK(lp)
lp |
An object of class |
Interface to the C function getColsPrimIpt
which calls the GLPK
functions glp_ipt_col_prim
and glp_get_num_cols
.
Returns all values of the stuctural variables as a numeric vector.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getColStatGLPK
.
getColsStatGLPK(lp)
getColsStatGLPK(lp)
lp |
An object of class |
Interface to the C function getColsStat
which calls the GLPK
function glp_get_col_stat
.
The column status of all columns are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_col_stat
.
Consult the GLPK documentation for more detailed information.
getColStatGLPK(lp, j)
getColStatGLPK(lp, j)
lp |
An object of class |
j |
Column number |
Interface to the C function getColStat
which calls the GLPK
function glp_get_col_stat
.
Column status
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
This is an advanced version of getColUppBndGLPK
.
Here, j
can be an integer vector.
getColsUppBndsGLPK(lp, j)
getColsUppBndsGLPK(lp, j)
lp |
An object of class |
j |
Vector of column numbers. |
Interface to the C function getColsUppBnds
which calls the GLPK
function glp_get_col_ub
.
The upper bounds of all specified columns (j
) (the
corresponding structural variable) is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_col_type
.
Consult the GLPK documentation for more detailed information.
getColTypeGLPK(lp, j)
getColTypeGLPK(lp, j)
lp |
An object of class |
j |
Column number j. |
Interface to the C function getColType
which calls the GLPK
function glp_get_col_type
.
The type of the j
-th column (the corresponding structural
variable) is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
Low level interface function to the GLPK function glp_get_col_ub
.
Consult the GLPK documentation for more detailed information.
getColUppBndGLPK(lp, j)
getColUppBndGLPK(lp, j)
lp |
An object of class |
j |
Column number j. |
Interface to the C function getColUppBnd
which calls the GLPK
function glp_get_col_ub
.
The upper bound of the j
-th column (the corresponding structural
variable) is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_dual_stat
.
Consult the GLPK documentation for more detailed information.
getDualStatGLPK(lp)
getDualStatGLPK(lp)
lp |
An object of class |
Interface to the C function getDualStat
which calls the GLPK
function glp_get_dual_stat
.
Status of dual basic solution
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
Returns the names and values of members in the structure
glp_iptcp
. Consult the GLPK documentation for
more detailed information.
getInteriorParmGLPK()
getInteriorParmGLPK()
Interface to the C function getInteriorParm
.
The function returns a list.
integer |
The names and corresponding values of all integer
control parameters in |
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘Control Parameters’.
Low level interface function to the GLPK function glp_get_mat_col
.
Consult the GLPK documentation for more detailed information.
getMatColGLPK(lp, j)
getMatColGLPK(lp, j)
lp |
An object of class |
j |
Column number j. |
Interface to the C function getMatCol
which calls the GLPK
functions glp_get_num_rows
and glp_get_mat_col
.
Returns NULL or a list containing the non zero elements of column j:
nnz |
number of non zero elements in column j |
index |
row indices of the non zero elements in column j |
value |
numerical values of the non zero elements in column j |
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_mat_row
.
Consult the GLPK documentation for more detailed information.
getMatRowGLPK(lp, i)
getMatRowGLPK(lp, i)
lp |
An object of class |
i |
Row number i. |
Interface to the C function getMatRow
which calls the GLPK
functions glp_get_num_cols
and glp_get_mat_row
.
Returns NULL or a list containing the non zero elements of row i:
nnz |
number of non zero elements in row i |
index |
column indices of the non zero elements in row i |
value |
numerical values of the non zero elements in row i |
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Returns the names and values of members in the structure
glp_iocp
. Consult the GLPK documentation for
more detailed information.
getMIPParmGLPK()
getMIPParmGLPK()
Interface to the C function getMIPParm
.
The function returns a list.
integer |
The names and corresponding values of all integer
control parameters in |
double |
The names and corresponding values of all double
control parameters in |
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘Control Parameters’.
Low level interface function to the GLPK function glp_get_num_bin
.
Consult the GLPK documentation for more detailed information.
getNumBinGLPK(lp)
getNumBinGLPK(lp)
lp |
An object of class |
Interface to the C function getNumBin
which calls the GLPK
function glp_get_num_bin
.
Number of binary columns.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_num_cols
.
Consult the GLPK documentation for more detailed information.
getNumColsGLPK(lp)
getNumColsGLPK(lp)
lp |
An object of class |
Interface to the C function getNumCols
which calls the GLPK
function glp_get_num_cols
.
Returns the current number of columns in the specified problem object.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_num_int
.
Consult the GLPK documentation for more detailed information.
getNumIntGLPK(lp)
getNumIntGLPK(lp)
lp |
An object of class |
Interface to the C function getNumInt
which calls the GLPK
function glp_get_num_int
.
Number of integer columns.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_num_nz
.
Consult the GLPK documentation for more detailed information.
getNumNnzGLPK(lp)
getNumNnzGLPK(lp)
lp |
An object of class |
Interface to the C function getNumNnz
which calls the GLPK
function glp_get_num_nz
.
Returns the number of non-zero elements in the constraint matrix of the specified problem object.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_num_rows
.
Consult the GLPK documentation for more detailed information.
getNumRowsGLPK(lp)
getNumRowsGLPK(lp)
lp |
An object of class |
Interface to the C function getNumRows
which calls the GLPK
function glp_get_num_rows
.
Returns the current number of rows in the specified problem object.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_obj_coef
.
Consult the GLPK documentation for more detailed information.
getObjCoefGLPK(lp, j)
getObjCoefGLPK(lp, j)
lp |
An object of class |
j |
Column number j. |
Interface to the C function getObjCoef
which calls the GLPK
function glp_get_obj_coef
.
The objective coefficient at the j
-th column (the
corresponding structural variable) is returned. If j
is 0
, the constant term “shift” of the
objective function is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getObjCoefGLPK
.
Here, j
can be an integer vector.
getObjCoefsGLPK(lp, j)
getObjCoefsGLPK(lp, j)
lp |
An object of class |
j |
Vector of column numbers. |
Interface to the C function getObjCoef
which calls the GLPK
function glp_get_obj_coef
.
The objective coefficient at all specified columns (j
)
(the corresponding structural variable) is returned. If
j
is 0
, the constant term “shift” of the
objective function is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_obj_dir
.
Consult the GLPK documentation for more detailed information.
getObjDirGLPK(lp)
getObjDirGLPK(lp)
lp |
An object of class |
Interface to the C function getObjDir
which calls the GLPK
function glp_get_obj_dir
.
Returns the optimization direction flag.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
Low level interface function to the GLPK function glp_get_obj_name
.
Consult the GLPK documentation for more detailed information.
getObjNameGLPK(lp)
getObjNameGLPK(lp)
lp |
An object of class |
Interface to the C function getObjName
which calls the GLPK
function glp_get_obj_name
.
The assigned name of the objective function is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_obj_val
.
Consult the GLPK documentation for more detailed information.
getObjValGLPK(lp)
getObjValGLPK(lp)
lp |
An object of class |
Interface to the C function getObjVal
which calls the GLPK
function glp_get_obj_val
.
Returns the current value of the objective function.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_ipt_obj_val
.
Consult the GLPK documentation for more detailed information.
getObjValIptGLPK(lp)
getObjValIptGLPK(lp)
lp |
An object of class |
Interface to the C function getObjValIpt
which calls the GLPK
function glp_ipt_obj_val
.
Returns the current value of the objective function.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_prim_stat
.
Consult the GLPK documentation for more detailed information.
getPrimStatGLPK(lp)
getPrimStatGLPK(lp)
lp |
An object of class |
Interface to the C function getPrimStat
which calls the GLPK
function glp_get_prim_stat
.
Status of primal basic solution
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
Low level interface function to the GLPK function glp_get_prob_name
.
Consult the GLPK documentation for more detailed information.
getProbNameGLPK(lp)
getProbNameGLPK(lp)
lp |
An object of class |
Interface to the C function getProbName
which calls the GLPK
function glp_get_prob_name
.
The assigned name of the problem is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_row_bind
.
Consult the GLPK documentation for more detailed information.
getRbindGLPK(lp, i)
getRbindGLPK(lp, i)
lp |
An object of class |
i |
Auxiliary variable |
Interface to the C function getRbind
which calls the GLPK
function glp_get_row_bind
.
Index of the basic variable.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_rii
.
Consult the GLPK documentation for more detailed information.
getRiiGLPK(lp, i)
getRiiGLPK(lp, i)
lp |
An object of class |
i |
Row number i. |
Interface to the C function getRii
which calls the GLPK
function glp_get_rii
.
Returns the current scale factor $r_ii$ for row i
of the specified
problem object.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_row_dual
.
Consult the GLPK documentation for more detailed information.
getRowDualGLPK(lp, i)
getRowDualGLPK(lp, i)
lp |
An object of class |
i |
Row number |
Interface to the C function getRowDual
which calls the GLPK
function glp_get_row_dual
.
Row dual value
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_ipt_row_dual
.
Consult the GLPK documentation for more detailed information.
getRowDualIptGLPK(lp, i)
getRowDualIptGLPK(lp, i)
lp |
An object of class |
i |
Row number |
Interface to the C function getRowDualIpt
which calls the GLPK
function glp_ipt_row_dual
.
Row dual value
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_row_lb
.
Consult the GLPK documentation for more detailed information.
getRowLowBndGLPK(lp, i)
getRowLowBndGLPK(lp, i)
lp |
An object of class |
i |
Row number i. |
Interface to the C function getRowLowBnd
which calls the GLPK
function glp_get_row_lb
.
The lower bound of the i
-th row (the corresponding auxiliary
variable) is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_row_name
.
Consult the GLPK documentation for more detailed information.
getRowNameGLPK(lp, i)
getRowNameGLPK(lp, i)
lp |
An object of class |
i |
Row number i. |
Interface to the C function getRowName
which calls the GLPK
function glp_get_row_name
.
The assigned name of the i
-th row is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_row_prim
.
Consult the GLPK documentation for more detailed information.
getRowPrimGLPK(lp, i)
getRowPrimGLPK(lp, i)
lp |
An object of class |
i |
Row number |
Interface to the C function getRowPrim
which calls the GLPK
function glp_get_row_prim
.
Row primal value
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_ipt_row_prim
.
Consult the GLPK documentation for more detailed information.
getRowPrimIptGLPK(lp, i)
getRowPrimIptGLPK(lp, i)
lp |
An object of class |
i |
Row number |
Interface to the C function getRowPrimIpt
which calls the GLPK
function glp_ipt_row_prim
.
Row primal value
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getRowDualGLPK
.
getRowsDualGLPK(lp)
getRowsDualGLPK(lp)
lp |
An object of class |
Interface to the C function getRowsDual
which calls the GLPK
function glp_get_row_stat
.
The row dual values of all rows are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getRowDualIptGLPK
.
getRowsDualIptGLPK(lp)
getRowsDualIptGLPK(lp)
lp |
An object of class |
Interface to the C function getRowsDualIpt
which calls the GLPK
function glp_ipt_row_dual
.
The row dual values of all rows are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getRowLowBndGLPK
.
Here, i
can be an integer vector.
getRowsLowBndsGLPK(lp, i)
getRowsLowBndsGLPK(lp, i)
lp |
An object of class |
i |
Vector of row numbers. |
Interface to the C function getRowsLowBnds
which calls the GLPK
function glp_get_row_lb
.
The lower bounds of all specified columns (i
) (the
corresponding auxiliary variables) are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getRowPrimGLPK
.
getRowsPrimGLPK(lp)
getRowsPrimGLPK(lp)
lp |
An object of class |
Interface to the C function getRowsPrim
which calls the GLPK
function glp_get_row_prim
.
The row primal values for all rows are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getRowPrimIptGLPK
.
getRowsPrimIptGLPK(lp)
getRowsPrimIptGLPK(lp)
lp |
An object of class |
Interface to the C function getRowsPrimIpt
which calls the GLPK
function glp_ipt_row_prim
.
The row primal values of all rows are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of getRowStatGLPK
.
getRowsStatGLPK(lp)
getRowsStatGLPK(lp)
lp |
An object of class |
Interface to the C function getRowsStat
which calls the GLPK
function glp_get_row_stat
.
The row status values of all rows are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_row_stat
.
Consult the GLPK documentation for more detailed information.
getRowStatGLPK(lp, i)
getRowStatGLPK(lp, i)
lp |
An object of class |
i |
Row number |
Interface to the C function getRowStat
which calls the GLPK
function glp_get_row_stat
.
Row status
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
This is an advanced version of getRowTypeGLPK
.
Here, i
can be an integer vector.
getRowsTypesGLPK(lp, i)
getRowsTypesGLPK(lp, i)
lp |
An object of class |
i |
Vector of row numbers. |
Interface to the C function getRowsTypes
which calls the GLPK
function glp_get_row_type
.
A numeric vector of the same length as i
giving the constraint type
of the specified rows.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section
‘type of auxiliary/structural variable’.
This is an advanced version of getRowUppBndGLPK
.
Here, i
can be an integer vector.
getRowsUppBndsGLPK(lp, i)
getRowsUppBndsGLPK(lp, i)
lp |
An object of class |
i |
Vector of row numbers. |
Interface to the C function getRowsUppBnds
which calls the GLPK
function glp_get_row_ub
.
The upper bounds of all specified columns (i
) (the
corresponding auxiliary variables) are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_row_type
.
Consult the GLPK documentation for more detailed information.
getRowTypeGLPK(lp, i)
getRowTypeGLPK(lp, i)
lp |
An object of class |
i |
Row number i. |
Interface to the C function getRowType
which calls the GLPK
function glp_get_row_type
.
The type of the i
-th row (the corresponding auxiliary
variable) is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
Low level interface function to the GLPK function glp_get_row_ub
.
Consult the GLPK documentation for more detailed information.
getRowUppBndGLPK(lp, i)
getRowUppBndGLPK(lp, i)
lp |
An object of class |
i |
Row number i. |
Interface to the C function getRowUppBnd
which calls the GLPK
function glp_get_row_ub
.
The upper bound of the i
-th row (the corresponding auxiliary
variable) is returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Returns the names and values of members in the structure
glp_smcp
. Consult the GLPK documentation for
more detailed information.
getSimplexParmGLPK()
getSimplexParmGLPK()
Interface to the C function getSimplexParm
.
The function returns a list.
integer |
The names and corresponding values of all integer
control parameters in |
double |
The names and corresponding values of all double
control parameters in |
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘Control Parameters’.
Low level interface function to the GLPK function glp_get_sjj
.
Consult the GLPK documentation for more detailed information.
getSjjGLPK(lp, j)
getSjjGLPK(lp, j)
lp |
An object of class |
j |
Column number j. |
Interface to the C function getSjj
which calls the GLPK
function glp_get_sjj
.
Returns the current scale factor $s_jj$ for column j
of the
specified problem object.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_get_status
.
Consult the GLPK documentation for more detailed information.
getSolStatGLPK(lp)
getSolStatGLPK(lp)
lp |
An object of class |
Interface to the C function getSolStat
which calls the GLPK
function glp_get_status
.
Returns the generic status of the current basic solution for the specified problem object.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
Low level interface function to the GLPK function glp_ipt_status
.
Consult the GLPK documentation for more detailed information.
getSolStatIptGLPK(lp)
getSolStatIptGLPK(lp)
lp |
An object of class |
Interface to the C function getSolStatIpt
which calls the GLPK
function glp_ipt_status
.
Returns the generic status of the current basic solution for the specified problem object.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
Low level interface function to the GLPK function glp_get_unbnd_ray
.
Consult the GLPK documentation for more detailed information.
getUnbndRayGLPK(lp)
getUnbndRayGLPK(lp)
lp |
An object of class |
Interface to the C function getUnbndRay
which calls the GLPK
function glp_get_unbnd_ray
.
Returns the number k of a variable, which causes primal or dual unboundedness.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is a list containing constants used by GLPK. Cunsult the glpk manual for more information, in praticular for the control parameters.
Simplex
MSG_LEV <- 101 |
Message level for terminal output (default: GLP_MSG_ALL ). |
METH <- 102 |
Simplex method option (default: GLP_PRIMAL ). |
PRICING <- 103 |
Pricing technique (default: GLP_PT_PSE ). |
R_TEST <- 104 |
Ratio test technique (default: GLP_RT_HAR ). |
IT_LIM <- 105 |
Simplex iteration limit (default: INT_MAX ). |
TM_LIM <- 106 |
Searching time limit, in milliseconds (default: INT_MAX ). |
OUT_FRQ <- 107 |
Output frequency, in iterations (default: 500 ). |
OUT_DLY <- 108 |
Output delay, in milliseconds (default: 0 ). |
PRESOLVE <- 109 |
LP presolver option (default: GLP_OFF ). |
TOL_BND <- 201 |
Tolerance used to check if the basic solution is primal feasible (default: 1e-7 ). |
TOL_DJ <- 202 |
Tolerance used to check if the basic solution is dual feasible (default: 1e-7 ). |
TOL_PIV <- 203 |
Tolerance used to choose eligble pivotal elements of the simplex table (default: 1e-10 ). |
OBJ_LL <- 204 |
Lower limit of the objective function (default: -DBL_MAX ). |
OBJ_UL <- 205 |
Upper limit of the objective function (default: DBL_MAX ). |
The exact simplex method uses only the parameters IT_LIM
and TM_LIM
.
Interior
MSG_LEV <- 101 |
Message level for terminal output (default: GLP_MSG_ALL ). |
ORD_ALG <- 301 |
Ordering algorithm used prior to Cholesky factorization (default: GLP_ORD_AMD ). |
MIP
MSG_LEV <- 101 |
Message level for terminal output (default: GLP_MSG_ALL ). |
TM_LIM <- 106 |
Searching time limit, in milliseconds (default: INT_MAX ). |
OUT_FRQ <- 107 |
Output frequency, in iterations (default: 5000 ). |
OUT_DLY <- 108 |
Output delay, in milliseconds (default: 10000 ). |
PRESOLVE <- 109 |
MIP presolver option (default: GLP_OFF ). |
BR_TECH <- 601 |
Branching technique option (default: GLP_BR_DTH ). |
BT_TECH <- 602 |
Backtracking technique option (default: GLP_BT_BLB ). |
PP_TECH <- 603 |
Preprocessing technique option (default: GLP_PP_ALL ). |
FP_HEUR <- 604 |
Feasibility pump heuristic option (default: GLP_OFF ). |
GMI_CUTS <- 605 |
Gomory's mixed integer cut option (default: GLP_OFF ). |
MIR_CUTS <- 606 |
Mixed integer rounding (MIR) cut option (default: GLP_OFF ). |
COV_CUTS <- 607 |
Mixed cover cut option (default: GLP_OFF ). |
CLQ_CUTS <- 608 |
Clique cut option (default: GLP_OFF ). |
CB_SIZE <- 609 |
The number of extra (up to 256) bytes allocated for each node of the branch-and-bound tree to store application-specific data. On creating a node these bytes are initialized by binary zeros (default: 0 ). |
BINARIZE <- 610 |
LP presolver option (default: GLP_OFF ). |
CB_FUNC <- 651 |
Use a user defined callback routine glpkCallback which is written in the file ‘glpkCallback.c’. This file should be edited according to the users requirements. If set to GLP_ON , the callback routine defined there is used (default: NULL ). |
TOL_INT <- 701 |
Absolute tolerance used to check if optimal solution to the current LP relaxation is integer feasible (default: 1e-5 ). |
TOL_OBJ <- 702 |
Relative tolerance used to check if the objective value in optimal solution to the current LP relaxation is not better than in the best known inte- ger feasible solution (default: 1e-7 ). |
MIP_GAP <- 703 |
The relative mip gap tolerance. If the relative mip gap for currently known best integer feasible solution falls below this tolerance, the solver terminates the search. This allows obtainig suboptimal integer feasible solutions if solving the problem to optimality takes too long time (default: 0.0 ). |
Basis Factorization
TYPE <- 401 |
Basis factorization type (default: GLP_BF_FT ). |
LU_SIZE <- 402 |
Initial size of the Sparse Vector Area (default: 0 ). |
PIV_LIM <- 403 |
computing LU-factorization of the basis matrix (default: 4 ). |
SUHL <- 404 |
computing LU-factorization of the basis matrix (default: GLP_ON ). |
NFS_MAX <- 405 |
Maximal number of additional row-like factors (default: 100 ). |
NRS_MAX <- 406 |
Maximal number of additional rows and columns (default: 100 ). |
RS_SIZE <- 407 |
Initial size of the Sparse Vector Area (default: 0 ). |
PIV_TOL <- 501 |
Threshold pivoting (Markowitz) tolerance (default: 0.10 ). |
EPS_TOL <- 502 |
Epsilon tolerance (default: 1e-15 ). |
MAX_GRO <- 503 |
Maximal growth of elements of factor U (default: 1e+10 ). |
UPD_TOL <- 504 |
Update tolerance (default: 1e-6 ). |
optimization direction flag
GLP_MIN <- 1 |
minimization |
GLP_MAX <- 2 |
maximization |
kind of structural variable
GLP_CV <- 1 |
continuous variable |
GLP_IV <- 2 |
integer variable |
GLP_BV <- 3 |
binary variable |
type of auxiliary/structural variable
GLP_FR <- 1 |
free variable |
GLP_LO <- 2 |
variable with lower bound |
GLP_UP <- 3 |
variable with upper bound |
GLP_DB <- 4 |
double-bounded variable |
GLP_FX <- 5 |
fixed variable |
status of auxiliary/structural variable
GLP_BS <- 1 |
basic variable |
GLP_NL <- 2 |
non-basic variable on lower bound |
GLP_NU <- 3 |
non-basic variable on upper bound |
GLP_NF <- 4 |
non-basic free variable |
GLP_NS <- 5 |
non-basic fixed variable |
scaling options
GLP_SF_GM <- 0x01 |
perform geometric mean scaling |
GLP_SF_EQ <- 0x10 |
perform equilibration scaling |
GLP_SF_2N <- 0x20 |
round scale factors to power of two |
GLP_SF_SKIP <- 0x40 |
skip if problem is well scaled |
GLP_SF_AUTO <- 0x80 |
choose scaling options automatically |
solution indicator
GLP_SOL <- 1 |
basic solution |
GLP_IPT <- 2 |
interior-point solution |
GLP_MIP <- 3 |
mixed integer solution |
solution status
GLP_UNDEF <- 1 |
solution is undefined |
GLP_FEAS <- 2 |
solution is feasible |
GLP_INFEAS <- 3 |
solution is infeasible |
GLP_NOFEAS <- 4 |
no feasible solution exists |
GLP_OPT <- 5 |
solution is optimal |
GLP_UNBND <- 6 |
solution is unbounded |
type
GLP_BF_FT <- 0x01 |
LUF + Forrest-Tomlin |
GLP_BF_BG <- 0x02 |
LUF + Schur compl. + Bartels-Golub |
GLP_BF_GR <- 0x03 |
LUF + Schur compl. + Givens rotation |
GLP_BF_LUF <- 0x00 |
plain LU-factorization |
GLP_BF_BTF <- 0x10 |
block triangular LU-factorization |
msg_lev message level:
GLP_MSG_OFF <- 0 |
no output |
GLP_MSG_ERR <- 1 |
warning and error messages only |
GLP_MSG_ON <- 2 |
normal output |
GLP_MSG_ALL <- 3 |
full output |
GLP_MSG_DBG <- 4 |
debug output |
meth simplex method option:
GLP_PRIMAL <- 1 |
use primal simplex |
GLP_DUALP <- 2 |
use dual; if it fails, use primal |
GLP_DUAL <- 3 |
use dual simplex |
pricing pricing technique:
GLP_PT_STD <- 0x11 |
standard (Dantzig rule) |
GLP_PT_PSE <- 0x22 |
projected steepest edge |
r_test ratio test technique:
GLP_RT_STD <- 0x11 |
standard (textbook) |
GLP_RT_HAR <- 0x22 |
two-pass Harris' ratio test |
ord_alg ordering algorithm:
GLP_ORD_NONE <- 0 |
natural (original) ordering |
GLP_ORD_QMD <- 1 |
quotient minimum degree (QMD) |
GLP_ORD_AMD <- 2 |
approx. minimum degree (AMD) |
GLP_ORD_SYMAMD <- 3 |
approx. minimum degree (SYMAMD) |
br_tech branching technique:
GLP_BR_FFV <- 1 |
first fractional variable |
GLP_BR_LFV <- 2 |
last fractional variable |
GLP_BR_MFV <- 3 |
most fractional variable |
GLP_BR_DTH <- 4 |
heuristic by Driebeck and Tomlin |
GLP_BR_HPC <- 5 |
hybrid pseudocost |
bt_tech backtracking technique:
GLP_BT_DFS <- 1 |
depth first search |
GLP_BT_BFS <- 2 |
breadth first search |
GLP_BT_BLB <- 3 |
best local bound |
GLP_BT_BPH <- 4 |
best projection heuristic |
pp_tech preprocessing technique:
GLP_PP_NONE <- 0 |
disable preprocessing |
GLP_PP_ROOT <- 1 |
preprocessing only on root level |
GLP_PP_ALL <- 2 |
preprocessing on all levels |
the row origin flag
GLP_RF_REG <- 0 |
regular constraint |
GLP_RF_LAZY <- 1 |
"lazy" constraint |
GLP_RF_CUT <- 2 |
cutting plane constraint |
the row class descriptor klass
GLP_RF_GMI <- 1 |
Gomory's mixed integer cut |
GLP_RF_MIR <- 2 |
mixed integer rounding cut |
GLP_RF_COV <- 3 |
mixed cover cut |
GLP_RF_CLQ <- 4 |
clique cut |
GLP_ON <- 1 |
enable something |
GLP_OFF <- 0 |
disable something |
GLP_IROWGEN <- 0x01 |
request for row generation |
GLP_IBINGO <- 0x02 |
better integer solution found |
GLP_IHEUR <- 0x03 |
request for heuristic solution |
GLP_ICUTGEN <- 0x04 |
request for cut generation |
GLP_IBRANCH <- 0x05 |
request for branching |
GLP_ISELECT <- 0x06 |
request for subproblem selection |
GLP_IPREPRO <- 0x07 |
request for preprocessing |
GLP_NO_BRNCH <- 0 |
select no branch |
GLP_DN_BRNCH <- 1 |
select down-branch |
GLP_UP_BRNCH <- 2 |
select up-branch |
GLP_EBADB <- 0x01 |
invalid basis |
GLP_ESING <- 0x02 |
singular matrix |
GLP_ECOND <- 0x03 |
ill-conditioned matrix |
GLP_EBOUND <- 0x04 |
invalid bounds |
GLP_EFAIL <- 0x05 |
solver failed |
GLP_EOBJLL <- 0x06 |
objective lower limit reached |
GLP_EOBJUL <- 0x07 |
objective upper limit reached |
GLP_EITLIM <- 0x08 |
iteration limit exceeded |
GLP_ETMLIM <- 0x09 |
time limit exceeded |
GLP_ENOPFS <- 0x0A |
no primal feasible solution |
GLP_ENODFS <- 0x0B |
no dual feasible solution |
GLP_EROOT <- 0x0C |
root LP optimum not provided |
GLP_ESTOP <- 0x0D |
search terminated by application |
GLP_EMIPGAP <- 0x0E |
relative mip gap tolerance reached |
GLP_ENOFEAS <- 0x0F |
no primal/dual feasible solution |
GLP_ENOCVG <- 0x10 |
no convergence |
GLP_EINSTAB <- 0x11 |
numerical instability |
GLP_EDATA <- 0x12 |
invalid data |
GLP_ERANGE <- 0x13 |
result out of range |
GLP_KKT_PE <- 1 |
primal equalities |
GLP_KKT_PB <- 2 |
primal bounds |
GLP_KKT_DE <- 3 |
dual equalities |
GLP_KKT_DB <- 4 |
dual bounds |
GLP_KKT_CS <- 5 |
complementary slackness |
GLP_MPS_DECK <- 1 |
fixed (ancient) |
GLP_MPS_FILE <- 2 |
free (modern) |
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
status_codeGLPK
, return_codeGLPK
"glpkPtr"
Structure of the class "glpkPtr"
. Objects of that class are
used to hold pointers to C structures used by GLPK.
Objects can be created by calls of the formtest <- initProbGLPK()
ortest <- mplAllocWkspGLPK()
.
glpkPtrType
:Object of class "character"
giving the pointer type.
glpkPointer
:Object of class "externalptr"
containig the pointer to a
C structure.
signature(object = "glpkPtr")
:
returns TRUE
if glpkPointer(object)
is a pointer to a
GLPK problem object, otherwise FALSE
.
signature(object = "glpkPtr")
:
returns TRUE
if glpkPointer(object)
is a NULL pointer,
otherwise FALSE
.
signature(object = "glpkPtr")
:
returns TRUE
if glpkPointer(object)
is a pointer to a
MathProg translator workspace, otherwise FALSE
.
signature(object = "glpkPtr")
:
gets the glpkPointer
slot.
signature(object = "glpkPtr")
:
gets the glpkPtrType
slot.
signature(object = "glpkPtr")
:
sets the glpkPtrType
slot.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
mplAllocWkspGLPK
and initProbGLPK
.
showClass("glpkPtr")
showClass("glpkPtr")
Low level interface function to the GLPK function glp_create_prob
.
Consult the GLPK documentation for more detailed information.
initProbGLPK(ptrtype = "glpk_prob")
initProbGLPK(ptrtype = "glpk_prob")
ptrtype |
A name for the pointer to a GLPK problem object. |
Interface to the C function initProb
which calls the GLPK
function glp_create_prob
.
An instance of class "glpkPtr"
.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
"glpkPtr"
.
Low level interface function to the GLPK function glp_load_matrix
.
Consult the GLPK documentation for more detailed information.
loadMatrixGLPK(lp, ne, ia, ja, ra)
loadMatrixGLPK(lp, ne, ia, ja, ra)
lp |
An object of class |
ne |
Number of non-zero elements. |
ia |
Row indices of the non-zero elements. |
ja |
Colunm indices of the non-zero elements. |
ra |
The numeric values of the constraint coefficients. |
Interface to the C function loadMatrix
which calls the GLPK
function glp_load_matrix
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of mipColValGLPK
.
mipColsValGLPK(lp)
mipColsValGLPK(lp)
lp |
An object of class |
Interface to the C function mipColsVal
which calls the GLPK
function glp_mip_col_val
.
The column values of all columns are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_mip_col_val
.
Consult the GLPK documentation for more detailed information.
mipColValGLPK(lp, j)
mipColValGLPK(lp, j)
lp |
An object of class |
j |
Column number |
Interface to the C function mipColVal
which calls the GLPK
function glp_mip_col_val
.
Column value of column j
.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_mip_obj_val
.
Consult the GLPK documentation for more detailed information.
mipObjValGLPK(lp)
mipObjValGLPK(lp)
lp |
An object of class |
Interface to the C function mipObjVal
which calls the GLPK
function glp_mip_obj_val
.
Objective value.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of mipRowValGLPK
.
mipRowsValGLPK(lp)
mipRowsValGLPK(lp)
lp |
An object of class |
Interface to the C function mipRowsVal
which calls the GLPK
function glp_mip_row_val
.
The row values of all rows are returned.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_mip_row_val
.
Consult the GLPK documentation for more detailed information.
mipRowValGLPK(lp, i)
mipRowValGLPK(lp, i)
lp |
An object of class |
i |
Row number |
Interface to the C function mipRowVal
which calls the GLPK
function glp_mip_row_val
.
Row value of row i
.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_mip_status
.
Consult the GLPK documentation for more detailed information.
mipStatusGLPK(lp)
mipStatusGLPK(lp)
lp |
An object of class |
Interface to the C function mipStatus
which calls the GLPK
function glp_mip_status
.
Status of MIP Solution.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_mpl_alloc_wksp
.
Consult the GLPK documentation for more detailed information.
mplAllocWkspGLPK(ptrtype = "tr_wksp")
mplAllocWkspGLPK(ptrtype = "tr_wksp")
ptrtype |
A name for the pointer to a translator workspace. |
Interface to the C function mplAllocWksp
which calls the GLPK
function glp_mpl_alloc_wksp
.
An instance of class "glpkPtr"
.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
"glpkPtr"
.
Low level interface function to the GLPK function glp_mpl_build_prob
.
Consult the GLPK documentation for more detailed information.
mplBuildProbGLPK(wk, lp)
mplBuildProbGLPK(wk, lp)
wk |
An object of class |
lp |
A pointer to a GLPK problem object. |
Interface to the C function mplBuildProb
which calls the GLPK
function glp_mpl_build_prob
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
mplAllocWkspGLPK
,
mplFreeWkspGLPK
,
mplGenerateGLPK
,
mplPostsolveGLPK
,
mplReadDataGLPK
and
mplReadModelGLPK
.
Low level interface function to the GLPK function glp_mpl_free_wksp
.
Consult the GLPK documentation for more detailed information.
mplFreeWkspGLPK(wk)
mplFreeWkspGLPK(wk)
wk |
An object of class |
Interface to the C function mplFreeWksp
which calls the GLPK
function glp_mpl_free_wksp
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
mplAllocWkspGLPK
,
mplBuildProbGLPK
,
mplGenerateGLPK
,
mplPostsolveGLPK
,
mplReadDataGLPK
and
mplReadModelGLPK
.
Low level interface function to the GLPK function glp_mpl_generate
.
Consult the GLPK documentation for more detailed information.
mplGenerateGLPK(wk, fname = NULL)
mplGenerateGLPK(wk, fname = NULL)
wk |
An object of class |
fname |
The name of the text file to be written out. |
Interface to the C function mplGenerate
which calls the GLPK
function glp_mpl_generate
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
mplAllocWkspGLPK
,
mplBuildProbGLPK
,
mplFreeWkspGLPK
,
mplPostsolveGLPK
,
mplReadDataGLPK
and
mplReadModelGLPK
.
Low level interface function to the GLPK function glp_mpl_postsolve
.
Consult the GLPK documentation for more detailed information.
mplPostsolveGLPK(wk, lp, sol)
mplPostsolveGLPK(wk, lp, sol)
wk |
An object of class |
lp |
A pointer to a GLPK problem object. |
sol |
Type of solution to be copied to the translator workspace, for possible
values, see |
Interface to the C function mplPostsolve
which calls the GLPK
function glp_mpl_postsolve
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
mplAllocWkspGLPK
,
mplBuildProbGLPK
,
mplFreeWkspGLPK
,
mplGenerateGLPK
,
mplReadDataGLPK
and
mplReadModelGLPK
.
Low level interface function to the GLPK function glp_mpl_read_data
.
Consult the GLPK documentation for more detailed information.
mplReadDataGLPK(wk, fname)
mplReadDataGLPK(wk, fname)
wk |
An object of class |
fname |
The name of the data file to be read in. |
Interface to the C function mplReadData
which calls the GLPK
function glp_mpl_read_data
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
mplAllocWkspGLPK
,
mplBuildProbGLPK
,
mplFreeWkspGLPK
,
mplGenerateGLPK
,
mplPostsolveGLPK
and
mplReadModelGLPK
.
Low level interface function to the GLPK function glp_mpl_read_model
.
Consult the GLPK documentation for more detailed information.
mplReadModelGLPK(wk, fname, skip)
mplReadModelGLPK(wk, fname, skip)
wk |
An object of class |
fname |
The name of the model file to be read in. |
skip |
Flag, how to treat the data section. |
Interface to the C function mplReadModel
which calls the GLPK
function glp_mpl_read_model
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
mplAllocWkspGLPK
,
mplBuildProbGLPK
,
mplFreeWkspGLPK
,
mplGenerateGLPK
,
mplPostsolveGLPK
and
mplReadDataGLPK
.
Low level interface function to the GLPK function glp_print_ipt
.
Consult the GLPK documentation for more detailed information.
printIptGLPK(lp, fname)
printIptGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be written out. |
Interface to the C function printIpt
which calls the GLPK
function glp_print_ipt
.
Returns zero on success, otherwise it returns non-zero and prints an error message.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
printSolGLPK
, readSolGLPK
,
writeSolGLPK
, readIptGLPK
,
writeIptGLPK
, printMIPGLPK
,
readMIPGLPK
and writeMIPGLPK
.
Low level interface function to the GLPK function glp_print_mip
.
Consult the GLPK documentation for more detailed information.
printMIPGLPK(lp, fname)
printMIPGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be written out. |
Interface to the C function printMIP
which calls the GLPK
function glp_print_mip
.
Returns zero on success, otherwise it returns non-zero and prints an error message.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
printSolGLPK
, readSolGLPK
,
writeSolGLPK
, printIptGLPK
,
readIptGLPK
, writeIptGLPK
,
readMIPGLPK
and writeMIPGLPK
.
Low level interface function to the GLPK function glp_print_ranges
.
Consult the GLPK documentation for more detailed information.
printRangesGLPK(lp, numrc = 0, rowcol = NULL, fname = "sar.txt")
printRangesGLPK(lp, numrc = 0, rowcol = NULL, fname = "sar.txt")
lp |
An object of class |
numrc |
Length of the row/column list (argument |
rowcol |
Ordinal numbers of rows and columns to be analyzed. |
fname |
A filename. |
Interface to the C function printRanges
which calls the GLPK
function glp_print_ranges
.
Zero on success, otherwise non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_print_sol
.
Consult the GLPK documentation for more detailed information.
printSolGLPK(lp, fname)
printSolGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be written out. |
Interface to the C function printSol
which calls the GLPK
function glp_print_sol
.
Returns zero on success, otherwise it returns non-zero and prints an error message.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
readSolGLPK
, writeSolGLPK
,
printIptGLPK
, readIptGLPK
,
writeIptGLPK
, printMIPGLPK
,
readMIPGLPK
and writeMIPGLPK
.
Low level interface function to the GLPK function glp_read_ipt
.
Consult the GLPK documentation for more detailed information.
readIptGLPK(lp, fname)
readIptGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be read in. |
Interface to the C function readIpt
which calls the GLPK
function glp_read_ipt
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
printSolGLPK
, readSolGLPK
,
writeSolGLPK
, printIptGLPK
,
writeIptGLPK
, printMIPGLPK
,
readMIPGLPK
and writeMIPGLPK
.
Low level interface function to the GLPK function glp_read_lp
.
Consult the GLPK documentation for more detailed information.
readLPGLPK(lp, fname)
readLPGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be read in. |
Interface to the C function readLP
which calls the GLPK
function glp_read_lp
.
Returns zero on success, otherwise it returns non-zero and prints an error message.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
readMPSGLPK
, readProbGLPK
,
writeMPSGLPK
, writeLPGLPK
and
writeProbGLPK
.
Low level interface function to the GLPK function glp_read_mip
.
Consult the GLPK documentation for more detailed information.
readMIPGLPK(lp, fname)
readMIPGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be read in. |
Interface to the C function readMIP
which calls the GLPK
function glp_read_mip
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
printSolGLPK
, readSolGLPK
,
writeSolGLPK
, printIptGLPK
,
readIptGLPK
, writeIptGLPK
,
printMIPGLPK
and writeMIPGLPK
.
Low level interface function to the GLPK function glp_read_mps
.
Consult the GLPK documentation for more detailed information.
readMPSGLPK(lp, fmt, fname)
readMPSGLPK(lp, fmt, fname)
lp |
An object of class |
fmt |
MPS format. See |
fname |
The name of the text file to be read in. |
Interface to the C function readMPS
which calls the GLPK
function glp_read_mps
.
Returns zero on success, otherwise it returns non-zero and prints an error message.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
readLPGLPK
, readProbGLPK
,
writeMPSGLPK
, writeLPGLPK
,
writeProbGLPK
and glpkConstants
.
Low level interface function to the GLPK function glp_read_prob
.
Consult the GLPK documentation for more detailed information.
readProbGLPK(lp, fname)
readProbGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be read in. |
Interface to the C function readProb
which calls the GLPK
function glp_read_prob
.
Returns zero on success, otherwise it returns non-zero and prints an error message.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
readMPSGLPK
, readLPGLPK
,
writeMPSGLPK
, writeLPGLPK
and
writeProbGLPK
.
Low level interface function to the GLPK function glp_read_sol
.
Consult the GLPK documentation for more detailed information.
readSolGLPK(lp, fname)
readSolGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be read in. |
Interface to the C function readSol
which calls the GLPK
function glp_read_sol
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
printSolGLPK
, writeSolGLPK
,
printIptGLPK
, readIptGLPK
,
writeIptGLPK
, printMIPGLPK
,
readMIPGLPK
and writeMIPGLPK
.
Translates a GLPK return code into a human readable string.
return_codeGLPK(code)
return_codeGLPK(code)
code |
Return code from GLPK. |
A character string associated with the GLPK return code.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘return codes’.
Low level interface function to the GLPK function glp_scale_prob
.
Consult the GLPK documentation for more detailed information.
scaleProbGLPK(lp, opt)
scaleProbGLPK(lp, opt)
lp |
An object of class |
opt |
Scaling option, see |
Interface to the C function scaleProb
which calls the GLPK
function glp_scale_prob
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Sets/Changes the values of corresponding members of in the structure
glp_bfcp
. Consult the GLPK documentation for more detailed information.
setBfcpGLPK(lp, parm, val)
setBfcpGLPK(lp, parm, val)
lp |
An object of class |
parm |
A vector containing integer values or symbolic names
of the control parameters to be changed
(see |
val |
A vector containing the new values for the corresponding control parameters. |
The Arguments parm
and val
must have the
same length. The value val[i]
belongs to the
parameter parm[i]
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_col_bnds
.
Consult the GLPK documentation for more detailed information.
setColBndGLPK(lp, j, type, lb, ub)
setColBndGLPK(lp, j, type, lb, ub)
lp |
An object of class |
j |
Column number |
type |
Column type. For possible values, see |
lb |
Lower bound. |
ub |
Upper bound. |
Interface to the C function setColBnd
which calls the GLPK
function glp_set_col_bnds
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_col_kind
.
Consult the GLPK documentation for more detailed information.
setColKindGLPK(lp, j, kind)
setColKindGLPK(lp, j, kind)
lp |
An object of class |
j |
Column number |
kind |
Kind of column number |
Interface to the C function setColKind
which calls the GLPK
function glp_set_col_kind
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_col_name
.
Consult the GLPK documentation for more detailed information.
setColNameGLPK(lp, j, cname = NULL)
setColNameGLPK(lp, j, cname = NULL)
lp |
An object of class |
j |
Column number j. |
cname |
Column name. |
Interface to the C function setColName
which calls the GLPK
function glp_set_col_name
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of setColBndGLPK
.
Here, j
can be an integer vector, lb
and ub
can be numeric vectors.
setColsBndsGLPK(lp, j, lb, ub, type = NULL)
setColsBndsGLPK(lp, j, lb, ub, type = NULL)
lp |
An object of class |
j |
Vector of column numbers. |
lb |
Vector of lower bounds. |
ub |
Vector of upper bounds. |
type |
Vector of variable types (default: NULL). For possible values, see
|
Interface to the C function setColsBnds
which calls the GLPK
function glp_set_col_bnds
.
If type
is set to NULL, the type of the variables will be estimated.
If lb[i] equals ub[i], variable j[i] is fixed, otherwise double bounded.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an combined version of setColsBndsGLPK
and
setObjCoefsGLPK
. Here, j
can be an integer
vector, lb
, ub
and obj_coef
can be numeric
vectors.
setColsBndsObjCoefsGLPK(lp, j, lb, ub, obj_coef, type = NULL)
setColsBndsObjCoefsGLPK(lp, j, lb, ub, obj_coef, type = NULL)
lp |
An object of class |
j |
Vector of column numbers. |
lb |
Vector of lower bounds. |
ub |
Vector of upper bounds. |
obj_coef |
Vector of objective coefficients. |
type |
Vector of variable types (default: NULL). For possible values, see
|
Interface to the C function setColsBndsObjCoefs
which
calls the GLPK functions glp_set_col_bnds
and
glp_set_obj_coef
.
If type
is set to NULL, the type of the variables will be estimated.
If lb[i] equals ub[i], variable j[i] is fixed, otherwise double bounded.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of setColKindGLPK
.
Here, j
can be an integer vector.
setColsKindGLPK(lp, j, kind)
setColsKindGLPK(lp, j, kind)
lp |
An object of class |
j |
An integer vector of column indices. |
kind |
An integer vector of column kinds, for possible values see
|
Interface to the C function setColsKind
which calls the GLPK
function glp_set_col_kind
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of setColNameGLPK
.
Here, j
can be an integer vector, cnames
can be a character
vector.
setColsNamesGLPK(lp, j, cnames = NULL)
setColsNamesGLPK(lp, j, cnames = NULL)
lp |
An object of class |
j |
Vector of column numbers. |
cnames |
Vector of column names of the same length as |
Interface to the C function setColsNames
which calls the GLPK
function glp_set_col_name
.
If cnames
is set to NULL
, all column names for column indices in
j
will be removed. If cname[k]
is the empty string ""
,
column name j[k]
will be removed.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_col_stat
.
Consult the GLPK documentation for more detailed information.
setColStatGLPK(lp, j, stat)
setColStatGLPK(lp, j, stat)
lp |
An object of class |
j |
Column number j. |
stat |
A status parameter, see |
Interface to the C function setColStat
which calls the GLPK
function glp_set_col_stat
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Initializes a new structure glp_iptcp
.
Consult the GLPK documentation for more detailed information.
setDefaultIptParmGLPK()
setDefaultIptParmGLPK()
Interface to the C function setDefaultIptParm
which calls the GLPK
function glp_init_iptcp
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘Control Parameters’.
Initializes a new structure glp_iocp
.
Consult the GLPK documentation for more detailed information.
setDefaultMIPParmGLPK()
setDefaultMIPParmGLPK()
Interface to the C function setDefaultMIPParm
which calls the GLPK
function glp_init_iocp
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘Control Parameters’.
Initializes a new structure glp_smcp
.
Consult the GLPK documentation for more detailed information.
setDefaultSmpParmGLPK()
setDefaultSmpParmGLPK()
Interface to the C function setDefaultSmpParm
which calls the GLPK
function glp_init_smcp
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘Control Parameters’.
Sets/Changes the values of corresponding members of in the structure
glp_iptcp
. Consult the GLPK documentation for more detailed
information.
setInteriorParmGLPK(parm, val)
setInteriorParmGLPK(parm, val)
parm |
A vector containing integer values or symbolic names
of the control parameters to be changed
(see |
val |
A vector containing the new values for the corresponding control parameters. |
The Arguments parm
and val
must have the
same length. The value val[i]
belongs to the
parameter parm[i]
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_mat_col
.
Consult the GLPK documentation for more detailed information.
setMatColGLPK(lp, j, len, ind, val)
setMatColGLPK(lp, j, len, ind, val)
lp |
An object of class |
j |
Replace the |
len |
Number of new column elements. |
ind |
Row indices of the new column elements. |
val |
Numerical values of the new column elements. |
Interface to the C function setMatCol
which calls the GLPK
function glp_set_mat_col
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_mat_row
.
Consult the GLPK documentation for more detailed information.
setMatRowGLPK(lp, i, len, ind, val)
setMatRowGLPK(lp, i, len, ind, val)
lp |
An object of class |
i |
Replace the |
len |
Number of new row elements. |
ind |
Column indices of the new row elements. |
val |
Numerical values of the new row elements. |
Interface to the C function setMatRow
which calls the GLPK
function glp_set_mat_row
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Sets/Changes the values of corresponding members of in the structure
glp_iocp
. Consult the GLPK documentation for more detailed information.
setMIPParmGLPK(parm, val)
setMIPParmGLPK(parm, val)
parm |
A vector containing integer values or symbolic names
of the control parameters to be changed
(see |
val |
A vector containing the new values for the corresponding control parameters. |
The Arguments parm
and val
must have the
same length. The value val[i]
belongs to the
parameter parm[i]
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_obj_coef
.
Consult the GLPK documentation for more detailed information.
setObjCoefGLPK(lp, j, obj_coef)
setObjCoefGLPK(lp, j, obj_coef)
lp |
An object of class |
j |
Column number j. |
obj_coef |
Objective coefficient or constant term. |
Interface to the C function setObjCoef
which calls the GLPK
function glp_set_obj_coef
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of setColBndGLPK
.
Here, j
can be an integer vector, obj_coef
can be a numeric vector.
setObjCoefsGLPK(lp, j, obj_coef)
setObjCoefsGLPK(lp, j, obj_coef)
lp |
An object of class |
j |
Vector of column numbers. |
obj_coef |
Vector of objective coefficients. |
Interface to the C function setObjCoefs
which calls the
GLPK function glp_set_obj_coef
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_obj_dir
.
Consult the GLPK documentation for more detailed information.
setObjDirGLPK(lp, lpdir)
setObjDirGLPK(lp, lpdir)
lp |
An object of class |
lpdir |
Optimization direction flag, which can be |
Interface to the C function setObjDir
which calls the GLPK
function glp_set_obj_dir
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
Low level interface function to the GLPK function glp_set_obj_name
.
Consult the GLPK documentation for more detailed information.
setObjNameGLPK(lp, oname = NULL)
setObjNameGLPK(lp, oname = NULL)
lp |
An object of class |
oname |
Objective Function name. |
Interface to the C function setObjName
which calls the GLPK
function glp_set_obj_name
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_prob_name
.
Consult the GLPK documentation for more detailed information.
setProbNameGLPK(lp, pname = NULL)
setProbNameGLPK(lp, pname = NULL)
lp |
An object of class |
pname |
Problem name. |
Interface to the C function setProbName
which calls the GLPK
function glp_set_prob_name
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of setRowsBndsGLPK
.
setRhsZeroGLPK(lp)
setRhsZeroGLPK(lp)
lp |
An object of class |
Interface to the C function setRowsBnds
which calls the GLPK
function glp_set_col_bnds
. All row bounds are fixed at zero.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_rii
.
Consult the GLPK documentation for more detailed information.
setRiiGLPK(lp, i, rii)
setRiiGLPK(lp, i, rii)
lp |
An object of class |
i |
Row number i. |
rii |
Scale factor $r_ii$. |
Interface to the C function setRii
which calls the GLPK
function glp_set_rii
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_row_bnds
.
Consult the GLPK documentation for more detailed information.
setRowBndGLPK(lp, i, type, lb, ub)
setRowBndGLPK(lp, i, type, lb, ub)
lp |
An object of class |
i |
Row number i. |
type |
Row type. For possible values, see |
lb |
Lower bound. |
ub |
Upper bound. |
Interface to the C function setRowBnd
which calls the GLPK
function glp_set_row_bnds
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_row_name
.
Consult the GLPK documentation for more detailed information.
setRowNameGLPK(lp, i, rname = NULL)
setRowNameGLPK(lp, i, rname = NULL)
lp |
An object of class |
i |
Row number i. |
rname |
Row name. |
Interface to the C function setRowName
which calls the GLPK
function glp_set_row_name
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of setRowBndGLPK
.
Here, i
can be an integer vector, lb
and ub
can be numeric vectors.
setRowsBndsGLPK(lp, i, lb, ub, type = NULL)
setRowsBndsGLPK(lp, i, lb, ub, type = NULL)
lp |
An object of class |
i |
Vector of row numbers. |
lb |
Vector of lower bounds. |
ub |
Vector of upper bounds. |
type |
Vector of variable types (default: NULL). For possible values, see
|
Interface to the C function setRowsBnds
which calls the GLPK
function glp_set_row_bnds
.
If type
is set to NULL, the type of the variables will be estimated.
If lb[j] equals ub[j], variable i[j] is fixed, otherwise double bounded.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
This is an advanced version of setRowNameGLPK
.
Here, i
can be an integer vector, rnames
can be a character
vector.
setRowsNamesGLPK(lp, i, rnames = NULL)
setRowsNamesGLPK(lp, i, rnames = NULL)
lp |
An object of class |
i |
Vector of row numbers. |
rnames |
Vector of row names of the same length as |
Interface to the C function setRowsNames
which calls the GLPK
function glp_set_row_name
.
If rnames
is set to NULL
, all row names for row indices in
i
will be removed. If rname[k]
is the empty string ""
,
row name i[k]
will be removed.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_row_stat
.
Consult the GLPK documentation for more detailed information.
setRowStatGLPK(lp, i, stat)
setRowStatGLPK(lp, i, stat)
lp |
An object of class |
i |
Row number i. |
stat |
A status parameter, see |
Interface to the C function setRowStat
which calls the GLPK
function glp_set_row_stat
, section ‘LP/MIP problem object’.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Sets/Changes the values of corresponding members of in the structure
glp_smcp
. Consult the GLPK documentation for more detailed information.
setSimplexParmGLPK(parm, val)
setSimplexParmGLPK(parm, val)
parm |
A vector containing integer values or symbolic names
of the control parameters to be changed
(see |
val |
A vector containing the new values for the corresponding control parameters. |
The Arguments parm
and val
must have the
same length. The value val[i]
belongs to the
parameter parm[i]
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_set_sjj
.
Consult the GLPK documentation for more detailed information.
setSjjGLPK(lp, j, sjj)
setSjjGLPK(lp, j, sjj)
lp |
An object of class |
j |
Column number j. |
sjj |
Scale factor $s_jj$. |
Interface to the C function setSjj
which calls the GLPK
function glp_set_sjj
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_interior
.
Consult the GLPK documentation for more detailed information.
solveInteriorGLPK(lp)
solveInteriorGLPK(lp)
lp |
An object of class |
Interface to the C function solveInterior
which calls the GLPK
function glp_interior
.
A return code.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘return codes’ and
return_codeGLPK
.
Low level interface function to the GLPK function glp_intopt
.
Consult the GLPK documentation for more detailed information.
solveMIPGLPK(lp)
solveMIPGLPK(lp)
lp |
An object of class |
Interface to the C function solveMIP
which calls the GLPK
function glp_intopt
.
A return code.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘return codes’ and
return_codeGLPK
.
Low level interface function to the GLPK function glp_exact
.
Consult the GLPK documentation for more detailed information.
solveSimplexExactGLPK(lp)
solveSimplexExactGLPK(lp)
lp |
An object of class |
Interface to the C function solveSimplexExact
which calls the GLPK
function glp_exact
.
A return code.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘return codes’ and
return_codeGLPK
.
Low level interface function to the GLPK function glp_simplex
.
Consult the GLPK documentation for more detailed information.
solveSimplexGLPK(lp)
solveSimplexGLPK(lp)
lp |
An object of class |
Interface to the C function solveSimplex
which calls the GLPK
function glp_simplex
.
A return code.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘return codes’ and
return_codeGLPK
.
Low level interface function to the GLPK function glp_sort_matrix
.
Consult the GLPK documentation for more detailed information.
sortMatrixGLPK(lp)
sortMatrixGLPK(lp)
lp |
An object of class |
Interface to the C function sortMatrix
which calls the GLPK
function glp_sort_matrix
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Translates a GLPK status code into a human readable string.
status_codeGLPK(code)
status_codeGLPK(code)
code |
Status code from GLPK. |
A character string associated with the GLPK status code.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘LP/MIP problem object’.
Low level interface function to the GLPK function glp_std_basis
.
Consult the GLPK documentation for more detailed information.
stdBasisGLPK(lp)
stdBasisGLPK(lp)
lp |
An object of class |
Interface to the C function stdBasis
which calls the GLPK
function glp_std_basis
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_term_out
.
Consult the GLPK documentation for more detailed information.
termOutGLPK(flag)
termOutGLPK(flag)
flag |
GLPK enable/disable flag: |
Interface to the C function termOut
which calls the GLPK
function glp_term_out
.
Returns the previous value of the terminal output flag.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
glpkConstants
, section ‘enable/disable flag’.
Low level interface function to the GLPK function glp_unscale_prob
.
Consult the GLPK documentation for more detailed information.
unscaleProbGLPK(lp)
unscaleProbGLPK(lp)
lp |
An object of class |
Interface to the C function unscaleProb
which calls the GLPK
function glp_unscale_prob
.
NULL
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_version
.
Consult the GLPK documentation for more detailed information.
versionGLPK()
versionGLPK()
Interface to the C function version
which calls the GLPK
function glp_version
.
Returns a single character value containing the GLPK version number.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
Low level interface function to the GLPK function glp_warm_up
.
Consult the GLPK documentation for more detailed information.
warmUpGLPK(lp)
warmUpGLPK(lp)
lp |
An object of class |
Interface to the C function warmUp
which calls the GLPK
function glp_warm_up
.
Status of “warming up”.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html
Low level interface function to the GLPK function glp_write_ipt
.
Consult the GLPK documentation for more detailed information.
writeIptGLPK(lp, fname)
writeIptGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be written out. |
Interface to the C function writeIpt
which calls the GLPK
function glp_write_ipt
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
printSolGLPK
, readSolGLPK
,
writeSolGLPK
, printIptGLPK
,
readIptGLPK
, printMIPGLPK
,
readMIPGLPK
and writeMIPGLPK
.
Low level interface function to the GLPK function glp_write_lp
.
Consult the GLPK documentation for more detailed information.
writeLPGLPK(lp, fname)
writeLPGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be written out. |
Interface to the C function writeLP
which calls the GLPK
function glp_write_lp
.
Returns zero on success, otherwise it returns non-zero and prints an error message.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
readMPSGLPK
, readLPGLPK
,
readProbGLPK
,
writeMPSGLPK
and writeProbGLPK
.
Low level interface function to the GLPK function glp_write_mip
.
Consult the GLPK documentation for more detailed information.
writeMIPGLPK(lp, fname)
writeMIPGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be written out. |
Interface to the C function writeMIP
which calls the GLPK
function glp_write_mip
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
printSolGLPK
, readSolGLPK
,
writeSolGLPK
, printIptGLPK
,
readIptGLPK
, writeIptGLPK
,
printMIPGLPK
and readMIPGLPK
.
Low level interface function to the GLPK function glp_write_mps
.
Consult the GLPK documentation for more detailed information.
writeMPSGLPK(lp, fmt, fname)
writeMPSGLPK(lp, fmt, fname)
lp |
An object of class |
fmt |
MPS format. See |
fname |
The name of the text file to be written out. |
Interface to the C function writeMPS
which calls the GLPK
function glp_write_mps
.
Returns zero on success, otherwise it returns non-zero and prints an error message.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
readMPSGLPK
, readLPGLPK
,
readProbGLPK
,
writeLPGLPK
, writeProbGLPK
and
glpkConstants
.
Low level interface function to the GLPK function glp_write_prob
.
Consult the GLPK documentation for more detailed information.
writeProbGLPK(lp, fname)
writeProbGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be written out. |
Interface to the C function writeProb
which calls the GLPK
function glp_write_prob
.
Returns zero on success, otherwise it returns non-zero and prints an error message.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
readMPSGLPK
, readLPGLPK
,
readProbGLPK
,
writeLPGLPK
and writeMPSGLPK
.
Low level interface function to the GLPK function glp_write_sol
.
Consult the GLPK documentation for more detailed information.
writeSolGLPK(lp, fname)
writeSolGLPK(lp, fname)
lp |
An object of class |
fname |
The name of the text file to be written out. |
Interface to the C function writeSol
which calls the GLPK
function glp_write_sol
.
Returns zero on success, otherwise it returns non-zero.
Gabriel Gelius-Dietrich <[email protected]>
Maintainer: Mayo Roettger <[email protected]>
Based on the package glpk by Lopaka Lee.
The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.
printSolGLPK
, readSolGLPK
,
printIptGLPK
, readIptGLPK
,
writeIptGLPK
, printMIPGLPK
,
readMIPGLPK
and writeMIPGLPK
.