| 1 | /* glpk.h */cxx . . $ `<file>/external/glpk/glpk.h`/ |
| 2 | |
| 3 | /*********************************************************************** |
| 4 | * This code is part of GLPK (GNU Linear Programming Kit). |
| 5 | * |
| 6 | * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 7 | * 2009, 2010 Andrew Makhorin, Department for Applied Informatics, |
| 8 | * Moscow Aviation Institute, Moscow, Russia. All rights reserved. |
| 9 | * E-mail: <[email protected]>. |
| 10 | * |
| 11 | * GLPK is free software: you can redistribute it and/or modify it |
| 12 | * under the terms of the GNU General Public License as published by |
| 13 | * the Free Software Foundation, either version 3 of the License, or |
| 14 | * (at your option) any later version. |
| 15 | * |
| 16 | * GLPK is distributed in the hope that it will be useful, but WITHOUT |
| 17 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 18 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
| 19 | * License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with GLPK. If not, see <http://www.gnu.org/licenses/>. |
| 23 | ***********************************************************************/ |
| 24 | |
| 25 | #ifndef GLPK_H |
| 26 | #define GLPK_Hcxx . . $ `external/glpk/glpk.h:26:9`! |
| 27 | |
| 28 | #include <stdarg.h> |
| 29 | #include <stddef.h> |
| 30 | |
| 31 | #if defined (__MINGW32__) && ! defined (DBL_EPSILON) |
| 32 | #define DBL_EPSILON 2.2204460492503131e-16 // ppgb 20110903 |
| 33 | #endif |
| 34 | |
| 35 | #ifdef __cpluspluscxx . . $ `<built-in>:470:9`! |
| 36 | extern "C" { |
| 37 | #endif |
| 38 | |
| 39 | /* library version numbers: */ |
| 40 | #define GLP_MAJOR_VERSIONcxx . . $ `external/glpk/glpk.h:40:9`! 4 |
| 41 | #define GLP_MINOR_VERSIONcxx . . $ `external/glpk/glpk.h:41:9`! 44 |
| 42 | |
| 43 | #ifndef GLP_PROB_DEFINEDcxx . . $ `external/glpk/glpapi.h:28:9`! |
| 44 | #define GLP_PROB_DEFINEDcxx . . $ `external/glpk/glpk.h:44:9`! |
| 45 | typedef struct { double _opaque_prob[100]; } glp_prob; |
| 46 | /* LP/MIP problem object */ |
| 47 | #endif |
| 48 | |
| 49 | /* optimization direction flag: */ |
| 50 | #define GLP_MINcxx . . $ `external/glpk/glpk.h:50:9`! 1 /* minimization */ |
| 51 | #define GLP_MAXcxx . . $ `external/glpk/glpk.h:51:9`! 2 /* maximization */ |
| 52 | |
| 53 | /* kind of structural variable: */ |
| 54 | #define GLP_CVcxx . . $ `external/glpk/glpk.h:54:9`! 1 /* continuous variable */ |
| 55 | #define GLP_IVcxx . . $ `external/glpk/glpk.h:55:9`! 2 /* integer variable */ |
| 56 | #define GLP_BVcxx . . $ `external/glpk/glpk.h:56:9`! 3 /* binary variable */ |
| 57 | |
| 58 | /* type of auxiliary/structural variable: */ |
| 59 | #define GLP_FRcxx . . $ `external/glpk/glpk.h:59:9`! 1 /* free variable */ |
| 60 | #define GLP_LOcxx . . $ `external/glpk/glpk.h:60:9`! 2 /* variable with lower bound */ |
| 61 | #define GLP_UPcxx . . $ `external/glpk/glpk.h:61:9`! 3 /* variable with upper bound */ |
| 62 | #define GLP_DBcxx . . $ `external/glpk/glpk.h:62:9`! 4 /* double-bounded variable */ |
| 63 | #define GLP_FXcxx . . $ `external/glpk/glpk.h:63:9`! 5 /* fixed variable */ |
| 64 | |
| 65 | /* status of auxiliary/structural variable: */ |
| 66 | #define GLP_BScxx . . $ `external/glpk/glpk.h:66:9`! 1 /* basic variable */ |
| 67 | #define GLP_NLcxx . . $ `external/glpk/glpk.h:67:9`! 2 /* non-basic variable on lower bound */ |
| 68 | #define GLP_NUcxx . . $ `external/glpk/glpk.h:68:9`! 3 /* non-basic variable on upper bound */ |
| 69 | #define GLP_NFcxx . . $ `external/glpk/glpk.h:69:9`! 4 /* non-basic free variable */ |
| 70 | #define GLP_NScxx . . $ `external/glpk/glpk.h:70:9`! 5 /* non-basic fixed variable */ |
| 71 | |
| 72 | /* scaling options: */ |
| 73 | #define GLP_SF_GMcxx . . $ `external/glpk/glpk.h:73:9`! 0x01 /* perform geometric mean scaling */ |
| 74 | #define GLP_SF_EQcxx . . $ `external/glpk/glpk.h:74:9`! 0x10 /* perform equilibration scaling */ |
| 75 | #define GLP_SF_2Ncxx . . $ `external/glpk/glpk.h:75:9`! 0x20 /* round scale factors to power of two */ |
| 76 | #define GLP_SF_SKIPcxx . . $ `external/glpk/glpk.h:76:9`! 0x40 /* skip if problem is well scaled */ |
| 77 | #define GLP_SF_AUTOcxx . . $ `external/glpk/glpk.h:77:9`! 0x80 /* choose scaling options automatically */ |
| 78 | |
| 79 | /* solution indicator: */ |
| 80 | #define GLP_SOLcxx . . $ `external/glpk/glpk.h:80:9`! 1 /* basic solution */ |
| 81 | #define GLP_IPTcxx . . $ `external/glpk/glpk.h:81:9`! 2 /* interior-point solution */ |
| 82 | #define GLP_MIPcxx . . $ `external/glpk/glpk.h:82:9`! 3 /* mixed integer solution */ |
| 83 | |
| 84 | /* solution status: */ |
| 85 | #define GLP_UNDEFcxx . . $ `external/glpk/glpk.h:85:9`! 1 /* solution is undefined */ |
| 86 | #define GLP_FEAScxx . . $ `external/glpk/glpk.h:86:9`! 2 /* solution is feasible */ |
| 87 | #define GLP_INFEAScxx . . $ `external/glpk/glpk.h:87:9`! 3 /* solution is infeasible */ |
| 88 | #define GLP_NOFEAScxx . . $ `external/glpk/glpk.h:88:9`! 4 /* no feasible solution exists */ |
| 89 | #define GLP_OPTcxx . . $ `external/glpk/glpk.h:89:9`! 5 /* solution is optimal */ |
| 90 | #define GLP_UNBNDcxx . . $ `external/glpk/glpk.h:90:9`! 6 /* solution is unbounded */ |
| 91 | |
| 92 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_0# |
| 93 | { /* basis factorization control parameters */ |
| 94 | int msg_levcxx . . $ $anonymous_type_2d15b5456314bbc5_0#msg_lev.; /* (reserved) */ |
| 95 | int typecxx . . $ $anonymous_type_2d15b5456314bbc5_0#type.; /* factorization type: */ |
| 96 | #define GLP_BF_FTcxx . . $ `external/glpk/glpk.h:96:9`! 1 /* LUF + Forrest-Tomlin */ |
| 97 | #define GLP_BF_BGcxx . . $ `external/glpk/glpk.h:97:9`! 2 /* LUF + Schur compl. + Bartels-Golub */ |
| 98 | #define GLP_BF_GRcxx . . $ `external/glpk/glpk.h:98:9`! 3 /* LUF + Schur compl. + Givens rotation */ |
| 99 | int lu_sizecxx . . $ $anonymous_type_2d15b5456314bbc5_0#lu_size.; /* luf.sv_size */ |
| 100 | double piv_tolcxx . . $ $anonymous_type_2d15b5456314bbc5_0#piv_tol.; /* luf.piv_tol */ |
| 101 | int piv_limcxx . . $ $anonymous_type_2d15b5456314bbc5_0#piv_lim.; /* luf.piv_lim */ |
| 102 | int suhlcxx . . $ $anonymous_type_2d15b5456314bbc5_0#suhl.; /* luf.suhl */ |
| 103 | double eps_tolcxx . . $ $anonymous_type_2d15b5456314bbc5_0#eps_tol.; /* luf.eps_tol */ |
| 104 | double max_grocxx . . $ $anonymous_type_2d15b5456314bbc5_0#max_gro.; /* luf.max_gro */ |
| 105 | int nfs_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_0#nfs_max.; /* fhv.hh_max */ |
| 106 | double upd_tolcxx . . $ $anonymous_type_2d15b5456314bbc5_0#upd_tol.; /* fhv.upd_tol */ |
| 107 | int nrs_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_0#nrs_max.; /* lpf.n_max */ |
| 108 | int rs_sizecxx . . $ $anonymous_type_2d15b5456314bbc5_0#rs_size.; /* lpf.v_size */ |
| 109 | double foo_barcxx . . $ $anonymous_type_2d15b5456314bbc5_0#foo_bar.[38]; /* (reserved) */ |
| 110 | } glp_bfcpcxx . . $ glp_bfcp#; |
| 111 | |
| 112 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_1# |
| 113 | { /* simplex method control parameters */ |
| 114 | int msg_levcxx . . $ $anonymous_type_2d15b5456314bbc5_1#msg_lev.; /* message level: */ |
| 115 | #define GLP_MSG_OFFcxx . . $ `external/glpk/glpk.h:115:9`! 0 /* no output */ |
| 116 | #define GLP_MSG_ERRcxx . . $ `external/glpk/glpk.h:116:9`! 1 /* warning and error messages only */ |
| 117 | #define GLP_MSG_ONcxx . . $ `external/glpk/glpk.h:117:9`! 2 /* normal output */ |
| 118 | #define GLP_MSG_ALLcxx . . $ `external/glpk/glpk.h:118:9`! 3 /* full output */ |
| 119 | #define GLP_MSG_DBGcxx . . $ `external/glpk/glpk.h:119:9`! 4 /* debug output */ |
| 120 | int methcxx . . $ $anonymous_type_2d15b5456314bbc5_1#meth.; /* simplex method option: */ |
| 121 | #define GLP_PRIMALcxx . . $ `external/glpk/glpk.h:121:9`! 1 /* use primal simplex */ |
| 122 | #define GLP_DUALPcxx . . $ `external/glpk/glpk.h:122:9`! 2 /* use dual; if it fails, use primal */ |
| 123 | #define GLP_DUALcxx . . $ `external/glpk/glpk.h:123:9`! 3 /* use dual simplex */ |
| 124 | int pricingcxx . . $ $anonymous_type_2d15b5456314bbc5_1#pricing.; /* pricing technique: */ |
| 125 | #define GLP_PT_STDcxx . . $ `external/glpk/glpk.h:125:9`! 0x11 /* standard (Dantzig rule) */ |
| 126 | #define GLP_PT_PSEcxx . . $ `external/glpk/glpk.h:126:9`! 0x22 /* projected steepest edge */ |
| 127 | int r_testcxx . . $ $anonymous_type_2d15b5456314bbc5_1#r_test.; /* ratio test technique: */ |
| 128 | #define GLP_RT_STDcxx . . $ `external/glpk/glpk.h:128:9`! 0x11 /* standard (textbook) */ |
| 129 | #define GLP_RT_HARcxx . . $ `external/glpk/glpk.h:129:9`! 0x22 /* two-pass Harris' ratio test */ |
| 130 | double tol_bndcxx . . $ $anonymous_type_2d15b5456314bbc5_1#tol_bnd.; /* spx.tol_bnd */ |
| 131 | double tol_djcxx . . $ $anonymous_type_2d15b5456314bbc5_1#tol_dj.; /* spx.tol_dj */ |
| 132 | double tol_pivcxx . . $ $anonymous_type_2d15b5456314bbc5_1#tol_piv.; /* spx.tol_piv */ |
| 133 | double obj_llcxx . . $ $anonymous_type_2d15b5456314bbc5_1#obj_ll.; /* spx.obj_ll */ |
| 134 | double obj_ulcxx . . $ $anonymous_type_2d15b5456314bbc5_1#obj_ul.; /* spx.obj_ul */ |
| 135 | int it_limcxx . . $ $anonymous_type_2d15b5456314bbc5_1#it_lim.; /* spx.it_lim */ |
| 136 | int tm_limcxx . . $ $anonymous_type_2d15b5456314bbc5_1#tm_lim.; /* spx.tm_lim (milliseconds) */ |
| 137 | int out_frqcxx . . $ $anonymous_type_2d15b5456314bbc5_1#out_frq.; /* spx.out_frq */ |
| 138 | int out_dlycxx . . $ $anonymous_type_2d15b5456314bbc5_1#out_dly.; /* spx.out_dly (milliseconds) */ |
| 139 | int presolvecxx . . $ $anonymous_type_2d15b5456314bbc5_1#presolve.; /* enable/disable using LP presolver */ |
| 140 | double foo_barcxx . . $ $anonymous_type_2d15b5456314bbc5_1#foo_bar.[36]; /* (reserved) */ |
| 141 | } glp_smcpcxx . . $ glp_smcp#; |
| 142 | |
| 143 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_2# |
| 144 | { /* interior-point solver control parameters */ |
| 145 | int msg_levcxx . . $ $anonymous_type_2d15b5456314bbc5_2#msg_lev.; /* message level (see glp_smcp) */ |
| 146 | int ord_algcxx . . $ $anonymous_type_2d15b5456314bbc5_2#ord_alg.; /* ordering algorithm: */ |
| 147 | #define GLP_ORD_NONEcxx . . $ `external/glpk/glpk.h:147:9`! 0 /* natural (original) ordering */ |
| 148 | #define GLP_ORD_QMDcxx . . $ `external/glpk/glpk.h:148:9`! 1 /* quotient minimum degree (QMD) */ |
| 149 | #define GLP_ORD_AMDcxx . . $ `external/glpk/glpk.h:149:9`! 2 /* approx. minimum degree (AMD) */ |
| 150 | #define GLP_ORD_SYMAMDcxx . . $ `external/glpk/glpk.h:150:9`! 3 /* approx. minimum degree (SYMAMD) */ |
| 151 | double foo_barcxx . . $ $anonymous_type_2d15b5456314bbc5_2#foo_bar.[48]; /* (reserved) */ |
| 152 | } glp_iptcpcxx . . $ glp_iptcp#; |
| 153 | |
| 154 | #ifndef GLP_TREE_DEFINED |
| 155 | #define GLP_TREE_DEFINEDcxx . . $ `external/glpk/glpk.h:155:9`! |
| 156 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_3# { double _opaque_treecxx . . $ $anonymous_type_2d15b5456314bbc5_3#_opaque_tree.[100]; } glp_treecxx . . $ glp_tree#; |
| 157 | /* branch-and-bound tree */ |
| 158 | #endif |
| 159 | |
| 160 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_4# |
| 161 | { /* integer optimizer control parameters */ |
| 162 | int msg_levcxx . . $ $anonymous_type_2d15b5456314bbc5_4#msg_lev.; /* message level (see glp_smcp) */ |
| 163 | int br_techcxx . . $ $anonymous_type_2d15b5456314bbc5_4#br_tech.; /* branching technique: */ |
| 164 | #define GLP_BR_FFVcxx . . $ `external/glpk/glpk.h:164:9`! 1 /* first fractional variable */ |
| 165 | #define GLP_BR_LFVcxx . . $ `external/glpk/glpk.h:165:9`! 2 /* last fractional variable */ |
| 166 | #define GLP_BR_MFVcxx . . $ `external/glpk/glpk.h:166:9`! 3 /* most fractional variable */ |
| 167 | #define GLP_BR_DTHcxx . . $ `external/glpk/glpk.h:167:9`! 4 /* heuristic by Driebeck and Tomlin */ |
| 168 | #define GLP_BR_PCHcxx . . $ `external/glpk/glpk.h:168:9`! 5 /* hybrid pseudocost heuristic */ |
| 169 | int bt_techcxx . . $ $anonymous_type_2d15b5456314bbc5_4#bt_tech.; /* backtracking technique: */ |
| 170 | #define GLP_BT_DFScxx . . $ `external/glpk/glpk.h:170:9`! 1 /* depth first search */ |
| 171 | #define GLP_BT_BFScxx . . $ `external/glpk/glpk.h:171:9`! 2 /* breadth first search */ |
| 172 | #define GLP_BT_BLBcxx . . $ `external/glpk/glpk.h:172:9`! 3 /* best local bound */ |
| 173 | #define GLP_BT_BPHcxx . . $ `external/glpk/glpk.h:173:9`! 4 /* best projection heuristic */ |
| 174 | double tol_intcxx . . $ $anonymous_type_2d15b5456314bbc5_4#tol_int.; /* mip.tol_int */ |
| 175 | double tol_objcxx . . $ $anonymous_type_2d15b5456314bbc5_4#tol_obj.; /* mip.tol_obj */ |
| 176 | int tm_limcxx . . $ $anonymous_type_2d15b5456314bbc5_4#tm_lim.; /* mip.tm_lim (milliseconds) */ |
| 177 | int out_frqcxx . . $ $anonymous_type_2d15b5456314bbc5_4#out_frq.; /* mip.out_frq (milliseconds) */ |
| 178 | int out_dlycxx . . $ $anonymous_type_2d15b5456314bbc5_4#out_dly.; /* mip.out_dly (milliseconds) */ |
| 179 | void (*cb_funccxx . . $ $anonymous_type_2d15b5456314bbc5_4#cb_func.)(glp_treecxx . . $ glp_tree# *T, void *info); |
| 180 | /* mip.cb_func */ |
| 181 | void *cb_infocxx . . $ $anonymous_type_2d15b5456314bbc5_4#cb_info.; /* mip.cb_info */ |
| 182 | int cb_sizecxx . . $ $anonymous_type_2d15b5456314bbc5_4#cb_size.; /* mip.cb_size */ |
| 183 | int pp_techcxx . . $ $anonymous_type_2d15b5456314bbc5_4#pp_tech.; /* preprocessing technique: */ |
| 184 | #define GLP_PP_NONEcxx . . $ `external/glpk/glpk.h:184:9`! 0 /* disable preprocessing */ |
| 185 | #define GLP_PP_ROOTcxx . . $ `external/glpk/glpk.h:185:9`! 1 /* preprocessing only on root level */ |
| 186 | #define GLP_PP_ALLcxx . . $ `external/glpk/glpk.h:186:9`! 2 /* preprocessing on all levels */ |
| 187 | double mip_gapcxx . . $ $anonymous_type_2d15b5456314bbc5_4#mip_gap.; /* relative MIP gap tolerance */ |
| 188 | int mir_cutscxx . . $ $anonymous_type_2d15b5456314bbc5_4#mir_cuts.; /* MIR cuts (GLP_ON/GLP_OFF) */ |
| 189 | int gmi_cutscxx . . $ $anonymous_type_2d15b5456314bbc5_4#gmi_cuts.; /* Gomory's cuts (GLP_ON/GLP_OFF) */ |
| 190 | int cov_cutscxx . . $ $anonymous_type_2d15b5456314bbc5_4#cov_cuts.; /* cover cuts (GLP_ON/GLP_OFF) */ |
| 191 | int clq_cutscxx . . $ $anonymous_type_2d15b5456314bbc5_4#clq_cuts.; /* clique cuts (GLP_ON/GLP_OFF) */ |
| 192 | int presolvecxx . . $ $anonymous_type_2d15b5456314bbc5_4#presolve.; /* enable/disable using MIP presolver */ |
| 193 | int binarizecxx . . $ $anonymous_type_2d15b5456314bbc5_4#binarize.; /* try to binarize integer variables */ |
| 194 | int fp_heurcxx . . $ $anonymous_type_2d15b5456314bbc5_4#fp_heur.; /* feasibility pump heuristic */ |
| 195 | #if 1 /* 28/V-2010 */ |
| 196 | int aliencxx . . $ $anonymous_type_2d15b5456314bbc5_4#alien.; /* use alien solver */ |
| 197 | #endif |
| 198 | double foo_barcxx . . $ $anonymous_type_2d15b5456314bbc5_4#foo_bar.[29]; /* (reserved) */ |
| 199 | } glp_iocpcxx . . $ glp_iocp#; |
| 200 | |
| 201 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_5# |
| 202 | { /* additional row attributes */ |
| 203 | int levelcxx . . $ $anonymous_type_2d15b5456314bbc5_5#level.; |
| 204 | /* subproblem level at which the row was added */ |
| 205 | int origincxx . . $ $anonymous_type_2d15b5456314bbc5_5#origin.; |
| 206 | /* row origin flag: */ |
| 207 | #define GLP_RF_REGcxx . . $ `external/glpk/glpk.h:207:9`! 0 /* regular constraint */ |
| 208 | #define GLP_RF_LAZYcxx . . $ `external/glpk/glpk.h:208:9`! 1 /* "lazy" constraint */ |
| 209 | #define GLP_RF_CUTcxx . . $ `external/glpk/glpk.h:209:9`! 2 /* cutting plane constraint */ |
| 210 | int klasscxx . . $ $anonymous_type_2d15b5456314bbc5_5#klass.; |
| 211 | /* row class descriptor: */ |
| 212 | #define GLP_RF_GMIcxx . . $ `external/glpk/glpk.h:212:9`! 1 /* Gomory's mixed integer cut */ |
| 213 | #define GLP_RF_MIRcxx . . $ `external/glpk/glpk.h:213:9`! 2 /* mixed integer rounding cut */ |
| 214 | #define GLP_RF_COVcxx . . $ `external/glpk/glpk.h:214:9`! 3 /* mixed cover cut */ |
| 215 | #define GLP_RF_CLQcxx . . $ `external/glpk/glpk.h:215:9`! 4 /* clique cut */ |
| 216 | double foo_barcxx . . $ $anonymous_type_2d15b5456314bbc5_5#foo_bar.[7]; |
| 217 | /* (reserved) */ |
| 218 | } glp_attrcxx . . $ glp_attr#; |
| 219 | |
| 220 | /* enable/disable flag: */ |
| 221 | #define GLP_ONcxx . . $ `external/glpk/glpk.h:221:9`! 1 /* enable something */ |
| 222 | #define GLP_OFFcxx . . $ `external/glpk/glpk.h:222:9`! 0 /* disable something */ |
| 223 | |
| 224 | /* reason codes: */ |
| 225 | #define GLP_IROWGENcxx . . $ `external/glpk/glpk.h:225:9`! 0x01 /* request for row generation */ |
| 226 | #define GLP_IBINGOcxx . . $ `external/glpk/glpk.h:226:9`! 0x02 /* better integer solution found */ |
| 227 | #define GLP_IHEURcxx . . $ `external/glpk/glpk.h:227:9`! 0x03 /* request for heuristic solution */ |
| 228 | #define GLP_ICUTGENcxx . . $ `external/glpk/glpk.h:228:9`! 0x04 /* request for cut generation */ |
| 229 | #define GLP_IBRANCHcxx . . $ `external/glpk/glpk.h:229:9`! 0x05 /* request for branching */ |
| 230 | #define GLP_ISELECTcxx . . $ `external/glpk/glpk.h:230:9`! 0x06 /* request for subproblem selection */ |
| 231 | #define GLP_IPREPROcxx . . $ `external/glpk/glpk.h:231:9`! 0x07 /* request for preprocessing */ |
| 232 | |
| 233 | /* branch selection indicator: */ |
| 234 | #define GLP_NO_BRNCHcxx . . $ `external/glpk/glpk.h:234:9`! 0 /* select no branch */ |
| 235 | #define GLP_DN_BRNCHcxx . . $ `external/glpk/glpk.h:235:9`! 1 /* select down-branch */ |
| 236 | #define GLP_UP_BRNCHcxx . . $ `external/glpk/glpk.h:236:9`! 2 /* select up-branch */ |
| 237 | |
| 238 | /* return codes: */ |
| 239 | #define GLP_EBADBcxx . . $ `external/glpk/glpk.h:239:9`! 0x01 /* invalid basis */ |
| 240 | #define GLP_ESINGcxx . . $ `external/glpk/glpk.h:240:9`! 0x02 /* singular matrix */ |
| 241 | #define GLP_ECONDcxx . . $ `external/glpk/glpk.h:241:9`! 0x03 /* ill-conditioned matrix */ |
| 242 | #define GLP_EBOUNDcxx . . $ `external/glpk/glpk.h:242:9`! 0x04 /* invalid bounds */ |
| 243 | #define GLP_EFAILcxx . . $ `external/glpk/glpk.h:243:9`! 0x05 /* solver failed */ |
| 244 | #define GLP_EOBJLLcxx . . $ `external/glpk/glpk.h:244:9`! 0x06 /* objective lower limit reached */ |
| 245 | #define GLP_EOBJULcxx . . $ `external/glpk/glpk.h:245:9`! 0x07 /* objective upper limit reached */ |
| 246 | #define GLP_EITLIMcxx . . $ `external/glpk/glpk.h:246:9`! 0x08 /* iteration limit exceeded */ |
| 247 | #define GLP_ETMLIMcxx . . $ `external/glpk/glpk.h:247:9`! 0x09 /* time limit exceeded */ |
| 248 | #define GLP_ENOPFScxx . . $ `external/glpk/glpk.h:248:9`! 0x0A /* no primal feasible solution */ |
| 249 | #define GLP_ENODFScxx . . $ `external/glpk/glpk.h:249:9`! 0x0B /* no dual feasible solution */ |
| 250 | #define GLP_EROOTcxx . . $ `external/glpk/glpk.h:250:9`! 0x0C /* root LP optimum not provided */ |
| 251 | #define GLP_ESTOPcxx . . $ `external/glpk/glpk.h:251:9`! 0x0D /* search terminated by application */ |
| 252 | #define GLP_EMIPGAPcxx . . $ `external/glpk/glpk.h:252:9`! 0x0E /* relative mip gap tolerance reached */ |
| 253 | #define GLP_ENOFEAScxx . . $ `external/glpk/glpk.h:253:9`! 0x0F /* no primal/dual feasible solution */ |
| 254 | #define GLP_ENOCVGcxx . . $ `external/glpk/glpk.h:254:9`! 0x10 /* no convergence */ |
| 255 | #define GLP_EINSTABcxx . . $ `external/glpk/glpk.h:255:9`! 0x11 /* numerical instability */ |
| 256 | #define GLP_EDATAcxx . . $ `external/glpk/glpk.h:256:9`! 0x12 /* invalid data */ |
| 257 | #define GLP_ERANGEcxx . . $ `external/glpk/glpk.h:257:9`! 0x13 /* result out of range */ |
| 258 | |
| 259 | /* condition indicator: */ |
| 260 | #define GLP_KKT_PEcxx . . $ `external/glpk/glpk.h:260:9`! 1 /* primal equalities */ |
| 261 | #define GLP_KKT_PBcxx . . $ `external/glpk/glpk.h:261:9`! 2 /* primal bounds */ |
| 262 | #define GLP_KKT_DEcxx . . $ `external/glpk/glpk.h:262:9`! 3 /* dual equalities */ |
| 263 | #define GLP_KKT_DBcxx . . $ `external/glpk/glpk.h:263:9`! 4 /* dual bounds */ |
| 264 | #define GLP_KKT_CScxx . . $ `external/glpk/glpk.h:264:9`! 5 /* complementary slackness */ |
| 265 | |
| 266 | /* MPS file format: */ |
| 267 | #define GLP_MPS_DECKcxx . . $ `external/glpk/glpk.h:267:9`! 1 /* fixed (ancient) */ |
| 268 | #define GLP_MPS_FILEcxx . . $ `external/glpk/glpk.h:268:9`! 2 /* free (modern) */ |
| 269 | |
| 270 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_6# |
| 271 | { /* MPS format control parameters */ |
| 272 | int blankcxx . . $ $anonymous_type_2d15b5456314bbc5_6#blank.; |
| 273 | /* character code to replace blanks in symbolic names */ |
| 274 | char *obj_namecxx . . $ $anonymous_type_2d15b5456314bbc5_6#obj_name.; |
| 275 | /* objective row name */ |
| 276 | double tol_mpscxx . . $ $anonymous_type_2d15b5456314bbc5_6#tol_mps.; |
| 277 | /* zero tolerance for MPS data */ |
| 278 | double foo_barcxx . . $ $anonymous_type_2d15b5456314bbc5_6#foo_bar.[17]; |
| 279 | /* (reserved for use in the future) */ |
| 280 | } glp_mpscpcxx . . $ glp_mpscp#; |
| 281 | |
| 282 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_7# |
| 283 | { /* CPLEX LP format control parameters */ |
| 284 | double foo_barcxx . . $ $anonymous_type_2d15b5456314bbc5_7#foo_bar.[20]; |
| 285 | /* (reserved for use in the future) */ |
| 286 | } glp_cpxcpcxx . . $ glp_cpxcp#; |
| 287 | |
| 288 | #ifndef GLP_TRAN_DEFINED |
| 289 | #define GLP_TRAN_DEFINEDcxx . . $ `external/glpk/glpk.h:289:9`! |
| 290 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_8# { double _opaque_trancxx . . $ $anonymous_type_2d15b5456314bbc5_8#_opaque_tran.[100]; } glp_trancxx . . $ glp_tran#; |
| 291 | /* MathProg translator workspace */ |
| 292 | #endif |
| 293 | |
| 294 | glp_probcxx . . $ glp_prob# *glp_create_probcxx . . $ glp_create_prob(7c2d8bedb6abbdaf).(void); |
| 295 | /* create problem object */ |
| 296 | |
| 297 | void glp_set_prob_namecxx . . $ glp_set_prob_name(d84c0d6c877919f6).(glp_probcxx . . $ glp_prob# *P, const char *name); |
| 298 | /* assign (change) problem name */ |
| 299 | |
| 300 | void glp_set_obj_namecxx . . $ glp_set_obj_name(d84c0d6c877919f6).(glp_probcxx . . $ glp_prob# *P, const char *name); |
| 301 | /* assign (change) objective function name */ |
| 302 | |
| 303 | void glp_set_obj_dircxx . . $ glp_set_obj_dir(e00ef8be97973834).(glp_probcxx . . $ glp_prob# *P, int dir); |
| 304 | /* set (change) optimization direction flag */ |
| 305 | |
| 306 | int glp_add_rowscxx . . $ glp_add_rows(423829e847ef1a83).(glp_probcxx . . $ glp_prob# *P, int nrs); |
| 307 | /* add new rows to problem object */ |
| 308 | |
| 309 | int glp_add_colscxx . . $ glp_add_cols(423829e847ef1a83).(glp_probcxx . . $ glp_prob# *P, int ncs); |
| 310 | /* add new columns to problem object */ |
| 311 | |
| 312 | void glp_set_row_namecxx . . $ glp_set_row_name(7764df469f6d9ace).(glp_probcxx . . $ glp_prob# *P, int i, const char *name); |
| 313 | /* assign (change) row name */ |
| 314 | |
| 315 | void glp_set_col_namecxx . . $ glp_set_col_name(7764df469f6d9ace).(glp_probcxx . . $ glp_prob# *P, int j, const char *name); |
| 316 | /* assign (change) column name */ |
| 317 | |
| 318 | void glp_set_row_bndscxx . . $ glp_set_row_bnds(9376c6e48e598b7a).(glp_probcxx . . $ glp_prob# *P, int i, int type, double lb, |
| 319 | double ub); |
| 320 | /* set (change) row bounds */ |
| 321 | |
| 322 | void glp_set_col_bndscxx . . $ glp_set_col_bnds(9376c6e48e598b7a).(glp_probcxx . . $ glp_prob# *P, int j, int type, double lb, |
| 323 | double ub); |
| 324 | /* set (change) column bounds */ |
| 325 | |
| 326 | void glp_set_obj_coefcxx . . $ glp_set_obj_coef(d60e14834b632e5e).(glp_probcxx . . $ glp_prob# *P, int j, double coef); |
| 327 | /* set (change) obj. coefficient or constant term */ |
| 328 | |
| 329 | void glp_set_mat_rowcxx . . $ glp_set_mat_row(9cc64c3737aa01c2).(glp_probcxx . . $ glp_prob# *P, int i, int len, const int ind[], |
| 330 | const double val[]); |
| 331 | /* set (replace) row of the constraint matrix */ |
| 332 | |
| 333 | void glp_set_mat_colcxx . . $ glp_set_mat_col(9cc64c3737aa01c2).(glp_probcxx . . $ glp_prob# *P, int j, int len, const int ind[], |
| 334 | const double val[]); |
| 335 | /* set (replace) column of the constraint matrix */ |
| 336 | |
| 337 | void glp_load_matrixcxx . . $ glp_load_matrix(424112a44cc66b74).(glp_probcxx . . $ glp_prob# *P, int ne, const int ia[], |
| 338 | const int ja[], const double ar[]); |
| 339 | /* load (replace) the whole constraint matrix */ |
| 340 | |
| 341 | int glp_check_dupcxx . . $ glp_check_dup(7c21838140d47389).(int m, int n, int ne, const int ia[], const int ja[]); |
| 342 | /* check for duplicate elements in sparse matrix */ |
| 343 | |
| 344 | void glp_sort_matrixcxx . . $ glp_sort_matrix(84c60d68cac39b9a).(glp_probcxx . . $ glp_prob# *P); |
| 345 | /* sort elements of the constraint matrix */ |
| 346 | |
| 347 | void glp_del_rowscxx . . $ glp_del_rows(b3f2b5bced3e9e65).(glp_probcxx . . $ glp_prob# *P, int nrs, const int num[]); |
| 348 | /* delete specified rows from problem object */ |
| 349 | |
| 350 | void glp_del_colscxx . . $ glp_del_cols(b3f2b5bced3e9e65).(glp_probcxx . . $ glp_prob# *P, int ncs, const int num[]); |
| 351 | /* delete specified columns from problem object */ |
| 352 | |
| 353 | void glp_copy_probcxx . . $ glp_copy_prob(8739005a9a0f7ee6).(glp_probcxx . . $ glp_prob# *dest, glp_probcxx . . $ glp_prob# *prob, int names); |
| 354 | /* copy problem object content */ |
| 355 | |
| 356 | void glp_erase_probcxx . . $ glp_erase_prob(84c60d68cac39b9a).(glp_probcxx . . $ glp_prob# *P); |
| 357 | /* erase problem object content */ |
| 358 | |
| 359 | void glp_delete_probcxx . . $ glp_delete_prob(84c60d68cac39b9a).(glp_probcxx . . $ glp_prob# *P); |
| 360 | /* delete problem object */ |
| 361 | |
| 362 | const char *glp_get_prob_namecxx . . $ glp_get_prob_name(b1ad61a3730816ca).(glp_probcxx . . $ glp_prob# *P); |
| 363 | /* retrieve problem name */ |
| 364 | |
| 365 | const char *glp_get_obj_namecxx . . $ glp_get_obj_name(b1ad61a3730816ca).(glp_probcxx . . $ glp_prob# *P); |
| 366 | /* retrieve objective function name */ |
| 367 | |
| 368 | int glp_get_obj_dircxx . . $ glp_get_obj_dir(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 369 | /* retrieve optimization direction flag */ |
| 370 | |
| 371 | int glp_get_num_rowscxx . . $ glp_get_num_rows(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 372 | /* retrieve number of rows */ |
| 373 | |
| 374 | int glp_get_num_colscxx . . $ glp_get_num_cols(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 375 | /* retrieve number of columns */ |
| 376 | |
| 377 | const char *glp_get_row_namecxx . . $ glp_get_row_name(d11e5f1cd3184808).(glp_probcxx . . $ glp_prob# *P, int i); |
| 378 | /* retrieve row name */ |
| 379 | |
| 380 | const char *glp_get_col_namecxx . . $ glp_get_col_name(d11e5f1cd3184808).(glp_probcxx . . $ glp_prob# *P, int j); |
| 381 | /* retrieve column name */ |
| 382 | |
| 383 | int glp_get_row_typecxx . . $ glp_get_row_type(423829e847ef1a83).(glp_probcxx . . $ glp_prob# *P, int i); |
| 384 | /* retrieve row type */ |
| 385 | |
| 386 | double glp_get_row_lbcxx . . $ glp_get_row_lb(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int i); |
| 387 | /* retrieve row lower bound */ |
| 388 | |
| 389 | double glp_get_row_ubcxx . . $ glp_get_row_ub(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int i); |
| 390 | /* retrieve row upper bound */ |
| 391 | |
| 392 | int glp_get_col_typecxx . . $ glp_get_col_type(423829e847ef1a83).(glp_probcxx . . $ glp_prob# *P, int j); |
| 393 | /* retrieve column type */ |
| 394 | |
| 395 | double glp_get_col_lbcxx . . $ glp_get_col_lb(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int j); |
| 396 | /* retrieve column lower bound */ |
| 397 | |
| 398 | double glp_get_col_ubcxx . . $ glp_get_col_ub(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int j); |
| 399 | /* retrieve column upper bound */ |
| 400 | |
| 401 | double glp_get_obj_coefcxx . . $ glp_get_obj_coef(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int j); |
| 402 | /* retrieve obj. coefficient or constant term */ |
| 403 | |
| 404 | int glp_get_num_nzcxx . . $ glp_get_num_nz(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 405 | /* retrieve number of constraint coefficients */ |
| 406 | |
| 407 | int glp_get_mat_rowcxx . . $ glp_get_mat_row(223ff0a4a32a5807).(glp_probcxx . . $ glp_prob# *P, int i, int ind[], double val[]); |
| 408 | /* retrieve row of the constraint matrix */ |
| 409 | |
| 410 | int glp_get_mat_colcxx . . $ glp_get_mat_col(223ff0a4a32a5807).(glp_probcxx . . $ glp_prob# *P, int j, int ind[], double val[]); |
| 411 | /* retrieve column of the constraint matrix */ |
| 412 | |
| 413 | void glp_create_indexcxx . . $ glp_create_index(84c60d68cac39b9a).(glp_probcxx . . $ glp_prob# *P); |
| 414 | /* create the name index */ |
| 415 | |
| 416 | int glp_find_rowcxx . . $ glp_find_row(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *name); |
| 417 | /* find row by its name */ |
| 418 | |
| 419 | int glp_find_colcxx . . $ glp_find_col(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *name); |
| 420 | /* find column by its name */ |
| 421 | |
| 422 | void glp_delete_indexcxx . . $ glp_delete_index(84c60d68cac39b9a).(glp_probcxx . . $ glp_prob# *P); |
| 423 | /* delete the name index */ |
| 424 | |
| 425 | void glp_set_riicxx . . $ glp_set_rii(d60e14834b632e5e).(glp_probcxx . . $ glp_prob# *P, int i, double rii); |
| 426 | /* set (change) row scale factor */ |
| 427 | |
| 428 | void glp_set_sjjcxx . . $ glp_set_sjj(d60e14834b632e5e).(glp_probcxx . . $ glp_prob# *P, int j, double sjj); |
| 429 | /* set (change) column scale factor */ |
| 430 | |
| 431 | double glp_get_riicxx . . $ glp_get_rii(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int i); |
| 432 | /* retrieve row scale factor */ |
| 433 | |
| 434 | double glp_get_sjjcxx . . $ glp_get_sjj(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int j); |
| 435 | /* retrieve column scale factor */ |
| 436 | |
| 437 | void glp_scale_probcxx . . $ glp_scale_prob(e00ef8be97973834).(glp_probcxx . . $ glp_prob# *P, int flags); |
| 438 | /* scale problem data */ |
| 439 | |
| 440 | void glp_unscale_probcxx . . $ glp_unscale_prob(84c60d68cac39b9a).(glp_probcxx . . $ glp_prob# *P); |
| 441 | /* unscale problem data */ |
| 442 | |
| 443 | void glp_set_row_statcxx . . $ glp_set_row_stat(b083f42914639ad0).(glp_probcxx . . $ glp_prob# *P, int i, int stat); |
| 444 | /* set (change) row status */ |
| 445 | |
| 446 | void glp_set_col_statcxx . . $ glp_set_col_stat(b083f42914639ad0).(glp_probcxx . . $ glp_prob# *P, int j, int stat); |
| 447 | /* set (change) column status */ |
| 448 | |
| 449 | void glp_std_basiscxx . . $ glp_std_basis(84c60d68cac39b9a).(glp_probcxx . . $ glp_prob# *P); |
| 450 | /* construct standard initial LP basis */ |
| 451 | |
| 452 | void glp_adv_basiscxx . . $ glp_adv_basis(e00ef8be97973834).(glp_probcxx . . $ glp_prob# *P, int flags); |
| 453 | /* construct advanced initial LP basis */ |
| 454 | |
| 455 | void glp_cpx_basiscxx . . $ glp_cpx_basis(84c60d68cac39b9a).(glp_probcxx . . $ glp_prob# *P); |
| 456 | /* construct Bixby's initial LP basis */ |
| 457 | |
| 458 | int glp_simplexcxx . . $ glp_simplex(115ca84ce6c1686e).(glp_probcxx . . $ glp_prob# *P, const glp_smcpcxx . . $ glp_smcp# *parm); |
| 459 | /* solve LP problem with the simplex method */ |
| 460 | |
| 461 | int glp_exactcxx . . $ glp_exact(115ca84ce6c1686e).(glp_probcxx . . $ glp_prob# *P, const glp_smcpcxx . . $ glp_smcp# *parm); |
| 462 | /* solve LP problem in exact arithmetic */ |
| 463 | |
| 464 | void glp_init_smcpcxx . . $ glp_init_smcp(719730d4b69ecbe).(glp_smcpcxx . . $ glp_smcp# *parm); |
| 465 | /* initialize simplex method control parameters */ |
| 466 | |
| 467 | int glp_get_statuscxx . . $ glp_get_status(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 468 | /* retrieve generic status of basic solution */ |
| 469 | |
| 470 | int glp_get_prim_statcxx . . $ glp_get_prim_stat(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 471 | /* retrieve status of primal basic solution */ |
| 472 | |
| 473 | int glp_get_dual_statcxx . . $ glp_get_dual_stat(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 474 | /* retrieve status of dual basic solution */ |
| 475 | |
| 476 | double glp_get_obj_valcxx . . $ glp_get_obj_val(cf94942ae12487e5).(glp_probcxx . . $ glp_prob# *P); |
| 477 | /* retrieve objective value (basic solution) */ |
| 478 | |
| 479 | int glp_get_row_statcxx . . $ glp_get_row_stat(423829e847ef1a83).(glp_probcxx . . $ glp_prob# *P, int i); |
| 480 | /* retrieve row status */ |
| 481 | |
| 482 | double glp_get_row_primcxx . . $ glp_get_row_prim(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int i); |
| 483 | /* retrieve row primal value (basic solution) */ |
| 484 | |
| 485 | double glp_get_row_dualcxx . . $ glp_get_row_dual(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int i); |
| 486 | /* retrieve row dual value (basic solution) */ |
| 487 | |
| 488 | int glp_get_col_statcxx . . $ glp_get_col_stat(423829e847ef1a83).(glp_probcxx . . $ glp_prob# *P, int j); |
| 489 | /* retrieve column status */ |
| 490 | |
| 491 | double glp_get_col_primcxx . . $ glp_get_col_prim(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int j); |
| 492 | /* retrieve column primal value (basic solution) */ |
| 493 | |
| 494 | double glp_get_col_dualcxx . . $ glp_get_col_dual(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int j); |
| 495 | /* retrieve column dual value (basic solution) */ |
| 496 | |
| 497 | int glp_get_unbnd_raycxx . . $ glp_get_unbnd_ray(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 498 | /* determine variable causing unboundedness */ |
| 499 | |
| 500 | int glp_interiorcxx . . $ glp_interior(d70fb529629f878d).(glp_probcxx . . $ glp_prob# *P, const glp_iptcpcxx . . $ glp_iptcp# *parm); |
| 501 | /* solve LP problem with the interior-point method */ |
| 502 | |
| 503 | void glp_init_iptcpcxx . . $ glp_init_iptcp(15c332fc7968b4e3).(glp_iptcpcxx . . $ glp_iptcp# *parm); |
| 504 | /* initialize interior-point solver control parameters */ |
| 505 | |
| 506 | int glp_ipt_statuscxx . . $ glp_ipt_status(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 507 | /* retrieve status of interior-point solution */ |
| 508 | |
| 509 | double glp_ipt_obj_valcxx . . $ glp_ipt_obj_val(cf94942ae12487e5).(glp_probcxx . . $ glp_prob# *P); |
| 510 | /* retrieve objective value (interior point) */ |
| 511 | |
| 512 | double glp_ipt_row_primcxx . . $ glp_ipt_row_prim(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int i); |
| 513 | /* retrieve row primal value (interior point) */ |
| 514 | |
| 515 | double glp_ipt_row_dualcxx . . $ glp_ipt_row_dual(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int i); |
| 516 | /* retrieve row dual value (interior point) */ |
| 517 | |
| 518 | double glp_ipt_col_primcxx . . $ glp_ipt_col_prim(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int j); |
| 519 | /* retrieve column primal value (interior point) */ |
| 520 | |
| 521 | double glp_ipt_col_dualcxx . . $ glp_ipt_col_dual(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int j); |
| 522 | /* retrieve column dual value (interior point) */ |
| 523 | |
| 524 | void glp_set_col_kindcxx . . $ glp_set_col_kind(b083f42914639ad0).(glp_probcxx . . $ glp_prob# *P, int j, int kind); |
| 525 | /* set (change) column kind */ |
| 526 | |
| 527 | int glp_get_col_kindcxx . . $ glp_get_col_kind(423829e847ef1a83).(glp_probcxx . . $ glp_prob# *P, int j); |
| 528 | /* retrieve column kind */ |
| 529 | |
| 530 | int glp_get_num_intcxx . . $ glp_get_num_int(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 531 | /* retrieve number of integer columns */ |
| 532 | |
| 533 | int glp_get_num_bincxx . . $ glp_get_num_bin(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 534 | /* retrieve number of binary columns */ |
| 535 | |
| 536 | int glp_intoptcxx . . $ glp_intopt(6369e4bd25f3670d).(glp_probcxx . . $ glp_prob# *P, const glp_iocpcxx . . $ glp_iocp# *parm); |
| 537 | /* solve MIP problem with the branch-and-bound method */ |
| 538 | |
| 539 | void glp_init_iocpcxx . . $ glp_init_iocp(b61dbaae1883028f).(glp_iocpcxx . . $ glp_iocp# *parm); |
| 540 | /* initialize integer optimizer control parameters */ |
| 541 | |
| 542 | int glp_mip_statuscxx . . $ glp_mip_status(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 543 | /* retrieve status of MIP solution */ |
| 544 | |
| 545 | double glp_mip_obj_valcxx . . $ glp_mip_obj_val(cf94942ae12487e5).(glp_probcxx . . $ glp_prob# *P); |
| 546 | /* retrieve objective value (MIP solution) */ |
| 547 | |
| 548 | double glp_mip_row_valcxx . . $ glp_mip_row_val(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int i); |
| 549 | /* retrieve row value (MIP solution) */ |
| 550 | |
| 551 | double glp_mip_col_valcxx . . $ glp_mip_col_val(68c5770eb0f32231).(glp_probcxx . . $ glp_prob# *P, int j); |
| 552 | /* retrieve column value (MIP solution) */ |
| 553 | |
| 554 | int glp_print_solcxx . . $ glp_print_sol(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *fname); |
| 555 | /* write basic solution in printable format */ |
| 556 | |
| 557 | int glp_read_solcxx . . $ glp_read_sol(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *fname); |
| 558 | /* read basic solution from text file */ |
| 559 | |
| 560 | int glp_write_solcxx . . $ glp_write_sol(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *fname); |
| 561 | /* write basic solution to text file */ |
| 562 | |
| 563 | int glp_print_rangescxx . . $ glp_print_ranges(5820a35160249772).(glp_probcxx . . $ glp_prob# *P, int len, const int list[], |
| 564 | int flags, const char *fname); |
| 565 | /* print sensitivity analysis report */ |
| 566 | |
| 567 | int glp_print_iptcxx . . $ glp_print_ipt(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *fname); |
| 568 | /* write interior-point solution in printable format */ |
| 569 | |
| 570 | int glp_read_iptcxx . . $ glp_read_ipt(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *fname); |
| 571 | /* read interior-point solution from text file */ |
| 572 | |
| 573 | int glp_write_iptcxx . . $ glp_write_ipt(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *fname); |
| 574 | /* write interior-point solution to text file */ |
| 575 | |
| 576 | int glp_print_mipcxx . . $ glp_print_mip(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *fname); |
| 577 | /* write MIP solution in printable format */ |
| 578 | |
| 579 | int glp_read_mipcxx . . $ glp_read_mip(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *fname); |
| 580 | /* read MIP solution from text file */ |
| 581 | |
| 582 | int glp_write_mipcxx . . $ glp_write_mip(5aeec8fe9468a6e).(glp_probcxx . . $ glp_prob# *P, const char *fname); |
| 583 | /* write MIP solution to text file */ |
| 584 | |
| 585 | int glp_bf_existscxx . . $ glp_bf_exists(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 586 | /* check if the basis factorization exists */ |
| 587 | |
| 588 | int glp_factorizecxx . . $ glp_factorize(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 589 | /* compute the basis factorization */ |
| 590 | |
| 591 | int glp_bf_updatedcxx . . $ glp_bf_updated(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 592 | /* check if the basis factorization has been updated */ |
| 593 | |
| 594 | void glp_get_bfcpcxx . . $ glp_get_bfcp(cc8cafde03995f03).(glp_probcxx . . $ glp_prob# *P, glp_bfcpcxx . . $ glp_bfcp# *parm); |
| 595 | /* retrieve basis factorization control parameters */ |
| 596 | |
| 597 | void glp_set_bfcpcxx . . $ glp_set_bfcp(cfafdb23988eec12).(glp_probcxx . . $ glp_prob# *P, const glp_bfcpcxx . . $ glp_bfcp# *parm); |
| 598 | /* change basis factorization control parameters */ |
| 599 | |
| 600 | int glp_get_bheadcxx . . $ glp_get_bhead(423829e847ef1a83).(glp_probcxx . . $ glp_prob# *P, int k); |
| 601 | /* retrieve the basis header information */ |
| 602 | |
| 603 | int glp_get_row_bindcxx . . $ glp_get_row_bind(423829e847ef1a83).(glp_probcxx . . $ glp_prob# *P, int i); |
| 604 | /* retrieve row index in the basis header */ |
| 605 | |
| 606 | int glp_get_col_bindcxx . . $ glp_get_col_bind(423829e847ef1a83).(glp_probcxx . . $ glp_prob# *P, int j); |
| 607 | /* retrieve column index in the basis header */ |
| 608 | |
| 609 | void glp_ftrancxx . . $ glp_ftran(f2de47c1a183349).(glp_probcxx . . $ glp_prob# *P, double x[]); |
| 610 | /* perform forward transformation (solve system B*x = b) */ |
| 611 | |
| 612 | void glp_btrancxx . . $ glp_btran(f2de47c1a183349).(glp_probcxx . . $ glp_prob# *P, double x[]); |
| 613 | /* perform backward transformation (solve system B'*x = b) */ |
| 614 | |
| 615 | int glp_warm_upcxx . . $ glp_warm_up(317ecc1aeadfe2b7).(glp_probcxx . . $ glp_prob# *P); |
| 616 | /* "warm up" LP basis */ |
| 617 | |
| 618 | int glp_eval_tab_rowcxx . . $ glp_eval_tab_row(223ff0a4a32a5807).(glp_probcxx . . $ glp_prob# *P, int k, int ind[], double val[]); |
| 619 | /* compute row of the simplex tableau */ |
| 620 | |
| 621 | int glp_eval_tab_colcxx . . $ glp_eval_tab_col(223ff0a4a32a5807).(glp_probcxx . . $ glp_prob# *P, int k, int ind[], double val[]); |
| 622 | /* compute column of the simplex tableau */ |
| 623 | |
| 624 | int glp_transform_rowcxx . . $ glp_transform_row(223ff0a4a32a5807).(glp_probcxx . . $ glp_prob# *P, int len, int ind[], double val[]); |
| 625 | /* transform explicitly specified row */ |
| 626 | |
| 627 | int glp_transform_colcxx . . $ glp_transform_col(223ff0a4a32a5807).(glp_probcxx . . $ glp_prob# *P, int len, int ind[], double val[]); |
| 628 | /* transform explicitly specified column */ |
| 629 | |
| 630 | int glp_prim_rtestcxx . . $ glp_prim_rtest(5fadf510355bcea8).(glp_probcxx . . $ glp_prob# *P, int len, const int ind[], |
| 631 | const double val[], int dir, double eps); |
| 632 | /* perform primal ratio test */ |
| 633 | |
| 634 | int glp_dual_rtestcxx . . $ glp_dual_rtest(5fadf510355bcea8).(glp_probcxx . . $ glp_prob# *P, int len, const int ind[], |
| 635 | const double val[], int dir, double eps); |
| 636 | /* perform dual ratio test */ |
| 637 | |
| 638 | void glp_analyze_boundcxx . . $ glp_analyze_bound(457978f5f62a4d0e).(glp_probcxx . . $ glp_prob# *P, int k, double *value1, int *var1, |
| 639 | double *value2, int *var2); |
| 640 | /* analyze active bound of non-basic variable */ |
| 641 | |
| 642 | void glp_analyze_coefcxx . . $ glp_analyze_coef(3fcab2195889572).(glp_probcxx . . $ glp_prob# *P, int k, double *coef1, int *var1, |
| 643 | double *value1, double *coef2, int *var2, double *value2); |
| 644 | /* analyze objective coefficient at basic variable */ |
| 645 | |
| 646 | int glp_ios_reasoncxx . . $ glp_ios_reason(35fbc87e12c4e96f).(glp_treecxx . . $ glp_tree# *T); |
| 647 | /* determine reason for calling the callback routine */ |
| 648 | |
| 649 | glp_probcxx . . $ glp_prob# *glp_ios_get_probcxx . . $ glp_ios_get_prob(a932463d3f01980a).(glp_treecxx . . $ glp_tree# *T); |
| 650 | /* access the problem object */ |
| 651 | |
| 652 | void glp_ios_tree_sizecxx . . $ glp_ios_tree_size(2bb27857589267f0).(glp_treecxx . . $ glp_tree# *T, int *a_cnt, int *n_cnt, |
| 653 | int *t_cnt); |
| 654 | /* determine size of the branch-and-bound tree */ |
| 655 | |
| 656 | int glp_ios_curr_nodecxx . . $ glp_ios_curr_node(35fbc87e12c4e96f).(glp_treecxx . . $ glp_tree# *T); |
| 657 | /* determine current active subproblem */ |
| 658 | |
| 659 | int glp_ios_next_nodecxx . . $ glp_ios_next_node(b5dc93df765e14d7).(glp_treecxx . . $ glp_tree# *T, int p); |
| 660 | /* determine next active subproblem */ |
| 661 | |
| 662 | int glp_ios_prev_nodecxx . . $ glp_ios_prev_node(b5dc93df765e14d7).(glp_treecxx . . $ glp_tree# *T, int p); |
| 663 | /* determine previous active subproblem */ |
| 664 | |
| 665 | int glp_ios_up_nodecxx . . $ glp_ios_up_node(b5dc93df765e14d7).(glp_treecxx . . $ glp_tree# *T, int p); |
| 666 | /* determine parent subproblem */ |
| 667 | |
| 668 | int glp_ios_node_levelcxx . . $ glp_ios_node_level(b5dc93df765e14d7).(glp_treecxx . . $ glp_tree# *T, int p); |
| 669 | /* determine subproblem level */ |
| 670 | |
| 671 | double glp_ios_node_boundcxx . . $ glp_ios_node_bound(2f8fb60f97697bda).(glp_treecxx . . $ glp_tree# *T, int p); |
| 672 | /* determine subproblem local bound */ |
| 673 | |
| 674 | int glp_ios_best_nodecxx . . $ glp_ios_best_node(35fbc87e12c4e96f).(glp_treecxx . . $ glp_tree# *T); |
| 675 | /* find active subproblem with best local bound */ |
| 676 | |
| 677 | double glp_ios_mip_gapcxx . . $ glp_ios_mip_gap(5cb67fa7612432f7).(glp_treecxx . . $ glp_tree# *T); |
| 678 | /* compute relative MIP gap */ |
| 679 | |
| 680 | void *glp_ios_node_datacxx . . $ glp_ios_node_data(63ae98a88225157).(glp_treecxx . . $ glp_tree# *T, int p); |
| 681 | /* access subproblem application-specific data */ |
| 682 | |
| 683 | void glp_ios_row_attrcxx . . $ glp_ios_row_attr(19b40f54775f3e79).(glp_treecxx . . $ glp_tree# *T, int i, glp_attrcxx . . $ glp_attr# *attr); |
| 684 | /* retrieve additional row attributes */ |
| 685 | |
| 686 | int glp_ios_pool_sizecxx . . $ glp_ios_pool_size(35fbc87e12c4e96f).(glp_treecxx . . $ glp_tree# *T); |
| 687 | /* determine current size of the cut pool */ |
| 688 | |
| 689 | int glp_ios_add_rowcxx . . $ glp_ios_add_row(edad32d7b0e16ea6).(glp_treecxx . . $ glp_tree# *T, |
| 690 | const char *name, int klass, int flags, int len, const int ind[], |
| 691 | const double val[], int type, double rhs); |
| 692 | /* add row (constraint) to the cut pool */ |
| 693 | |
| 694 | void glp_ios_del_rowcxx . . $ glp_ios_del_row(52340c977682d7af).(glp_treecxx . . $ glp_tree# *T, int i); |
| 695 | /* remove row (constraint) from the cut pool */ |
| 696 | |
| 697 | void glp_ios_clear_poolcxx . . $ glp_ios_clear_pool(712f3e85c47365fc).(glp_treecxx . . $ glp_tree# *T); |
| 698 | /* remove all rows (constraints) from the cut pool */ |
| 699 | |
| 700 | int glp_ios_can_branchcxx . . $ glp_ios_can_branch(b5dc93df765e14d7).(glp_treecxx . . $ glp_tree# *T, int j); |
| 701 | /* check if can branch upon specified variable */ |
| 702 | |
| 703 | void glp_ios_branch_uponcxx . . $ glp_ios_branch_upon(8e014e5367999bb2).(glp_treecxx . . $ glp_tree# *T, int j, int sel); |
| 704 | /* choose variable to branch upon */ |
| 705 | |
| 706 | void glp_ios_select_nodecxx . . $ glp_ios_select_node(52340c977682d7af).(glp_treecxx . . $ glp_tree# *T, int p); |
| 707 | /* select subproblem to continue the search */ |
| 708 | |
| 709 | int glp_ios_heur_solcxx . . $ glp_ios_heur_sol(2d0a703a9df11a01).(glp_treecxx . . $ glp_tree# *T, const double x[]); |
| 710 | /* provide solution found by heuristic */ |
| 711 | |
| 712 | void glp_ios_terminatecxx . . $ glp_ios_terminate(712f3e85c47365fc).(glp_treecxx . . $ glp_tree# *T); |
| 713 | /* terminate the solution process */ |
| 714 | |
| 715 | void glp_init_mpscpcxx . . $ glp_init_mpscp(7da704d47acd44e1).(glp_mpscpcxx . . $ glp_mpscp# *parm); |
| 716 | /* initialize MPS format control parameters */ |
| 717 | |
| 718 | int glp_read_mpscxx . . $ glp_read_mps(f73ccbdbbc22e394).(glp_probcxx . . $ glp_prob# *P, int fmt, const glp_mpscpcxx . . $ glp_mpscp# *parm, |
| 719 | const char *fname); |
| 720 | /* read problem data in MPS format */ |
| 721 | |
| 722 | int glp_write_mpscxx . . $ glp_write_mps(f73ccbdbbc22e394).(glp_probcxx . . $ glp_prob# *P, int fmt, const glp_mpscpcxx . . $ glp_mpscp# *parm, |
| 723 | const char *fname); |
| 724 | /* write problem data in MPS format */ |
| 725 | |
| 726 | void glp_init_cpxcpcxx . . $ glp_init_cpxcp(5a11765d7025ef8b).(glp_cpxcpcxx . . $ glp_cpxcp# *parm); |
| 727 | /* initialize CPLEX LP format control parameters */ |
| 728 | |
| 729 | int glp_read_lpcxx . . $ glp_read_lp(df616aee7dcbbe0a).(glp_probcxx . . $ glp_prob# *P, const glp_cpxcpcxx . . $ glp_cpxcp# *parm, const char *fname); |
| 730 | /* read problem data in CPLEX LP format */ |
| 731 | |
| 732 | int glp_write_lpcxx . . $ glp_write_lp(df616aee7dcbbe0a).(glp_probcxx . . $ glp_prob# *P, const glp_cpxcpcxx . . $ glp_cpxcp# *parm, const char *fname); |
| 733 | /* write problem data in CPLEX LP format */ |
| 734 | |
| 735 | int glp_read_probcxx . . $ glp_read_prob(23f264e9e3ac104e).(glp_probcxx . . $ glp_prob# *P, int flags, const char *fname); |
| 736 | /* read problem data in GLPK format */ |
| 737 | |
| 738 | int glp_write_probcxx . . $ glp_write_prob(23f264e9e3ac104e).(glp_probcxx . . $ glp_prob# *P, int flags, const char *fname); |
| 739 | /* write problem data in GLPK format */ |
| 740 | |
| 741 | glp_trancxx . . $ glp_tran# *glp_mpl_alloc_wkspcxx . . $ glp_mpl_alloc_wksp(57d27abbe4d885df).(void); |
| 742 | /* allocate the MathProg translator workspace */ |
| 743 | |
| 744 | int glp_mpl_read_modelcxx . . $ glp_mpl_read_model(afcbb9cb2965eb8b).(glp_trancxx . . $ glp_tran# *tran, const char *fname, int skip); |
| 745 | /* read and translate model section */ |
| 746 | |
| 747 | int glp_mpl_read_datacxx . . $ glp_mpl_read_data(555a2b30d4c89355).(glp_trancxx . . $ glp_tran# *tran, const char *fname); |
| 748 | /* read and translate data section */ |
| 749 | |
| 750 | int glp_mpl_generatecxx . . $ glp_mpl_generate(555a2b30d4c89355).(glp_trancxx . . $ glp_tran# *tran, const char *fname); |
| 751 | /* generate the model */ |
| 752 | |
| 753 | void glp_mpl_build_probcxx . . $ glp_mpl_build_prob(f57c9d91e0e74799).(glp_trancxx . . $ glp_tran# *tran, glp_probcxx . . $ glp_prob# *prob); |
| 754 | /* build LP/MIP problem instance from the model */ |
| 755 | |
| 756 | int glp_mpl_postsolvecxx . . $ glp_mpl_postsolve(1ab5ea69c60800ed).(glp_trancxx . . $ glp_tran# *tran, glp_probcxx . . $ glp_prob# *prob, int sol); |
| 757 | /* postsolve the model */ |
| 758 | |
| 759 | void glp_mpl_free_wkspcxx . . $ glp_mpl_free_wksp(25e8d00f6ee595c4).(glp_trancxx . . $ glp_tran# *tran); |
| 760 | /* free the MathProg translator workspace */ |
| 761 | |
| 762 | int glp_maincxx . . $ glp_main(d8e43b79a186046c).(int argc, const char *argv[]); |
| 763 | /* stand-alone LP/MIP solver */ |
| 764 | |
| 765 | /**********************************************************************/ |
| 766 | |
| 767 | #ifndef GLP_LONG_DEFINED |
| 768 | #define GLP_LONG_DEFINEDcxx . . $ `external/glpk/glpk.h:768:9`! |
| 769 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_9# { int locxx . . $ $anonymous_type_2d15b5456314bbc5_9#lo., hicxx . . $ $anonymous_type_2d15b5456314bbc5_9#hi.; } glp_longcxx . . $ glp_long#; |
| 770 | /* long integer data type */ |
| 771 | #endif |
| 772 | |
| 773 | int glp_init_envcxx . . $ glp_init_env(b126dc7c1de90089).(void); |
| 774 | /* initialize GLPK environment */ |
| 775 | |
| 776 | const char *glp_versioncxx . . $ glp_version(33a1f659e94feb42).(void); |
| 777 | /* determine library version */ |
| 778 | |
| 779 | int glp_free_envcxx . . $ glp_free_env(b126dc7c1de90089).(void); |
| 780 | /* free GLPK environment */ |
| 781 | |
| 782 | void glp_printfcxx . . $ glp_printf(326aeb464d16410c).(const char *fmt, ...); |
| 783 | /* write formatted output to terminal */ |
| 784 | |
| 785 | void glp_vprintfcxx . . $ glp_vprintf(ac175dd46a4e4d7f).(const char *fmt, va_listcxx . . $ va_list# arg); |
| 786 | /* write formatted output to terminal */ |
| 787 | |
| 788 | int glp_term_outcxx . . $ glp_term_out(7864480464b09eea).(int flag); |
| 789 | /* enable/disable terminal output */ |
| 790 | |
| 791 | void glp_term_hookcxx . . $ glp_term_hook(e93a814f84a02f57).(int (*func)(void *info, const char *s), void *info); |
| 792 | /* install hook to intercept terminal output */ |
| 793 | |
| 794 | int glp_open_teecxx . . $ glp_open_tee(5c4306d8553b3696).(const char *fname); |
| 795 | /* start copying terminal output to text file */ |
| 796 | |
| 797 | int glp_close_teecxx . . $ glp_close_tee(b126dc7c1de90089).(void); |
| 798 | /* stop copying terminal output to text file */ |
| 799 | |
| 800 | #ifndef GLP_ERROR_DEFINED |
| 801 | #define GLP_ERROR_DEFINEDcxx . . $ `external/glpk/glpk.h:801:9`! |
| 802 | typedef void (*_glp_errorcxx . . $ _glp_error#)(const char *fmt, ...); |
| 803 | #endif |
| 804 | |
| 805 | #define glp_errorcxx . . $ `external/glpk/glpk.h:805:9`! glp_error_(__FILE__, __LINE__) |
| 806 | _glp_errorcxx . . $ _glp_error# glp_error_cxx . . $ glp_error_(68ddb57ca28ebef9).(const char *file, int line); |
| 807 | /* display error message and terminate execution */ |
| 808 | |
| 809 | #define glp_assertcxx . . $ `external/glpk/glpk.h:809:9`!(expr) \ |
| 810 | ((void)((expr) || (glp_assert_(#expr, __FILE__, __LINE__), 1))) |
| 811 | void glp_assert_cxx . . $ glp_assert_(5e891a9f77bb0eff).(const char *expr, const char *file, int line); |
| 812 | /* check for logical condition */ |
| 813 | |
| 814 | void glp_error_hookcxx . . $ glp_error_hook(97a347b124788245).(void (*func)(void *info), void *info); |
| 815 | /* install hook to intercept abnormal termination */ |
| 816 | |
| 817 | void *glp_malloccxx . . $ glp_malloc(d1680a912d714170).(int size); |
| 818 | /* allocate memory block */ |
| 819 | |
| 820 | void *glp_calloccxx . . $ glp_calloc(e7ddb6f3a463937c).(int n, int size); |
| 821 | /* allocate memory block */ |
| 822 | |
| 823 | void glp_freecxx . . $ glp_free(5d22bdacc48458e8).(void *ptr); |
| 824 | /* free memory block */ |
| 825 | |
| 826 | void glp_mem_limitcxx . . $ glp_mem_limit(d4f767463ce0a6b3).(int limit); |
| 827 | /* set memory usage limit */ |
| 828 | |
| 829 | void glp_mem_usagecxx . . $ glp_mem_usage(6ca71a34c0a643f9).(int *count, int *cpeak, glp_longcxx . . $ glp_long# *total, |
| 830 | glp_longcxx . . $ glp_long# *tpeak); |
| 831 | /* get memory usage information */ |
| 832 | |
| 833 | glp_longcxx . . $ glp_long# glp_timecxx . . $ glp_time(97909279aa163842).(void); |
| 834 | /* determine current universal time */ |
| 835 | |
| 836 | double glp_difftimecxx . . $ glp_difftime(9517efb6951e755a).(glp_longcxx . . $ glp_long# t1, glp_longcxx . . $ glp_long# t0); |
| 837 | /* compute difference between two time values */ |
| 838 | |
| 839 | /**********************************************************************/ |
| 840 | |
| 841 | #ifndef GLP_DATA_DEFINED |
| 842 | #define GLP_DATA_DEFINEDcxx . . $ `external/glpk/glpk.h:842:9`! |
| 843 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_10# { double _opaque_datacxx . . $ $anonymous_type_2d15b5456314bbc5_10#_opaque_data.[100]; } glp_datacxx . . $ glp_data#; |
| 844 | /* plain data file */ |
| 845 | #endif |
| 846 | |
| 847 | glp_datacxx . . $ glp_data# *glp_sdf_open_filecxx . . $ glp_sdf_open_file(48b6cd6ae4c46f0f).(const char *fname); |
| 848 | /* open plain data file */ |
| 849 | |
| 850 | void glp_sdf_set_jumpcxx . . $ glp_sdf_set_jump(b0c068eebba1df51).(glp_datacxx . . $ glp_data# *data, void *jump); |
| 851 | /* set up error handling */ |
| 852 | |
| 853 | void glp_sdf_errorcxx . . $ glp_sdf_error(36733fdcc0114f3d).(glp_datacxx . . $ glp_data# *data, const char *fmt, ...); |
| 854 | /* print error message */ |
| 855 | |
| 856 | void glp_sdf_warningcxx . . $ glp_sdf_warning(36733fdcc0114f3d).(glp_datacxx . . $ glp_data# *data, const char *fmt, ...); |
| 857 | /* print warning message */ |
| 858 | |
| 859 | int glp_sdf_read_intcxx . . $ glp_sdf_read_int(d55aa0a7098b3be0).(glp_datacxx . . $ glp_data# *data); |
| 860 | /* read integer number */ |
| 861 | |
| 862 | double glp_sdf_read_numcxx . . $ glp_sdf_read_num(325c00c3fb71d09f).(glp_datacxx . . $ glp_data# *data); |
| 863 | /* read floating-point number */ |
| 864 | |
| 865 | const char *glp_sdf_read_itemcxx . . $ glp_sdf_read_item(5f9d9844d7a3be0e).(glp_datacxx . . $ glp_data# *data); |
| 866 | /* read data item */ |
| 867 | |
| 868 | const char *glp_sdf_read_textcxx . . $ glp_sdf_read_text(5f9d9844d7a3be0e).(glp_datacxx . . $ glp_data# *data); |
| 869 | /* read text until end of line */ |
| 870 | |
| 871 | int glp_sdf_linecxx . . $ glp_sdf_line(d55aa0a7098b3be0).(glp_datacxx . . $ glp_data# *data); |
| 872 | /* determine current line number */ |
| 873 | |
| 874 | void glp_sdf_close_filecxx . . $ glp_sdf_close_file(eb8f982ad4273b27).(glp_datacxx . . $ glp_data# *data); |
| 875 | /* close plain data file */ |
| 876 | |
| 877 | /**********************************************************************/ |
| 878 | |
| 879 | typedef struct _glp_graphcxx . . $ _glp_graph# glp_graphcxx . . $ glp_graph#; |
| 880 | typedef struct _glp_vertexcxx . . $ _glp_vertex# glp_vertexcxx . . $ glp_vertex#; |
| 881 | typedef struct _glp_arccxx . . $ _glp_arc# glp_arccxx . . $ glp_arc#; |
| 882 | |
| 883 | struct _glp_graphcxx . . $ _glp_graph# |
| 884 | { /* graph descriptor */ |
| 885 | void *poolcxx . . $ _glp_graph#pool.; /* DMP *pool; */ |
| 886 | /* memory pool to store graph components */ |
| 887 | char *namecxx . . $ _glp_graph#name.; |
| 888 | /* graph name (1 to 255 chars); NULL means no name is assigned |
| 889 | to the graph */ |
| 890 | int nv_maxcxx . . $ _glp_graph#nv_max.; |
| 891 | /* length of the vertex list (enlarged automatically) */ |
| 892 | int nvcxx . . $ _glp_graph#nv.; |
| 893 | /* number of vertices in the graph, 0 <= nv <= nv_max */ |
| 894 | int nacxx . . $ _glp_graph#na.; |
| 895 | /* number of arcs in the graph, na >= 0 */ |
| 896 | glp_vertexcxx . . $ glp_vertex# **vcxx . . $ _glp_graph#v.; /* glp_vertex *v[1+nv_max]; */ |
| 897 | /* v[i], 1 <= i <= nv, is a pointer to i-th vertex */ |
| 898 | void *indexcxx . . $ _glp_graph#index.; /* AVL *index; */ |
| 899 | /* vertex index to find vertices by their names; NULL means the |
| 900 | index does not exist */ |
| 901 | int v_sizecxx . . $ _glp_graph#v_size.; |
| 902 | /* size of data associated with each vertex (0 to 256 bytes) */ |
| 903 | int a_sizecxx . . $ _glp_graph#a_size.; |
| 904 | /* size of data associated with each arc (0 to 256 bytes) */ |
| 905 | }; |
| 906 | |
| 907 | struct _glp_vertexcxx . . $ _glp_vertex# |
| 908 | { /* vertex descriptor */ |
| 909 | int icxx . . $ _glp_vertex#i.; |
| 910 | /* vertex ordinal number, 1 <= i <= nv */ |
| 911 | char *namecxx . . $ _glp_vertex#name.; |
| 912 | /* vertex name (1 to 255 chars); NULL means no name is assigned |
| 913 | to the vertex */ |
| 914 | void *entrycxx . . $ _glp_vertex#entry.; /* AVLNODE *entry; */ |
| 915 | /* pointer to corresponding entry in the vertex index; NULL means |
| 916 | that either the index does not exist or the vertex has no name |
| 917 | assigned */ |
| 918 | void *datacxx . . $ _glp_vertex#data.; |
| 919 | /* pointer to data associated with the vertex */ |
| 920 | void *tempcxx . . $ _glp_vertex#temp.; |
| 921 | /* working pointer */ |
| 922 | glp_arccxx . . $ glp_arc# *incxx . . $ _glp_vertex#in.; |
| 923 | /* pointer to the (unordered) list of incoming arcs */ |
| 924 | glp_arccxx . . $ glp_arc# *outcxx . . $ _glp_vertex#out.; |
| 925 | /* pointer to the (unordered) list of outgoing arcs */ |
| 926 | }; |
| 927 | |
| 928 | struct _glp_arccxx . . $ _glp_arc# |
| 929 | { /* arc descriptor */ |
| 930 | glp_vertexcxx . . $ glp_vertex# *tailcxx . . $ _glp_arc#tail.; |
| 931 | /* pointer to the tail endpoint */ |
| 932 | glp_vertexcxx . . $ glp_vertex# *headcxx . . $ _glp_arc#head.; |
| 933 | /* pointer to the head endpoint */ |
| 934 | void *datacxx . . $ _glp_arc#data.; |
| 935 | /* pointer to data associated with the arc */ |
| 936 | void *tempcxx . . $ _glp_arc#temp.; |
| 937 | /* working pointer */ |
| 938 | glp_arccxx . . $ glp_arc# *t_prevcxx . . $ _glp_arc#t_prev.; |
| 939 | /* pointer to previous arc having the same tail endpoint */ |
| 940 | glp_arccxx . . $ glp_arc# *t_nextcxx . . $ _glp_arc#t_next.; |
| 941 | /* pointer to next arc having the same tail endpoint */ |
| 942 | glp_arccxx . . $ glp_arc# *h_prevcxx . . $ _glp_arc#h_prev.; |
| 943 | /* pointer to previous arc having the same head endpoint */ |
| 944 | glp_arccxx . . $ glp_arc# *h_nextcxx . . $ _glp_arc#h_next.; |
| 945 | /* pointer to next arc having the same head endpoint */ |
| 946 | }; |
| 947 | |
| 948 | glp_graphcxx . . $ glp_graph# *glp_create_graphcxx . . $ glp_create_graph(db26b9e719c88335).(int v_size, int a_size); |
| 949 | /* create graph */ |
| 950 | |
| 951 | void glp_set_graph_namecxx . . $ glp_set_graph_name(2f581b6858c1a533).(glp_graphcxx . . $ glp_graph# *G, const char *name); |
| 952 | /* assign (change) graph name */ |
| 953 | |
| 954 | int glp_add_verticescxx . . $ glp_add_vertices(9d5fec13eee488ca).(glp_graphcxx . . $ glp_graph# *G, int nadd); |
| 955 | /* add new vertices to graph */ |
| 956 | |
| 957 | void glp_set_vertex_namecxx . . $ glp_set_vertex_name(71bf418d6cb83dd4).(glp_graphcxx . . $ glp_graph# *G, int i, const char *name); |
| 958 | /* assign (change) vertex name */ |
| 959 | |
| 960 | glp_arccxx . . $ glp_arc# *glp_add_arccxx . . $ glp_add_arc(e54dd140876db879).(glp_graphcxx . . $ glp_graph# *G, int i, int j); |
| 961 | /* add new arc to graph */ |
| 962 | |
| 963 | void glp_del_verticescxx . . $ glp_del_vertices(5082857f14926bca).(glp_graphcxx . . $ glp_graph# *G, int ndel, const int num[]); |
| 964 | /* delete vertices from graph */ |
| 965 | |
| 966 | void glp_del_arccxx . . $ glp_del_arc(ba307328f5fbb0db).(glp_graphcxx . . $ glp_graph# *G, glp_arccxx . . $ glp_arc# *a); |
| 967 | /* delete arc from graph */ |
| 968 | |
| 969 | void glp_erase_graphcxx . . $ glp_erase_graph(fd6d4ec766750ee3).(glp_graphcxx . . $ glp_graph# *G, int v_size, int a_size); |
| 970 | /* erase graph content */ |
| 971 | |
| 972 | void glp_delete_graphcxx . . $ glp_delete_graph(10592e6c475fb878).(glp_graphcxx . . $ glp_graph# *G); |
| 973 | /* delete graph */ |
| 974 | |
| 975 | void glp_create_v_indexcxx . . $ glp_create_v_index(10592e6c475fb878).(glp_graphcxx . . $ glp_graph# *G); |
| 976 | /* create vertex name index */ |
| 977 | |
| 978 | int glp_find_vertexcxx . . $ glp_find_vertex(df29dc7bf65d5d53).(glp_graphcxx . . $ glp_graph# *G, const char *name); |
| 979 | /* find vertex by its name */ |
| 980 | |
| 981 | void glp_delete_v_indexcxx . . $ glp_delete_v_index(10592e6c475fb878).(glp_graphcxx . . $ glp_graph# *G); |
| 982 | /* delete vertex name index */ |
| 983 | |
| 984 | int glp_read_graphcxx . . $ glp_read_graph(df29dc7bf65d5d53).(glp_graphcxx . . $ glp_graph# *G, const char *fname); |
| 985 | /* read graph from plain text file */ |
| 986 | |
| 987 | int glp_write_graphcxx . . $ glp_write_graph(df29dc7bf65d5d53).(glp_graphcxx . . $ glp_graph# *G, const char *fname); |
| 988 | /* write graph to plain text file */ |
| 989 | |
| 990 | void glp_mincost_lpcxx . . $ glp_mincost_lp(dce9b0e38dfe6d30).(glp_probcxx . . $ glp_prob# *P, glp_graphcxx . . $ glp_graph# *G, int names, int v_rhs, |
| 991 | int a_low, int a_cap, int a_cost); |
| 992 | /* convert minimum cost flow problem to LP */ |
| 993 | |
| 994 | int glp_mincost_okalgcxx . . $ glp_mincost_okalg(bbe686ed8a042fa6).(glp_graphcxx . . $ glp_graph# *G, int v_rhs, int a_low, int a_cap, |
| 995 | int a_cost, double *sol, int a_x, int v_pi); |
| 996 | /* find minimum-cost flow with out-of-kilter algorithm */ |
| 997 | |
| 998 | void glp_maxflow_lpcxx . . $ glp_maxflow_lp(4cd1fad67c7f10ab).(glp_probcxx . . $ glp_prob# *P, glp_graphcxx . . $ glp_graph# *G, int names, int s, |
| 999 | int t, int a_cap); |
| 1000 | /* convert maximum flow problem to LP */ |
| 1001 | |
| 1002 | int glp_maxflow_ffalgcxx . . $ glp_maxflow_ffalg(f90572e360428330).(glp_graphcxx . . $ glp_graph# *G, int s, int t, int a_cap, |
| 1003 | double *sol, int a_x, int v_cut); |
| 1004 | /* find maximal flow with Ford-Fulkerson algorithm */ |
| 1005 | |
| 1006 | int glp_check_asnprobcxx . . $ glp_check_asnprob(9d5fec13eee488ca).(glp_graphcxx . . $ glp_graph# *G, int v_set); |
| 1007 | /* check correctness of assignment problem data */ |
| 1008 | |
| 1009 | /* assignment problem formulation: */ |
| 1010 | #define GLP_ASN_MINcxx . . $ `external/glpk/glpk.h:1010:9`! 1 /* perfect matching (minimization) */ |
| 1011 | #define GLP_ASN_MAXcxx . . $ `external/glpk/glpk.h:1011:9`! 2 /* perfect matching (maximization) */ |
| 1012 | #define GLP_ASN_MMPcxx . . $ `external/glpk/glpk.h:1012:9`! 3 /* maximum matching */ |
| 1013 | |
| 1014 | int glp_asnprob_lpcxx . . $ glp_asnprob_lp(c2866caf608217d4).(glp_probcxx . . $ glp_prob# *P, int form, glp_graphcxx . . $ glp_graph# *G, int names, |
| 1015 | int v_set, int a_cost); |
| 1016 | /* convert assignment problem to LP */ |
| 1017 | |
| 1018 | int glp_asnprob_okalgcxx . . $ glp_asnprob_okalg(206716aeaa1cb829).(int form, glp_graphcxx . . $ glp_graph# *G, int v_set, int a_cost, |
| 1019 | double *sol, int a_x); |
| 1020 | /* solve assignment problem with out-of-kilter algorithm */ |
| 1021 | |
| 1022 | int glp_asnprob_hallcxx . . $ glp_asnprob_hall(f37c6116e2dc255f).(glp_graphcxx . . $ glp_graph# *G, int v_set, int a_x); |
| 1023 | /* find bipartite matching of maximum cardinality */ |
| 1024 | |
| 1025 | double glp_cppcxx . . $ glp_cpp(9b2ffd18b8ae066b).(glp_graphcxx . . $ glp_graph# *G, int v_t, int v_es, int v_ls); |
| 1026 | /* solve critical path problem */ |
| 1027 | |
| 1028 | int glp_read_mincostcxx . . $ glp_read_mincost(2a3358880b468335).(glp_graphcxx . . $ glp_graph# *G, int v_rhs, int a_low, int a_cap, |
| 1029 | int a_cost, const char *fname); |
| 1030 | /* read min-cost flow problem data in DIMACS format */ |
| 1031 | |
| 1032 | int glp_write_mincostcxx . . $ glp_write_mincost(2a3358880b468335).(glp_graphcxx . . $ glp_graph# *G, int v_rhs, int a_low, int a_cap, |
| 1033 | int a_cost, const char *fname); |
| 1034 | /* write min-cost flow problem data in DIMACS format */ |
| 1035 | |
| 1036 | int glp_read_maxflowcxx . . $ glp_read_maxflow(e06dd7c07f5e0cde).(glp_graphcxx . . $ glp_graph# *G, int *s, int *t, int a_cap, |
| 1037 | const char *fname); |
| 1038 | /* read maximum flow problem data in DIMACS format */ |
| 1039 | |
| 1040 | int glp_write_maxflowcxx . . $ glp_write_maxflow(6a1d08e0412ded79).(glp_graphcxx . . $ glp_graph# *G, int s, int t, int a_cap, |
| 1041 | const char *fname); |
| 1042 | /* write maximum flow problem data in DIMACS format */ |
| 1043 | |
| 1044 | int glp_read_asnprobcxx . . $ glp_read_asnprob(33d52c0e6e8cedaa).(glp_graphcxx . . $ glp_graph# *G, int v_set, int a_cost, const char |
| 1045 | *fname); |
| 1046 | /* read assignment problem data in DIMACS format */ |
| 1047 | |
| 1048 | int glp_write_asnprobcxx . . $ glp_write_asnprob(33d52c0e6e8cedaa).(glp_graphcxx . . $ glp_graph# *G, int v_set, int a_cost, const char |
| 1049 | *fname); |
| 1050 | /* write assignment problem data in DIMACS format */ |
| 1051 | |
| 1052 | int glp_read_ccdatacxx . . $ glp_read_ccdata(4c671af078c78925).(glp_graphcxx . . $ glp_graph# *G, int v_wgt, const char *fname); |
| 1053 | /* read graph in DIMACS clique/coloring format */ |
| 1054 | |
| 1055 | int glp_write_ccdatacxx . . $ glp_write_ccdata(4c671af078c78925).(glp_graphcxx . . $ glp_graph# *G, int v_wgt, const char *fname); |
| 1056 | /* write graph in DIMACS clique/coloring format */ |
| 1057 | |
| 1058 | int glp_netgencxx . . $ glp_netgen(5d9992552258aab3).(glp_graphcxx . . $ glp_graph# *G, int v_rhs, int a_cap, int a_cost, |
| 1059 | const int parm[1+15]); |
| 1060 | /* Klingman's network problem generator */ |
| 1061 | |
| 1062 | int glp_gridgencxx . . $ glp_gridgen(5d9992552258aab3).(glp_graphcxx . . $ glp_graph# *G, int v_rhs, int a_cap, int a_cost, |
| 1063 | const int parm[1+14]); |
| 1064 | /* grid-like network problem generator */ |
| 1065 | |
| 1066 | int glp_rmfgencxx . . $ glp_rmfgen(d609607bcb7e5db3).(glp_graphcxx . . $ glp_graph# *G, int *s, int *t, int a_cap, |
| 1067 | const int parm[1+5]); |
| 1068 | /* Goldfarb's maximum flow problem generator */ |
| 1069 | |
| 1070 | int glp_weak_compcxx . . $ glp_weak_comp(9d5fec13eee488ca).(glp_graphcxx . . $ glp_graph# *G, int v_num); |
| 1071 | /* find all weakly connected components of graph */ |
| 1072 | |
| 1073 | int glp_strong_compcxx . . $ glp_strong_comp(9d5fec13eee488ca).(glp_graphcxx . . $ glp_graph# *G, int v_num); |
| 1074 | /* find all strongly connected components of graph */ |
| 1075 | |
| 1076 | int glp_top_sortcxx . . $ glp_top_sort(9d5fec13eee488ca).(glp_graphcxx . . $ glp_graph# *G, int v_num); |
| 1077 | /* topological sorting of acyclic digraph */ |
| 1078 | |
| 1079 | int glp_wclique_exactcxx . . $ glp_wclique_exact(9be8a0802dabcdd1).(glp_graphcxx . . $ glp_graph# *G, int v_wgt, double *sol, int v_set); |
| 1080 | /* find maximum weight clique with exact algorithm */ |
| 1081 | |
| 1082 | /*********************************************************************** |
| 1083 | * NOTE: All symbols defined below are obsolete and kept here only for |
| 1084 | * backward compatibility. |
| 1085 | ***********************************************************************/ |
| 1086 | |
| 1087 | #define LPXcxx . . $ `external/glpk/glpk.h:1087:9`! glp_prob |
| 1088 | |
| 1089 | /* problem class: */ |
| 1090 | #define LPX_LPcxx . . $ `external/glpk/glpk.h:1090:9`! 100 /* linear programming (LP) */ |
| 1091 | #define LPX_MIPcxx . . $ `external/glpk/glpk.h:1091:9`! 101 /* mixed integer programming (MIP) */ |
| 1092 | |
| 1093 | /* type of auxiliary/structural variable: */ |
| 1094 | #define LPX_FRcxx . . $ `external/glpk/glpk.h:1094:9`! 110 /* free variable */ |
| 1095 | #define LPX_LOcxx . . $ `external/glpk/glpk.h:1095:9`! 111 /* variable with lower bound */ |
| 1096 | #define LPX_UPcxx . . $ `external/glpk/glpk.h:1096:9`! 112 /* variable with upper bound */ |
| 1097 | #define LPX_DBcxx . . $ `external/glpk/glpk.h:1097:9`! 113 /* double-bounded variable */ |
| 1098 | #define LPX_FXcxx . . $ `external/glpk/glpk.h:1098:9`! 114 /* fixed variable */ |
| 1099 | |
| 1100 | /* optimization direction flag: */ |
| 1101 | #define LPX_MINcxx . . $ `external/glpk/glpk.h:1101:9`! 120 /* minimization */ |
| 1102 | #define LPX_MAXcxx . . $ `external/glpk/glpk.h:1102:9`! 121 /* maximization */ |
| 1103 | |
| 1104 | /* status of primal basic solution: */ |
| 1105 | #define LPX_P_UNDEFcxx . . $ `external/glpk/glpk.h:1105:9`! 132 /* primal solution is undefined */ |
| 1106 | #define LPX_P_FEAScxx . . $ `external/glpk/glpk.h:1106:9`! 133 /* solution is primal feasible */ |
| 1107 | #define LPX_P_INFEAScxx . . $ `external/glpk/glpk.h:1107:9`! 134 /* solution is primal infeasible */ |
| 1108 | #define LPX_P_NOFEAScxx . . $ `external/glpk/glpk.h:1108:9`! 135 /* no primal feasible solution exists */ |
| 1109 | |
| 1110 | /* status of dual basic solution: */ |
| 1111 | #define LPX_D_UNDEFcxx . . $ `external/glpk/glpk.h:1111:9`! 136 /* dual solution is undefined */ |
| 1112 | #define LPX_D_FEAScxx . . $ `external/glpk/glpk.h:1112:9`! 137 /* solution is dual feasible */ |
| 1113 | #define LPX_D_INFEAScxx . . $ `external/glpk/glpk.h:1113:9`! 138 /* solution is dual infeasible */ |
| 1114 | #define LPX_D_NOFEAScxx . . $ `external/glpk/glpk.h:1114:9`! 139 /* no dual feasible solution exists */ |
| 1115 | |
| 1116 | /* status of auxiliary/structural variable: */ |
| 1117 | #define LPX_BScxx . . $ `external/glpk/glpk.h:1117:9`! 140 /* basic variable */ |
| 1118 | #define LPX_NLcxx . . $ `external/glpk/glpk.h:1118:9`! 141 /* non-basic variable on lower bound */ |
| 1119 | #define LPX_NUcxx . . $ `external/glpk/glpk.h:1119:9`! 142 /* non-basic variable on upper bound */ |
| 1120 | #define LPX_NFcxx . . $ `external/glpk/glpk.h:1120:9`! 143 /* non-basic free variable */ |
| 1121 | #define LPX_NScxx . . $ `external/glpk/glpk.h:1121:9`! 144 /* non-basic fixed variable */ |
| 1122 | |
| 1123 | /* status of interior-point solution: */ |
| 1124 | #define LPX_T_UNDEFcxx . . $ `external/glpk/glpk.h:1124:9`! 150 /* interior solution is undefined */ |
| 1125 | #define LPX_T_OPTcxx . . $ `external/glpk/glpk.h:1125:9`! 151 /* interior solution is optimal */ |
| 1126 | |
| 1127 | /* kind of structural variable: */ |
| 1128 | #define LPX_CVcxx . . $ `external/glpk/glpk.h:1128:9`! 160 /* continuous variable */ |
| 1129 | #define LPX_IVcxx . . $ `external/glpk/glpk.h:1129:9`! 161 /* integer variable */ |
| 1130 | |
| 1131 | /* status of integer solution: */ |
| 1132 | #define LPX_I_UNDEFcxx . . $ `external/glpk/glpk.h:1132:9`! 170 /* integer solution is undefined */ |
| 1133 | #define LPX_I_OPTcxx . . $ `external/glpk/glpk.h:1133:9`! 171 /* integer solution is optimal */ |
| 1134 | #define LPX_I_FEAScxx . . $ `external/glpk/glpk.h:1134:9`! 172 /* integer solution is feasible */ |
| 1135 | #define LPX_I_NOFEAScxx . . $ `external/glpk/glpk.h:1135:9`! 173 /* no integer solution exists */ |
| 1136 | |
| 1137 | /* status codes reported by the routine lpx_get_status: */ |
| 1138 | #define LPX_OPTcxx . . $ `external/glpk/glpk.h:1138:9`! 180 /* optimal */ |
| 1139 | #define LPX_FEAScxx . . $ `external/glpk/glpk.h:1139:9`! 181 /* feasible */ |
| 1140 | #define LPX_INFEAScxx . . $ `external/glpk/glpk.h:1140:9`! 182 /* infeasible */ |
| 1141 | #define LPX_NOFEAScxx . . $ `external/glpk/glpk.h:1141:9`! 183 /* no feasible */ |
| 1142 | #define LPX_UNBNDcxx . . $ `external/glpk/glpk.h:1142:9`! 184 /* unbounded */ |
| 1143 | #define LPX_UNDEFcxx . . $ `external/glpk/glpk.h:1143:9`! 185 /* undefined */ |
| 1144 | |
| 1145 | /* exit codes returned by solver routines: */ |
| 1146 | #define LPX_E_OKcxx . . $ `external/glpk/glpk.h:1146:9`! 200 /* success */ |
| 1147 | #define LPX_E_EMPTYcxx . . $ `external/glpk/glpk.h:1147:9`! 201 /* empty problem */ |
| 1148 | #define LPX_E_BADBcxx . . $ `external/glpk/glpk.h:1148:9`! 202 /* invalid initial basis */ |
| 1149 | #define LPX_E_INFEAScxx . . $ `external/glpk/glpk.h:1149:9`! 203 /* infeasible initial solution */ |
| 1150 | #define LPX_E_FAULTcxx . . $ `external/glpk/glpk.h:1150:9`! 204 /* unable to start the search */ |
| 1151 | #define LPX_E_OBJLLcxx . . $ `external/glpk/glpk.h:1151:9`! 205 /* objective lower limit reached */ |
| 1152 | #define LPX_E_OBJULcxx . . $ `external/glpk/glpk.h:1152:9`! 206 /* objective upper limit reached */ |
| 1153 | #define LPX_E_ITLIMcxx . . $ `external/glpk/glpk.h:1153:9`! 207 /* iterations limit exhausted */ |
| 1154 | #define LPX_E_TMLIMcxx . . $ `external/glpk/glpk.h:1154:9`! 208 /* time limit exhausted */ |
| 1155 | #define LPX_E_NOFEAScxx . . $ `external/glpk/glpk.h:1155:9`! 209 /* no feasible solution */ |
| 1156 | #define LPX_E_INSTABcxx . . $ `external/glpk/glpk.h:1156:9`! 210 /* numerical instability */ |
| 1157 | #define LPX_E_SINGcxx . . $ `external/glpk/glpk.h:1157:9`! 211 /* problems with basis matrix */ |
| 1158 | #define LPX_E_NOCONVcxx . . $ `external/glpk/glpk.h:1158:9`! 212 /* no convergence (interior) */ |
| 1159 | #define LPX_E_NOPFScxx . . $ `external/glpk/glpk.h:1159:9`! 213 /* no primal feas. sol. (LP presolver) */ |
| 1160 | #define LPX_E_NODFScxx . . $ `external/glpk/glpk.h:1160:9`! 214 /* no dual feas. sol. (LP presolver) */ |
| 1161 | #define LPX_E_MIPGAPcxx . . $ `external/glpk/glpk.h:1161:9`! 215 /* relative mip gap tolerance reached */ |
| 1162 | |
| 1163 | /* control parameter identifiers: */ |
| 1164 | #define LPX_K_MSGLEVcxx . . $ `external/glpk/glpk.h:1164:9`! 300 /* lp->msg_lev */ |
| 1165 | #define LPX_K_SCALEcxx . . $ `external/glpk/glpk.h:1165:9`! 301 /* lp->scale */ |
| 1166 | #define LPX_K_DUALcxx . . $ `external/glpk/glpk.h:1166:9`! 302 /* lp->dual */ |
| 1167 | #define LPX_K_PRICEcxx . . $ `external/glpk/glpk.h:1167:9`! 303 /* lp->price */ |
| 1168 | #define LPX_K_RELAXcxx . . $ `external/glpk/glpk.h:1168:9`! 304 /* lp->relax */ |
| 1169 | #define LPX_K_TOLBNDcxx . . $ `external/glpk/glpk.h:1169:9`! 305 /* lp->tol_bnd */ |
| 1170 | #define LPX_K_TOLDJcxx . . $ `external/glpk/glpk.h:1170:9`! 306 /* lp->tol_dj */ |
| 1171 | #define LPX_K_TOLPIVcxx . . $ `external/glpk/glpk.h:1171:9`! 307 /* lp->tol_piv */ |
| 1172 | #define LPX_K_ROUNDcxx . . $ `external/glpk/glpk.h:1172:9`! 308 /* lp->round */ |
| 1173 | #define LPX_K_OBJLLcxx . . $ `external/glpk/glpk.h:1173:9`! 309 /* lp->obj_ll */ |
| 1174 | #define LPX_K_OBJULcxx . . $ `external/glpk/glpk.h:1174:9`! 310 /* lp->obj_ul */ |
| 1175 | #define LPX_K_ITLIMcxx . . $ `external/glpk/glpk.h:1175:9`! 311 /* lp->it_lim */ |
| 1176 | #define LPX_K_ITCNTcxx . . $ `external/glpk/glpk.h:1176:9`! 312 /* lp->it_cnt */ |
| 1177 | #define LPX_K_TMLIMcxx . . $ `external/glpk/glpk.h:1177:9`! 313 /* lp->tm_lim */ |
| 1178 | #define LPX_K_OUTFRQcxx . . $ `external/glpk/glpk.h:1178:9`! 314 /* lp->out_frq */ |
| 1179 | #define LPX_K_OUTDLYcxx . . $ `external/glpk/glpk.h:1179:9`! 315 /* lp->out_dly */ |
| 1180 | #define LPX_K_BRANCHcxx . . $ `external/glpk/glpk.h:1180:9`! 316 /* lp->branch */ |
| 1181 | #define LPX_K_BTRACKcxx . . $ `external/glpk/glpk.h:1181:9`! 317 /* lp->btrack */ |
| 1182 | #define LPX_K_TOLINTcxx . . $ `external/glpk/glpk.h:1182:9`! 318 /* lp->tol_int */ |
| 1183 | #define LPX_K_TOLOBJcxx . . $ `external/glpk/glpk.h:1183:9`! 319 /* lp->tol_obj */ |
| 1184 | #define LPX_K_MPSINFOcxx . . $ `external/glpk/glpk.h:1184:9`! 320 /* lp->mps_info */ |
| 1185 | #define LPX_K_MPSOBJcxx . . $ `external/glpk/glpk.h:1185:9`! 321 /* lp->mps_obj */ |
| 1186 | #define LPX_K_MPSORIGcxx . . $ `external/glpk/glpk.h:1186:9`! 322 /* lp->mps_orig */ |
| 1187 | #define LPX_K_MPSWIDEcxx . . $ `external/glpk/glpk.h:1187:9`! 323 /* lp->mps_wide */ |
| 1188 | #define LPX_K_MPSFREEcxx . . $ `external/glpk/glpk.h:1188:9`! 324 /* lp->mps_free */ |
| 1189 | #define LPX_K_MPSSKIPcxx . . $ `external/glpk/glpk.h:1189:9`! 325 /* lp->mps_skip */ |
| 1190 | #define LPX_K_LPTORIGcxx . . $ `external/glpk/glpk.h:1190:9`! 326 /* lp->lpt_orig */ |
| 1191 | #define LPX_K_PRESOLcxx . . $ `external/glpk/glpk.h:1191:9`! 327 /* lp->presol */ |
| 1192 | #define LPX_K_BINARIZEcxx . . $ `external/glpk/glpk.h:1192:9`! 328 /* lp->binarize */ |
| 1193 | #define LPX_K_USECUTScxx . . $ `external/glpk/glpk.h:1193:9`! 329 /* lp->use_cuts */ |
| 1194 | #define LPX_K_BFTYPEcxx . . $ `external/glpk/glpk.h:1194:9`! 330 /* lp->bfcp->type */ |
| 1195 | #define LPX_K_MIPGAPcxx . . $ `external/glpk/glpk.h:1195:9`! 331 /* lp->mip_gap */ |
| 1196 | |
| 1197 | #define LPX_C_COVERcxx . . $ `external/glpk/glpk.h:1197:9`! 0x01 /* mixed cover cuts */ |
| 1198 | #define LPX_C_CLIQUEcxx . . $ `external/glpk/glpk.h:1198:9`! 0x02 /* clique cuts */ |
| 1199 | #define LPX_C_GOMORYcxx . . $ `external/glpk/glpk.h:1199:9`! 0x04 /* Gomory's mixed integer cuts */ |
| 1200 | #define LPX_C_MIRcxx . . $ `external/glpk/glpk.h:1200:9`! 0x08 /* mixed integer rounding cuts */ |
| 1201 | #define LPX_C_ALLcxx . . $ `external/glpk/glpk.h:1201:9`! 0xFF /* all cuts */ |
| 1202 | |
| 1203 | typedef structcxx . . $ $anonymous_type_2d15b5456314bbc5_11# |
| 1204 | { /* this structure contains results reported by the routines which |
| 1205 | checks Karush-Kuhn-Tucker conditions (for details see comments |
| 1206 | to those routines) */ |
| 1207 | /*--------------------------------------------------------------*/ |
| 1208 | /* xR - A * xS = 0 (KKT.PE) */ |
| 1209 | double pe_ae_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_11#pe_ae_max.; |
| 1210 | /* largest absolute error */ |
| 1211 | int pe_ae_rowcxx . . $ $anonymous_type_2d15b5456314bbc5_11#pe_ae_row.; |
| 1212 | /* number of row with largest absolute error */ |
| 1213 | double pe_re_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_11#pe_re_max.; |
| 1214 | /* largest relative error */ |
| 1215 | int pe_re_rowcxx . . $ $anonymous_type_2d15b5456314bbc5_11#pe_re_row.; |
| 1216 | /* number of row with largest relative error */ |
| 1217 | int pe_qualitycxx . . $ $anonymous_type_2d15b5456314bbc5_11#pe_quality.; |
| 1218 | /* quality of primal solution: |
| 1219 | 'H' - high |
| 1220 | 'M' - medium |
| 1221 | 'L' - low |
| 1222 | '?' - primal solution is wrong */ |
| 1223 | /*--------------------------------------------------------------*/ |
| 1224 | /* l[k] <= x[k] <= u[k] (KKT.PB) */ |
| 1225 | double pb_ae_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_11#pb_ae_max.; |
| 1226 | /* largest absolute error */ |
| 1227 | int pb_ae_indcxx . . $ $anonymous_type_2d15b5456314bbc5_11#pb_ae_ind.; |
| 1228 | /* number of variable with largest absolute error */ |
| 1229 | double pb_re_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_11#pb_re_max.; |
| 1230 | /* largest relative error */ |
| 1231 | int pb_re_indcxx . . $ $anonymous_type_2d15b5456314bbc5_11#pb_re_ind.; |
| 1232 | /* number of variable with largest relative error */ |
| 1233 | int pb_qualitycxx . . $ $anonymous_type_2d15b5456314bbc5_11#pb_quality.; |
| 1234 | /* quality of primal feasibility: |
| 1235 | 'H' - high |
| 1236 | 'M' - medium |
| 1237 | 'L' - low |
| 1238 | '?' - primal solution is infeasible */ |
| 1239 | /*--------------------------------------------------------------*/ |
| 1240 | /* A' * (dR - cR) + (dS - cS) = 0 (KKT.DE) */ |
| 1241 | double de_ae_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_11#de_ae_max.; |
| 1242 | /* largest absolute error */ |
| 1243 | int de_ae_colcxx . . $ $anonymous_type_2d15b5456314bbc5_11#de_ae_col.; |
| 1244 | /* number of column with largest absolute error */ |
| 1245 | double de_re_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_11#de_re_max.; |
| 1246 | /* largest relative error */ |
| 1247 | int de_re_colcxx . . $ $anonymous_type_2d15b5456314bbc5_11#de_re_col.; |
| 1248 | /* number of column with largest relative error */ |
| 1249 | int de_qualitycxx . . $ $anonymous_type_2d15b5456314bbc5_11#de_quality.; |
| 1250 | /* quality of dual solution: |
| 1251 | 'H' - high |
| 1252 | 'M' - medium |
| 1253 | 'L' - low |
| 1254 | '?' - dual solution is wrong */ |
| 1255 | /*--------------------------------------------------------------*/ |
| 1256 | /* d[k] >= 0 or d[k] <= 0 (KKT.DB) */ |
| 1257 | double db_ae_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_11#db_ae_max.; |
| 1258 | /* largest absolute error */ |
| 1259 | int db_ae_indcxx . . $ $anonymous_type_2d15b5456314bbc5_11#db_ae_ind.; |
| 1260 | /* number of variable with largest absolute error */ |
| 1261 | double db_re_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_11#db_re_max.; |
| 1262 | /* largest relative error */ |
| 1263 | int db_re_indcxx . . $ $anonymous_type_2d15b5456314bbc5_11#db_re_ind.; |
| 1264 | /* number of variable with largest relative error */ |
| 1265 | int db_qualitycxx . . $ $anonymous_type_2d15b5456314bbc5_11#db_quality.; |
| 1266 | /* quality of dual feasibility: |
| 1267 | 'H' - high |
| 1268 | 'M' - medium |
| 1269 | 'L' - low |
| 1270 | '?' - dual solution is infeasible */ |
| 1271 | /*--------------------------------------------------------------*/ |
| 1272 | /* (x[k] - bound of x[k]) * d[k] = 0 (KKT.CS) */ |
| 1273 | double cs_ae_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_11#cs_ae_max.; |
| 1274 | /* largest absolute error */ |
| 1275 | int cs_ae_indcxx . . $ $anonymous_type_2d15b5456314bbc5_11#cs_ae_ind.; |
| 1276 | /* number of variable with largest absolute error */ |
| 1277 | double cs_re_maxcxx . . $ $anonymous_type_2d15b5456314bbc5_11#cs_re_max.; |
| 1278 | /* largest relative error */ |
| 1279 | int cs_re_indcxx . . $ $anonymous_type_2d15b5456314bbc5_11#cs_re_ind.; |
| 1280 | /* number of variable with largest relative error */ |
| 1281 | int cs_qualitycxx . . $ $anonymous_type_2d15b5456314bbc5_11#cs_quality.; |
| 1282 | /* quality of complementary slackness: |
| 1283 | 'H' - high |
| 1284 | 'M' - medium |
| 1285 | 'L' - low |
| 1286 | '?' - primal and dual solutions are not complementary */ |
| 1287 | } LPXKKTcxx . . $ LPXKKT#; |
| 1288 | |
| 1289 | #define lpx_create_probcxx . . $ `external/glpk/glpk.h:1289:9`! _glp_lpx_create_prob |
| 1290 | LPXcxx . . $ glp_prob# *lpx_create_probcxx . . $ `external/glpk/glpk.h:1289:9`!(void); |
| 1291 | /* create problem object */ |
| 1292 | |
| 1293 | #define lpx_set_prob_namecxx . . $ `external/glpk/glpk.h:1293:9`! _glp_lpx_set_prob_name |
| 1294 | void lpx_set_prob_namecxx . . $ `external/glpk/glpk.h:1293:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, const char *name); |
| 1295 | /* assign (change) problem name */ |
| 1296 | |
| 1297 | #define lpx_set_obj_namecxx . . $ `external/glpk/glpk.h:1297:9`! _glp_lpx_set_obj_name |
| 1298 | void lpx_set_obj_namecxx . . $ `external/glpk/glpk.h:1297:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, const char *name); |
| 1299 | /* assign (change) objective function name */ |
| 1300 | |
| 1301 | #define lpx_set_obj_dircxx . . $ `external/glpk/glpk.h:1301:9`! _glp_lpx_set_obj_dir |
| 1302 | void lpx_set_obj_dircxx . . $ `external/glpk/glpk.h:1301:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int dir); |
| 1303 | /* set (change) optimization direction flag */ |
| 1304 | |
| 1305 | #define lpx_add_rowscxx . . $ `external/glpk/glpk.h:1305:9`! _glp_lpx_add_rows |
| 1306 | int lpx_add_rowscxx . . $ `external/glpk/glpk.h:1305:9`!(LPXcxx . . $ glp_prob# *lp, int nrs); |
| 1307 | /* add new rows to problem object */ |
| 1308 | |
| 1309 | #define lpx_add_colscxx . . $ `external/glpk/glpk.h:1309:9`! _glp_lpx_add_cols |
| 1310 | int lpx_add_colscxx . . $ `external/glpk/glpk.h:1309:9`!(LPXcxx . . $ glp_prob# *lp, int ncs); |
| 1311 | /* add new columns to problem object */ |
| 1312 | |
| 1313 | #define lpx_set_row_namecxx . . $ `external/glpk/glpk.h:1313:9`! _glp_lpx_set_row_name |
| 1314 | void lpx_set_row_namecxx . . $ `external/glpk/glpk.h:1313:9`!(LPXcxx . . $ glp_prob# *lp, int i, const char *name); |
| 1315 | /* assign (change) row name */ |
| 1316 | |
| 1317 | #define lpx_set_col_namecxx . . $ `external/glpk/glpk.h:1317:9`! _glp_lpx_set_col_name |
| 1318 | void lpx_set_col_namecxx . . $ `external/glpk/glpk.h:1317:9`!(LPXcxx . . $ glp_prob# *lp, int j, const char *name); |
| 1319 | /* assign (change) column name */ |
| 1320 | |
| 1321 | #define lpx_set_row_bndscxx . . $ `external/glpk/glpk.h:1321:9`! _glp_lpx_set_row_bnds |
| 1322 | void lpx_set_row_bndscxx . . $ `external/glpk/glpk.h:1321:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i, int type, double lb, double ub); |
| 1323 | /* set (change) row bounds */ |
| 1324 | |
| 1325 | #define lpx_set_col_bndscxx . . $ `external/glpk/glpk.h:1325:9`! _glp_lpx_set_col_bnds |
| 1326 | void lpx_set_col_bndscxx . . $ `external/glpk/glpk.h:1325:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int j, int type, double lb, double ub); |
| 1327 | /* set (change) column bounds */ |
| 1328 | |
| 1329 | #define lpx_set_obj_coefcxx . . $ `external/glpk/glpk.h:1329:9`! _glp_lpx_set_obj_coef |
| 1330 | void lpx_set_obj_coefcxx . . $ `external/glpk/glpk.h:1329:9`!(glp_probcxx . . $ glp_prob# *lp, int j, double coef); |
| 1331 | /* set (change) obj. coefficient or constant term */ |
| 1332 | |
| 1333 | #define lpx_set_mat_rowcxx . . $ `external/glpk/glpk.h:1333:9`! _glp_lpx_set_mat_row |
| 1334 | void lpx_set_mat_rowcxx . . $ `external/glpk/glpk.h:1333:9`!(LPXcxx . . $ glp_prob# *lp, int i, int len, const int ind[], |
| 1335 | const double val[]); |
| 1336 | /* set (replace) row of the constraint matrix */ |
| 1337 | |
| 1338 | #define lpx_set_mat_colcxx . . $ `external/glpk/glpk.h:1338:9`! _glp_lpx_set_mat_col |
| 1339 | void lpx_set_mat_colcxx . . $ `external/glpk/glpk.h:1338:9`!(LPXcxx . . $ glp_prob# *lp, int j, int len, const int ind[], |
| 1340 | const double val[]); |
| 1341 | /* set (replace) column of the constraint matrix */ |
| 1342 | |
| 1343 | #define lpx_load_matrixcxx . . $ `external/glpk/glpk.h:1343:9`! _glp_lpx_load_matrix |
| 1344 | void lpx_load_matrixcxx . . $ `external/glpk/glpk.h:1343:9`!(LPXcxx . . $ glp_prob# *lp, int ne, const int ia[], const int ja[], |
| 1345 | const double ar[]); |
| 1346 | /* load (replace) the whole constraint matrix */ |
| 1347 | |
| 1348 | #define lpx_del_rowscxx . . $ `external/glpk/glpk.h:1348:9`! _glp_lpx_del_rows |
| 1349 | void lpx_del_rowscxx . . $ `external/glpk/glpk.h:1348:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int nrs, const int num[]); |
| 1350 | /* delete specified rows from problem object */ |
| 1351 | |
| 1352 | #define lpx_del_colscxx . . $ `external/glpk/glpk.h:1352:9`! _glp_lpx_del_cols |
| 1353 | void lpx_del_colscxx . . $ `external/glpk/glpk.h:1352:9`!(LPXcxx . . $ glp_prob# *lp, int ncs, const int num[]); |
| 1354 | /* delete specified columns from problem object */ |
| 1355 | |
| 1356 | #define lpx_delete_probcxx . . $ `external/glpk/glpk.h:1356:9`! _glp_lpx_delete_prob |
| 1357 | void lpx_delete_probcxx . . $ `external/glpk/glpk.h:1356:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1358 | /* delete problem object */ |
| 1359 | |
| 1360 | #define lpx_get_prob_namecxx . . $ `external/glpk/glpk.h:1360:9`! _glp_lpx_get_prob_name |
| 1361 | const char *lpx_get_prob_namecxx . . $ `external/glpk/glpk.h:1360:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1362 | /* retrieve problem name */ |
| 1363 | |
| 1364 | #define lpx_get_obj_namecxx . . $ `external/glpk/glpk.h:1364:9`! _glp_lpx_get_obj_name |
| 1365 | const char *lpx_get_obj_namecxx . . $ `external/glpk/glpk.h:1364:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1366 | /* retrieve objective function name */ |
| 1367 | |
| 1368 | #define lpx_get_obj_dircxx . . $ `external/glpk/glpk.h:1368:9`! _glp_lpx_get_obj_dir |
| 1369 | int lpx_get_obj_dircxx . . $ `external/glpk/glpk.h:1368:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1370 | /* retrieve optimization direction flag */ |
| 1371 | |
| 1372 | #define lpx_get_num_rowscxx . . $ `external/glpk/glpk.h:1372:9`! _glp_lpx_get_num_rows |
| 1373 | int lpx_get_num_rowscxx . . $ `external/glpk/glpk.h:1372:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1374 | /* retrieve number of rows */ |
| 1375 | |
| 1376 | #define lpx_get_num_colscxx . . $ `external/glpk/glpk.h:1376:9`! _glp_lpx_get_num_cols |
| 1377 | int lpx_get_num_colscxx . . $ `external/glpk/glpk.h:1376:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1378 | /* retrieve number of columns */ |
| 1379 | |
| 1380 | #define lpx_get_row_namecxx . . $ `external/glpk/glpk.h:1380:9`! _glp_lpx_get_row_name |
| 1381 | const char *lpx_get_row_namecxx . . $ `external/glpk/glpk.h:1380:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i); |
| 1382 | /* retrieve row name */ |
| 1383 | |
| 1384 | #define lpx_get_col_namecxx . . $ `external/glpk/glpk.h:1384:9`! _glp_lpx_get_col_name |
| 1385 | const char *lpx_get_col_namecxx . . $ `external/glpk/glpk.h:1384:9`!(LPXcxx . . $ glp_prob# *lp, int j); |
| 1386 | /* retrieve column name */ |
| 1387 | |
| 1388 | #define lpx_get_row_typecxx . . $ `external/glpk/glpk.h:1388:9`! _glp_lpx_get_row_type |
| 1389 | int lpx_get_row_typecxx . . $ `external/glpk/glpk.h:1388:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i); |
| 1390 | /* retrieve row type */ |
| 1391 | |
| 1392 | #define lpx_get_row_lbcxx . . $ `external/glpk/glpk.h:1392:9`! _glp_lpx_get_row_lb |
| 1393 | double lpx_get_row_lbcxx . . $ `external/glpk/glpk.h:1392:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i); |
| 1394 | /* retrieve row lower bound */ |
| 1395 | |
| 1396 | #define lpx_get_row_ubcxx . . $ `external/glpk/glpk.h:1396:9`! _glp_lpx_get_row_ub |
| 1397 | double lpx_get_row_ubcxx . . $ `external/glpk/glpk.h:1396:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i); |
| 1398 | /* retrieve row upper bound */ |
| 1399 | |
| 1400 | #define lpx_get_row_bndscxx . . $ `external/glpk/glpk.h:1400:9`! _glp_lpx_get_row_bnds |
| 1401 | void lpx_get_row_bndscxx . . $ `external/glpk/glpk.h:1400:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i, int *typx, double *lb, |
| 1402 | double *ub); |
| 1403 | /* retrieve row bounds */ |
| 1404 | |
| 1405 | #define lpx_get_col_typecxx . . $ `external/glpk/glpk.h:1405:9`! _glp_lpx_get_col_type |
| 1406 | int lpx_get_col_typecxx . . $ `external/glpk/glpk.h:1405:9`!(LPXcxx . . $ glp_prob# *lp, int j); |
| 1407 | /* retrieve column type */ |
| 1408 | |
| 1409 | #define lpx_get_col_lbcxx . . $ `external/glpk/glpk.h:1409:9`! _glp_lpx_get_col_lb |
| 1410 | double lpx_get_col_lbcxx . . $ `external/glpk/glpk.h:1409:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int j); |
| 1411 | /* retrieve column lower bound */ |
| 1412 | |
| 1413 | #define lpx_get_col_ubcxx . . $ `external/glpk/glpk.h:1413:9`! _glp_lpx_get_col_ub |
| 1414 | double lpx_get_col_ubcxx . . $ `external/glpk/glpk.h:1413:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int j); |
| 1415 | /* retrieve column upper bound */ |
| 1416 | |
| 1417 | #define lpx_get_col_bndscxx . . $ `external/glpk/glpk.h:1417:9`! _glp_lpx_get_col_bnds |
| 1418 | void lpx_get_col_bndscxx . . $ `external/glpk/glpk.h:1417:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int j, int *typx, double *lb, |
| 1419 | double *ub); |
| 1420 | /* retrieve column bounds */ |
| 1421 | |
| 1422 | #define lpx_get_obj_coefcxx . . $ `external/glpk/glpk.h:1422:9`! _glp_lpx_get_obj_coef |
| 1423 | double lpx_get_obj_coefcxx . . $ `external/glpk/glpk.h:1422:9`!(LPXcxx . . $ glp_prob# *lp, int j); |
| 1424 | /* retrieve obj. coefficient or constant term */ |
| 1425 | |
| 1426 | #define lpx_get_num_nzcxx . . $ `external/glpk/glpk.h:1426:9`! _glp_lpx_get_num_nz |
| 1427 | int lpx_get_num_nzcxx . . $ `external/glpk/glpk.h:1426:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1428 | /* retrieve number of constraint coefficients */ |
| 1429 | |
| 1430 | #define lpx_get_mat_rowcxx . . $ `external/glpk/glpk.h:1430:9`! _glp_lpx_get_mat_row |
| 1431 | int lpx_get_mat_rowcxx . . $ `external/glpk/glpk.h:1430:9`!(LPXcxx . . $ glp_prob# *lp, int i, int ind[], double val[]); |
| 1432 | /* retrieve row of the constraint matrix */ |
| 1433 | |
| 1434 | #define lpx_get_mat_colcxx . . $ `external/glpk/glpk.h:1434:9`! _glp_lpx_get_mat_col |
| 1435 | int lpx_get_mat_colcxx . . $ `external/glpk/glpk.h:1434:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int j, int ind[], double val[]); |
| 1436 | /* retrieve column of the constraint matrix */ |
| 1437 | |
| 1438 | #define lpx_create_indexcxx . . $ `external/glpk/glpk.h:1438:9`! _glp_lpx_create_index |
| 1439 | void lpx_create_indexcxx . . $ `external/glpk/glpk.h:1438:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1440 | /* create the name index */ |
| 1441 | |
| 1442 | #define lpx_find_rowcxx . . $ `external/glpk/glpk.h:1442:9`! _glp_lpx_find_row |
| 1443 | int lpx_find_rowcxx . . $ `external/glpk/glpk.h:1442:9`!(LPXcxx . . $ glp_prob# *lp, const char *name); |
| 1444 | /* find row by its name */ |
| 1445 | |
| 1446 | #define lpx_find_colcxx . . $ `external/glpk/glpk.h:1446:9`! _glp_lpx_find_col |
| 1447 | int lpx_find_colcxx . . $ `external/glpk/glpk.h:1446:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, const char *name); |
| 1448 | /* find column by its name */ |
| 1449 | |
| 1450 | #define lpx_delete_indexcxx . . $ `external/glpk/glpk.h:1450:9`! _glp_lpx_delete_index |
| 1451 | void lpx_delete_indexcxx . . $ `external/glpk/glpk.h:1450:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1452 | /* delete the name index */ |
| 1453 | |
| 1454 | #define lpx_scale_probcxx . . $ `external/glpk/glpk.h:1454:9`! _glp_lpx_scale_prob |
| 1455 | void lpx_scale_probcxx . . $ `external/glpk/glpk.h:1454:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1456 | /* scale problem data */ |
| 1457 | |
| 1458 | #define lpx_unscale_probcxx . . $ `external/glpk/glpk.h:1458:9`! _glp_lpx_unscale_prob |
| 1459 | void lpx_unscale_probcxx . . $ `external/glpk/glpk.h:1458:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1460 | /* unscale problem data */ |
| 1461 | |
| 1462 | #define lpx_set_row_statcxx . . $ `external/glpk/glpk.h:1462:9`! _glp_lpx_set_row_stat |
| 1463 | void lpx_set_row_statcxx . . $ `external/glpk/glpk.h:1462:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i, int stat); |
| 1464 | /* set (change) row status */ |
| 1465 | |
| 1466 | #define lpx_set_col_statcxx . . $ `external/glpk/glpk.h:1466:9`! _glp_lpx_set_col_stat |
| 1467 | void lpx_set_col_statcxx . . $ `external/glpk/glpk.h:1466:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int j, int stat); |
| 1468 | /* set (change) column status */ |
| 1469 | |
| 1470 | #define lpx_std_basiscxx . . $ `external/glpk/glpk.h:1470:9`! _glp_lpx_std_basis |
| 1471 | void lpx_std_basiscxx . . $ `external/glpk/glpk.h:1470:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1472 | /* construct standard initial LP basis */ |
| 1473 | |
| 1474 | #define lpx_adv_basiscxx . . $ `external/glpk/glpk.h:1474:9`! _glp_lpx_adv_basis |
| 1475 | void lpx_adv_basiscxx . . $ `external/glpk/glpk.h:1474:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1476 | /* construct advanced initial LP basis */ |
| 1477 | |
| 1478 | #define lpx_cpx_basiscxx . . $ `external/glpk/glpk.h:1478:9`! _glp_lpx_cpx_basis |
| 1479 | void lpx_cpx_basiscxx . . $ `external/glpk/glpk.h:1478:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1480 | /* construct Bixby's initial LP basis */ |
| 1481 | |
| 1482 | #define lpx_simplexcxx . . $ `external/glpk/glpk.h:1482:9`! _glp_lpx_simplex |
| 1483 | int lpx_simplexcxx . . $ `external/glpk/glpk.h:1482:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1484 | /* easy-to-use driver to the simplex method */ |
| 1485 | |
| 1486 | #define lpx_exactcxx . . $ `external/glpk/glpk.h:1486:9`! _glp_lpx_exact |
| 1487 | int lpx_exactcxx . . $ `external/glpk/glpk.h:1486:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1488 | /* easy-to-use driver to the exact simplex method */ |
| 1489 | |
| 1490 | #define lpx_get_statuscxx . . $ `external/glpk/glpk.h:1490:9`! _glp_lpx_get_status |
| 1491 | int lpx_get_statuscxx . . $ `external/glpk/glpk.h:1490:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1492 | /* retrieve generic status of basic solution */ |
| 1493 | |
| 1494 | #define lpx_get_prim_statcxx . . $ `external/glpk/glpk.h:1494:9`! _glp_lpx_get_prim_stat |
| 1495 | int lpx_get_prim_statcxx . . $ `external/glpk/glpk.h:1494:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1496 | /* retrieve primal status of basic solution */ |
| 1497 | |
| 1498 | #define lpx_get_dual_statcxx . . $ `external/glpk/glpk.h:1498:9`! _glp_lpx_get_dual_stat |
| 1499 | int lpx_get_dual_statcxx . . $ `external/glpk/glpk.h:1498:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1500 | /* retrieve dual status of basic solution */ |
| 1501 | |
| 1502 | #define lpx_get_obj_valcxx . . $ `external/glpk/glpk.h:1502:9`! _glp_lpx_get_obj_val |
| 1503 | double lpx_get_obj_valcxx . . $ `external/glpk/glpk.h:1502:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1504 | /* retrieve objective value (basic solution) */ |
| 1505 | |
| 1506 | #define lpx_get_row_statcxx . . $ `external/glpk/glpk.h:1506:9`! _glp_lpx_get_row_stat |
| 1507 | int lpx_get_row_statcxx . . $ `external/glpk/glpk.h:1506:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i); |
| 1508 | /* retrieve row status (basic solution) */ |
| 1509 | |
| 1510 | #define lpx_get_row_primcxx . . $ `external/glpk/glpk.h:1510:9`! _glp_lpx_get_row_prim |
| 1511 | double lpx_get_row_primcxx . . $ `external/glpk/glpk.h:1510:9`!(LPXcxx . . $ glp_prob# *lp, int i); |
| 1512 | /* retrieve row primal value (basic solution) */ |
| 1513 | |
| 1514 | #define lpx_get_row_dualcxx . . $ `external/glpk/glpk.h:1514:9`! _glp_lpx_get_row_dual |
| 1515 | double lpx_get_row_dualcxx . . $ `external/glpk/glpk.h:1514:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i); |
| 1516 | /* retrieve row dual value (basic solution) */ |
| 1517 | |
| 1518 | #define lpx_get_row_infocxx . . $ `external/glpk/glpk.h:1518:9`! _glp_lpx_get_row_info |
| 1519 | void lpx_get_row_infocxx . . $ `external/glpk/glpk.h:1518:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i, int *tagx, double *vx, |
| 1520 | double *dx); |
| 1521 | /* obtain row solution information */ |
| 1522 | |
| 1523 | #define lpx_get_col_statcxx . . $ `external/glpk/glpk.h:1523:9`! _glp_lpx_get_col_stat |
| 1524 | int lpx_get_col_statcxx . . $ `external/glpk/glpk.h:1523:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int j); |
| 1525 | /* retrieve column status (basic solution) */ |
| 1526 | |
| 1527 | #define lpx_get_col_primcxx . . $ `external/glpk/glpk.h:1527:9`! _glp_lpx_get_col_prim |
| 1528 | double lpx_get_col_primcxx . . $ `external/glpk/glpk.h:1527:9`!(LPXcxx . . $ glp_prob# *lp, int j); |
| 1529 | /* retrieve column primal value (basic solution) */ |
| 1530 | |
| 1531 | #define lpx_get_col_dualcxx . . $ `external/glpk/glpk.h:1531:9`! _glp_lpx_get_col_dual |
| 1532 | double lpx_get_col_dualcxx . . $ `external/glpk/glpk.h:1531:9`!(glp_probcxx . . $ glp_prob# *lp, int j); |
| 1533 | /* retrieve column dual value (basic solution) */ |
| 1534 | |
| 1535 | #define lpx_get_col_infocxx . . $ `external/glpk/glpk.h:1535:9`! _glp_lpx_get_col_info |
| 1536 | void lpx_get_col_infocxx . . $ `external/glpk/glpk.h:1535:9`!(LPXcxx . . $ glp_prob# *lp, int j, int *tagx, double *vx, |
| 1537 | double *dx); |
| 1538 | /* obtain column solution information (obsolete) */ |
| 1539 | |
| 1540 | #define lpx_get_ray_infocxx . . $ `external/glpk/glpk.h:1540:9`! _glp_lpx_get_ray_info |
| 1541 | int lpx_get_ray_infocxx . . $ `external/glpk/glpk.h:1540:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1542 | /* determine what causes primal unboundness */ |
| 1543 | |
| 1544 | #define lpx_check_kktcxx . . $ `external/glpk/glpk.h:1544:9`! _glp_lpx_check_kkt |
| 1545 | void lpx_check_kktcxx . . $ `external/glpk/glpk.h:1544:9`!(LPXcxx . . $ glp_prob# *lp, int scaled, LPXKKTcxx . . $ LPXKKT# *kkt); |
| 1546 | /* check Karush-Kuhn-Tucker conditions */ |
| 1547 | |
| 1548 | #define lpx_warm_upcxx . . $ `external/glpk/glpk.h:1548:9`! _glp_lpx_warm_up |
| 1549 | int lpx_warm_upcxx . . $ `external/glpk/glpk.h:1548:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1550 | /* "warm up" LP basis */ |
| 1551 | |
| 1552 | #define lpx_eval_tab_rowcxx . . $ `external/glpk/glpk.h:1552:9`! _glp_lpx_eval_tab_row |
| 1553 | int lpx_eval_tab_rowcxx . . $ `external/glpk/glpk.h:1552:9`!(LPXcxx . . $ glp_prob# *lp, int k, int ind[], double val[]); |
| 1554 | /* compute row of the simplex table */ |
| 1555 | |
| 1556 | #define lpx_eval_tab_colcxx . . $ `external/glpk/glpk.h:1556:9`! _glp_lpx_eval_tab_col |
| 1557 | int lpx_eval_tab_colcxx . . $ `external/glpk/glpk.h:1556:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int k, int ind[], double val[]); |
| 1558 | /* compute column of the simplex table */ |
| 1559 | |
| 1560 | #define lpx_transform_rowcxx . . $ `external/glpk/glpk.h:1560:9`! _glp_lpx_transform_row |
| 1561 | int lpx_transform_rowcxx . . $ `external/glpk/glpk.h:1560:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int len, int ind[], double val[]); |
| 1562 | /* transform explicitly specified row */ |
| 1563 | |
| 1564 | #define lpx_transform_colcxx . . $ `external/glpk/glpk.h:1564:9`! _glp_lpx_transform_col |
| 1565 | int lpx_transform_colcxx . . $ `external/glpk/glpk.h:1564:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int len, int ind[], double val[]); |
| 1566 | /* transform explicitly specified column */ |
| 1567 | |
| 1568 | #define lpx_prim_ratio_testcxx . . $ `external/glpk/glpk.h:1568:9`! _glp_lpx_prim_ratio_test |
| 1569 | int lpx_prim_ratio_testcxx . . $ `external/glpk/glpk.h:1568:9`!(LPXcxx . . $ glp_prob# *lp, int len, const int ind[], |
| 1570 | const double val[], int how, double tol); |
| 1571 | /* perform primal ratio test */ |
| 1572 | |
| 1573 | #define lpx_dual_ratio_testcxx . . $ `external/glpk/glpk.h:1573:9`! _glp_lpx_dual_ratio_test |
| 1574 | int lpx_dual_ratio_testcxx . . $ `external/glpk/glpk.h:1573:9`!(LPXcxx . . $ glp_prob# *lp, int len, const int ind[], |
| 1575 | const double val[], int how, double tol); |
| 1576 | /* perform dual ratio test */ |
| 1577 | |
| 1578 | #define lpx_interiorcxx . . $ `external/glpk/glpk.h:1578:9`! _glp_lpx_interior |
| 1579 | int lpx_interiorcxx . . $ `external/glpk/glpk.h:1578:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1580 | /* easy-to-use driver to the interior point method */ |
| 1581 | |
| 1582 | #define lpx_ipt_statuscxx . . $ `external/glpk/glpk.h:1582:9`! _glp_lpx_ipt_status |
| 1583 | int lpx_ipt_statuscxx . . $ `external/glpk/glpk.h:1582:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1584 | /* retrieve status of interior-point solution */ |
| 1585 | |
| 1586 | #define lpx_ipt_obj_valcxx . . $ `external/glpk/glpk.h:1586:9`! _glp_lpx_ipt_obj_val |
| 1587 | double lpx_ipt_obj_valcxx . . $ `external/glpk/glpk.h:1586:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1588 | /* retrieve objective value (interior point) */ |
| 1589 | |
| 1590 | #define lpx_ipt_row_primcxx . . $ `external/glpk/glpk.h:1590:9`! _glp_lpx_ipt_row_prim |
| 1591 | double lpx_ipt_row_primcxx . . $ `external/glpk/glpk.h:1590:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i); |
| 1592 | /* retrieve row primal value (interior point) */ |
| 1593 | |
| 1594 | #define lpx_ipt_row_dualcxx . . $ `external/glpk/glpk.h:1594:9`! _glp_lpx_ipt_row_dual |
| 1595 | double lpx_ipt_row_dualcxx . . $ `external/glpk/glpk.h:1594:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int i); |
| 1596 | /* retrieve row dual value (interior point) */ |
| 1597 | |
| 1598 | #define lpx_ipt_col_primcxx . . $ `external/glpk/glpk.h:1598:9`! _glp_lpx_ipt_col_prim |
| 1599 | double lpx_ipt_col_primcxx . . $ `external/glpk/glpk.h:1598:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int j); |
| 1600 | /* retrieve column primal value (interior point) */ |
| 1601 | |
| 1602 | #define lpx_ipt_col_dualcxx . . $ `external/glpk/glpk.h:1602:9`! _glp_lpx_ipt_col_dual |
| 1603 | double lpx_ipt_col_dualcxx . . $ `external/glpk/glpk.h:1602:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int j); |
| 1604 | /* retrieve column dual value (interior point) */ |
| 1605 | |
| 1606 | #define lpx_set_classcxx . . $ `external/glpk/glpk.h:1606:9`! _glp_lpx_set_class |
| 1607 | void lpx_set_classcxx . . $ `external/glpk/glpk.h:1606:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int klass); |
| 1608 | /* set problem class */ |
| 1609 | |
| 1610 | #define lpx_get_classcxx . . $ `external/glpk/glpk.h:1610:9`! _glp_lpx_get_class |
| 1611 | int lpx_get_classcxx . . $ `external/glpk/glpk.h:1610:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1612 | /* determine problem klass */ |
| 1613 | |
| 1614 | #define lpx_set_col_kindcxx . . $ `external/glpk/glpk.h:1614:9`! _glp_lpx_set_col_kind |
| 1615 | void lpx_set_col_kindcxx . . $ `external/glpk/glpk.h:1614:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int j, int kind); |
| 1616 | /* set (change) column kind */ |
| 1617 | |
| 1618 | #define lpx_get_col_kindcxx . . $ `external/glpk/glpk.h:1618:9`! _glp_lpx_get_col_kind |
| 1619 | int lpx_get_col_kindcxx . . $ `external/glpk/glpk.h:1618:9`!(LPXcxx . . $ glp_prob# *lp, int j); |
| 1620 | /* retrieve column kind */ |
| 1621 | |
| 1622 | #define lpx_get_num_intcxx . . $ `external/glpk/glpk.h:1622:9`! _glp_lpx_get_num_int |
| 1623 | int lpx_get_num_intcxx . . $ `external/glpk/glpk.h:1622:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1624 | /* retrieve number of integer columns */ |
| 1625 | |
| 1626 | #define lpx_get_num_bincxx . . $ `external/glpk/glpk.h:1626:9`! _glp_lpx_get_num_bin |
| 1627 | int lpx_get_num_bincxx . . $ `external/glpk/glpk.h:1626:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1628 | /* retrieve number of binary columns */ |
| 1629 | |
| 1630 | #define lpx_integercxx . . $ `external/glpk/glpk.h:1630:9`! _glp_lpx_integer |
| 1631 | int lpx_integercxx . . $ `external/glpk/glpk.h:1630:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1632 | /* easy-to-use driver to the branch-and-bound method */ |
| 1633 | |
| 1634 | #define lpx_intoptcxx . . $ `external/glpk/glpk.h:1634:9`! _glp_lpx_intopt |
| 1635 | int lpx_intoptcxx . . $ `external/glpk/glpk.h:1634:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1636 | /* easy-to-use driver to the branch-and-bound method */ |
| 1637 | |
| 1638 | #define lpx_mip_statuscxx . . $ `external/glpk/glpk.h:1638:9`! _glp_lpx_mip_status |
| 1639 | int lpx_mip_statuscxx . . $ `external/glpk/glpk.h:1638:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1640 | /* retrieve status of MIP solution */ |
| 1641 | |
| 1642 | #define lpx_mip_obj_valcxx . . $ `external/glpk/glpk.h:1642:9`! _glp_lpx_mip_obj_val |
| 1643 | double lpx_mip_obj_valcxx . . $ `external/glpk/glpk.h:1642:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1644 | /* retrieve objective value (MIP solution) */ |
| 1645 | |
| 1646 | #define lpx_mip_row_valcxx . . $ `external/glpk/glpk.h:1646:9`! _glp_lpx_mip_row_val |
| 1647 | double lpx_mip_row_valcxx . . $ `external/glpk/glpk.h:1646:9`!(LPXcxx . . $ glp_prob# *lp, int i); |
| 1648 | /* retrieve row value (MIP solution) */ |
| 1649 | |
| 1650 | #define lpx_mip_col_valcxx . . $ `external/glpk/glpk.h:1650:9`! _glp_lpx_mip_col_val |
| 1651 | double lpx_mip_col_valcxx . . $ `external/glpk/glpk.h:1650:9`!(LPXcxx . . $ glp_prob# *lp, int j); |
| 1652 | /* retrieve column value (MIP solution) */ |
| 1653 | |
| 1654 | #define lpx_check_intcxx . . $ `external/glpk/glpk.h:1654:9`! _glp_lpx_check_int |
| 1655 | void lpx_check_intcxx . . $ `external/glpk/glpk.h:1654:9`!(LPXcxx . . $ glp_prob# *lp, LPXKKTcxx . . $ LPXKKT# *kkt); |
| 1656 | /* check integer feasibility conditions */ |
| 1657 | |
| 1658 | #define lpx_reset_parmscxx . . $ `external/glpk/glpk.h:1658:9`! _glp_lpx_reset_parms |
| 1659 | void lpx_reset_parmscxx . . $ `external/glpk/glpk.h:1658:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp); |
| 1660 | /* reset control parameters to default values */ |
| 1661 | |
| 1662 | #define lpx_set_int_parmcxx . . $ `external/glpk/glpk.h:1662:9`! _glp_lpx_set_int_parm |
| 1663 | void lpx_set_int_parmcxx . . $ `external/glpk/glpk.h:1662:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int parm, int val); |
| 1664 | /* set (change) integer control parameter */ |
| 1665 | |
| 1666 | #define lpx_get_int_parmcxx . . $ `external/glpk/glpk.h:1666:9`! _glp_lpx_get_int_parm |
| 1667 | int lpx_get_int_parmcxx . . $ `external/glpk/glpk.h:1666:9`!(LPXcxx . . $ glp_prob# *lp, int parm); |
| 1668 | /* query integer control parameter */ |
| 1669 | |
| 1670 | #define lpx_set_real_parmcxx . . $ `external/glpk/glpk.h:1670:9`! _glp_lpx_set_real_parm |
| 1671 | void lpx_set_real_parmcxx . . $ `external/glpk/glpk.h:1670:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int parm, double val); |
| 1672 | /* set (change) real control parameter */ |
| 1673 | |
| 1674 | #define lpx_get_real_parmcxx . . $ `external/glpk/glpk.h:1674:9`! _glp_lpx_get_real_parm |
| 1675 | double lpx_get_real_parmcxx . . $ `external/glpk/glpk.h:1674:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, int parm); |
| 1676 | /* query real control parameter */ |
| 1677 | |
| 1678 | #define lpx_read_mpscxx . . $ `external/glpk/glpk.h:1678:9`! _glp_lpx_read_mps |
| 1679 | LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lpx_read_mpscxx . . $ `external/glpk/glpk.h:1678:9`!(const char *fname); |
| 1680 | /* read problem data in fixed MPS format */ |
| 1681 | |
| 1682 | #define lpx_write_mpscxx . . $ `external/glpk/glpk.h:1682:9`! _glp_lpx_write_mps |
| 1683 | int lpx_write_mpscxx . . $ `external/glpk/glpk.h:1682:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, const char *fname); |
| 1684 | /* write problem data in fixed MPS format */ |
| 1685 | |
| 1686 | #define lpx_read_bascxx . . $ `external/glpk/glpk.h:1686:9`! _glp_lpx_read_bas |
| 1687 | int lpx_read_bascxx . . $ `external/glpk/glpk.h:1686:9`!(LPXcxx . . $ glp_prob# *lp, const char *fname); |
| 1688 | /* read LP basis in fixed MPS format */ |
| 1689 | |
| 1690 | #define lpx_write_bascxx . . $ `external/glpk/glpk.h:1690:9`! _glp_lpx_write_bas |
| 1691 | int lpx_write_bascxx . . $ `external/glpk/glpk.h:1690:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, const char *fname); |
| 1692 | /* write LP basis in fixed MPS format */ |
| 1693 | |
| 1694 | #define lpx_read_freempscxx . . $ `external/glpk/glpk.h:1694:9`! _glp_lpx_read_freemps |
| 1695 | LPXcxx . . $ glp_prob# *lpx_read_freempscxx . . $ `external/glpk/glpk.h:1694:9`!(const char *fname); |
| 1696 | /* read problem data in free MPS format */ |
| 1697 | |
| 1698 | #define lpx_write_freempscxx . . $ `external/glpk/glpk.h:1698:9`! _glp_lpx_write_freemps |
| 1699 | int lpx_write_freempscxx . . $ `external/glpk/glpk.h:1698:9`!(LPXcxx . . $ glp_prob# *lp, const char *fname); |
| 1700 | /* write problem data in free MPS format */ |
| 1701 | |
| 1702 | #define lpx_read_cpxlpcxx . . $ `external/glpk/glpk.h:1702:9`! _glp_lpx_read_cpxlp |
| 1703 | LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lpx_read_cpxlpcxx . . $ `external/glpk/glpk.h:1702:9`!(const char *fname); |
| 1704 | /* read problem data in CPLEX LP format */ |
| 1705 | |
| 1706 | #define lpx_write_cpxlpcxx . . $ `external/glpk/glpk.h:1706:9`! _glp_lpx_write_cpxlp |
| 1707 | int lpx_write_cpxlpcxx . . $ `external/glpk/glpk.h:1706:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, const char *fname); |
| 1708 | /* write problem data in CPLEX LP format */ |
| 1709 | |
| 1710 | #define lpx_read_modelcxx . . $ `external/glpk/glpk.h:1710:9`! _glp_lpx_read_model |
| 1711 | LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lpx_read_modelcxx . . $ `external/glpk/glpk.h:1710:9`!(const char *model, const char *data, |
| 1712 | const char *output); |
| 1713 | /* read LP/MIP model written in GNU MathProg language */ |
| 1714 | |
| 1715 | #define lpx_print_probcxx . . $ `external/glpk/glpk.h:1715:9`! _glp_lpx_print_prob |
| 1716 | int lpx_print_probcxx . . $ `external/glpk/glpk.h:1715:9`!(LPXcxx . . $ glp_prob# *lp, const char *fname); |
| 1717 | /* write problem data in plain text format */ |
| 1718 | |
| 1719 | #define lpx_print_solcxx . . $ `external/glpk/glpk.h:1719:9`! _glp_lpx_print_sol |
| 1720 | int lpx_print_solcxx . . $ `external/glpk/glpk.h:1719:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, const char *fname); |
| 1721 | /* write LP problem solution in printable format */ |
| 1722 | |
| 1723 | #define lpx_print_sens_bndscxx . . $ `external/glpk/glpk.h:1723:9`! _glp_lpx_print_sens_bnds |
| 1724 | int lpx_print_sens_bndscxx . . $ `external/glpk/glpk.h:1723:9`!(LPXcxx . . $ glp_prob# *lp, const char *fname); |
| 1725 | /* write bounds sensitivity information */ |
| 1726 | |
| 1727 | #define lpx_print_ipscxx . . $ `external/glpk/glpk.h:1727:9`! _glp_lpx_print_ips |
| 1728 | int lpx_print_ipscxx . . $ `external/glpk/glpk.h:1727:9`!(LPXcxx . . $ `external/glpk/glpk.h:1087:9`! *lp, const char *fname); |
| 1729 | /* write interior point solution in printable format */ |
| 1730 | |
| 1731 | #define lpx_print_mipcxx . . $ `external/glpk/glpk.h:1731:9`! _glp_lpx_print_mip |
| 1732 | int lpx_print_mipcxx . . $ `external/glpk/glpk.h:1731:9`!(LPXcxx . . $ glp_prob# *lp, const char *fname); |
| 1733 | /* write MIP problem solution in printable format */ |
| 1734 | |
| 1735 | #define lpx_is_b_availcxx . . $ `external/glpk/glpk.h:1735:9`! _glp_lpx_is_b_avail |
| 1736 | int lpx_is_b_availcxx . . $ `external/glpk/glpk.h:1735:9`!(LPXcxx . . $ glp_prob# *lp); |
| 1737 | /* check if LP basis is available */ |
| 1738 | |
| 1739 | #define lpx_write_pbcxx . . $ `external/glpk/glpk.h:1739:9`! _glp_lpx_write_pb |
| 1740 | int lpx_write_pbcxx . . $ `external/glpk/glpk.h:1739:9`!(LPXcxx . . $ glp_prob# *lp, const char *fname, int normalized, |
| 1741 | int binarize); |
| 1742 | /* write problem data in (normalized) OPB format */ |
| 1743 | |
| 1744 | #define lpx_maincxx . . $ `external/glpk/glpk.h:1744:9`! _glp_lpx_main |
| 1745 | int lpx_maincxx . . $ `external/glpk/glpk.h:1744:9`!(int argc, const char *argv[]); |
| 1746 | /* stand-alone LP/MIP solver */ |
| 1747 | |
| 1748 | #ifdef __cpluspluscxx . . $ `<built-in>:470:9`! |
| 1749 | } |
| 1750 | #endif |
| 1751 | |
| 1752 | #endif |
| 1753 | |
| 1754 | /* eof */ |