Package 'glpkAPI'

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

Help Index


R Interface to C API of GLPK

Description

A low level interface to the GNU Linear Programming Kit (GLPK).

Details

The package glpkAPI provides access to the callable library of the GNU Linear Programming Kit from within R.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

Examples

# 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)

Add Columns to a GLPK Problem Object

Description

Low level interface function to the GLPK function glp_add_cols. Consult the GLPK documentation for more detailed information.

Usage

addColsGLPK(lp, ncols)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

ncols

The number of columns to add.

Details

Interface to the C function addCols which calls the GLPK function glp_add_cols.

Value

The ordinal number of the first new column added to the problem object is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html


Add Rows to a GLPK Problem Object

Description

Low level interface function to the GLPK function glp_add_rows. Consult the GLPK documentation for more detailed information.

Usage

addRowsGLPK(lp, nrows)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

nrows

The number of rows to add.

Details

Interface to the C function addRows which calls the GLPK function glp_add_rows.

Value

The ordinal number of the first new row added to the problem object is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html


Contruct Advanced Initial LP Basis

Description

Low level interface function to the GLPK function glp_adv_basis. Consult the GLPK documentation for more detailed information.

Usage

advBasisGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function advBasis which calls the GLPK function glp_adv_basis.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html


Check if the basis factorization exists

Description

Low level interface function to the GLPK function glp_bf_exists. Consult the GLPK documentation for more detailed information.

Usage

bfExistsGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function bfExists which calls the GLPK function glp_bf_exists.

Value

Returns non-zero if the basis factorization for the specified problem object exists. Otherwise the routine returns zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Check if the basis factorization has been updated

Description

Low level interface function to the GLPK function glp_bf_updated. Consult the GLPK documentation for more detailed information.

Usage

bfUpdatedGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function bfUpdated which calls the GLPK function glp_bf_updated.

Value

Returns non-zero if the basis factorization has been updated at least once. Otherwise the routine returns zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Check for Duplicate Elements in Sparse Matrix

Description

Low level interface function to the GLPK function glp_check_dup. Consult the GLPK documentation for more detailed information.

Usage

checkDupGLPK(m, n, ne, ia, ja)

Arguments

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.

Details

Interface to the C function checkDup which calls the GLPK function glp_check_dup.

Value

Returns one of the following values:

0

No duplikate elements.

-k

Indices ia[k] or ja[k] are out of range.

+k

Element (ia[k], ja[k]) is duplicate.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html


Copy problem object content

Description

Low level interface function to the GLPK function glp_copy_prob. Consult the GLPK documentation for more detailed information.

Usage

copyProbGLPK(lp, clp, name = GLP_OFF)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

clp

A pointer to a GLPK problem object (destination).

name

If set to GLP_ON, the routine copies all symbolic names; otherwise (GLP_OFF) not.

Details

Interface to the C function copyProb which calls the GLPK function glp_copy_prob.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘enable/disable flag’.


Construct Bixby's initial LP basis

Description

Low level interface function to the GLPK function glp_cpx_basis. Consult the GLPK documentation for more detailed information.

Usage

cpxBasisGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function cpxBasis which calls the GLPK function glp_cpx_basis.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Create the Name Index

Description

Low level interface function to the GLPK function glp_create_index. Consult the GLPK documentation for more detailed information.

Usage

createIndexGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function createIndex which calls the GLPK function glp_create_index.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Delete Columns from Problem Object

Description

Low level interface function to the GLPK function glp_del_cols. Consult the GLPK documentation for more detailed information.

Usage

delColsGLPK(lp, ncols, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

ncols

Number of columns to delete.

j

Ordinal numbers of columns to delete.

Details

Interface to the C function delCols which calls the GLPK function glp_del_cols.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Delete the Name Index

Description

Low level interface function to the GLPK function glp_delete_index. Consult the GLPK documentation for more detailed information.

Usage

deleteIndexGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function deleteIndex which calls the GLPK function glp_delete_index.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Delete Problem Object

Description

Low level interface function to the GLPK function glp_delete_prob. Consult the GLPK documentation for more detailed information.

Usage

delProbGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function delProb which calls the GLPK function glp_delete_prob.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Delete Rows from Problem Object

Description

Low level interface function to the GLPK function glp_del_rows. Consult the GLPK documentation for more detailed information.

Usage

delRowsGLPK(lp, nrows, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

nrows

Number of rows to delete.

i

Ordinal numbers of rows to delete.

Details

Interface to the C function delRows which calls the GLPK function glp_del_rows.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Erase problem object content

Description

Low level interface function to the GLPK function glp_erase_prob. Consult the GLPK documentation for more detailed information.

Usage

eraseProbGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function eraseProb which calls the GLPK function glp_erase_prob.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Compute the basis factorization

Description

Low level interface function to the GLPK function glp_factorize. Consult the GLPK documentation for more detailed information.

Usage

factorizeGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function factorize which calls the GLPK function glp_factorize.

Value

Returns zero if the basis factorization has been successfully computed. Otherwise the routine returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘return codes’.


Find Column by its Name

Description

Low level interface function to the GLPK function glp_find_col. Consult the GLPK documentation for more detailed information.

Usage

findColGLPK(lp, cname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

cname

A column name.

Details

Interface to the C function findCol which calls the GLPK function glp_find_column.

Value

Returns the ordinal number of a column, which is assigned the specified cname.

Note

Before calling findColGLPK for the first time on a problem object lp, an index has to created via a call to createIndexGLPK.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Find Row by its Name

Description

Low level interface function to the GLPK function glp_find_row. Consult the GLPK documentation for more detailed information.

Usage

findRowGLPK(lp, rname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

rname

A row name.

Details

Interface to the C function findRow which calls the GLPK function glp_find_row.

Value

Returns the ordinal number of a row, which is assigned the specified rname.

Note

Before calling findRowGLPK for the first time on a problem object lp, an index has to created via a call to createIndexGLPK.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Basis Factorization Control parameters

Description

Returns the names and values of members in the structure glp_bfcp. Consult the GLPK documentation for more detailed information.

Usage

getBfcpGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getBfcp.

Value

The function returns a list.

integer

The names and corresponding values of all integer control parameters in glp_bfcp.

double

The names and corresponding values of all double control parameters in glp_bfcp.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘Control Parameters’.


Retrieve Basis Header Information

Description

Low level interface function to the GLPK function glp_get_bhead. Consult the GLPK documentation for more detailed information.

Usage

getBheadGLPK(lp, k)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

k

Index of the basic variable.

Details

Interface to the C function getBhead which calls the GLPK function glp_get_bhead.

Value

Index of the auxiliary/structural variable.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Index in the Basis Header

Description

Low level interface function to the GLPK function glp_get_col_bind. Consult the GLPK documentation for more detailed information.

Usage

getCbindGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Structural variable j.

Details

Interface to the C function getCbind which calls the GLPK function glp_get_col_bind.

Value

Index of the basic variable.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Dual Value

Description

Low level interface function to the GLPK function glp_get_col_dual. Consult the GLPK documentation for more detailed information.

Usage

getColDualGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getColDual which calls the GLPK function glp_get_col_dual.

Value

Column dual value

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Dual Value

Description

Low level interface function to the GLPK function glp_ipt_col_dual. Consult the GLPK documentation for more detailed information.

Usage

getColDualIptGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getColDualIpt which calls the GLPK function glp_ipt_col_dual.

Value

Column dual value

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Kind

Description

Low level interface function to the GLPK function glp_get_col_kind. Consult the GLPK documentation for more detailed information.

Usage

getColKindGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getColKind which calls the GLPK function glp_get_col_kind.

Value

Column Kind

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Lower Bound

Description

Low level interface function to the GLPK function glp_get_col_lb. Consult the GLPK documentation for more detailed information.

Usage

getColLowBndGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getColLowBnd which calls the GLPK function glp_get_col_lb.

Value

The lower bound of the j-th column (the corresponding structural variable) is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Name

Description

Low level interface function to the GLPK function glp_get_col_name. Consult the GLPK documentation for more detailed information.

Usage

getColNameGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getColName which calls the GLPK function glp_get_col_name.

Value

The assigned name of the j-th column is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Primal Value

Description

Low level interface function to the GLPK function glp_get_col_prim. Consult the GLPK documentation for more detailed information.

Usage

getColPrimGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getColPrim which calls the GLPK function glp_get_col_prim.

Value

The primal value of the j-th column (the corresponding structural variable) is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Primal Value

Description

Low level interface function to the GLPK function glp_ipt_col_prim. Consult the GLPK documentation for more detailed information.

Usage

getColPrimIptGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getColPrimIpt which calls the GLPK function glp_ipt_col_prim.

Value

The primal value of the j-th column (the corresponding structural variable) is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Dual Value of all Columns

Description

This is an advanced version of getColDualGLPK.

Usage

getColsDualGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getColsDual which calls the GLPK function glp_get_col_dual.

Value

The column dual values of all columns (structural variables) are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Dual Value of all Columns

Description

This is an advanced version of getColDualIptGLPK.

Usage

getColsDualIptGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getColDualIpt which calls the GLPK function glp_ipt_col_dual.

Value

The column dual values of all columns are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Kind

Description

This is an advanced version of getColKindGLPK.

Usage

getColsKindGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Vector of column numbers.

Details

Interface to the C function getColsKind which calls the GLPK function glp_get_col_ub.

Value

The column kinds of all specified columns (j) are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Lower Bounds of Specified Columns

Description

This is an advanced version of getColLowBndGLPK. Here, j can be an integer vector.

Usage

getColsLowBndsGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Vector of column numbers.

Details

Interface to the C function getColsLowBnds which calls the GLPK function glp_get_col_lb.

Value

The lower bounds of all specified columns (j) (the corresponding structural variables) are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve all Column Primal Values

Description

This is an advanced version of getColPrimGLPK.

Usage

getColsPrimGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getColsPrim which calls the GLPK functions glp_get_col_prim and glp_get_num_cols.

Value

Returns all values of the stuctural variables as a numeric vector.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve all Column Primal Values

Description

This is an advanced version of getColPrimGLPK.

Usage

getColsPrimIptGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getColsPrimIpt which calls the GLPK functions glp_ipt_col_prim and glp_get_num_cols.

Value

Returns all values of the stuctural variables as a numeric vector.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Status of all Columns

Description

This is an advanced version of getColStatGLPK.

Usage

getColsStatGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getColsStat which calls the GLPK function glp_get_col_stat.

Value

The column status of all columns are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Status

Description

Low level interface function to the GLPK function glp_get_col_stat. Consult the GLPK documentation for more detailed information.

Usage

getColStatGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getColStat which calls the GLPK function glp_get_col_stat.

Value

Column status

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Retrieve Upper Bounds of Specified Columns

Description

This is an advanced version of getColUppBndGLPK. Here, j can be an integer vector.

Usage

getColsUppBndsGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Vector of column numbers.

Details

Interface to the C function getColsUppBnds which calls the GLPK function glp_get_col_ub.

Value

The upper bounds of all specified columns (j) (the corresponding structural variable) is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Type

Description

Low level interface function to the GLPK function glp_get_col_type. Consult the GLPK documentation for more detailed information.

Usage

getColTypeGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getColType which calls the GLPK function glp_get_col_type.

Value

The type of the j-th column (the corresponding structural variable) is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Retrieve Column Upper Bound

Description

Low level interface function to the GLPK function glp_get_col_ub. Consult the GLPK documentation for more detailed information.

Usage

getColUppBndGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getColUppBnd which calls the GLPK function glp_get_col_ub.

Value

The upper bound of the j-th column (the corresponding structural variable) is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Status of Dual Basic Solution

Description

Low level interface function to the GLPK function glp_get_dual_stat. Consult the GLPK documentation for more detailed information.

Usage

getDualStatGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getDualStat which calls the GLPK function glp_get_dual_stat.

Value

Status of dual basic solution

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Retrives the Control Parameters for the Interior-point Method.

Description

Returns the names and values of members in the structure glp_iptcp. Consult the GLPK documentation for more detailed information.

Usage

getInteriorParmGLPK()

Details

Interface to the C function getInteriorParm.

Value

The function returns a list.

integer

The names and corresponding values of all integer control parameters in glp_iptcp.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘Control Parameters’.


Retrieves Column j of the Constraint Matrix.

Description

Low level interface function to the GLPK function glp_get_mat_col. Consult the GLPK documentation for more detailed information.

Usage

getMatColGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getMatCol which calls the GLPK functions glp_get_num_rows and glp_get_mat_col.

Value

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

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieves Row i of the Constraint Matrix.

Description

Low level interface function to the GLPK function glp_get_mat_row. Consult the GLPK documentation for more detailed information.

Usage

getMatRowGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getMatRow which calls the GLPK functions glp_get_num_cols and glp_get_mat_row.

Value

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

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrives the Control Parameters for MIP.

Description

Returns the names and values of members in the structure glp_iocp. Consult the GLPK documentation for more detailed information.

Usage

getMIPParmGLPK()

Details

Interface to the C function getMIPParm.

Value

The function returns a list.

integer

The names and corresponding values of all integer control parameters in glp_iocp.

double

The names and corresponding values of all double control parameters in glp_iocp.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘Control Parameters’.


Retrieve Number of Binary Columns

Description

Low level interface function to the GLPK function glp_get_num_bin. Consult the GLPK documentation for more detailed information.

Usage

getNumBinGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getNumBin which calls the GLPK function glp_get_num_bin.

Value

Number of binary columns.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Number of Columns

Description

Low level interface function to the GLPK function glp_get_num_cols. Consult the GLPK documentation for more detailed information.

Usage

getNumColsGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getNumCols which calls the GLPK function glp_get_num_cols.

Value

Returns the current number of columns in the specified problem object.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Number of Integer Columns

Description

Low level interface function to the GLPK function glp_get_num_int. Consult the GLPK documentation for more detailed information.

Usage

getNumIntGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getNumInt which calls the GLPK function glp_get_num_int.

Value

Number of integer columns.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve the Number of Constraint Coefficients

Description

Low level interface function to the GLPK function glp_get_num_nz. Consult the GLPK documentation for more detailed information.

Usage

getNumNnzGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getNumNnz which calls the GLPK function glp_get_num_nz.

Value

Returns the number of non-zero elements in the constraint matrix of the specified problem object.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Number of Rows

Description

Low level interface function to the GLPK function glp_get_num_rows. Consult the GLPK documentation for more detailed information.

Usage

getNumRowsGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getNumRows which calls the GLPK function glp_get_num_rows.

Value

Returns the current number of rows in the specified problem object.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Objective Coefficient or Constant Term

Description

Low level interface function to the GLPK function glp_get_obj_coef. Consult the GLPK documentation for more detailed information.

Usage

getObjCoefGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getObjCoef which calls the GLPK function glp_get_obj_coef.

Value

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.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Objective Coefficients at Specified Columns and/or Constant Term

Description

This is an advanced version of getObjCoefGLPK. Here, j can be an integer vector.

Usage

getObjCoefsGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Vector of column numbers.

Details

Interface to the C function getObjCoef which calls the GLPK function glp_get_obj_coef.

Value

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.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Optimization Direction Flag

Description

Low level interface function to the GLPK function glp_get_obj_dir. Consult the GLPK documentation for more detailed information.

Usage

getObjDirGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getObjDir which calls the GLPK function glp_get_obj_dir.

Value

Returns the optimization direction flag.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Retrieve Objective Function Name

Description

Low level interface function to the GLPK function glp_get_obj_name. Consult the GLPK documentation for more detailed information.

Usage

getObjNameGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getObjName which calls the GLPK function glp_get_obj_name.

Value

The assigned name of the objective function is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Objective Value

Description

Low level interface function to the GLPK function glp_get_obj_val. Consult the GLPK documentation for more detailed information.

Usage

getObjValGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getObjVal which calls the GLPK function glp_get_obj_val.

Value

Returns the current value of the objective function.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Objective Value

Description

Low level interface function to the GLPK function glp_ipt_obj_val. Consult the GLPK documentation for more detailed information.

Usage

getObjValIptGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getObjValIpt which calls the GLPK function glp_ipt_obj_val.

Value

Returns the current value of the objective function.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Status of Primal Basic Solution

Description

Low level interface function to the GLPK function glp_get_prim_stat. Consult the GLPK documentation for more detailed information.

Usage

getPrimStatGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getPrimStat which calls the GLPK function glp_get_prim_stat.

Value

Status of primal basic solution

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Retrieve Problem Name

Description

Low level interface function to the GLPK function glp_get_prob_name. Consult the GLPK documentation for more detailed information.

Usage

getProbNameGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getProbName which calls the GLPK function glp_get_prob_name.

Value

The assigned name of the problem is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Index in the Basis Header

Description

Low level interface function to the GLPK function glp_get_row_bind. Consult the GLPK documentation for more detailed information.

Usage

getRbindGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Auxiliary variable i.

Details

Interface to the C function getRbind which calls the GLPK function glp_get_row_bind.

Value

Index of the basic variable.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve row scale factor

Description

Low level interface function to the GLPK function glp_get_rii. Consult the GLPK documentation for more detailed information.

Usage

getRiiGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getRii which calls the GLPK function glp_get_rii.

Value

Returns the current scale factor $r_ii$ for row i of the specified problem object.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Dual Value

Description

Low level interface function to the GLPK function glp_get_row_dual. Consult the GLPK documentation for more detailed information.

Usage

getRowDualGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getRowDual which calls the GLPK function glp_get_row_dual.

Value

Row dual value

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Dual Value

Description

Low level interface function to the GLPK function glp_ipt_row_dual. Consult the GLPK documentation for more detailed information.

Usage

getRowDualIptGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getRowDualIpt which calls the GLPK function glp_ipt_row_dual.

Value

Row dual value

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Lower Bound

Description

Low level interface function to the GLPK function glp_get_row_lb. Consult the GLPK documentation for more detailed information.

Usage

getRowLowBndGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getRowLowBnd which calls the GLPK function glp_get_row_lb.

Value

The lower bound of the i-th row (the corresponding auxiliary variable) is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Name

Description

Low level interface function to the GLPK function glp_get_row_name. Consult the GLPK documentation for more detailed information.

Usage

getRowNameGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getRowName which calls the GLPK function glp_get_row_name.

Value

The assigned name of the i-th row is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Primal Value

Description

Low level interface function to the GLPK function glp_get_row_prim. Consult the GLPK documentation for more detailed information.

Usage

getRowPrimGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getRowPrim which calls the GLPK function glp_get_row_prim.

Value

Row primal value

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Primal Value

Description

Low level interface function to the GLPK function glp_ipt_row_prim. Consult the GLPK documentation for more detailed information.

Usage

getRowPrimIptGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getRowPrimIpt which calls the GLPK function glp_ipt_row_prim.

Value

Row primal value

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Dual Values of all Rows

Description

This is an advanced version of getRowDualGLPK.

Usage

getRowsDualGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getRowsDual which calls the GLPK function glp_get_row_stat.

Value

The row dual values of all rows are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Dual Value of all Rows

Description

This is an advanced version of getRowDualIptGLPK.

Usage

getRowsDualIptGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getRowsDualIpt which calls the GLPK function glp_ipt_row_dual.

Value

The row dual values of all rows are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Lower Bounds of Specified Rows

Description

This is an advanced version of getRowLowBndGLPK. Here, i can be an integer vector.

Usage

getRowsLowBndsGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Vector of row numbers.

Details

Interface to the C function getRowsLowBnds which calls the GLPK function glp_get_row_lb.

Value

The lower bounds of all specified columns (i) (the corresponding auxiliary variables) are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Primal Value of all Rows

Description

This is an advanced version of getRowPrimGLPK.

Usage

getRowsPrimGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getRowsPrim which calls the GLPK function glp_get_row_prim.

Value

The row primal values for all rows are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Primal Value of all Rows

Description

This is an advanced version of getRowPrimIptGLPK.

Usage

getRowsPrimIptGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getRowsPrimIpt which calls the GLPK function glp_ipt_row_prim.

Value

The row primal values of all rows are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Status of all Rows

Description

This is an advanced version of getRowStatGLPK.

Usage

getRowsStatGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getRowsStat which calls the GLPK function glp_get_row_stat.

Value

The row status values of all rows are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Status

Description

Low level interface function to the GLPK function glp_get_row_stat. Consult the GLPK documentation for more detailed information.

Usage

getRowStatGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getRowStat which calls the GLPK function glp_get_row_stat.

Value

Row status

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Retrieve Types of Specified Constraints (Rows)

Description

This is an advanced version of getRowTypeGLPK. Here, i can be an integer vector.

Usage

getRowsTypesGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Vector of row numbers.

Details

Interface to the C function getRowsTypes which calls the GLPK function glp_get_row_type.

Value

A numeric vector of the same length as i giving the constraint type of the specified rows.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘type of auxiliary/structural variable’.


Retrieve Upper Bounds of Specified Rows

Description

This is an advanced version of getRowUppBndGLPK. Here, i can be an integer vector.

Usage

getRowsUppBndsGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Vector of row numbers.

Details

Interface to the C function getRowsUppBnds which calls the GLPK function glp_get_row_ub.

Value

The upper bounds of all specified columns (i) (the corresponding auxiliary variables) are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Type

Description

Low level interface function to the GLPK function glp_get_row_type. Consult the GLPK documentation for more detailed information.

Usage

getRowTypeGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getRowType which calls the GLPK function glp_get_row_type.

Value

The type of the i-th row (the corresponding auxiliary variable) is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Retrieve Row Upper Bound

Description

Low level interface function to the GLPK function glp_get_row_ub. Consult the GLPK documentation for more detailed information.

Usage

getRowUppBndGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function getRowUppBnd which calls the GLPK function glp_get_row_ub.

Value

The upper bound of the i-th row (the corresponding auxiliary variable) is returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrives the Control Parameters for the Simplex Method.

Description

Returns the names and values of members in the structure glp_smcp. Consult the GLPK documentation for more detailed information.

Usage

getSimplexParmGLPK()

Details

Interface to the C function getSimplexParm.

Value

The function returns a list.

integer

The names and corresponding values of all integer control parameters in glp_smcp.

double

The names and corresponding values of all double control parameters in glp_smcp.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘Control Parameters’.


Retrieve column scale factor

Description

Low level interface function to the GLPK function glp_get_sjj. Consult the GLPK documentation for more detailed information.

Usage

getSjjGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function getSjj which calls the GLPK function glp_get_sjj.

Value

Returns the current scale factor $s_jj$ for column j of the specified problem object.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Determine Generic Status of the Basic Soluton

Description

Low level interface function to the GLPK function glp_get_status. Consult the GLPK documentation for more detailed information.

Usage

getSolStatGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getSolStat which calls the GLPK function glp_get_status.

Value

Returns the generic status of the current basic solution for the specified problem object.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Determine Solution Status

Description

Low level interface function to the GLPK function glp_ipt_status. Consult the GLPK documentation for more detailed information.

Usage

getSolStatIptGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getSolStatIpt which calls the GLPK function glp_ipt_status.

Value

Returns the generic status of the current basic solution for the specified problem object.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Determine Variable Causing Unboundedness

Description

Low level interface function to the GLPK function glp_get_unbnd_ray. Consult the GLPK documentation for more detailed information.

Usage

getUnbndRayGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function getUnbndRay which calls the GLPK function glp_get_unbnd_ray.

Value

Returns the number k of a variable, which causes primal or dual unboundedness.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Constants, Return and Status Codes of GLPK

Description

This is a list containing constants used by GLPK. Cunsult the glpk manual for more information, in praticular for the control parameters.

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).

LP/MIP problem object

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

basis factorization control parameters

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

simplex method control parameters

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

interior-point solver control parameters

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)

integer optimizer control parameters

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

additional row attributes

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

enable/disable flag

GLP_ON <- 1 enable something
GLP_OFF <- 0 disable something

reason codes

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

branch selection indicator

GLP_NO_BRNCH <- 0 select no branch
GLP_DN_BRNCH <- 1 select down-branch
GLP_UP_BRNCH <- 2 select up-branch

return codes

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

condition indicator

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

MPS file format

GLP_MPS_DECK <- 1 fixed (ancient)
GLP_MPS_FILE <- 2 free (modern)

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

status_codeGLPK, return_codeGLPK


Class "glpkPtr"

Description

Structure of the class "glpkPtr". Objects of that class are used to hold pointers to C structures used by GLPK.

Objects from the Class

Objects can be created by calls of the form
test <- initProbGLPK() or
test <- mplAllocWkspGLPK().

Slots

glpkPtrType:

Object of class "character" giving the pointer type.

glpkPointer:

Object of class "externalptr" containig the pointer to a C structure.

Methods

isGLPKpointer

signature(object = "glpkPtr"): returns TRUE if glpkPointer(object) is a pointer to a GLPK problem object, otherwise FALSE.

isNULLpointerGLPK

signature(object = "glpkPtr"): returns TRUE if glpkPointer(object) is a NULL pointer, otherwise FALSE.

isTRWKSpointer

signature(object = "glpkPtr"): returns TRUE if glpkPointer(object) is a pointer to a MathProg translator workspace, otherwise FALSE.

glpkPointer

signature(object = "glpkPtr"): gets the glpkPointer slot.

glpkPtrType

signature(object = "glpkPtr"): gets the glpkPtrType slot.

glpkPtrType<-

signature(object = "glpkPtr"): sets the glpkPtrType slot.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

mplAllocWkspGLPK and initProbGLPK.

Examples

showClass("glpkPtr")

Create a GLPK Problem Object

Description

Low level interface function to the GLPK function glp_create_prob. Consult the GLPK documentation for more detailed information.

Usage

initProbGLPK(ptrtype = "glpk_prob")

Arguments

ptrtype

A name for the pointer to a GLPK problem object.

Details

Interface to the C function initProb which calls the GLPK function glp_create_prob.

Value

An instance of class "glpkPtr".

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

"glpkPtr".


Load/Replace the Whole Constraint Matrix

Description

Low level interface function to the GLPK function glp_load_matrix. Consult the GLPK documentation for more detailed information.

Usage

loadMatrixGLPK(lp, ne, ia, ja, ra)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

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.

Details

Interface to the C function loadMatrix which calls the GLPK function glp_load_matrix.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Value of all Columns

Description

This is an advanced version of mipColValGLPK.

Usage

mipColsValGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function mipColsVal which calls the GLPK function glp_mip_col_val.

Value

The column values of all columns are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Column Value

Description

Low level interface function to the GLPK function glp_mip_col_val. Consult the GLPK documentation for more detailed information.

Usage

mipColValGLPK(lp, j)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

Details

Interface to the C function mipColVal which calls the GLPK function glp_mip_col_val.

Value

Column value of column j.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Objective Value

Description

Low level interface function to the GLPK function glp_mip_obj_val. Consult the GLPK documentation for more detailed information.

Usage

mipObjValGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function mipObjVal which calls the GLPK function glp_mip_obj_val.

Value

Objective value.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Value of all Rows

Description

This is an advanced version of mipRowValGLPK.

Usage

mipRowsValGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function mipRowsVal which calls the GLPK function glp_mip_row_val.

Value

The row values of all rows are returned.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Retrieve Row Value

Description

Low level interface function to the GLPK function glp_mip_row_val. Consult the GLPK documentation for more detailed information.

Usage

mipRowValGLPK(lp, i)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

Details

Interface to the C function mipRowVal which calls the GLPK function glp_mip_row_val.

Value

Row value of row i.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Determine Status of MIP Solution

Description

Low level interface function to the GLPK function glp_mip_status. Consult the GLPK documentation for more detailed information.

Usage

mipStatusGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function mipStatus which calls the GLPK function glp_mip_status.

Value

Status of MIP Solution.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Allocate Translator Workspace

Description

Low level interface function to the GLPK function glp_mpl_alloc_wksp. Consult the GLPK documentation for more detailed information.

Usage

mplAllocWkspGLPK(ptrtype = "tr_wksp")

Arguments

ptrtype

A name for the pointer to a translator workspace.

Details

Interface to the C function mplAllocWksp which calls the GLPK function glp_mpl_alloc_wksp.

Value

An instance of class "glpkPtr".

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

"glpkPtr".


Build Problem Instance From Model

Description

Low level interface function to the GLPK function glp_mpl_build_prob. Consult the GLPK documentation for more detailed information.

Usage

mplBuildProbGLPK(wk, lp)

Arguments

wk

An object of class "glpkPtr" as returned by mplAllocWkspGLPK. This is basically a pointer to a GLPK translocator workspace.

lp

A pointer to a GLPK problem object.

Details

Interface to the C function mplBuildProb which calls the GLPK function glp_mpl_build_prob.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

mplAllocWkspGLPK, mplFreeWkspGLPK, mplGenerateGLPK, mplPostsolveGLPK, mplReadDataGLPK and mplReadModelGLPK.


Free Translator Workspace

Description

Low level interface function to the GLPK function glp_mpl_free_wksp. Consult the GLPK documentation for more detailed information.

Usage

mplFreeWkspGLPK(wk)

Arguments

wk

An object of class "glpkPtr" as returned by mplAllocWkspGLPK. This is basically a pointer to a GLPK translocator workspace.

Details

Interface to the C function mplFreeWksp which calls the GLPK function glp_mpl_free_wksp.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

mplAllocWkspGLPK, mplBuildProbGLPK, mplGenerateGLPK, mplPostsolveGLPK, mplReadDataGLPK and mplReadModelGLPK.


Generate the Model

Description

Low level interface function to the GLPK function glp_mpl_generate. Consult the GLPK documentation for more detailed information.

Usage

mplGenerateGLPK(wk, fname = NULL)

Arguments

wk

An object of class "glpkPtr" as returned by mplAllocWkspGLPK. This is basically a pointer to a GLPK translocator workspace.

fname

The name of the text file to be written out.

Details

Interface to the C function mplGenerate which calls the GLPK function glp_mpl_generate.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

mplAllocWkspGLPK, mplBuildProbGLPK, mplFreeWkspGLPK, mplPostsolveGLPK, mplReadDataGLPK and mplReadModelGLPK.


Postsolve Model

Description

Low level interface function to the GLPK function glp_mpl_postsolve. Consult the GLPK documentation for more detailed information.

Usage

mplPostsolveGLPK(wk, lp, sol)

Arguments

wk

An object of class "glpkPtr" as returned by mplAllocWkspGLPK. This is basically a pointer to a GLPK translocator workspace.

lp

A pointer to a GLPK problem object.

sol

Type of solution to be copied to the translator workspace, for possible values, see glpkConstants, section ‘LP/MIP problem object’.

Details

Interface to the C function mplPostsolve which calls the GLPK function glp_mpl_postsolve.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

mplAllocWkspGLPK, mplBuildProbGLPK, mplFreeWkspGLPK, mplGenerateGLPK, mplReadDataGLPK and mplReadModelGLPK.


Read and Translate Data Section

Description

Low level interface function to the GLPK function glp_mpl_read_data. Consult the GLPK documentation for more detailed information.

Usage

mplReadDataGLPK(wk, fname)

Arguments

wk

An object of class "glpkPtr" as returned by mplAllocWkspGLPK. This is basically a pointer to a GLPK translocator workspace.

fname

The name of the data file to be read in.

Details

Interface to the C function mplReadData which calls the GLPK function glp_mpl_read_data.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

mplAllocWkspGLPK, mplBuildProbGLPK, mplFreeWkspGLPK, mplGenerateGLPK, mplPostsolveGLPK and mplReadModelGLPK.


Read and Translate Model Section

Description

Low level interface function to the GLPK function glp_mpl_read_model. Consult the GLPK documentation for more detailed information.

Usage

mplReadModelGLPK(wk, fname, skip)

Arguments

wk

An object of class "glpkPtr" as returned by mplAllocWkspGLPK. This is basically a pointer to a GLPK translocator workspace.

fname

The name of the model file to be read in.

skip

Flag, how to treat the data section.

Details

Interface to the C function mplReadModel which calls the GLPK function glp_mpl_read_model.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

mplAllocWkspGLPK, mplBuildProbGLPK, mplFreeWkspGLPK, mplGenerateGLPK, mplPostsolveGLPK and mplReadDataGLPK.


Write Interior-Point Solution in Printable Format

Description

Low level interface function to the GLPK function glp_print_ipt. Consult the GLPK documentation for more detailed information.

Usage

printIptGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be written out.

Details

Interface to the C function printIpt which calls the GLPK function glp_print_ipt.

Value

Returns zero on success, otherwise it returns non-zero and prints an error message.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

printSolGLPK, readSolGLPK, writeSolGLPK, readIptGLPK, writeIptGLPK, printMIPGLPK, readMIPGLPK and writeMIPGLPK.


Write Interior-Point Solution in Printable Format

Description

Low level interface function to the GLPK function glp_print_mip. Consult the GLPK documentation for more detailed information.

Usage

printMIPGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be written out.

Details

Interface to the C function printMIP which calls the GLPK function glp_print_mip.

Value

Returns zero on success, otherwise it returns non-zero and prints an error message.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

printSolGLPK, readSolGLPK, writeSolGLPK, printIptGLPK, readIptGLPK, writeIptGLPK, readMIPGLPK and writeMIPGLPK.


Print Sensitivity Analysis Report

Description

Low level interface function to the GLPK function glp_print_ranges. Consult the GLPK documentation for more detailed information.

Usage

printRangesGLPK(lp, numrc = 0, rowcol = NULL, fname = "sar.txt")

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

numrc

Length of the row/column list (argument rowcol).

rowcol

Ordinal numbers of rows and columns to be analyzed.

fname

A filename.

Details

Interface to the C function printRanges which calls the GLPK function glp_print_ranges.

Value

Zero on success, otherwise non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Write Basic Solution in Printable Format

Description

Low level interface function to the GLPK function glp_print_sol. Consult the GLPK documentation for more detailed information.

Usage

printSolGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be written out.

Details

Interface to the C function printSol which calls the GLPK function glp_print_sol.

Value

Returns zero on success, otherwise it returns non-zero and prints an error message.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

readSolGLPK, writeSolGLPK, printIptGLPK, readIptGLPK, writeIptGLPK, printMIPGLPK, readMIPGLPK and writeMIPGLPK.


Read Interior-Point Solution From Text File

Description

Low level interface function to the GLPK function glp_read_ipt. Consult the GLPK documentation for more detailed information.

Usage

readIptGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be read in.

Details

Interface to the C function readIpt which calls the GLPK function glp_read_ipt.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

printSolGLPK, readSolGLPK, writeSolGLPK, printIptGLPK, writeIptGLPK, printMIPGLPK, readMIPGLPK and writeMIPGLPK.


Read Problem Data in CPLEX LP Format

Description

Low level interface function to the GLPK function glp_read_lp. Consult the GLPK documentation for more detailed information.

Usage

readLPGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be read in.

Details

Interface to the C function readLP which calls the GLPK function glp_read_lp.

Value

Returns zero on success, otherwise it returns non-zero and prints an error message.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

readMPSGLPK, readProbGLPK, writeMPSGLPK, writeLPGLPK and writeProbGLPK.


Read MIP Solution From Text File

Description

Low level interface function to the GLPK function glp_read_mip. Consult the GLPK documentation for more detailed information.

Usage

readMIPGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be read in.

Details

Interface to the C function readMIP which calls the GLPK function glp_read_mip.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

printSolGLPK, readSolGLPK, writeSolGLPK, printIptGLPK, readIptGLPK, writeIptGLPK, printMIPGLPK and writeMIPGLPK.


Read Problem Data in MPS Format

Description

Low level interface function to the GLPK function glp_read_mps. Consult the GLPK documentation for more detailed information.

Usage

readMPSGLPK(lp, fmt, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fmt

MPS format. See glpkConstants, section ‘MPS file formats’.

fname

The name of the text file to be read in.

Details

Interface to the C function readMPS which calls the GLPK function glp_read_mps.

Value

Returns zero on success, otherwise it returns non-zero and prints an error message.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

readLPGLPK, readProbGLPK, writeMPSGLPK, writeLPGLPK, writeProbGLPK and glpkConstants.


Read Problem Data in GLPK F ormat

Description

Low level interface function to the GLPK function glp_read_prob. Consult the GLPK documentation for more detailed information.

Usage

readProbGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be read in.

Details

Interface to the C function readProb which calls the GLPK function glp_read_prob.

Value

Returns zero on success, otherwise it returns non-zero and prints an error message.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

readMPSGLPK, readLPGLPK, writeMPSGLPK, writeLPGLPK and writeProbGLPK.


Read Basic Solution From Text File

Description

Low level interface function to the GLPK function glp_read_sol. Consult the GLPK documentation for more detailed information.

Usage

readSolGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be read in.

Details

Interface to the C function readSol which calls the GLPK function glp_read_sol.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

printSolGLPK, writeSolGLPK, printIptGLPK, readIptGLPK, writeIptGLPK, printMIPGLPK, readMIPGLPK and writeMIPGLPK.


Translates a GLPK Return Code into a Human Readable String

Description

Translates a GLPK return code into a human readable string.

Usage

return_codeGLPK(code)

Arguments

code

Return code from GLPK.

Value

A character string associated with the GLPK return code.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘return codes’.


Scale Problem Data

Description

Low level interface function to the GLPK function glp_scale_prob. Consult the GLPK documentation for more detailed information.

Usage

scaleProbGLPK(lp, opt)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

opt

Scaling option, see glpkConstants, section ‘LP/MIP problem object’ for possible values.

Details

Interface to the C function scaleProb which calls the GLPK function glp_scale_prob.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Change Basis Factorization Control Parameters

Description

Sets/Changes the values of corresponding members of in the structure glp_bfcp. Consult the GLPK documentation for more detailed information.

Usage

setBfcpGLPK(lp, parm, val)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

parm

A vector containing integer values or symbolic names of the control parameters to be changed (see glpkConstants, section ‘Control Parameters’).

val

A vector containing the new values for the corresponding control parameters.

Details

The Arguments parm and val must have the same length. The value val[i] belongs to the parameter parm[i].

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Set/Change Column Bounds

Description

Low level interface function to the GLPK function glp_set_col_bnds. Consult the GLPK documentation for more detailed information.

Usage

setColBndGLPK(lp, j, type, lb, ub)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

type

Column type. For possible values, see glpkConstants, section ‘LP/MIP problem object’.

lb

Lower bound.

ub

Upper bound.

Details

Interface to the C function setColBnd which calls the GLPK function glp_set_col_bnds.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Set Column Kind

Description

Low level interface function to the GLPK function glp_set_col_kind. Consult the GLPK documentation for more detailed information.

Usage

setColKindGLPK(lp, j, kind)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

kind

Kind of column number j, for possible values see glpkConstants, section ‘LP/MIP problem object’.

Details

Interface to the C function setColKind which calls the GLPK function glp_set_col_kind.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Set/Change Column Name

Description

Low level interface function to the GLPK function glp_set_col_name. Consult the GLPK documentation for more detailed information.

Usage

setColNameGLPK(lp, j, cname = NULL)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

cname

Column name.

Details

Interface to the C function setColName which calls the GLPK function glp_set_col_name.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set/Change Column Bounds

Description

This is an advanced version of setColBndGLPK. Here, j can be an integer vector, lb and ub can be numeric vectors.

Usage

setColsBndsGLPK(lp, j, lb, ub, type = NULL)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

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 glpkConstants, section ‘LP/MIP problem object’.

Details

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.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Set/Change Column Bounds and Objective Coefficients and/or Constant Term

Description

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.

Usage

setColsBndsObjCoefsGLPK(lp, j, lb, ub, obj_coef, type = NULL)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

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 glpkConstants, section ‘LP/MIP problem object’.

Details

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.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Set Column Kind for a Set of Columns

Description

This is an advanced version of setColKindGLPK. Here, j can be an integer vector.

Usage

setColsKindGLPK(lp, j, kind)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

An integer vector of column indices.

kind

An integer vector of column kinds, for possible values see glpkConstants, section ‘LP/MIP problem object’.

Details

Interface to the C function setColsKind which calls the GLPK function glp_set_col_kind.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Set/Change Column Names

Description

This is an advanced version of setColNameGLPK. Here, j can be an integer vector, cnames can be a character vector.

Usage

setColsNamesGLPK(lp, j, cnames = NULL)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Vector of column numbers.

cnames

Vector of column names of the same length as j or NULL.

Details

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.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set column status

Description

Low level interface function to the GLPK function glp_set_col_stat. Consult the GLPK documentation for more detailed information.

Usage

setColStatGLPK(lp, j, stat)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

stat

A status parameter, see glpkConstants, section ‘LP/MIP problem object’ for possible values.

Details

Interface to the C function setColStat which calls the GLPK function glp_set_col_stat.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Sets the Default Control Parameters for the Interior-point Method.

Description

Initializes a new structure glp_iptcp. Consult the GLPK documentation for more detailed information.

Usage

setDefaultIptParmGLPK()

Details

Interface to the C function setDefaultIptParm which calls the GLPK function glp_init_iptcp.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘Control Parameters’.


Sets the Default Control Parameters for the MIP Method

Description

Initializes a new structure glp_iocp. Consult the GLPK documentation for more detailed information.

Usage

setDefaultMIPParmGLPK()

Details

Interface to the C function setDefaultMIPParm which calls the GLPK function glp_init_iocp.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘Control Parameters’.


Sets the Default Control Parameters for the Simplex Methods.

Description

Initializes a new structure glp_smcp. Consult the GLPK documentation for more detailed information.

Usage

setDefaultSmpParmGLPK()

Details

Interface to the C function setDefaultSmpParm which calls the GLPK function glp_init_smcp.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘Control Parameters’.


Sets/Changes Control Parameters or the Interior-point Method.

Description

Sets/Changes the values of corresponding members of in the structure glp_iptcp. Consult the GLPK documentation for more detailed information.

Usage

setInteriorParmGLPK(parm, val)

Arguments

parm

A vector containing integer values or symbolic names of the control parameters to be changed (see glpkConstants, section ‘Control Parameters’) and ‘interior-point solver control parameters’).

val

A vector containing the new values for the corresponding control parameters.

Details

The Arguments parm and val must have the same length. The value val[i] belongs to the parameter parm[i].

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Set (Replace) Column of the Constraint Matrix

Description

Low level interface function to the GLPK function glp_set_mat_col. Consult the GLPK documentation for more detailed information.

Usage

setMatColGLPK(lp, j, len, ind, val)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Replace the j-th column of the constraint matrix of the specified problem object.

len

Number of new column elements.

ind

Row indices of the new column elements.

val

Numerical values of the new column elements.

Details

Interface to the C function setMatCol which calls the GLPK function glp_set_mat_col.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set (Replace) Row of the Constraint Matrix

Description

Low level interface function to the GLPK function glp_set_mat_row. Consult the GLPK documentation for more detailed information.

Usage

setMatRowGLPK(lp, i, len, ind, val)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Replace the i-th row of the constraint matrix of the specified problem object.

len

Number of new row elements.

ind

Column indices of the new row elements.

val

Numerical values of the new row elements.

Details

Interface to the C function setMatRow which calls the GLPK function glp_set_mat_row.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Sets/Changes Control Parameters or the MIP Methods

Description

Sets/Changes the values of corresponding members of in the structure glp_iocp. Consult the GLPK documentation for more detailed information.

Usage

setMIPParmGLPK(parm, val)

Arguments

parm

A vector containing integer values or symbolic names of the control parameters to be changed (see glpkConstants, section ‘Control Parameters’ and ‘integer optimizer control parameters’).

val

A vector containing the new values for the corresponding control parameters.

Details

The Arguments parm and val must have the same length. The value val[i] belongs to the parameter parm[i].

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Set/Change Objective Coefficient or Constant Term

Description

Low level interface function to the GLPK function glp_set_obj_coef. Consult the GLPK documentation for more detailed information.

Usage

setObjCoefGLPK(lp, j, obj_coef)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

obj_coef

Objective coefficient or constant term.

Details

Interface to the C function setObjCoef which calls the GLPK function glp_set_obj_coef.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set/Change Objective Coefficients and/or Constant Term

Description

This is an advanced version of setColBndGLPK. Here, j can be an integer vector, obj_coef can be a numeric vector.

Usage

setObjCoefsGLPK(lp, j, obj_coef)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Vector of column numbers.

obj_coef

Vector of objective coefficients.

Details

Interface to the C function setObjCoefs which calls the GLPK function glp_set_obj_coef.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set/Change Optimization Direction Flag

Description

Low level interface function to the GLPK function glp_set_obj_dir. Consult the GLPK documentation for more detailed information.

Usage

setObjDirGLPK(lp, lpdir)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

lpdir

Optimization direction flag, which can be GLP_MIN (default) or GLP_MAX.

Details

Interface to the C function setObjDir which calls the GLPK function glp_set_obj_dir.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Set/Change Objective Function Name

Description

Low level interface function to the GLPK function glp_set_obj_name. Consult the GLPK documentation for more detailed information.

Usage

setObjNameGLPK(lp, oname = NULL)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

oname

Objective Function name.

Details

Interface to the C function setObjName which calls the GLPK function glp_set_obj_name.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set/Change Problem Name

Description

Low level interface function to the GLPK function glp_set_prob_name. Consult the GLPK documentation for more detailed information.

Usage

setProbNameGLPK(lp, pname = NULL)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

pname

Problem name.

Details

Interface to the C function setProbName which calls the GLPK function glp_set_prob_name.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set/Change all Row Bounds to Zero

Description

This is an advanced version of setRowsBndsGLPK.

Usage

setRhsZeroGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function setRowsBnds which calls the GLPK function glp_set_col_bnds. All row bounds are fixed at zero.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set row scale factor

Description

Low level interface function to the GLPK function glp_set_rii. Consult the GLPK documentation for more detailed information.

Usage

setRiiGLPK(lp, i, rii)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

rii

Scale factor $r_ii$.

Details

Interface to the C function setRii which calls the GLPK function glp_set_rii.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set/Change Row Bounds

Description

Low level interface function to the GLPK function glp_set_row_bnds. Consult the GLPK documentation for more detailed information.

Usage

setRowBndGLPK(lp, i, type, lb, ub)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

type

Row type. For possible values, see glpkConstants, section ‘LP/MIP problem object’.

lb

Lower bound.

ub

Upper bound.

Details

Interface to the C function setRowBnd which calls the GLPK function glp_set_row_bnds.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Set/Change Row Name

Description

Low level interface function to the GLPK function glp_set_row_name. Consult the GLPK documentation for more detailed information.

Usage

setRowNameGLPK(lp, i, rname = NULL)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

rname

Row name.

Details

Interface to the C function setRowName which calls the GLPK function glp_set_row_name.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set/Change Row Bounds

Description

This is an advanced version of setRowBndGLPK. Here, i can be an integer vector, lb and ub can be numeric vectors.

Usage

setRowsBndsGLPK(lp, i, lb, ub, type = NULL)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

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 glpkConstants, section ‘LP/MIP problem object’.

Details

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.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Set/Change Row Names

Description

This is an advanced version of setRowNameGLPK. Here, i can be an integer vector, rnames can be a character vector.

Usage

setRowsNamesGLPK(lp, i, rnames = NULL)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Vector of row numbers.

rnames

Vector of row names of the same length as i or NULL.

Details

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.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Set row status

Description

Low level interface function to the GLPK function glp_set_row_stat. Consult the GLPK documentation for more detailed information.

Usage

setRowStatGLPK(lp, i, stat)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Row number i.

stat

A status parameter, see glpkConstants for possible values.

Details

Interface to the C function setRowStat which calls the GLPK function glp_set_row_stat, section ‘LP/MIP problem object’.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Sets/Changes Control Parameters or the Simplex Methods.

Description

Sets/Changes the values of corresponding members of in the structure glp_smcp. Consult the GLPK documentation for more detailed information.

Usage

setSimplexParmGLPK(parm, val)

Arguments

parm

A vector containing integer values or symbolic names of the control parameters to be changed (see glpkConstants, section ‘Control Parameters’ and ‘simplex method control parameters’).

val

A vector containing the new values for the corresponding control parameters.

Details

The Arguments parm and val must have the same length. The value val[i] belongs to the parameter parm[i].

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants


Retrieve column scale factor

Description

Low level interface function to the GLPK function glp_set_sjj. Consult the GLPK documentation for more detailed information.

Usage

setSjjGLPK(lp, j, sjj)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

j

Column number j.

sjj

Scale factor $s_jj$.

Details

Interface to the C function setSjj which calls the GLPK function glp_set_sjj.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Solve LP Problem with the Interior-Point Method

Description

Low level interface function to the GLPK function glp_interior. Consult the GLPK documentation for more detailed information.

Usage

solveInteriorGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function solveInterior which calls the GLPK function glp_interior.

Value

A return code.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘return codes’ and return_codeGLPK.


Solve MIP Problem with the Branch-and-Cut Method

Description

Low level interface function to the GLPK function glp_intopt. Consult the GLPK documentation for more detailed information.

Usage

solveMIPGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function solveMIP which calls the GLPK function glp_intopt.

Value

A return code.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘return codes’ and return_codeGLPK.


Solve LP Problem in Exact Arithmetic

Description

Low level interface function to the GLPK function glp_exact. Consult the GLPK documentation for more detailed information.

Usage

solveSimplexExactGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function solveSimplexExact which calls the GLPK function glp_exact.

Value

A return code.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘return codes’ and return_codeGLPK.


Solve LP Problem with the Primal or Dual Simplex Method

Description

Low level interface function to the GLPK function glp_simplex. Consult the GLPK documentation for more detailed information.

Usage

solveSimplexGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function solveSimplex which calls the GLPK function glp_simplex.

Value

A return code.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘return codes’ and return_codeGLPK.


Sort Elements of the Constraint Matrix

Description

Low level interface function to the GLPK function glp_sort_matrix. Consult the GLPK documentation for more detailed information.

Usage

sortMatrixGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function sortMatrix which calls the GLPK function glp_sort_matrix.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

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 Value into a Human Readable String

Description

Translates a GLPK status code into a human readable string.

Usage

status_codeGLPK(code)

Arguments

code

Status code from GLPK.

Value

A character string associated with the GLPK status code.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘LP/MIP problem object’.


Contruct Standard Initial LP Basis

Description

Low level interface function to the GLPK function glp_std_basis. Consult the GLPK documentation for more detailed information.

Usage

stdBasisGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function stdBasis which calls the GLPK function glp_std_basis.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Enable/Disable Terminal Output

Description

Low level interface function to the GLPK function glp_term_out. Consult the GLPK documentation for more detailed information.

Usage

termOutGLPK(flag)

Arguments

flag

GLPK enable/disable flag: GLP_ON or GLP_OFF.

Details

Interface to the C function termOut which calls the GLPK function glp_term_out.

Value

Returns the previous value of the terminal output flag.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘enable/disable flag’.


Problem unscaling

Description

Low level interface function to the GLPK function glp_unscale_prob. Consult the GLPK documentation for more detailed information.

Usage

unscaleProbGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function unscaleProb which calls the GLPK function glp_unscale_prob.

Value

NULL

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Determine GLPK Callable Library Version

Description

Low level interface function to the GLPK function glp_version. Consult the GLPK documentation for more detailed information.

Usage

versionGLPK()

Details

Interface to the C function version which calls the GLPK function glp_version.

Value

Returns a single character value containing the GLPK version number.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.


Warm Up LP Basis

Description

Low level interface function to the GLPK function glp_warm_up. Consult the GLPK documentation for more detailed information.

Usage

warmUpGLPK(lp)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

Details

Interface to the C function warmUp which calls the GLPK function glp_warm_up.

Value

Status of “warming up”.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html


Write Interior-Point Solution to Text File

Description

Low level interface function to the GLPK function glp_write_ipt. Consult the GLPK documentation for more detailed information.

Usage

writeIptGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be written out.

Details

Interface to the C function writeIpt which calls the GLPK function glp_write_ipt.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

printSolGLPK, readSolGLPK, writeSolGLPK, printIptGLPK, readIptGLPK, printMIPGLPK, readMIPGLPK and writeMIPGLPK.


Write Problem Data in CPLEX LP Format

Description

Low level interface function to the GLPK function glp_write_lp. Consult the GLPK documentation for more detailed information.

Usage

writeLPGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be written out.

Details

Interface to the C function writeLP which calls the GLPK function glp_write_lp.

Value

Returns zero on success, otherwise it returns non-zero and prints an error message.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

readMPSGLPK, readLPGLPK, readProbGLPK, writeMPSGLPK and writeProbGLPK.


Write MIP Solution to Text File

Description

Low level interface function to the GLPK function glp_write_mip. Consult the GLPK documentation for more detailed information.

Usage

writeMIPGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be written out.

Details

Interface to the C function writeMIP which calls the GLPK function glp_write_mip.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

printSolGLPK, readSolGLPK, writeSolGLPK, printIptGLPK, readIptGLPK, writeIptGLPK, printMIPGLPK and readMIPGLPK.


Write Problem Data in MPS Format

Description

Low level interface function to the GLPK function glp_write_mps. Consult the GLPK documentation for more detailed information.

Usage

writeMPSGLPK(lp, fmt, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fmt

MPS format. See glpkConstants, section ‘MPS file formats’.

fname

The name of the text file to be written out.

Details

Interface to the C function writeMPS which calls the GLPK function glp_write_mps.

Value

Returns zero on success, otherwise it returns non-zero and prints an error message.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

readMPSGLPK, readLPGLPK, readProbGLPK, writeLPGLPK, writeProbGLPK and glpkConstants.


Write Problem Data in GLPK Format

Description

Low level interface function to the GLPK function glp_write_prob. Consult the GLPK documentation for more detailed information.

Usage

writeProbGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be written out.

Details

Interface to the C function writeProb which calls the GLPK function glp_write_prob.

Value

Returns zero on success, otherwise it returns non-zero and prints an error message.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

readMPSGLPK, readLPGLPK, readProbGLPK, writeLPGLPK and writeMPSGLPK.


Write Basic Solution to Text File

Description

Low level interface function to the GLPK function glp_write_sol. Consult the GLPK documentation for more detailed information.

Usage

writeSolGLPK(lp, fname)

Arguments

lp

An object of class "glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

fname

The name of the text file to be written out.

Details

Interface to the C function writeSol which calls the GLPK function glp_write_sol.

Value

Returns zero on success, otherwise it returns non-zero.

Author(s)

Gabriel Gelius-Dietrich <[email protected]>

Maintainer: Mayo Roettger <[email protected]>

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

printSolGLPK, readSolGLPK, printIptGLPK, readIptGLPK, writeIptGLPK, printMIPGLPK, readMIPGLPK and writeMIPGLPK.