Package: glpkAPI 1.3.4

Mihail Anton

glpkAPI: R Interface to C API of GLPK

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]

glpkAPI_1.3.4.tar.gz
glpkAPI_1.3.4.tar.gz(r-4.5-noble)glpkAPI_1.3.4.tar.gz(r-4.4-noble)
glpkAPI.pdf |glpkAPI.html
glpkAPI/json (API)
NEWS

# Install 'glpkAPI' in R:
install.packages('glpkAPI', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • glpk– Linear programming kit with integer (MIP) support

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

6.05 score 12 packages 52 scripts 1.5k downloads 4 mentions 305 exports 0 dependencies

Last updated 2 years agofrom:de7900110b. Checks:OK: 1 NOTE: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 01 2024
R-4.5-linux-x86_64NOTENov 01 2024

Exports:addColsGLPKaddRowsGLPKadvBasisGLPKbfExistsGLPKbfUpdatedGLPKBINARIZEBR_TECHBT_TECHCB_FUNCCB_SIZEcheckDupGLPKCLQ_CUTScopyProbGLPKCOV_CUTScpxBasisGLPKcreateIndexGLPKdelColsGLPKdeleteIndexGLPKdelProbGLPKdelRowsGLPKEPS_TOLeraseProbGLPKfactorizeGLPKfindColGLPKfindRowGLPKFP_HEURgetBfcpGLPKgetBheadGLPKgetCbindGLPKgetColDualGLPKgetColDualIptGLPKgetColKindGLPKgetColLowBndGLPKgetColNameGLPKgetColPrimGLPKgetColPrimIptGLPKgetColsDualGLPKgetColsDualIptGLPKgetColsKindGLPKgetColsLowBndsGLPKgetColsPrimGLPKgetColsPrimIptGLPKgetColsStatGLPKgetColStatGLPKgetColsUppBndsGLPKgetColTypeGLPKgetColUppBndGLPKgetDualStatGLPKgetInteriorParmGLPKgetMatColGLPKgetMatRowGLPKgetMIPParmGLPKgetNumBinGLPKgetNumColsGLPKgetNumIntGLPKgetNumNnzGLPKgetNumRowsGLPKgetObjCoefGLPKgetObjCoefsGLPKgetObjDirGLPKgetObjNameGLPKgetObjValGLPKgetObjValIptGLPKgetPrimStatGLPKgetProbNameGLPKgetRbindGLPKgetRiiGLPKgetRowDualGLPKgetRowDualIptGLPKgetRowLowBndGLPKgetRowNameGLPKgetRowPrimGLPKgetRowPrimIptGLPKgetRowsDualGLPKgetRowsDualIptGLPKgetRowsLowBndsGLPKgetRowsPrimGLPKgetRowsPrimIptGLPKgetRowsStatGLPKgetRowStatGLPKgetRowsTypesGLPKgetRowsUppBndsGLPKgetRowTypeGLPKgetRowUppBndGLPKgetSimplexParmGLPKgetSjjGLPKgetSolStatGLPKgetSolStatIptGLPKgetUnbndRayGLPKGLP_BF_BGGLP_BF_FTGLP_BF_GRGLP_BR_DTHGLP_BR_FFVGLP_BR_LFVGLP_BR_MFVGLP_BR_PCHGLP_BSGLP_BT_BFSGLP_BT_BLBGLP_BT_BPHGLP_BT_DFSGLP_BVGLP_CVGLP_DBGLP_DN_BRNCHGLP_DUALGLP_DUALPGLP_EBADBGLP_EBOUNDGLP_ECONDGLP_EDATAGLP_EFAILGLP_EINSTABGLP_EITLIMGLP_EMIPGAPGLP_ENOCVGGLP_ENODFSGLP_ENOFEASGLP_ENOPFSGLP_EOBJLLGLP_EOBJULGLP_ERANGEGLP_EROOTGLP_ESINGGLP_ESTOPGLP_ETMLIMGLP_FEASGLP_FRGLP_FXGLP_IBINGOGLP_IBRANCHGLP_ICUTGENGLP_IHEURGLP_INFEASGLP_IPREPROGLP_IPTGLP_IROWGENGLP_ISELECTGLP_IVGLP_KKT_CSGLP_KKT_DBGLP_KKT_DEGLP_KKT_PBGLP_KKT_PEGLP_LOGLP_MAXGLP_MINGLP_MIPGLP_MPS_DECKGLP_MPS_FILEGLP_MSG_ALLGLP_MSG_DBGGLP_MSG_ERRGLP_MSG_OFFGLP_MSG_ONGLP_NFGLP_NLGLP_NO_BRNCHGLP_NOFEASGLP_NSGLP_NUGLP_OFFGLP_ONGLP_OPTGLP_ORD_AMDGLP_ORD_NONEGLP_ORD_QMDGLP_ORD_SYMAMDGLP_PP_ALLGLP_PP_NONEGLP_PP_ROOTGLP_PRIMALGLP_PT_PSEGLP_PT_STDGLP_RF_CLQGLP_RF_COVGLP_RF_CUTGLP_RF_GMIGLP_RF_LAZYGLP_RF_MIRGLP_RF_REGGLP_RT_HARGLP_RT_STDGLP_SF_2NGLP_SF_AUTOGLP_SF_EQGLP_SF_GMGLP_SF_SKIPGLP_SOLGLP_UNBNDGLP_UNDEFGLP_UPGLP_UP_BRNCHglpkPointerglpkPtrTypeglpkPtrType<-GMI_CUTSinitProbGLPKisGLPKpointerisNULLpointerGLPKisTRWKSpointerIT_LIMloadMatrixGLPKLU_SIZEMAX_GROMETHMIP_GAPmipColsValGLPKmipColValGLPKmipObjValGLPKmipRowsValGLPKmipRowValGLPKmipStatusGLPKMIR_CUTSmplAllocWkspGLPKmplBuildProbGLPKmplFreeWkspGLPKmplGenerateGLPKmplPostsolveGLPKmplReadDataGLPKmplReadModelGLPKMSG_LEVNFS_MAXNRS_MAXOBJ_LLOBJ_ULORD_ALGOUT_DLYOUT_FRQPIV_LIMPIV_TOLPP_TECHPRESOLVEPRICINGprintIptGLPKprintMIPGLPKprintRangesGLPKprintSolGLPKR_TESTreadIptGLPKreadLPGLPKreadMIPGLPKreadMPSGLPKreadProbGLPKreadSolGLPKreturn_codeGLPKRS_SIZEscaleProbGLPKsetBfcpGLPKsetColBndGLPKsetColKindGLPKsetColNameGLPKsetColsBndsGLPKsetColsBndsObjCoefsGLPKsetColsKindGLPKsetColsNamesGLPKsetColStatGLPKsetDefaultIptParmGLPKsetDefaultMIPParmGLPKsetDefaultSmpParmGLPKsetInteriorParmGLPKsetMatColGLPKsetMatRowGLPKsetMIPParmGLPKsetObjCoefGLPKsetObjCoefsGLPKsetObjDirGLPKsetObjNameGLPKsetProbNameGLPKsetRhsZeroGLPKsetRiiGLPKsetRowBndGLPKsetRowNameGLPKsetRowsBndsGLPKsetRowsNamesGLPKsetRowStatGLPKsetSimplexParmGLPKsetSjjGLPKsolveInteriorGLPKsolveMIPGLPKsolveSimplexExactGLPKsolveSimplexGLPKsortMatrixGLPKstatus_codeGLPKstdBasisGLPKSUHLtermOutGLPKTM_LIMTOL_BNDTOL_DJTOL_INTTOL_OBJTOL_PIVTYPEunscaleProbGLPKUPD_TOLversionGLPKwarmUpGLPKwriteIptGLPKwriteLPGLPKwriteMIPGLPKwriteMPSGLPKwriteProbGLPKwriteSolGLPK

Dependencies:

Package glpkAPI -- Quick Start

Rendered fromglpkAPI.Rnwusingutils::Sweaveon Nov 01 2024.

Last update: 2018-09-14
Started: 2012-03-15

R package for using the GNU Linear Programming Toolkit (GLPK) using MathProg or the API

Rendered fromglpk-gmpl-intro.Rnwusingutils::Sweaveon Nov 01 2024.

Last update: 2018-09-14
Started: 2015-01-05

Readme and manuals

Help Manual

Help pageTopics
R Interface to C API of GLPKglpkAPI-package glpkAPI
Add Columns to a GLPK Problem ObjectaddColsGLPK glp_add_cols
Add Rows to a GLPK Problem ObjectaddRowsGLPK glp_add_rows
Contruct Advanced Initial LP BasisadvBasisGLPK glp_adv_basis
Check if the basis factorization existsbfExistsGLPK glp_bf_exists
Check if the basis factorization has been updatedbfUpdatedGLPK glp_bf_updated
Check for Duplicate Elements in Sparse MatrixcheckDupGLPK glp_check_dup
Copy problem object contentcopyProbGLPK glp_copy_prob
Construct Bixby's initial LP basiscpxBasisGLPK glp_cpx_basis
Create the Name IndexcreateIndexGLPK glp_create_index
Delete Columns from Problem ObjectdelColsGLPK glp_del_cols
Delete the Name IndexdeleteIndexGLPK glp_delete_index
Delete Problem ObjectdelProbGLPK glp_delete_prob
Delete Rows from Problem ObjectdelRowsGLPK glp_del_rows
Erase problem object contenteraseProbGLPK glp_erase_prob
Compute the basis factorizationfactorizeGLPK glp_factorize
Find Column by its NamefindColGLPK glp_find_col
Find Row by its NamefindRowGLPK glp_find_row
Retrieve Basis Factorization Control parametersgetBfcpGLPK glp_get_bfcp
Retrieve Basis Header InformationgetBheadGLPK glp_get_bhead
Retrieve Column Index in the Basis HeadergetCbindGLPK glp_get_col_bind
Retrieve Column Dual ValuegetColDualGLPK glp_get_col_dual
Retrieve Column Dual ValuegetColDualIptGLPK glp_ipt_col_dual
Retrieve Column KindgetColKindGLPK glp_get_col_kind
Retrieve Column Lower BoundgetColLowBndGLPK glp_get_col_lb
Retrieve Column NamegetColNameGLPK glp_get_col_name
Retrieve Column Primal ValuegetColPrimGLPK glp_get_col_prim
Retrieve Column Primal ValuegetColPrimIptGLPK glp_ipt_col_prim
Retrieve Column Dual Value of all ColumnsgetColsDualGLPK
Retrieve Column Dual Value of all ColumnsgetColsDualIptGLPK
Retrieve Column KindgetColsKindGLPK
Retrieve Lower Bounds of Specified ColumnsgetColsLowBndsGLPK
Retrieve all Column Primal ValuesgetColsPrimGLPK
Retrieve all Column Primal ValuesgetColsPrimIptGLPK
Retrieve Column Status of all ColumnsgetColsStatGLPK
Retrieve Column StatusgetColStatGLPK glp_get_col_stat
Retrieve Upper Bounds of Specified ColumnsgetColsUppBndsGLPK
Retrieve Column TypegetColTypeGLPK glp_get_col_type
Retrieve Column Upper BoundgetColUppBndGLPK glp_get_col_ub
Retrieve Status of Dual Basic SolutiongetDualStatGLPK glp_get_dual_stat
Retrives the Control Parameters for the Interior-point Method.getInteriorParmGLPK
Retrieves Column j of the Constraint Matrix.getMatColGLPK glp_get_mat_col
Retrieves Row i of the Constraint Matrix.getMatRowGLPK glp_get_mat_row
Retrives the Control Parameters for MIP.getMIPParmGLPK
Retrieve Number of Binary ColumnsgetNumBinGLPK glp_get_num_bin
Retrieve Number of ColumnsgetNumColsGLPK glp_get_num_cols
Retrieve Number of Integer ColumnsgetNumIntGLPK glp_get_num_int
Retrieve the Number of Constraint CoefficientsgetNumNnzGLPK glp_get_num_nz
Retrieve Number of RowsgetNumRowsGLPK glp_get_num_rows
Retrieve Objective Coefficient or Constant TermgetObjCoefGLPK glp_get_obj_coef
Retrieve Objective Coefficients at Specified Columns and/or Constant TermgetObjCoefsGLPK
Retrieve Optimization Direction FlaggetObjDirGLPK glp_get_obj_dir
Retrieve Objective Function NamegetObjNameGLPK glp_get_obj_name
Retrieve Objective ValuegetObjValGLPK glp_get_obj_val
Retrieve Objective ValuegetObjValIptGLPK glp_ipt_obj_val
Retrieve Status of Primal Basic SolutiongetPrimStatGLPK glp_get_prim_stat
Retrieve Problem NamegetProbNameGLPK glp_get_prob_name
Retrieve Row Index in the Basis HeadergetRbindGLPK glp_get_row_bind
Retrieve row scale factorgetRiiGLPK glp_get_rii
Retrieve Row Dual ValuegetRowDualGLPK glp_get_row_dual
Retrieve Row Dual ValuegetRowDualIptGLPK glp_ipt_row_dual
Retrieve Row Lower BoundgetRowLowBndGLPK glp_get_row_lb
Retrieve Row NamegetRowNameGLPK glp_get_row_name
Retrieve Row Primal ValuegetRowPrimGLPK glp_get_row_prim
Retrieve Row Primal ValuegetRowPrimIptGLPK glp_ipt_row_prim
Retrieve Row Dual Values of all RowsgetRowsDualGLPK
Retrieve Row Dual Value of all RowsgetRowsDualIptGLPK
Retrieve Lower Bounds of Specified RowsgetRowsLowBndsGLPK
Retrieve Row Primal Value of all RowsgetRowsPrimGLPK
Retrieve Row Primal Value of all RowsgetRowsPrimIptGLPK
Retrieve Row Status of all RowsgetRowsStatGLPK
Retrieve Row StatusgetRowStatGLPK glp_get_row_stat
Retrieve Types of Specified Constraints (Rows)getRowsTypesGLPK
Retrieve Upper Bounds of Specified RowsgetRowsUppBndsGLPK
Retrieve Row TypegetRowTypeGLPK glp_get_row_type
Retrieve Row Upper BoundgetRowUppBndGLPK glp_get_row_ub
Retrives the Control Parameters for the Simplex Method.getSimplexParmGLPK
Retrieve column scale factorgetSjjGLPK glp_get_sjj
Determine Generic Status of the Basic SolutongetSolStatGLPK glp_get_status
Determine Solution StatusgetSolStatIptGLPK glp_ipt_status
Determine Variable Causing UnboundednessgetUnbndRayGLPK glp_get_unbnd_ray
Constants, Return and Status Codes of GLPKBINARIZE BR_TECH BT_TECH CB_FUNC CB_SIZE CLQ_CUTS constantsGLPK COV_CUTS EPS_TOL FP_HEUR glpkConstants glpk_Constants GLP_BF_BG GLP_BF_BTF GLP_BF_FT GLP_BF_GR GLP_BF_LUF GLP_BR_DTH GLP_BR_FFV GLP_BR_LFV GLP_BR_MFV GLP_BR_PCH GLP_BS GLP_BT_BFS GLP_BT_BLB GLP_BT_BPH GLP_BT_DFS GLP_BV GLP_CV GLP_DB GLP_DN_BRNCH GLP_DUAL GLP_DUALP GLP_EBADB GLP_EBOUND GLP_ECOND GLP_EDATA GLP_EFAIL GLP_EINSTAB GLP_EITLIM GLP_EMIPGAP GLP_ENOCVG GLP_ENODFS GLP_ENOFEAS GLP_ENOPFS GLP_EOBJLL GLP_EOBJUL GLP_ERANGE GLP_EROOT GLP_ESING GLP_ESTOP GLP_ETMLIM GLP_FEAS GLP_FR GLP_FX GLP_IBINGO GLP_IBRANCH GLP_ICUTGEN GLP_IHEUR GLP_INFEAS GLP_IPREPRO GLP_IPT GLP_IROWGEN GLP_ISELECT GLP_IV GLP_KKT_CS GLP_KKT_DB GLP_KKT_DE GLP_KKT_PB GLP_KKT_PE GLP_LO GLP_MAX GLP_MIN GLP_MIP GLP_MPS_DECK GLP_MPS_FILE GLP_MSG_ALL GLP_MSG_DBG GLP_MSG_ERR GLP_MSG_OFF GLP_MSG_ON GLP_NF GLP_NL GLP_NOFEAS GLP_NO_BRNCH GLP_NS GLP_NU GLP_OFF GLP_ON GLP_OPT GLP_ORD_AMD GLP_ORD_NONE GLP_ORD_QMD GLP_ORD_SYMAMD GLP_PP_ALL GLP_PP_NONE GLP_PP_ROOT GLP_PRIMAL GLP_PT_PSE GLP_PT_STD GLP_RF_CLQ GLP_RF_COV GLP_RF_CUT GLP_RF_GMI GLP_RF_LAZY GLP_RF_MIR GLP_RF_REG GLP_RT_HAR GLP_RT_STD GLP_SF_2N GLP_SF_AUTO GLP_SF_EQ GLP_SF_GM GLP_SF_SKIP GLP_SOL GLP_UNBND GLP_UNDEF GLP_UP GLP_UP_BRNCH GMI_CUTS IT_LIM LU_SIZE MAX_GRO METH MIP_GAP MIR_CUTS MSG_LEV NFS_MAX NRS_MAX OBJ_LL OBJ_UL ORD_ALG OUT_DLY OUT_FRQ PIV_LIM PIV_TOL PP_TECH PRESOLVE PRICING RS_SIZE R_TEST SUHL TM_LIM TOL_BND TOL_DJ TOL_INT TOL_OBJ TOL_PIV TYPE UPD_TOL
Class '"glpkPtr"'glpkPointer glpkPointer,glpkPtr-method glpkPtr glpkPtr-class glpkPtrType glpkPtrType,glpkPtr-method glpkPtrType<- glpkPtrType<-,glpkPtr-method isGLPKpointer isGLPKpointer,glpkPtr-method isNULLpointerGLPK isNULLpointerGLPK,glpkPtr-method isTRWKSpointer isTRWKSpointer,glpkPtr-method
Create a GLPK Problem Objectglp_create_prob initProbGLPK
Load/Replace the Whole Constraint Matrixglp_load_matrix loadMatrixGLPK
Retrieve Column Value of all ColumnsmipColsValGLPK
Retrieve Column Valueglp_mip_col_val mipColValGLPK
Retrieve Objective Valueglp_mip_obj_val mipObjValGLPK
Retrieve Row Value of all RowsmipRowsValGLPK
Retrieve Row Valueglp_mip_row_val mipRowValGLPK
Determine Status of MIP Solutionglp_mip_status mipStatusGLPK
Allocate Translator Workspaceglp_mpl_alloc_wksp mplAllocWkspGLPK
Build Problem Instance From Modelglp_mpl_build_prob mplBuildProbGLPK
Free Translator Workspaceglp_mpl_free_wksp mplFreeWkspGLPK
Generate the Modelglp_mpl_generate mplGenerateGLPK
Postsolve Modelglp_mpl_postsolve mplPostsolveGLPK
Read and Translate Data Sectionglp_mpl_read_data mplReadDataGLPK
Read and Translate Model Sectionglp_mpl_read_model mplReadModelGLPK
Write Interior-Point Solution in Printable Formatglp_print_ipt printIptGLPK
Write Interior-Point Solution in Printable Formatglp_print_mip printMIPGLPK
Print Sensitivity Analysis Reportglp_print_ranges printRangesGLPK
Write Basic Solution in Printable Formatglp_print_sol printSolGLPK
Read Interior-Point Solution From Text Fileglp_read_ipt readIptGLPK
Read Problem Data in CPLEX LP Formatglp_read_lp readLPGLPK
Read MIP Solution From Text Fileglp_read_mip readMIPGLPK
Read Problem Data in MPS Formatglp_read_mps readMPSGLPK
Read Problem Data in GLPK F ormatglp_read_prob readProbGLPK
Read Basic Solution From Text Fileglp_read_sol readSolGLPK
Translates a GLPK Return Code into a Human Readable Stringreturn_codeGLPK
Scale Problem Dataglp_scale_prob scaleProbGLPK
Change Basis Factorization Control Parametersglp_set_bfcp setBfcpGLPK
Set/Change Column Boundsglp_set_col_bnds setColBndGLPK
Set Column Kindglp_set_col_kind setColKindGLPK
Set/Change Column Nameglp_set_col_name setColNameGLPK
Set/Change Column BoundssetColsBndsGLPK
Set/Change Column Bounds and Objective Coefficients and/or Constant TermsetColsBndsObjCoefsGLPK
Set Column Kind for a Set of ColumnssetColsKindGLPK
Set/Change Column NamessetColsNamesGLPK
Set column statusglp_set_col_stat setColStatGLPK
Sets the Default Control Parameters for the Interior-point Method.glp_init_iptcp setDefaultIptParmGLPK
Sets the Default Control Parameters for the MIP Methodglp_init_iocp setDefaultMIPParmGLPK
Sets the Default Control Parameters for the Simplex Methods.setDefaultSmpParmGLPK
Sets/Changes Control Parameters or the Interior-point Method.setInteriorParmGLPK
Set (Replace) Column of the Constraint Matrixglp_set_mat_col setMatColGLPK
Set (Replace) Row of the Constraint Matrixglp_set_mat_row setMatRowGLPK
Sets/Changes Control Parameters or the MIP MethodssetMIPParmGLPK
Set/Change Objective Coefficient or Constant Termglp_set_obj_coef setObjCoefGLPK
Set/Change Objective Coefficients and/or Constant TermsetObjCoefsGLPK
Set/Change Optimization Direction Flagglp_set_obj_dir setObjDirGLPK
Set/Change Objective Function Nameglp_set_obj_name setObjNameGLPK
Set/Change Problem Nameglp_set_prob_name setProbNameGLPK
Set/Change all Row Bounds to ZerosetRhsZeroGLPK
Set row scale factorglp_set_rii setRiiGLPK
Set/Change Row Boundsglp_set_row_bnds setRowBndGLPK
Set/Change Row Nameglp_set_row_name setRowNameGLPK
Set/Change Row BoundssetRowsBndsGLPK
Set/Change Row NamessetRowsNamesGLPK
Set row statusglp_set_row_stat setRowStatGLPK
Sets/Changes Control Parameters or the Simplex Methods.setSimplexParmGLPK
Retrieve column scale factorglp_set_sjj setSjjGLPK
Solve LP Problem with the Interior-Point Methodglp_interior solveInteriorGLPK
Solve MIP Problem with the Branch-and-Cut Methodglp_intopt solveMIPGLPK
Solve LP Problem in Exact Arithmeticglp_exact solveSimplexExactGLPK
Solve LP Problem with the Primal or Dual Simplex Methodglp_simplex solveSimplexGLPK
Sort Elements of the Constraint Matrixglp_sort_matrix sortMatrixGLPK
Translates a GLPK Status Value into a Human Readable Stringstatus_codeGLPK
Contruct Standard Initial LP Basisglp_std_basis stdBasisGLPK
Enable/Disable Terminal Outputglp_term_out termOutGLPK
Problem unscalingglp_unscale_prob unscaleProbGLPK
Determine GLPK Callable Library Versionglp_version versionGLPK
Warm Up LP Basisglp_warm_up warmUpGLPK
Write Interior-Point Solution to Text Fileglp_write_ipt writeIptGLPK
Write Problem Data in CPLEX LP Formatglp_write_lp writeLPGLPK
Write MIP Solution to Text Fileglp_write_mip writeMIPGLPK
Write Problem Data in MPS Formatglp_write_mps writeMPSGLPK
Write Problem Data in GLPK Formatglp_write_prob writeProbGLPK
Write Basic Solution to Text Fileglp_write_sol writeSolGLPK