| 1 | /* glpmpl.h (GNU MathProg translator) */cxx . . $ `<file>/external/glpk/glpmpl.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 GLPMPL_H |
| 26 | #define GLPMPL_Hcxx . . $ `external/glpk/glpmpl.h:26:9`! |
| 27 | |
| 28 | #include "glpavl.h"cxx . . $ `<file>/external/glpk/glpavl.h`/ |
| 29 | #include "glprng.h"cxx . . $ `<file>/external/glpk/glprng.h`/ |
| 30 | |
| 31 | typedef struct MPLcxx . . $ MPL# MPLcxx . . $ MPL#; |
| 32 | typedef char STRINGcxx . . $ STRING#; |
| 33 | typedef struct SYMBOLcxx . . $ SYMBOL# SYMBOLcxx . . $ SYMBOL#; |
| 34 | typedef struct TUPLEcxx . . $ TUPLE# TUPLEcxx . . $ TUPLE#; |
| 35 | typedef struct ARRAYcxx . . $ ARRAY# ELEMSETcxx . . $ ELEMSET#; |
| 36 | typedef struct ELEMVARcxx . . $ ELEMVAR# ELEMVARcxx . . $ ELEMVAR#; |
| 37 | typedef struct FORMULAcxx . . $ FORMULA# FORMULAcxx . . $ FORMULA#; |
| 38 | typedef struct ELEMCONcxx . . $ ELEMCON# ELEMCONcxx . . $ ELEMCON#; |
| 39 | typedef union VALUEcxx . . $ VALUE# VALUEcxx . . $ VALUE#; |
| 40 | typedef struct ARRAYcxx . . $ ARRAY# ARRAYcxx . . $ ARRAY#; |
| 41 | typedef struct MEMBERcxx . . $ MEMBER# MEMBERcxx . . $ MEMBER#; |
| 42 | #if 1 |
| 43 | /* many C compilers have DOMAIN declared in <math.h> :( */ |
| 44 | #undef DOMAIN |
| 45 | #define DOMAINcxx . . $ `external/glpk/glpmpl.h:45:9`! DOMAIN1 |
| 46 | #endif |
| 47 | typedef struct DOMAINcxx . . $ `external/glpk/glpmpl.h:45:9`! DOMAINcxx . . $ `external/glpk/glpmpl.h:45:9`!; |
| 48 | typedef struct DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK# DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK#; |
| 49 | typedef struct DOMAIN_SLOTcxx . . $ DOMAIN_SLOT# DOMAIN_SLOTcxx . . $ DOMAIN_SLOT#; |
| 50 | typedef struct SETcxx . . $ SET# SETcxx . . $ SET#; |
| 51 | typedef struct WITHINcxx . . $ WITHIN# WITHINcxx . . $ WITHIN#; |
| 52 | typedef struct GADGETcxx . . $ GADGET# GADGETcxx . . $ GADGET#; |
| 53 | typedef struct PARAMETERcxx . . $ PARAMETER# PARAMETERcxx . . $ PARAMETER#; |
| 54 | typedef struct CONDITIONcxx . . $ CONDITION# CONDITIONcxx . . $ CONDITION#; |
| 55 | typedef struct VARIABLEcxx . . $ VARIABLE# VARIABLEcxx . . $ VARIABLE#; |
| 56 | typedef struct CONSTRAINTcxx . . $ CONSTRAINT# CONSTRAINTcxx . . $ CONSTRAINT#; |
| 57 | typedef struct TABLEcxx . . $ TABLE# TABLEcxx . . $ TABLE#; |
| 58 | typedef struct TABARGcxx . . $ TABARG# TABARGcxx . . $ TABARG#; |
| 59 | typedef struct TABFLDcxx . . $ TABFLD# TABFLDcxx . . $ TABFLD#; |
| 60 | typedef struct TABINcxx . . $ TABIN# TABINcxx . . $ TABIN#; |
| 61 | typedef struct TABOUTcxx . . $ TABOUT# TABOUTcxx . . $ TABOUT#; |
| 62 | typedef struct TABDCAcxx . . $ TABDCA# TABDCAcxx . . $ TABDCA#; |
| 63 | typedef union OPERANDScxx . . $ OPERANDS# OPERANDScxx . . $ OPERANDS#; |
| 64 | typedef struct ARG_LISTcxx . . $ ARG_LIST# ARG_LISTcxx . . $ ARG_LIST#; |
| 65 | typedef struct CODEcxx . . $ CODE# CODEcxx . . $ CODE#; |
| 66 | typedef struct CHECKcxx . . $ CHECK# CHECKcxx . . $ CHECK#; |
| 67 | typedef struct DISPLAYcxx . . $ DISPLAY# DISPLAYcxx . . $ DISPLAY#; |
| 68 | typedef struct DISPLAY1cxx . . $ DISPLAY1# DISPLAY1cxx . . $ DISPLAY1#; |
| 69 | typedef struct PRINTFcxx . . $ PRINTF# PRINTFcxx . . $ PRINTF#; |
| 70 | typedef struct PRINTF1cxx . . $ PRINTF1# PRINTF1cxx . . $ PRINTF1#; |
| 71 | typedef struct FORcxx . . $ FOR# FORcxx . . $ FOR#; |
| 72 | typedef struct STATEMENTcxx . . $ STATEMENT# STATEMENTcxx . . $ STATEMENT#; |
| 73 | typedef struct TUPLEcxx . . $ TUPLE# SLICEcxx . . $ SLICE#; |
| 74 | |
| 75 | /**********************************************************************/ |
| 76 | /* * * TRANSLATOR DATABASE * * */ |
| 77 | /**********************************************************************/ |
| 78 | |
| 79 | #define A_BINARYcxx . . $ `external/glpk/glpmpl.h:79:9`! 101 /* something binary */ |
| 80 | #define A_CHECKcxx . . $ `external/glpk/glpmpl.h:80:9`! 102 /* check statement */ |
| 81 | #define A_CONSTRAINTcxx . . $ `external/glpk/glpmpl.h:81:9`! 103 /* model constraint */ |
| 82 | #define A_DISPLAYcxx . . $ `external/glpk/glpmpl.h:82:9`! 104 /* display statement */ |
| 83 | #define A_ELEMCONcxx . . $ `external/glpk/glpmpl.h:83:9`! 105 /* elemental constraint/objective */ |
| 84 | #define A_ELEMSETcxx . . $ `external/glpk/glpmpl.h:84:9`! 106 /* elemental set */ |
| 85 | #define A_ELEMVARcxx . . $ `external/glpk/glpmpl.h:85:9`! 107 /* elemental variable */ |
| 86 | #define A_EXPRESSIONcxx . . $ `external/glpk/glpmpl.h:86:9`! 108 /* expression */ |
| 87 | #define A_FORcxx . . $ `external/glpk/glpmpl.h:87:9`! 109 /* for statement */ |
| 88 | #define A_FORMULAcxx . . $ `external/glpk/glpmpl.h:88:9`! 110 /* formula */ |
| 89 | #define A_INDEXcxx . . $ `external/glpk/glpmpl.h:89:9`! 111 /* dummy index */ |
| 90 | #define A_INPUTcxx . . $ `external/glpk/glpmpl.h:90:9`! 112 /* input table */ |
| 91 | #define A_INTEGERcxx . . $ `external/glpk/glpmpl.h:91:9`! 113 /* something integer */ |
| 92 | #define A_LOGICALcxx . . $ `external/glpk/glpmpl.h:92:9`! 114 /* something logical */ |
| 93 | #define A_MAXIMIZEcxx . . $ `external/glpk/glpmpl.h:93:9`! 115 /* objective has to be maximized */ |
| 94 | #define A_MINIMIZEcxx . . $ `external/glpk/glpmpl.h:94:9`! 116 /* objective has to be minimized */ |
| 95 | #define A_NONEcxx . . $ `external/glpk/glpmpl.h:95:9`! 117 /* nothing */ |
| 96 | #define A_NUMERICcxx . . $ `external/glpk/glpmpl.h:96:9`! 118 /* something numeric */ |
| 97 | #define A_OUTPUTcxx . . $ `external/glpk/glpmpl.h:97:9`! 119 /* output table */ |
| 98 | #define A_PARAMETERcxx . . $ `external/glpk/glpmpl.h:98:9`! 120 /* model parameter */ |
| 99 | #define A_PRINTFcxx . . $ `external/glpk/glpmpl.h:99:9`! 121 /* printf statement */ |
| 100 | #define A_SETcxx . . $ `external/glpk/glpmpl.h:100:9`! 122 /* model set */ |
| 101 | #define A_SOLVEcxx . . $ `external/glpk/glpmpl.h:101:9`! 123 /* solve statement */ |
| 102 | #define A_SYMBOLICcxx . . $ `external/glpk/glpmpl.h:102:9`! 124 /* something symbolic */ |
| 103 | #define A_TABLEcxx . . $ `external/glpk/glpmpl.h:103:9`! 125 /* data table */ |
| 104 | #define A_TUPLEcxx . . $ `external/glpk/glpmpl.h:104:9`! 126 /* n-tuple */ |
| 105 | #define A_VARIABLEcxx . . $ `external/glpk/glpmpl.h:105:9`! 127 /* model variable */ |
| 106 | |
| 107 | #define MAX_LENGTHcxx . . $ `external/glpk/glpmpl.h:107:9`! 100 |
| 108 | /* maximal length of any symbolic value (this includes symbolic names, |
| 109 | numeric and string literals, and all symbolic values that may appear |
| 110 | during the evaluation phase) */ |
| 111 | |
| 112 | #define CONTEXT_SIZEcxx . . $ `external/glpk/glpmpl.h:112:9`! 60 |
| 113 | /* size of the context queue, in characters */ |
| 114 | |
| 115 | #define OUTBUF_SIZEcxx . . $ `external/glpk/glpmpl.h:115:9`! 1024 |
| 116 | /* size of the output buffer, in characters */ |
| 117 | |
| 118 | struct MPLcxx . . $ MPL# |
| 119 | { /* translator database */ |
| 120 | /*--------------------------------------------------------------*/ |
| 121 | /* scanning segment */ |
| 122 | int linecxx . . $ MPL#line.; |
| 123 | /* number of the current text line */ |
| 124 | int ccxx . . $ MPL#c.; |
| 125 | /* the current character or EOF */ |
| 126 | int tokencxx . . $ MPL#token.; |
| 127 | /* the current token: */ |
| 128 | #define T_EOFcxx . . $ `external/glpk/glpmpl.h:128:9`! 201 /* end of file */ |
| 129 | #define T_NAMEcxx . . $ `external/glpk/glpmpl.h:129:9`! 202 /* symbolic name (model section only) */ |
| 130 | #define T_SYMBOLcxx . . $ `external/glpk/glpmpl.h:130:9`! 203 /* symbol (data section only) */ |
| 131 | #define T_NUMBERcxx . . $ `external/glpk/glpmpl.h:131:9`! 204 /* numeric literal */ |
| 132 | #define T_STRINGcxx . . $ `external/glpk/glpmpl.h:132:9`! 205 /* string literal */ |
| 133 | #define T_ANDcxx . . $ `external/glpk/glpmpl.h:133:9`! 206 /* and && */ |
| 134 | #define T_BYcxx . . $ `external/glpk/glpmpl.h:134:9`! 207 /* by */ |
| 135 | #define T_CROSScxx . . $ `external/glpk/glpmpl.h:135:9`! 208 /* cross */ |
| 136 | #define T_DIFFcxx . . $ `external/glpk/glpmpl.h:136:9`! 209 /* diff */ |
| 137 | #define T_DIVcxx . . $ `external/glpk/glpmpl.h:137:9`! 210 /* div */ |
| 138 | #define T_ELSEcxx . . $ `external/glpk/glpmpl.h:138:9`! 211 /* else */ |
| 139 | #define T_IFcxx . . $ `external/glpk/glpmpl.h:139:9`! 212 /* if */ |
| 140 | #define T_INcxx . . $ `external/glpk/glpmpl.h:140:9`! 213 /* in */ |
| 141 | #define T_INFINITYcxx . . $ `external/glpk/glpmpl.h:141:9`! 214 /* Infinity */ |
| 142 | #define T_INTERcxx . . $ `external/glpk/glpmpl.h:142:9`! 215 /* inter */ |
| 143 | #define T_LESScxx . . $ `external/glpk/glpmpl.h:143:9`! 216 /* less */ |
| 144 | #define T_MODcxx . . $ `external/glpk/glpmpl.h:144:9`! 217 /* mod */ |
| 145 | #define T_NOTcxx . . $ `external/glpk/glpmpl.h:145:9`! 218 /* not ! */ |
| 146 | #define T_ORcxx . . $ `external/glpk/glpmpl.h:146:9`! 219 /* or || */ |
| 147 | #define T_SPTPcxx . . $ `external/glpk/glpmpl.h:147:9`! 220 /* s.t. */ |
| 148 | #define T_SYMDIFFcxx . . $ `external/glpk/glpmpl.h:148:9`! 221 /* symdiff */ |
| 149 | #define T_THENcxx . . $ `external/glpk/glpmpl.h:149:9`! 222 /* then */ |
| 150 | #define T_UNIONcxx . . $ `external/glpk/glpmpl.h:150:9`! 223 /* union */ |
| 151 | #define T_WITHINcxx . . $ `external/glpk/glpmpl.h:151:9`! 224 /* within */ |
| 152 | #define T_PLUScxx . . $ `external/glpk/glpmpl.h:152:9`! 225 /* + */ |
| 153 | #define T_MINUScxx . . $ `external/glpk/glpmpl.h:153:9`! 226 /* - */ |
| 154 | #define T_ASTERISKcxx . . $ `external/glpk/glpmpl.h:154:9`! 227 /* * */ |
| 155 | #define T_SLASHcxx . . $ `external/glpk/glpmpl.h:155:9`! 228 /* / */ |
| 156 | #define T_POWERcxx . . $ `external/glpk/glpmpl.h:156:9`! 229 /* ^ ** */ |
| 157 | #define T_LTcxx . . $ `external/glpk/glpmpl.h:157:9`! 230 /* < */ |
| 158 | #define T_LEcxx . . $ `external/glpk/glpmpl.h:158:9`! 231 /* <= */ |
| 159 | #define T_EQcxx . . $ `external/glpk/glpmpl.h:159:9`! 232 /* = == */ |
| 160 | #define T_GEcxx . . $ `external/glpk/glpmpl.h:160:9`! 233 /* >= */ |
| 161 | #define T_GTcxx . . $ `external/glpk/glpmpl.h:161:9`! 234 /* > */ |
| 162 | #define T_NEcxx . . $ `external/glpk/glpmpl.h:162:9`! 235 /* <> != */ |
| 163 | #define T_CONCATcxx . . $ `external/glpk/glpmpl.h:163:9`! 236 /* & */ |
| 164 | #define T_BARcxx . . $ `external/glpk/glpmpl.h:164:9`! 237 /* | */ |
| 165 | #define T_POINTcxx . . $ `external/glpk/glpmpl.h:165:9`! 238 /* . */ |
| 166 | #define T_COMMAcxx . . $ `external/glpk/glpmpl.h:166:9`! 239 /* , */ |
| 167 | #define T_COLONcxx . . $ `external/glpk/glpmpl.h:167:9`! 240 /* : */ |
| 168 | #define T_SEMICOLONcxx . . $ `external/glpk/glpmpl.h:168:9`! 241 /* ; */ |
| 169 | #define T_ASSIGNcxx . . $ `external/glpk/glpmpl.h:169:9`! 242 /* := */ |
| 170 | #define T_DOTScxx . . $ `external/glpk/glpmpl.h:170:9`! 243 /* .. */ |
| 171 | #define T_LEFTcxx . . $ `external/glpk/glpmpl.h:171:9`! 244 /* ( */ |
| 172 | #define T_RIGHTcxx . . $ `external/glpk/glpmpl.h:172:9`! 245 /* ) */ |
| 173 | #define T_LBRACKETcxx . . $ `external/glpk/glpmpl.h:173:9`! 246 /* [ */ |
| 174 | #define T_RBRACKETcxx . . $ `external/glpk/glpmpl.h:174:9`! 247 /* ] */ |
| 175 | #define T_LBRACEcxx . . $ `external/glpk/glpmpl.h:175:9`! 248 /* { */ |
| 176 | #define T_RBRACEcxx . . $ `external/glpk/glpmpl.h:176:9`! 249 /* } */ |
| 177 | #define T_APPENDcxx . . $ `external/glpk/glpmpl.h:177:9`! 250 /* >> */ |
| 178 | #define T_TILDEcxx . . $ `external/glpk/glpmpl.h:178:9`! 251 /* ~ */ |
| 179 | #define T_INPUTcxx . . $ `external/glpk/glpmpl.h:179:9`! 252 /* <- */ |
| 180 | int imlencxx . . $ MPL#imlen.; |
| 181 | /* length of the current token */ |
| 182 | char *imagecxx . . $ MPL#image.; /* char image[MAX_LENGTH+1]; */ |
| 183 | /* image of the current token */ |
| 184 | double valuecxx . . $ MPL#value.; |
| 185 | /* value of the current token (for T_NUMBER only) */ |
| 186 | int b_tokencxx . . $ MPL#b_token.; |
| 187 | /* the previous token */ |
| 188 | int b_imlencxx . . $ MPL#b_imlen.; |
| 189 | /* length of the previous token */ |
| 190 | char *b_imagecxx . . $ MPL#b_image.; /* char b_image[MAX_LENGTH+1]; */ |
| 191 | /* image of the previous token */ |
| 192 | double b_valuecxx . . $ MPL#b_value.; |
| 193 | /* value of the previous token (if token is T_NUMBER) */ |
| 194 | int f_dotscxx . . $ MPL#f_dots.; |
| 195 | /* if this flag is set, the next token should be recognized as |
| 196 | T_DOTS, not as T_POINT */ |
| 197 | int f_scancxx . . $ MPL#f_scan.; |
| 198 | /* if this flag is set, the next token is already scanned */ |
| 199 | int f_tokencxx . . $ MPL#f_token.; |
| 200 | /* the next token */ |
| 201 | int f_imlencxx . . $ MPL#f_imlen.; |
| 202 | /* length of the next token */ |
| 203 | char *f_imagecxx . . $ MPL#f_image.; /* char f_image[MAX_LENGTH+1]; */ |
| 204 | /* image of the next token */ |
| 205 | double f_valuecxx . . $ MPL#f_value.; |
| 206 | /* value of the next token (if token is T_NUMBER) */ |
| 207 | char *contextcxx . . $ MPL#context.; /* char context[CONTEXT_SIZE]; */ |
| 208 | /* context circular queue (not null-terminated!) */ |
| 209 | int c_ptrcxx . . $ MPL#c_ptr.; |
| 210 | /* pointer to the current position in the context queue */ |
| 211 | int flag_dcxx . . $ MPL#flag_d.; |
| 212 | /* if this flag is set, the data section is being processed */ |
| 213 | /*--------------------------------------------------------------*/ |
| 214 | /* translating segment */ |
| 215 | DMPcxx . . $ DMP# *poolcxx . . $ MPL#pool.; |
| 216 | /* memory pool used to allocate all data instances created during |
| 217 | the translation phase */ |
| 218 | AVLcxx . . $ AVL# *treecxx . . $ MPL#tree.; |
| 219 | /* symbolic name table: |
| 220 | node.type = A_INDEX => node.link -> DOMAIN_SLOT |
| 221 | node.type = A_SET => node.link -> SET |
| 222 | node.type = A_PARAMETER => node.link -> PARAMETER |
| 223 | node.type = A_VARIABLE => node.link -> VARIABLE |
| 224 | node.type = A_CONSTRANT => node.link -> CONSTRAINT */ |
| 225 | STATEMENTcxx . . $ STATEMENT# *modelcxx . . $ MPL#model.; |
| 226 | /* linked list of model statements in the original order */ |
| 227 | int flag_xcxx . . $ MPL#flag_x.; |
| 228 | /* if this flag is set, the current token being left parenthesis |
| 229 | begins a slice that allows recognizing any undeclared symbolic |
| 230 | names as dummy indices; this flag is automatically reset once |
| 231 | the next token has been scanned */ |
| 232 | int as_withincxx . . $ MPL#as_within.; |
| 233 | /* the warning "in understood as within" has been issued */ |
| 234 | int as_incxx . . $ MPL#as_in.; |
| 235 | /* the warning "within understood as in" has been issued */ |
| 236 | int as_binarycxx . . $ MPL#as_binary.; |
| 237 | /* the warning "logical understood as binary" has been issued */ |
| 238 | int flag_scxx . . $ MPL#flag_s.; |
| 239 | /* if this flag is set, the solve statement has been parsed */ |
| 240 | /*--------------------------------------------------------------*/ |
| 241 | /* common segment */ |
| 242 | DMPcxx . . $ DMP# *stringscxx . . $ MPL#strings.; |
| 243 | /* memory pool to allocate STRING data structures */ |
| 244 | DMPcxx . . $ DMP# *symbolscxx . . $ MPL#symbols.; |
| 245 | /* memory pool to allocate SYMBOL data structures */ |
| 246 | DMPcxx . . $ DMP# *tuplescxx . . $ MPL#tuples.; |
| 247 | /* memory pool to allocate TUPLE data structures */ |
| 248 | DMPcxx . . $ DMP# *arrayscxx . . $ MPL#arrays.; |
| 249 | /* memory pool to allocate ARRAY data structures */ |
| 250 | DMPcxx . . $ DMP# *memberscxx . . $ MPL#members.; |
| 251 | /* memory pool to allocate MEMBER data structures */ |
| 252 | DMPcxx . . $ DMP# *elemvarscxx . . $ MPL#elemvars.; |
| 253 | /* memory pool to allocate ELEMVAR data structures */ |
| 254 | DMPcxx . . $ DMP# *formulaecxx . . $ MPL#formulae.; |
| 255 | /* memory pool to allocate FORMULA data structures */ |
| 256 | DMPcxx . . $ DMP# *elemconscxx . . $ MPL#elemcons.; |
| 257 | /* memory pool to allocate ELEMCON data structures */ |
| 258 | ARRAYcxx . . $ ARRAY# *a_listcxx . . $ MPL#a_list.; |
| 259 | /* linked list of all arrays in the database */ |
| 260 | char *sym_bufcxx . . $ MPL#sym_buf.; /* char sym_buf[255+1]; */ |
| 261 | /* working buffer used by the routine format_symbol */ |
| 262 | char *tup_bufcxx . . $ MPL#tup_buf.; /* char tup_buf[255+1]; */ |
| 263 | /* working buffer used by the routine format_tuple */ |
| 264 | /*--------------------------------------------------------------*/ |
| 265 | /* generating/postsolving segment */ |
| 266 | RNGcxx . . $ RNG# *randcxx . . $ MPL#rand.; |
| 267 | /* pseudo-random number generator */ |
| 268 | int flag_pcxx . . $ MPL#flag_p.; |
| 269 | /* if this flag is set, the postsolving phase is in effect */ |
| 270 | STATEMENTcxx . . $ STATEMENT# *stmtcxx . . $ MPL#stmt.; |
| 271 | /* model statement being currently executed */ |
| 272 | TABDCAcxx . . $ TABDCA# *dcacxx . . $ MPL#dca.; |
| 273 | /* pointer to table driver communication area for table statement |
| 274 | currently executed */ |
| 275 | int mcxx . . $ MPL#m.; |
| 276 | /* number of rows in the problem, m >= 0 */ |
| 277 | int ncxx . . $ MPL#n.; |
| 278 | /* number of columns in the problem, n >= 0 */ |
| 279 | ELEMCONcxx . . $ ELEMCON# **rowcxx . . $ MPL#row.; /* ELEMCON *row[1+m]; */ |
| 280 | /* row[0] is not used; |
| 281 | row[i] is elemental constraint or objective, which corresponds |
| 282 | to i-th row of the problem, 1 <= i <= m */ |
| 283 | ELEMVARcxx . . $ ELEMVAR# **colcxx . . $ MPL#col.; /* ELEMVAR *col[1+n]; */ |
| 284 | /* col[0] is not used; |
| 285 | col[j] is elemental variable, which corresponds to j-th column |
| 286 | of the problem, 1 <= j <= n */ |
| 287 | /*--------------------------------------------------------------*/ |
| 288 | /* input/output segment */ |
| 289 | XFILEcxx . . $ XFILE# *in_fpcxx . . $ MPL#in_fp.; |
| 290 | /* stream assigned to the input text file */ |
| 291 | char *in_filecxx . . $ MPL#in_file.; |
| 292 | /* name of the input text file */ |
| 293 | XFILEcxx . . $ XFILE# *out_fpcxx . . $ MPL#out_fp.; |
| 294 | /* stream assigned to the output text file used to write all data |
| 295 | produced by display and printf statements; NULL means the data |
| 296 | should be sent to stdout via the routine xprintf */ |
| 297 | char *out_filecxx . . $ MPL#out_file.; |
| 298 | /* name of the output text file */ |
| 299 | #if 0 /* 08/XI-2009 */ |
| 300 | char *out_buf; /* char out_buf[OUTBUF_SIZE] */ |
| 301 | /* buffer to accumulate output data */ |
| 302 | int out_cnt; |
| 303 | /* count of data bytes stored in the output buffer */ |
| 304 | #endif |
| 305 | XFILEcxx . . $ XFILE# *prt_fpcxx . . $ MPL#prt_fp.; |
| 306 | /* stream assigned to the print text file; may be NULL */ |
| 307 | char *prt_filecxx . . $ MPL#prt_file.; |
| 308 | /* name of the output print file */ |
| 309 | /*--------------------------------------------------------------*/ |
| 310 | /* solver interface segment */ |
| 311 | jmp_bufcxx . . $ jmp_buf# jumpcxx . . $ MPL#jump.; |
| 312 | /* jump address for non-local go to in case of error */ |
| 313 | int phasecxx . . $ MPL#phase.; |
| 314 | /* phase of processing: |
| 315 | 0 - database is being or has been initialized |
| 316 | 1 - model section is being or has been read |
| 317 | 2 - data section is being or has been read |
| 318 | 3 - model is being or has been generated/postsolved |
| 319 | 4 - model processing error has occurred */ |
| 320 | char *mod_filecxx . . $ MPL#mod_file.; |
| 321 | /* name of the input text file, which contains model section */ |
| 322 | char *mpl_bufcxx . . $ MPL#mpl_buf.; /* char mpl_buf[255+1]; */ |
| 323 | /* working buffer used by some interface routines */ |
| 324 | }; |
| 325 | |
| 326 | /**********************************************************************/ |
| 327 | /* * * PROCESSING MODEL SECTION * * */ |
| 328 | /**********************************************************************/ |
| 329 | |
| 330 | #define alloccxx . . $ `external/glpk/glpmpl.h:330:9`!(type) ((type *)dmp_get_atomv(mpl->pool, sizeof(type))) |
| 331 | /* allocate atom of given type */ |
| 332 | |
| 333 | #define enter_contextcxx . . $ `external/glpk/glpmpl.h:333:9`! _glp_mpl_enter_context |
| 334 | void enter_contextcxx . . $ `external/glpk/glpmpl.h:333:9`!(MPLcxx . . $ MPL# *mpl); |
| 335 | /* enter current token into context queue */ |
| 336 | |
| 337 | #define print_contextcxx . . $ `external/glpk/glpmpl.h:337:9`! _glp_mpl_print_context |
| 338 | void print_contextcxx . . $ `external/glpk/glpmpl.h:337:9`!(MPLcxx . . $ MPL# *mpl); |
| 339 | /* print current content of context queue */ |
| 340 | |
| 341 | #define get_charcxx . . $ `external/glpk/glpmpl.h:341:9`! _glp_mpl_get_char |
| 342 | void get_charcxx . . $ `external/glpk/glpmpl.h:341:9`!(MPLcxx . . $ MPL# *mpl); |
| 343 | /* scan next character from input text file */ |
| 344 | |
| 345 | #define append_charcxx . . $ `external/glpk/glpmpl.h:345:9`! _glp_mpl_append_char |
| 346 | void append_charcxx . . $ `external/glpk/glpmpl.h:345:9`!(MPLcxx . . $ MPL# *mpl); |
| 347 | /* append character to current token */ |
| 348 | |
| 349 | #define get_tokencxx . . $ `external/glpk/glpmpl.h:349:9`! _glp_mpl_get_token |
| 350 | void get_tokencxx . . $ `external/glpk/glpmpl.h:349:9`!(MPLcxx . . $ MPL# *mpl); |
| 351 | /* scan next token from input text file */ |
| 352 | |
| 353 | #define unget_tokencxx . . $ `external/glpk/glpmpl.h:353:9`! _glp_mpl_unget_token |
| 354 | void unget_tokencxx . . $ `external/glpk/glpmpl.h:353:9`!(MPLcxx . . $ MPL# *mpl); |
| 355 | /* return current token back to input stream */ |
| 356 | |
| 357 | #define is_keywordcxx . . $ `external/glpk/glpmpl.h:357:9`! _glp_mpl_is_keyword |
| 358 | int is_keywordcxx . . $ `external/glpk/glpmpl.h:357:9`!(MPLcxx . . $ MPL# *mpl, char *keyword); |
| 359 | /* check if current token is given non-reserved keyword */ |
| 360 | |
| 361 | #define is_reservedcxx . . $ `external/glpk/glpmpl.h:361:9`! _glp_mpl_is_reserved |
| 362 | int is_reservedcxx . . $ `external/glpk/glpmpl.h:361:9`!(MPLcxx . . $ MPL# *mpl); |
| 363 | /* check if current token is reserved keyword */ |
| 364 | |
| 365 | #define make_codecxx . . $ `external/glpk/glpmpl.h:365:9`! _glp_mpl_make_code |
| 366 | CODEcxx . . $ CODE# *make_codecxx . . $ `external/glpk/glpmpl.h:365:9`!(MPLcxx . . $ MPL# *mpl, int op, OPERANDScxx . . $ OPERANDS# *arg, int type, int dim); |
| 367 | /* generate pseudo-code (basic routine) */ |
| 368 | |
| 369 | #define make_unarycxx . . $ `external/glpk/glpmpl.h:369:9`! _glp_mpl_make_unary |
| 370 | CODEcxx . . $ CODE# *make_unarycxx . . $ `external/glpk/glpmpl.h:369:9`!(MPLcxx . . $ MPL# *mpl, int op, CODEcxx . . $ CODE# *x, int type, int dim); |
| 371 | /* generate pseudo-code for unary operation */ |
| 372 | |
| 373 | #define make_binarycxx . . $ `external/glpk/glpmpl.h:373:9`! _glp_mpl_make_binary |
| 374 | CODEcxx . . $ CODE# *make_binarycxx . . $ `external/glpk/glpmpl.h:373:9`!(MPLcxx . . $ MPL# *mpl, int op, CODEcxx . . $ CODE# *x, CODEcxx . . $ CODE# *y, int type, |
| 375 | int dim); |
| 376 | /* generate pseudo-code for binary operation */ |
| 377 | |
| 378 | #define make_ternarycxx . . $ `external/glpk/glpmpl.h:378:9`! _glp_mpl_make_ternary |
| 379 | CODEcxx . . $ CODE# *make_ternarycxx . . $ `external/glpk/glpmpl.h:378:9`!(MPLcxx . . $ MPL# *mpl, int op, CODEcxx . . $ CODE# *x, CODEcxx . . $ CODE# *y, CODEcxx . . $ CODE# *z, |
| 380 | int type, int dim); |
| 381 | /* generate pseudo-code for ternary operation */ |
| 382 | |
| 383 | #define numeric_literalcxx . . $ `external/glpk/glpmpl.h:383:9`! _glp_mpl_numeric_literal |
| 384 | CODEcxx . . $ CODE# *numeric_literalcxx . . $ `external/glpk/glpmpl.h:383:9`!(MPLcxx . . $ MPL# *mpl); |
| 385 | /* parse reference to numeric literal */ |
| 386 | |
| 387 | #define string_literalcxx . . $ `external/glpk/glpmpl.h:387:9`! _glp_mpl_string_literal |
| 388 | CODEcxx . . $ CODE# *string_literalcxx . . $ `external/glpk/glpmpl.h:387:9`!(MPLcxx . . $ MPL# *mpl); |
| 389 | /* parse reference to string literal */ |
| 390 | |
| 391 | #define create_arg_listcxx . . $ `external/glpk/glpmpl.h:391:9`! _glp_mpl_create_arg_list |
| 392 | ARG_LISTcxx . . $ ARG_LIST# *create_arg_listcxx . . $ `external/glpk/glpmpl.h:391:9`!(MPLcxx . . $ MPL# *mpl); |
| 393 | /* create empty operands list */ |
| 394 | |
| 395 | #define expand_arg_listcxx . . $ `external/glpk/glpmpl.h:395:9`! _glp_mpl_expand_arg_list |
| 396 | ARG_LISTcxx . . $ ARG_LIST# *expand_arg_listcxx . . $ `external/glpk/glpmpl.h:395:9`!(MPLcxx . . $ MPL# *mpl, ARG_LISTcxx . . $ ARG_LIST# *list, CODEcxx . . $ CODE# *x); |
| 397 | /* append operand to operands list */ |
| 398 | |
| 399 | #define arg_list_lencxx . . $ `external/glpk/glpmpl.h:399:9`! _glp_mpl_arg_list_len |
| 400 | int arg_list_lencxx . . $ `external/glpk/glpmpl.h:399:9`!(MPLcxx . . $ MPL# *mpl, ARG_LISTcxx . . $ ARG_LIST# *list); |
| 401 | /* determine length of operands list */ |
| 402 | |
| 403 | #define subscript_listcxx . . $ `external/glpk/glpmpl.h:403:9`! _glp_mpl_subscript_list |
| 404 | ARG_LISTcxx . . $ ARG_LIST# *subscript_listcxx . . $ `external/glpk/glpmpl.h:403:9`!(MPLcxx . . $ MPL# *mpl); |
| 405 | /* parse subscript list */ |
| 406 | |
| 407 | #define object_referencecxx . . $ `external/glpk/glpmpl.h:407:9`! _glp_mpl_object_reference |
| 408 | CODEcxx . . $ CODE# *object_referencecxx . . $ `external/glpk/glpmpl.h:407:9`!(MPLcxx . . $ MPL# *mpl); |
| 409 | /* parse reference to named object */ |
| 410 | |
| 411 | #define numeric_argumentcxx . . $ `external/glpk/glpmpl.h:411:9`! _glp_mpl_numeric_argument |
| 412 | CODEcxx . . $ CODE# *numeric_argumentcxx . . $ `external/glpk/glpmpl.h:411:9`!(MPLcxx . . $ MPL# *mpl, char *func); |
| 413 | /* parse argument passed to built-in function */ |
| 414 | |
| 415 | #define symbolic_argumentcxx . . $ `external/glpk/glpmpl.h:415:9`! _glp_mpl_symbolic_argument |
| 416 | CODEcxx . . $ CODE# *symbolic_argumentcxx . . $ `external/glpk/glpmpl.h:415:9`!(MPLcxx . . $ MPL# *mpl, char *func); |
| 417 | |
| 418 | #define elemset_argumentcxx . . $ `external/glpk/glpmpl.h:418:9`! _glp_mpl_elemset_argument |
| 419 | CODEcxx . . $ CODE# *elemset_argumentcxx . . $ `external/glpk/glpmpl.h:418:9`!(MPLcxx . . $ MPL# *mpl, char *func); |
| 420 | |
| 421 | #define function_referencecxx . . $ `external/glpk/glpmpl.h:421:9`! _glp_mpl_function_reference |
| 422 | CODEcxx . . $ CODE# *function_referencecxx . . $ `external/glpk/glpmpl.h:421:9`!(MPLcxx . . $ MPL# *mpl); |
| 423 | /* parse reference to built-in function */ |
| 424 | |
| 425 | #define create_domaincxx . . $ `external/glpk/glpmpl.h:425:9`! _glp_mpl_create_domain |
| 426 | DOMAINcxx . . $ `external/glpk/glpmpl.h:45:9`! *create_domaincxx . . $ `external/glpk/glpmpl.h:425:9`!(MPLcxx . . $ MPL# *mpl); |
| 427 | /* create empty domain */ |
| 428 | |
| 429 | #define create_blockcxx . . $ `external/glpk/glpmpl.h:429:9`! _glp_mpl_create_block |
| 430 | DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK# *create_blockcxx . . $ `external/glpk/glpmpl.h:429:9`!(MPLcxx . . $ MPL# *mpl); |
| 431 | /* create empty domain block */ |
| 432 | |
| 433 | #define append_blockcxx . . $ `external/glpk/glpmpl.h:433:9`! _glp_mpl_append_block |
| 434 | void append_blockcxx . . $ `external/glpk/glpmpl.h:433:9`!(MPLcxx . . $ MPL# *mpl, DOMAINcxx . . $ `external/glpk/glpmpl.h:45:9`! *domain, DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK# *block); |
| 435 | /* append domain block to specified domain */ |
| 436 | |
| 437 | #define append_slotcxx . . $ `external/glpk/glpmpl.h:437:9`! _glp_mpl_append_slot |
| 438 | DOMAIN_SLOTcxx . . $ DOMAIN_SLOT# *append_slotcxx . . $ `external/glpk/glpmpl.h:437:9`!(MPLcxx . . $ MPL# *mpl, DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK# *block, char *name, |
| 439 | CODEcxx . . $ CODE# *code); |
| 440 | /* create and append new slot to domain block */ |
| 441 | |
| 442 | #define expression_listcxx . . $ `external/glpk/glpmpl.h:442:9`! _glp_mpl_expression_list |
| 443 | CODEcxx . . $ CODE# *expression_listcxx . . $ `external/glpk/glpmpl.h:442:9`!(MPLcxx . . $ MPL# *mpl); |
| 444 | /* parse expression list */ |
| 445 | |
| 446 | #define literal_setcxx . . $ `external/glpk/glpmpl.h:446:9`! _glp_mpl_literal_set |
| 447 | CODEcxx . . $ CODE# *literal_setcxx . . $ `external/glpk/glpmpl.h:446:9`!(MPLcxx . . $ MPL# *mpl, CODEcxx . . $ CODE# *code); |
| 448 | /* parse literal set */ |
| 449 | |
| 450 | #define indexing_expressioncxx . . $ `external/glpk/glpmpl.h:450:9`! _glp_mpl_indexing_expression |
| 451 | DOMAINcxx . . $ DOMAIN1# *indexing_expressioncxx . . $ `external/glpk/glpmpl.h:450:9`!(MPLcxx . . $ MPL# *mpl); |
| 452 | /* parse indexing expression */ |
| 453 | |
| 454 | #define close_scopecxx . . $ `external/glpk/glpmpl.h:454:9`! _glp_mpl_close_scope |
| 455 | void close_scopecxx . . $ `external/glpk/glpmpl.h:454:9`!(MPLcxx . . $ MPL# *mpl, DOMAINcxx . . $ DOMAIN1# *domain); |
| 456 | /* close scope of indexing expression */ |
| 457 | |
| 458 | #define iterated_expressioncxx . . $ `external/glpk/glpmpl.h:458:9`! _glp_mpl_iterated_expression |
| 459 | CODEcxx . . $ CODE# *iterated_expressioncxx . . $ `external/glpk/glpmpl.h:458:9`!(MPLcxx . . $ MPL# *mpl); |
| 460 | /* parse iterated expression */ |
| 461 | |
| 462 | #define domain_aritycxx . . $ `external/glpk/glpmpl.h:462:9`! _glp_mpl_domain_arity |
| 463 | int domain_aritycxx . . $ `external/glpk/glpmpl.h:462:9`!(MPLcxx . . $ MPL# *mpl, DOMAINcxx . . $ DOMAIN1# *domain); |
| 464 | /* determine arity of domain */ |
| 465 | |
| 466 | #define set_expressioncxx . . $ `external/glpk/glpmpl.h:466:9`! _glp_mpl_set_expression |
| 467 | CODEcxx . . $ CODE# *set_expressioncxx . . $ `external/glpk/glpmpl.h:466:9`!(MPLcxx . . $ MPL# *mpl); |
| 468 | /* parse set expression */ |
| 469 | |
| 470 | #define branched_expressioncxx . . $ `external/glpk/glpmpl.h:470:9`! _glp_mpl_branched_expression |
| 471 | CODEcxx . . $ CODE# *branched_expressioncxx . . $ `external/glpk/glpmpl.h:470:9`!(MPLcxx . . $ MPL# *mpl); |
| 472 | /* parse conditional expression */ |
| 473 | |
| 474 | #define primary_expressioncxx . . $ `external/glpk/glpmpl.h:474:9`! _glp_mpl_primary_expression |
| 475 | CODEcxx . . $ CODE# *primary_expressioncxx . . $ `external/glpk/glpmpl.h:474:9`!(MPLcxx . . $ MPL# *mpl); |
| 476 | /* parse primary expression */ |
| 477 | |
| 478 | #define error_precedingcxx . . $ `external/glpk/glpmpl.h:478:9`! _glp_mpl_error_preceding |
| 479 | void error_precedingcxx . . $ `external/glpk/glpmpl.h:478:9`!(MPLcxx . . $ MPL# *mpl, char *opstr); |
| 480 | /* raise error if preceding operand has wrong type */ |
| 481 | |
| 482 | #define error_followingcxx . . $ `external/glpk/glpmpl.h:482:9`! _glp_mpl_error_following |
| 483 | void error_followingcxx . . $ `external/glpk/glpmpl.h:482:9`!(MPLcxx . . $ MPL# *mpl, char *opstr); |
| 484 | /* raise error if following operand has wrong type */ |
| 485 | |
| 486 | #define error_dimensioncxx . . $ `external/glpk/glpmpl.h:486:9`! _glp_mpl_error_dimension |
| 487 | void error_dimensioncxx . . $ `external/glpk/glpmpl.h:486:9`!(MPLcxx . . $ MPL# *mpl, char *opstr, int dim1, int dim2); |
| 488 | /* raise error if operands have different dimension */ |
| 489 | |
| 490 | #define expression_0cxx . . $ `external/glpk/glpmpl.h:490:9`! _glp_mpl_expression_0 |
| 491 | CODEcxx . . $ CODE# *expression_0cxx . . $ `external/glpk/glpmpl.h:490:9`!(MPLcxx . . $ MPL# *mpl); |
| 492 | /* parse expression of level 0 */ |
| 493 | |
| 494 | #define expression_1cxx . . $ `external/glpk/glpmpl.h:494:9`! _glp_mpl_expression_1 |
| 495 | CODEcxx . . $ CODE# *expression_1cxx . . $ `external/glpk/glpmpl.h:494:9`!(MPLcxx . . $ MPL# *mpl); |
| 496 | /* parse expression of level 1 */ |
| 497 | |
| 498 | #define expression_2cxx . . $ `external/glpk/glpmpl.h:498:9`! _glp_mpl_expression_2 |
| 499 | CODEcxx . . $ CODE# *expression_2cxx . . $ `external/glpk/glpmpl.h:498:9`!(MPLcxx . . $ MPL# *mpl); |
| 500 | /* parse expression of level 2 */ |
| 501 | |
| 502 | #define expression_3cxx . . $ `external/glpk/glpmpl.h:502:9`! _glp_mpl_expression_3 |
| 503 | CODEcxx . . $ CODE# *expression_3cxx . . $ `external/glpk/glpmpl.h:502:9`!(MPLcxx . . $ MPL# *mpl); |
| 504 | /* parse expression of level 3 */ |
| 505 | |
| 506 | #define expression_4cxx . . $ `external/glpk/glpmpl.h:506:9`! _glp_mpl_expression_4 |
| 507 | CODEcxx . . $ CODE# *expression_4cxx . . $ `external/glpk/glpmpl.h:506:9`!(MPLcxx . . $ MPL# *mpl); |
| 508 | /* parse expression of level 4 */ |
| 509 | |
| 510 | #define expression_5cxx . . $ `external/glpk/glpmpl.h:510:9`! _glp_mpl_expression_5 |
| 511 | CODEcxx . . $ CODE# *expression_5cxx . . $ `external/glpk/glpmpl.h:510:9`!(MPLcxx . . $ MPL# *mpl); |
| 512 | /* parse expression of level 5 */ |
| 513 | |
| 514 | #define expression_6cxx . . $ `external/glpk/glpmpl.h:514:9`! _glp_mpl_expression_6 |
| 515 | CODEcxx . . $ CODE# *expression_6cxx . . $ `external/glpk/glpmpl.h:514:9`!(MPLcxx . . $ MPL# *mpl); |
| 516 | /* parse expression of level 6 */ |
| 517 | |
| 518 | #define expression_7cxx . . $ `external/glpk/glpmpl.h:518:9`! _glp_mpl_expression_7 |
| 519 | CODEcxx . . $ CODE# *expression_7cxx . . $ `external/glpk/glpmpl.h:518:9`!(MPLcxx . . $ MPL# *mpl); |
| 520 | /* parse expression of level 7 */ |
| 521 | |
| 522 | #define expression_8cxx . . $ `external/glpk/glpmpl.h:522:9`! _glp_mpl_expression_8 |
| 523 | CODEcxx . . $ CODE# *expression_8cxx . . $ `external/glpk/glpmpl.h:522:9`!(MPLcxx . . $ MPL# *mpl); |
| 524 | /* parse expression of level 8 */ |
| 525 | |
| 526 | #define expression_9cxx . . $ `external/glpk/glpmpl.h:526:9`! _glp_mpl_expression_9 |
| 527 | CODEcxx . . $ CODE# *expression_9cxx . . $ `external/glpk/glpmpl.h:526:9`!(MPLcxx . . $ MPL# *mpl); |
| 528 | /* parse expression of level 9 */ |
| 529 | |
| 530 | #define expression_10cxx . . $ `external/glpk/glpmpl.h:530:9`! _glp_mpl_expression_10 |
| 531 | CODEcxx . . $ CODE# *expression_10cxx . . $ `external/glpk/glpmpl.h:530:9`!(MPLcxx . . $ MPL# *mpl); |
| 532 | /* parse expression of level 10 */ |
| 533 | |
| 534 | #define expression_11cxx . . $ `external/glpk/glpmpl.h:534:9`! _glp_mpl_expression_11 |
| 535 | CODEcxx . . $ CODE# *expression_11cxx . . $ `external/glpk/glpmpl.h:534:9`!(MPLcxx . . $ MPL# *mpl); |
| 536 | /* parse expression of level 11 */ |
| 537 | |
| 538 | #define expression_12cxx . . $ `external/glpk/glpmpl.h:538:9`! _glp_mpl_expression_12 |
| 539 | CODEcxx . . $ CODE# *expression_12cxx . . $ `external/glpk/glpmpl.h:538:9`!(MPLcxx . . $ MPL# *mpl); |
| 540 | /* parse expression of level 12 */ |
| 541 | |
| 542 | #define expression_13cxx . . $ `external/glpk/glpmpl.h:542:9`! _glp_mpl_expression_13 |
| 543 | CODEcxx . . $ CODE# *expression_13cxx . . $ `external/glpk/glpmpl.h:542:9`!(MPLcxx . . $ MPL# *mpl); |
| 544 | /* parse expression of level 13 */ |
| 545 | |
| 546 | #define set_statementcxx . . $ `external/glpk/glpmpl.h:546:9`! _glp_mpl_set_statement |
| 547 | SETcxx . . $ SET# *set_statementcxx . . $ `external/glpk/glpmpl.h:546:9`!(MPLcxx . . $ MPL# *mpl); |
| 548 | /* parse set statement */ |
| 549 | |
| 550 | #define parameter_statementcxx . . $ `external/glpk/glpmpl.h:550:9`! _glp_mpl_parameter_statement |
| 551 | PARAMETERcxx . . $ PARAMETER# *parameter_statementcxx . . $ `external/glpk/glpmpl.h:550:9`!(MPLcxx . . $ MPL# *mpl); |
| 552 | /* parse parameter statement */ |
| 553 | |
| 554 | #define variable_statementcxx . . $ `external/glpk/glpmpl.h:554:9`! _glp_mpl_variable_statement |
| 555 | VARIABLEcxx . . $ VARIABLE# *variable_statementcxx . . $ `external/glpk/glpmpl.h:554:9`!(MPLcxx . . $ MPL# *mpl); |
| 556 | /* parse variable statement */ |
| 557 | |
| 558 | #define constraint_statementcxx . . $ `external/glpk/glpmpl.h:558:9`! _glp_mpl_constraint_statement |
| 559 | CONSTRAINTcxx . . $ CONSTRAINT# *constraint_statementcxx . . $ `external/glpk/glpmpl.h:558:9`!(MPLcxx . . $ MPL# *mpl); |
| 560 | /* parse constraint statement */ |
| 561 | |
| 562 | #define objective_statementcxx . . $ `external/glpk/glpmpl.h:562:9`! _glp_mpl_objective_statement |
| 563 | CONSTRAINTcxx . . $ CONSTRAINT# *objective_statementcxx . . $ `external/glpk/glpmpl.h:562:9`!(MPLcxx . . $ MPL# *mpl); |
| 564 | /* parse objective statement */ |
| 565 | |
| 566 | #define table_statementcxx . . $ `external/glpk/glpmpl.h:566:9`! _glp_mpl_table_statement |
| 567 | TABLEcxx . . $ TABLE# *table_statementcxx . . $ `external/glpk/glpmpl.h:566:9`!(MPLcxx . . $ MPL# *mpl); |
| 568 | /* parse table statement */ |
| 569 | |
| 570 | #define solve_statementcxx . . $ `external/glpk/glpmpl.h:570:9`! _glp_mpl_solve_statement |
| 571 | void *solve_statementcxx . . $ `external/glpk/glpmpl.h:570:9`!(MPLcxx . . $ MPL# *mpl); |
| 572 | /* parse solve statement */ |
| 573 | |
| 574 | #define check_statementcxx . . $ `external/glpk/glpmpl.h:574:9`! _glp_mpl_check_statement |
| 575 | CHECKcxx . . $ CHECK# *check_statementcxx . . $ `external/glpk/glpmpl.h:574:9`!(MPLcxx . . $ MPL# *mpl); |
| 576 | /* parse check statement */ |
| 577 | |
| 578 | #define display_statementcxx . . $ `external/glpk/glpmpl.h:578:9`! _glp_mpl_display_statement |
| 579 | DISPLAYcxx . . $ DISPLAY# *display_statementcxx . . $ `external/glpk/glpmpl.h:578:9`!(MPLcxx . . $ MPL# *mpl); |
| 580 | /* parse display statement */ |
| 581 | |
| 582 | #define printf_statementcxx . . $ `external/glpk/glpmpl.h:582:9`! _glp_mpl_printf_statement |
| 583 | PRINTFcxx . . $ PRINTF# *printf_statementcxx . . $ `external/glpk/glpmpl.h:582:9`!(MPLcxx . . $ MPL# *mpl); |
| 584 | /* parse printf statement */ |
| 585 | |
| 586 | #define for_statementcxx . . $ `external/glpk/glpmpl.h:586:9`! _glp_mpl_for_statement |
| 587 | FORcxx . . $ FOR# *for_statementcxx . . $ `external/glpk/glpmpl.h:586:9`!(MPLcxx . . $ MPL# *mpl); |
| 588 | /* parse for statement */ |
| 589 | |
| 590 | #define end_statementcxx . . $ `external/glpk/glpmpl.h:590:9`! _glp_mpl_end_statement |
| 591 | void end_statementcxx . . $ `external/glpk/glpmpl.h:590:9`!(MPLcxx . . $ MPL# *mpl); |
| 592 | /* parse end statement */ |
| 593 | |
| 594 | #define simple_statementcxx . . $ `external/glpk/glpmpl.h:594:9`! _glp_mpl_simple_statement |
| 595 | STATEMENTcxx . . $ STATEMENT# *simple_statementcxx . . $ `external/glpk/glpmpl.h:594:9`!(MPLcxx . . $ MPL# *mpl, int spec); |
| 596 | /* parse simple statement */ |
| 597 | |
| 598 | #define model_sectioncxx . . $ `external/glpk/glpmpl.h:598:9`! _glp_mpl_model_section |
| 599 | void model_sectioncxx . . $ `external/glpk/glpmpl.h:598:9`!(MPLcxx . . $ MPL# *mpl); |
| 600 | /* parse model section */ |
| 601 | |
| 602 | /**********************************************************************/ |
| 603 | /* * * PROCESSING DATA SECTION * * */ |
| 604 | /**********************************************************************/ |
| 605 | |
| 606 | #if 2 + 2 == 5 |
| 607 | struct SLICE /* see TUPLE */ |
| 608 | { /* component of slice; the slice itself is associated with its |
| 609 | first component; slices are similar to n-tuples with exception |
| 610 | that some slice components (which are indicated by asterisks) |
| 611 | don't refer to any symbols */ |
| 612 | SYMBOL *sym; |
| 613 | /* symbol, which this component refers to; can be NULL */ |
| 614 | SLICE *next; |
| 615 | /* the next component of slice */ |
| 616 | }; |
| 617 | #endif |
| 618 | |
| 619 | #define create_slicecxx . . $ `external/glpk/glpmpl.h:619:9`! _glp_mpl_create_slice |
| 620 | SLICEcxx . . $ SLICE# *create_slicecxx . . $ `external/glpk/glpmpl.h:619:9`!(MPLcxx . . $ MPL# *mpl); |
| 621 | /* create slice */ |
| 622 | |
| 623 | #define expand_slicecxx . . $ `external/glpk/glpmpl.h:623:9`! _glp_mpl_expand_slice |
| 624 | SLICEcxx . . $ SLICE# *expand_slicecxx . . $ `external/glpk/glpmpl.h:623:9`! |
| 625 | ( MPLcxx . . $ MPL# *mpl, |
| 626 | SLICEcxx . . $ SLICE# *slice, /* destroyed */ |
| 627 | SYMBOLcxx . . $ SYMBOL# *sym /* destroyed */ |
| 628 | ); |
| 629 | /* append new component to slice */ |
| 630 | |
| 631 | #define slice_dimencxx . . $ `external/glpk/glpmpl.h:631:9`! _glp_mpl_slice_dimen |
| 632 | int slice_dimencxx . . $ `external/glpk/glpmpl.h:631:9`! |
| 633 | ( MPLcxx . . $ MPL# *mpl, |
| 634 | SLICEcxx . . $ SLICE# *slice /* not changed */ |
| 635 | ); |
| 636 | /* determine dimension of slice */ |
| 637 | |
| 638 | #define slice_aritycxx . . $ `external/glpk/glpmpl.h:638:9`! _glp_mpl_slice_arity |
| 639 | int slice_aritycxx . . $ `external/glpk/glpmpl.h:638:9`! |
| 640 | ( MPLcxx . . $ MPL# *mpl, |
| 641 | SLICEcxx . . $ SLICE# *slice /* not changed */ |
| 642 | ); |
| 643 | /* determine arity of slice */ |
| 644 | |
| 645 | #define fake_slicecxx . . $ `external/glpk/glpmpl.h:645:9`! _glp_mpl_fake_slice |
| 646 | SLICEcxx . . $ SLICE# *fake_slicecxx . . $ `external/glpk/glpmpl.h:645:9`!(MPLcxx . . $ MPL# *mpl, int dim); |
| 647 | /* create fake slice of all asterisks */ |
| 648 | |
| 649 | #define delete_slicecxx . . $ `external/glpk/glpmpl.h:649:9`! _glp_mpl_delete_slice |
| 650 | void delete_slicecxx . . $ `external/glpk/glpmpl.h:649:9`! |
| 651 | ( MPLcxx . . $ MPL# *mpl, |
| 652 | SLICEcxx . . $ SLICE# *slice /* destroyed */ |
| 653 | ); |
| 654 | /* delete slice */ |
| 655 | |
| 656 | #define is_numbercxx . . $ `external/glpk/glpmpl.h:656:9`! _glp_mpl_is_number |
| 657 | int is_numbercxx . . $ `external/glpk/glpmpl.h:656:9`!(MPLcxx . . $ MPL# *mpl); |
| 658 | /* check if current token is number */ |
| 659 | |
| 660 | #define is_symbolcxx . . $ `external/glpk/glpmpl.h:660:9`! _glp_mpl_is_symbol |
| 661 | int is_symbolcxx . . $ `external/glpk/glpmpl.h:660:9`!(MPLcxx . . $ MPL# *mpl); |
| 662 | /* check if current token is symbol */ |
| 663 | |
| 664 | #define is_literalcxx . . $ `external/glpk/glpmpl.h:664:9`! _glp_mpl_is_literal |
| 665 | int is_literalcxx . . $ `external/glpk/glpmpl.h:664:9`!(MPLcxx . . $ MPL# *mpl, char *literal); |
| 666 | /* check if current token is given symbolic literal */ |
| 667 | |
| 668 | #define read_numbercxx . . $ `external/glpk/glpmpl.h:668:9`! _glp_mpl_read_number |
| 669 | double read_numbercxx . . $ `external/glpk/glpmpl.h:668:9`!(MPLcxx . . $ MPL# *mpl); |
| 670 | /* read number */ |
| 671 | |
| 672 | #define read_symbolcxx . . $ `external/glpk/glpmpl.h:672:9`! _glp_mpl_read_symbol |
| 673 | SYMBOLcxx . . $ SYMBOL# *read_symbolcxx . . $ `external/glpk/glpmpl.h:672:9`!(MPLcxx . . $ MPL# *mpl); |
| 674 | /* read symbol */ |
| 675 | |
| 676 | #define read_slicecxx . . $ `external/glpk/glpmpl.h:676:9`! _glp_mpl_read_slice |
| 677 | SLICEcxx . . $ SLICE# *read_slicecxx . . $ `external/glpk/glpmpl.h:676:9`! |
| 678 | ( MPLcxx . . $ MPL# *mpl, |
| 679 | char *name, /* not changed */ |
| 680 | int dim |
| 681 | ); |
| 682 | /* read slice */ |
| 683 | |
| 684 | #define select_setcxx . . $ `external/glpk/glpmpl.h:684:9`! _glp_mpl_select_set |
| 685 | SETcxx . . $ SET# *select_setcxx . . $ `external/glpk/glpmpl.h:684:9`! |
| 686 | ( MPLcxx . . $ MPL# *mpl, |
| 687 | char *name /* not changed */ |
| 688 | ); |
| 689 | /* select set to saturate it with elemental sets */ |
| 690 | |
| 691 | #define simple_formatcxx . . $ `external/glpk/glpmpl.h:691:9`! _glp_mpl_simple_format |
| 692 | void simple_formatcxx . . $ `external/glpk/glpmpl.h:691:9`! |
| 693 | ( MPLcxx . . $ MPL# *mpl, |
| 694 | SETcxx . . $ SET# *set, /* not changed */ |
| 695 | MEMBERcxx . . $ MEMBER# *memb, /* modified */ |
| 696 | SLICEcxx . . $ SLICE# *slice /* not changed */ |
| 697 | ); |
| 698 | /* read set data block in simple format */ |
| 699 | |
| 700 | #define matrix_formatcxx . . $ `external/glpk/glpmpl.h:700:9`! _glp_mpl_matrix_format |
| 701 | void matrix_formatcxx . . $ `external/glpk/glpmpl.h:700:9`! |
| 702 | ( MPLcxx . . $ MPL# *mpl, |
| 703 | SETcxx . . $ SET# *set, /* not changed */ |
| 704 | MEMBERcxx . . $ MEMBER# *memb, /* modified */ |
| 705 | SLICEcxx . . $ SLICE# *slice, /* not changed */ |
| 706 | int tr |
| 707 | ); |
| 708 | /* read set data block in matrix format */ |
| 709 | |
| 710 | #define set_datacxx . . $ `external/glpk/glpmpl.h:710:9`! _glp_mpl_set_data |
| 711 | void set_datacxx . . $ `external/glpk/glpmpl.h:710:9`!(MPLcxx . . $ MPL# *mpl); |
| 712 | /* read set data */ |
| 713 | |
| 714 | #define select_parametercxx . . $ `external/glpk/glpmpl.h:714:9`! _glp_mpl_select_parameter |
| 715 | PARAMETERcxx . . $ PARAMETER# *select_parametercxx . . $ `external/glpk/glpmpl.h:714:9`! |
| 716 | ( MPLcxx . . $ MPL# *mpl, |
| 717 | char *name /* not changed */ |
| 718 | ); |
| 719 | /* select parameter to saturate it with data */ |
| 720 | |
| 721 | #define set_defaultcxx . . $ `external/glpk/glpmpl.h:721:9`! _glp_mpl_set_default |
| 722 | void set_defaultcxx . . $ `external/glpk/glpmpl.h:721:9`! |
| 723 | ( MPLcxx . . $ MPL# *mpl, |
| 724 | PARAMETERcxx . . $ PARAMETER# *par, /* not changed */ |
| 725 | SYMBOLcxx . . $ SYMBOL# *altval /* destroyed */ |
| 726 | ); |
| 727 | /* set default parameter value */ |
| 728 | |
| 729 | #define read_valuecxx . . $ `external/glpk/glpmpl.h:729:9`! _glp_mpl_read_value |
| 730 | MEMBERcxx . . $ MEMBER# *read_valuecxx . . $ `external/glpk/glpmpl.h:729:9`! |
| 731 | ( MPLcxx . . $ MPL# *mpl, |
| 732 | PARAMETERcxx . . $ PARAMETER# *par, /* not changed */ |
| 733 | TUPLEcxx . . $ TUPLE# *tuple /* destroyed */ |
| 734 | ); |
| 735 | /* read value and assign it to parameter member */ |
| 736 | |
| 737 | #define plain_formatcxx . . $ `external/glpk/glpmpl.h:737:9`! _glp_mpl_plain_format |
| 738 | void plain_formatcxx . . $ `external/glpk/glpmpl.h:737:9`! |
| 739 | ( MPLcxx . . $ MPL# *mpl, |
| 740 | PARAMETERcxx . . $ PARAMETER# *par, /* not changed */ |
| 741 | SLICEcxx . . $ SLICE# *slice /* not changed */ |
| 742 | ); |
| 743 | /* read parameter data block in plain format */ |
| 744 | |
| 745 | #define tabular_formatcxx . . $ `external/glpk/glpmpl.h:745:9`! _glp_mpl_tabular_format |
| 746 | void tabular_formatcxx . . $ `external/glpk/glpmpl.h:745:9`! |
| 747 | ( MPLcxx . . $ MPL# *mpl, |
| 748 | PARAMETERcxx . . $ PARAMETER# *par, /* not changed */ |
| 749 | SLICEcxx . . $ SLICE# *slice, /* not changed */ |
| 750 | int tr |
| 751 | ); |
| 752 | /* read parameter data block in tabular format */ |
| 753 | |
| 754 | #define tabbing_formatcxx . . $ `external/glpk/glpmpl.h:754:9`! _glp_mpl_tabbing_format |
| 755 | void tabbing_formatcxx . . $ `external/glpk/glpmpl.h:754:9`! |
| 756 | ( MPLcxx . . $ MPL# *mpl, |
| 757 | SYMBOLcxx . . $ SYMBOL# *altval /* not changed */ |
| 758 | ); |
| 759 | /* read parameter data block in tabbing format */ |
| 760 | |
| 761 | #define parameter_datacxx . . $ `external/glpk/glpmpl.h:761:9`! _glp_mpl_parameter_data |
| 762 | void parameter_datacxx . . $ `external/glpk/glpmpl.h:761:9`!(MPLcxx . . $ MPL# *mpl); |
| 763 | /* read parameter data */ |
| 764 | |
| 765 | #define data_sectioncxx . . $ `external/glpk/glpmpl.h:765:9`! _glp_mpl_data_section |
| 766 | void data_sectioncxx . . $ `external/glpk/glpmpl.h:765:9`!(MPLcxx . . $ MPL# *mpl); |
| 767 | /* read data section */ |
| 768 | |
| 769 | /**********************************************************************/ |
| 770 | /* * * FLOATING-POINT NUMBERS * * */ |
| 771 | /**********************************************************************/ |
| 772 | |
| 773 | #define fp_addcxx . . $ `external/glpk/glpmpl.h:773:9`! _glp_mpl_fp_add |
| 774 | double fp_addcxx . . $ `external/glpk/glpmpl.h:773:9`!(MPLcxx . . $ MPL# *mpl, double x, double y); |
| 775 | /* floating-point addition */ |
| 776 | |
| 777 | #define fp_subcxx . . $ `external/glpk/glpmpl.h:777:9`! _glp_mpl_fp_sub |
| 778 | double fp_subcxx . . $ `external/glpk/glpmpl.h:777:9`!(MPLcxx . . $ MPL# *mpl, double x, double y); |
| 779 | /* floating-point subtraction */ |
| 780 | |
| 781 | #define fp_lesscxx . . $ `external/glpk/glpmpl.h:781:9`! _glp_mpl_fp_less |
| 782 | double fp_lesscxx . . $ `external/glpk/glpmpl.h:781:9`!(MPLcxx . . $ MPL# *mpl, double x, double y); |
| 783 | /* floating-point non-negative subtraction */ |
| 784 | |
| 785 | #define fp_mulcxx . . $ `external/glpk/glpmpl.h:785:9`! _glp_mpl_fp_mul |
| 786 | double fp_mulcxx . . $ `external/glpk/glpmpl.h:785:9`!(MPLcxx . . $ MPL# *mpl, double x, double y); |
| 787 | /* floating-point multiplication */ |
| 788 | |
| 789 | #define fp_divcxx . . $ `external/glpk/glpmpl.h:789:9`! _glp_mpl_fp_div |
| 790 | double fp_divcxx . . $ `external/glpk/glpmpl.h:789:9`!(MPLcxx . . $ MPL# *mpl, double x, double y); |
| 791 | /* floating-point division */ |
| 792 | |
| 793 | #define fp_idivcxx . . $ `external/glpk/glpmpl.h:793:9`! _glp_mpl_fp_idiv |
| 794 | double fp_idivcxx . . $ `external/glpk/glpmpl.h:793:9`!(MPLcxx . . $ MPL# *mpl, double x, double y); |
| 795 | /* floating-point quotient of exact division */ |
| 796 | |
| 797 | #define fp_modcxx . . $ `external/glpk/glpmpl.h:797:9`! _glp_mpl_fp_mod |
| 798 | double fp_modcxx . . $ `external/glpk/glpmpl.h:797:9`!(MPLcxx . . $ MPL# *mpl, double x, double y); |
| 799 | /* floating-point remainder of exact division */ |
| 800 | |
| 801 | #define fp_powercxx . . $ `external/glpk/glpmpl.h:801:9`! _glp_mpl_fp_power |
| 802 | double fp_powercxx . . $ `external/glpk/glpmpl.h:801:9`!(MPLcxx . . $ MPL# *mpl, double x, double y); |
| 803 | /* floating-point exponentiation (raise to power) */ |
| 804 | |
| 805 | #define fp_expcxx . . $ `external/glpk/glpmpl.h:805:9`! _glp_mpl_fp_exp |
| 806 | double fp_expcxx . . $ `external/glpk/glpmpl.h:805:9`!(MPLcxx . . $ MPL# *mpl, double x); |
| 807 | /* floating-point base-e exponential */ |
| 808 | |
| 809 | #define fp_logcxx . . $ `external/glpk/glpmpl.h:809:9`! _glp_mpl_fp_log |
| 810 | double fp_logcxx . . $ `external/glpk/glpmpl.h:809:9`!(MPLcxx . . $ MPL# *mpl, double x); |
| 811 | /* floating-point natural logarithm */ |
| 812 | |
| 813 | #define fp_log10cxx . . $ `external/glpk/glpmpl.h:813:9`! _glp_mpl_fp_log10 |
| 814 | double fp_log10cxx . . $ `external/glpk/glpmpl.h:813:9`!(MPLcxx . . $ MPL# *mpl, double x); |
| 815 | /* floating-point common (decimal) logarithm */ |
| 816 | |
| 817 | #define fp_sqrtcxx . . $ `external/glpk/glpmpl.h:817:9`! _glp_mpl_fp_sqrt |
| 818 | double fp_sqrtcxx . . $ `external/glpk/glpmpl.h:817:9`!(MPLcxx . . $ MPL# *mpl, double x); |
| 819 | /* floating-point square root */ |
| 820 | |
| 821 | #define fp_sincxx . . $ `external/glpk/glpmpl.h:821:9`! _glp_mpl_fp_sin |
| 822 | double fp_sincxx . . $ `external/glpk/glpmpl.h:821:9`!(MPLcxx . . $ MPL# *mpl, double x); |
| 823 | /* floating-point trigonometric sine */ |
| 824 | |
| 825 | #define fp_coscxx . . $ `external/glpk/glpmpl.h:825:9`! _glp_mpl_fp_cos |
| 826 | double fp_coscxx . . $ `external/glpk/glpmpl.h:825:9`!(MPLcxx . . $ MPL# *mpl, double x); |
| 827 | /* floating-point trigonometric cosine */ |
| 828 | |
| 829 | #define fp_atancxx . . $ `external/glpk/glpmpl.h:829:9`! _glp_mpl_fp_atan |
| 830 | double fp_atancxx . . $ `external/glpk/glpmpl.h:829:9`!(MPLcxx . . $ MPL# *mpl, double x); |
| 831 | /* floating-point trigonometric arctangent */ |
| 832 | |
| 833 | #define fp_atan2cxx . . $ `external/glpk/glpmpl.h:833:9`! _glp_mpl_fp_atan2 |
| 834 | double fp_atan2cxx . . $ `external/glpk/glpmpl.h:833:9`!(MPLcxx . . $ MPL# *mpl, double y, double x); |
| 835 | /* floating-point trigonometric arctangent */ |
| 836 | |
| 837 | #define fp_roundcxx . . $ `external/glpk/glpmpl.h:837:9`! _glp_mpl_fp_round |
| 838 | double fp_roundcxx . . $ `external/glpk/glpmpl.h:837:9`!(MPLcxx . . $ MPL# *mpl, double x, double n); |
| 839 | /* round floating-point value to n fractional digits */ |
| 840 | |
| 841 | #define fp_trunccxx . . $ `external/glpk/glpmpl.h:841:9`! _glp_mpl_fp_trunc |
| 842 | double fp_trunccxx . . $ `external/glpk/glpmpl.h:841:9`!(MPLcxx . . $ MPL# *mpl, double x, double n); |
| 843 | /* truncate floating-point value to n fractional digits */ |
| 844 | |
| 845 | /**********************************************************************/ |
| 846 | /* * * PSEUDO-RANDOM NUMBER GENERATORS * * */ |
| 847 | /**********************************************************************/ |
| 848 | |
| 849 | #define fp_irand224cxx . . $ `external/glpk/glpmpl.h:849:9`! _glp_mpl_fp_irand224 |
| 850 | double fp_irand224cxx . . $ `external/glpk/glpmpl.h:849:9`!(MPLcxx . . $ MPL# *mpl); |
| 851 | /* pseudo-random integer in the range [0, 2^24) */ |
| 852 | |
| 853 | #define fp_uniform01cxx . . $ `external/glpk/glpmpl.h:853:9`! _glp_mpl_fp_uniform01 |
| 854 | double fp_uniform01cxx . . $ `external/glpk/glpmpl.h:853:9`!(MPLcxx . . $ MPL# *mpl); |
| 855 | /* pseudo-random number in the range [0, 1) */ |
| 856 | |
| 857 | #define fp_uniformcxx . . $ `external/glpk/glpmpl.h:857:9`! _glp_mpl_uniform |
| 858 | double fp_uniformcxx . . $ `external/glpk/glpmpl.h:857:9`!(MPLcxx . . $ MPL# *mpl, double a, double b); |
| 859 | /* pseudo-random number in the range [a, b) */ |
| 860 | |
| 861 | #define fp_normal01cxx . . $ `external/glpk/glpmpl.h:861:9`! _glp_mpl_fp_normal01 |
| 862 | double fp_normal01cxx . . $ `external/glpk/glpmpl.h:861:9`!(MPLcxx . . $ MPL# *mpl); |
| 863 | /* Gaussian random variate with mu = 0 and sigma = 1 */ |
| 864 | |
| 865 | #define fp_normalcxx . . $ `external/glpk/glpmpl.h:865:9`! _glp_mpl_fp_normal |
| 866 | double fp_normalcxx . . $ `external/glpk/glpmpl.h:865:9`!(MPLcxx . . $ MPL# *mpl, double mu, double sigma); |
| 867 | /* Gaussian random variate with specified mu and sigma */ |
| 868 | |
| 869 | /**********************************************************************/ |
| 870 | /* * * DATE/TIME * * */ |
| 871 | /**********************************************************************/ |
| 872 | |
| 873 | #define fn_gmtimecxx . . $ `external/glpk/glpmpl.h:873:9`! _glp_mpl_fn_gmtime |
| 874 | double fn_gmtimecxx . . $ `external/glpk/glpmpl.h:873:9`!(MPLcxx . . $ MPL# *mpl); |
| 875 | /* obtain the current calendar time (UTC) */ |
| 876 | |
| 877 | #define fn_str2timecxx . . $ `external/glpk/glpmpl.h:877:9`! _glp_mpl_fn_str2time |
| 878 | double fn_str2timecxx . . $ `external/glpk/glpmpl.h:877:9`!(MPLcxx . . $ MPL# *mpl, const char *str, const char *fmt); |
| 879 | /* convert character string to the calendar time */ |
| 880 | |
| 881 | #define fn_time2strcxx . . $ `external/glpk/glpmpl.h:881:9`! _glp_mpl_fn_time2str |
| 882 | void fn_time2strcxx . . $ `external/glpk/glpmpl.h:881:9`!(MPLcxx . . $ MPL# *mpl, char *str, double t, const char *fmt); |
| 883 | /* convert the calendar time to character string */ |
| 884 | |
| 885 | /**********************************************************************/ |
| 886 | /* * * CHARACTER STRINGS * * */ |
| 887 | /**********************************************************************/ |
| 888 | |
| 889 | #define create_stringcxx . . $ `external/glpk/glpmpl.h:889:9`! _glp_mpl_create_string |
| 890 | STRINGcxx . . $ STRING# *create_stringcxx . . $ `external/glpk/glpmpl.h:889:9`! |
| 891 | ( MPLcxx . . $ MPL# *mpl, |
| 892 | char buf[MAX_LENGTHcxx . . $ `external/glpk/glpmpl.h:107:9`!+1] /* not changed */ |
| 893 | ); |
| 894 | /* create character string */ |
| 895 | |
| 896 | #define copy_stringcxx . . $ `external/glpk/glpmpl.h:896:9`! _glp_mpl_copy_string |
| 897 | STRINGcxx . . $ STRING# *copy_stringcxx . . $ `external/glpk/glpmpl.h:896:9`! |
| 898 | ( MPLcxx . . $ MPL# *mpl, |
| 899 | STRINGcxx . . $ STRING# *str /* not changed */ |
| 900 | ); |
| 901 | /* make copy of character string */ |
| 902 | |
| 903 | #define compare_stringscxx . . $ `external/glpk/glpmpl.h:903:9`! _glp_mpl_compare_strings |
| 904 | int compare_stringscxx . . $ `external/glpk/glpmpl.h:903:9`! |
| 905 | ( MPLcxx . . $ MPL# *mpl, |
| 906 | STRINGcxx . . $ STRING# *str1, /* not changed */ |
| 907 | STRINGcxx . . $ STRING# *str2 /* not changed */ |
| 908 | ); |
| 909 | /* compare one character string with another */ |
| 910 | |
| 911 | #define fetch_stringcxx . . $ `external/glpk/glpmpl.h:911:9`! _glp_mpl_fetch_string |
| 912 | char *fetch_stringcxx . . $ `external/glpk/glpmpl.h:911:9`! |
| 913 | ( MPLcxx . . $ MPL# *mpl, |
| 914 | STRINGcxx . . $ STRING# *str, /* not changed */ |
| 915 | char buf[MAX_LENGTHcxx . . $ `external/glpk/glpmpl.h:107:9`!+1] /* modified */ |
| 916 | ); |
| 917 | /* extract content of character string */ |
| 918 | |
| 919 | #define delete_stringcxx . . $ `external/glpk/glpmpl.h:919:9`! _glp_mpl_delete_string |
| 920 | void delete_stringcxx . . $ `external/glpk/glpmpl.h:919:9`! |
| 921 | ( MPLcxx . . $ MPL# *mpl, |
| 922 | STRINGcxx . . $ STRING# *str /* destroyed */ |
| 923 | ); |
| 924 | /* delete character string */ |
| 925 | |
| 926 | /**********************************************************************/ |
| 927 | /* * * SYMBOLS * * */ |
| 928 | /**********************************************************************/ |
| 929 | |
| 930 | struct SYMBOLcxx . . $ SYMBOL# |
| 931 | { /* symbol (numeric or abstract quantity) */ |
| 932 | double numcxx . . $ SYMBOL#num.; |
| 933 | /* numeric value of symbol (used only if str == NULL) */ |
| 934 | STRINGcxx . . $ STRING# *strcxx . . $ SYMBOL#str.; |
| 935 | /* abstract value of symbol (used only if str != NULL) */ |
| 936 | }; |
| 937 | |
| 938 | #define create_symbol_numcxx . . $ `external/glpk/glpmpl.h:938:9`! _glp_mpl_create_symbol_num |
| 939 | SYMBOLcxx . . $ SYMBOL# *create_symbol_numcxx . . $ `external/glpk/glpmpl.h:938:9`!(MPLcxx . . $ MPL# *mpl, double num); |
| 940 | /* create symbol of numeric type */ |
| 941 | |
| 942 | #define create_symbol_strcxx . . $ `external/glpk/glpmpl.h:942:9`! _glp_mpl_create_symbol_str |
| 943 | SYMBOLcxx . . $ SYMBOL# *create_symbol_strcxx . . $ `external/glpk/glpmpl.h:942:9`! |
| 944 | ( MPLcxx . . $ MPL# *mpl, |
| 945 | STRINGcxx . . $ STRING# *str /* destroyed */ |
| 946 | ); |
| 947 | /* create symbol of abstract type */ |
| 948 | |
| 949 | #define copy_symbolcxx . . $ `external/glpk/glpmpl.h:949:9`! _glp_mpl_copy_symbol |
| 950 | SYMBOLcxx . . $ SYMBOL# *copy_symbolcxx . . $ `external/glpk/glpmpl.h:949:9`! |
| 951 | ( MPLcxx . . $ MPL# *mpl, |
| 952 | SYMBOLcxx . . $ SYMBOL# *sym /* not changed */ |
| 953 | ); |
| 954 | /* make copy of symbol */ |
| 955 | |
| 956 | #define compare_symbolscxx . . $ `external/glpk/glpmpl.h:956:9`! _glp_mpl_compare_symbols |
| 957 | int compare_symbolscxx . . $ `external/glpk/glpmpl.h:956:9`! |
| 958 | ( MPLcxx . . $ MPL# *mpl, |
| 959 | SYMBOLcxx . . $ SYMBOL# *sym1, /* not changed */ |
| 960 | SYMBOLcxx . . $ SYMBOL# *sym2 /* not changed */ |
| 961 | ); |
| 962 | /* compare one symbol with another */ |
| 963 | |
| 964 | #define delete_symbolcxx . . $ `external/glpk/glpmpl.h:964:9`! _glp_mpl_delete_symbol |
| 965 | void delete_symbolcxx . . $ `external/glpk/glpmpl.h:964:9`! |
| 966 | ( MPLcxx . . $ MPL# *mpl, |
| 967 | SYMBOLcxx . . $ SYMBOL# *sym /* destroyed */ |
| 968 | ); |
| 969 | /* delete symbol */ |
| 970 | |
| 971 | #define format_symbolcxx . . $ `external/glpk/glpmpl.h:971:9`! _glp_mpl_format_symbol |
| 972 | char *format_symbolcxx . . $ `external/glpk/glpmpl.h:971:9`! |
| 973 | ( MPLcxx . . $ MPL# *mpl, |
| 974 | SYMBOLcxx . . $ SYMBOL# *sym /* not changed */ |
| 975 | ); |
| 976 | /* format symbol for displaying or printing */ |
| 977 | |
| 978 | #define concat_symbolscxx . . $ `external/glpk/glpmpl.h:978:9`! _glp_mpl_concat_symbols |
| 979 | SYMBOLcxx . . $ SYMBOL# *concat_symbolscxx . . $ `external/glpk/glpmpl.h:978:9`! |
| 980 | ( MPLcxx . . $ MPL# *mpl, |
| 981 | SYMBOLcxx . . $ SYMBOL# *sym1, /* destroyed */ |
| 982 | SYMBOLcxx . . $ SYMBOL# *sym2 /* destroyed */ |
| 983 | ); |
| 984 | /* concatenate one symbol with another */ |
| 985 | |
| 986 | /**********************************************************************/ |
| 987 | /* * * N-TUPLES * * */ |
| 988 | /**********************************************************************/ |
| 989 | |
| 990 | struct TUPLEcxx . . $ TUPLE# |
| 991 | { /* component of n-tuple; the n-tuple itself is associated with |
| 992 | its first component; (note that 0-tuple has no components) */ |
| 993 | SYMBOLcxx . . $ SYMBOL# *symcxx . . $ TUPLE#sym.; |
| 994 | /* symbol, which the component refers to; cannot be NULL */ |
| 995 | TUPLEcxx . . $ TUPLE# *nextcxx . . $ TUPLE#next.; |
| 996 | /* the next component of n-tuple */ |
| 997 | }; |
| 998 | |
| 999 | #define create_tuplecxx . . $ `external/glpk/glpmpl.h:999:9`! _glp_mpl_create_tuple |
| 1000 | TUPLEcxx . . $ TUPLE# *create_tuplecxx . . $ `external/glpk/glpmpl.h:999:9`!(MPLcxx . . $ MPL# *mpl); |
| 1001 | /* create n-tuple */ |
| 1002 | |
| 1003 | #define expand_tuplecxx . . $ `external/glpk/glpmpl.h:1003:9`! _glp_mpl_expand_tuple |
| 1004 | TUPLEcxx . . $ TUPLE# *expand_tuplecxx . . $ `external/glpk/glpmpl.h:1003:9`! |
| 1005 | ( MPLcxx . . $ MPL# *mpl, |
| 1006 | TUPLEcxx . . $ TUPLE# *tuple, /* destroyed */ |
| 1007 | SYMBOLcxx . . $ SYMBOL# *sym /* destroyed */ |
| 1008 | ); |
| 1009 | /* append symbol to n-tuple */ |
| 1010 | |
| 1011 | #define tuple_dimencxx . . $ `external/glpk/glpmpl.h:1011:9`! _glp_mpl_tuple_dimen |
| 1012 | int tuple_dimencxx . . $ `external/glpk/glpmpl.h:1011:9`! |
| 1013 | ( MPLcxx . . $ MPL# *mpl, |
| 1014 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1015 | ); |
| 1016 | /* determine dimension of n-tuple */ |
| 1017 | |
| 1018 | #define copy_tuplecxx . . $ `external/glpk/glpmpl.h:1018:9`! _glp_mpl_copy_tuple |
| 1019 | TUPLEcxx . . $ TUPLE# *copy_tuplecxx . . $ `external/glpk/glpmpl.h:1018:9`! |
| 1020 | ( MPLcxx . . $ MPL# *mpl, |
| 1021 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1022 | ); |
| 1023 | /* make copy of n-tuple */ |
| 1024 | |
| 1025 | #define compare_tuplescxx . . $ `external/glpk/glpmpl.h:1025:9`! _glp_mpl_compare_tuples |
| 1026 | int compare_tuplescxx . . $ `external/glpk/glpmpl.h:1025:9`! |
| 1027 | ( MPLcxx . . $ MPL# *mpl, |
| 1028 | TUPLEcxx . . $ TUPLE# *tuple1, /* not changed */ |
| 1029 | TUPLEcxx . . $ TUPLE# *tuple2 /* not changed */ |
| 1030 | ); |
| 1031 | /* compare one n-tuple with another */ |
| 1032 | |
| 1033 | #define build_subtuplecxx . . $ `external/glpk/glpmpl.h:1033:9`! _glp_mpl_build_subtuple |
| 1034 | TUPLEcxx . . $ TUPLE# *build_subtuplecxx . . $ `external/glpk/glpmpl.h:1033:9`! |
| 1035 | ( MPLcxx . . $ MPL# *mpl, |
| 1036 | TUPLEcxx . . $ TUPLE# *tuple, /* not changed */ |
| 1037 | int dim |
| 1038 | ); |
| 1039 | /* build subtuple of given n-tuple */ |
| 1040 | |
| 1041 | #define delete_tuplecxx . . $ `external/glpk/glpmpl.h:1041:9`! _glp_mpl_delete_tuple |
| 1042 | void delete_tuplecxx . . $ `external/glpk/glpmpl.h:1041:9`! |
| 1043 | ( MPLcxx . . $ MPL# *mpl, |
| 1044 | TUPLEcxx . . $ TUPLE# *tuple /* destroyed */ |
| 1045 | ); |
| 1046 | /* delete n-tuple */ |
| 1047 | |
| 1048 | #define format_tuplecxx . . $ `external/glpk/glpmpl.h:1048:9`! _glp_mpl_format_tuple |
| 1049 | char *format_tuplecxx . . $ `external/glpk/glpmpl.h:1048:9`! |
| 1050 | ( MPLcxx . . $ MPL# *mpl, |
| 1051 | int c, |
| 1052 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1053 | ); |
| 1054 | /* format n-tuple for displaying or printing */ |
| 1055 | |
| 1056 | /**********************************************************************/ |
| 1057 | /* * * ELEMENTAL SETS * * */ |
| 1058 | /**********************************************************************/ |
| 1059 | |
| 1060 | #if 2 + 2 == 5 |
| 1061 | struct ELEMSET /* see ARRAY */ |
| 1062 | { /* elemental set of n-tuples; formally it is a "value" assigned |
| 1063 | to members of model sets (like numbers and symbols, which are |
| 1064 | values assigned to members of model parameters); note that a |
| 1065 | simple model set is not an elemental set, it is 0-dimensional |
| 1066 | array, the only member of which (if it exists) is assigned an |
| 1067 | elemental set */ |
| 1068 | #endif |
| 1069 | |
| 1070 | #define create_elemsetcxx . . $ `external/glpk/glpmpl.h:1070:9`! _glp_mpl_create_elemset |
| 1071 | ELEMSETcxx . . $ ELEMSET# *create_elemsetcxx . . $ `external/glpk/glpmpl.h:1070:9`!(MPLcxx . . $ MPL# *mpl, int dim); |
| 1072 | /* create elemental set */ |
| 1073 | |
| 1074 | #define find_tuplecxx . . $ `external/glpk/glpmpl.h:1074:9`! _glp_mpl_find_tuple |
| 1075 | MEMBERcxx . . $ MEMBER# *find_tuplecxx . . $ `external/glpk/glpmpl.h:1074:9`! |
| 1076 | ( MPLcxx . . $ MPL# *mpl, |
| 1077 | ELEMSETcxx . . $ ELEMSET# *set, /* not changed */ |
| 1078 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1079 | ); |
| 1080 | /* check if elemental set contains given n-tuple */ |
| 1081 | |
| 1082 | #define add_tuplecxx . . $ `external/glpk/glpmpl.h:1082:9`! _glp_mpl_add_tuple |
| 1083 | MEMBERcxx . . $ MEMBER# *add_tuplecxx . . $ `external/glpk/glpmpl.h:1082:9`! |
| 1084 | ( MPLcxx . . $ MPL# *mpl, |
| 1085 | ELEMSETcxx . . $ ELEMSET# *set, /* modified */ |
| 1086 | TUPLEcxx . . $ TUPLE# *tuple /* destroyed */ |
| 1087 | ); |
| 1088 | /* add new n-tuple to elemental set */ |
| 1089 | |
| 1090 | #define check_then_addcxx . . $ `external/glpk/glpmpl.h:1090:9`! _glp_mpl_check_then_add |
| 1091 | MEMBERcxx . . $ MEMBER# *check_then_addcxx . . $ `external/glpk/glpmpl.h:1090:9`! |
| 1092 | ( MPLcxx . . $ MPL# *mpl, |
| 1093 | ELEMSETcxx . . $ ELEMSET# *set, /* modified */ |
| 1094 | TUPLEcxx . . $ TUPLE# *tuple /* destroyed */ |
| 1095 | ); |
| 1096 | /* check and add new n-tuple to elemental set */ |
| 1097 | |
| 1098 | #define copy_elemsetcxx . . $ `external/glpk/glpmpl.h:1098:9`! _glp_mpl_copy_elemset |
| 1099 | ELEMSETcxx . . $ ELEMSET# *copy_elemsetcxx . . $ `external/glpk/glpmpl.h:1098:9`! |
| 1100 | ( MPLcxx . . $ MPL# *mpl, |
| 1101 | ELEMSETcxx . . $ ELEMSET# *set /* not changed */ |
| 1102 | ); |
| 1103 | /* make copy of elemental set */ |
| 1104 | |
| 1105 | #define delete_elemsetcxx . . $ `external/glpk/glpmpl.h:1105:9`! _glp_mpl_delete_elemset |
| 1106 | void delete_elemsetcxx . . $ `external/glpk/glpmpl.h:1105:9`! |
| 1107 | ( MPLcxx . . $ MPL# *mpl, |
| 1108 | ELEMSETcxx . . $ ELEMSET# *set /* destroyed */ |
| 1109 | ); |
| 1110 | /* delete elemental set */ |
| 1111 | |
| 1112 | #define arelset_sizecxx . . $ `external/glpk/glpmpl.h:1112:9`! _glp_mpl_arelset_size |
| 1113 | int arelset_sizecxx . . $ `external/glpk/glpmpl.h:1112:9`!(MPLcxx . . $ MPL# *mpl, double t0, double tf, double dt); |
| 1114 | /* compute size of "arithmetic" elemental set */ |
| 1115 | |
| 1116 | #define arelset_membercxx . . $ `external/glpk/glpmpl.h:1116:9`! _glp_mpl_arelset_member |
| 1117 | double arelset_membercxx . . $ `external/glpk/glpmpl.h:1116:9`!(MPLcxx . . $ MPL# *mpl, double t0, double tf, double dt, int j); |
| 1118 | /* compute member of "arithmetic" elemental set */ |
| 1119 | |
| 1120 | #define create_arelsetcxx . . $ `external/glpk/glpmpl.h:1120:9`! _glp_mpl_create_arelset |
| 1121 | ELEMSETcxx . . $ ELEMSET# *create_arelsetcxx . . $ `external/glpk/glpmpl.h:1120:9`!(MPLcxx . . $ MPL# *mpl, double t0, double tf, double dt); |
| 1122 | /* create "arithmetic" elemental set */ |
| 1123 | |
| 1124 | #define set_unioncxx . . $ `external/glpk/glpmpl.h:1124:9`! _glp_mpl_set_union |
| 1125 | ELEMSETcxx . . $ ELEMSET# *set_unioncxx . . $ `external/glpk/glpmpl.h:1124:9`! |
| 1126 | ( MPLcxx . . $ MPL# *mpl, |
| 1127 | ELEMSETcxx . . $ ELEMSET# *X, /* destroyed */ |
| 1128 | ELEMSETcxx . . $ ELEMSET# *Y /* destroyed */ |
| 1129 | ); |
| 1130 | /* union of two elemental sets */ |
| 1131 | |
| 1132 | #define set_diffcxx . . $ `external/glpk/glpmpl.h:1132:9`! _glp_mpl_set_diff |
| 1133 | ELEMSETcxx . . $ ELEMSET# *set_diffcxx . . $ `external/glpk/glpmpl.h:1132:9`! |
| 1134 | ( MPLcxx . . $ MPL# *mpl, |
| 1135 | ELEMSETcxx . . $ ELEMSET# *X, /* destroyed */ |
| 1136 | ELEMSETcxx . . $ ELEMSET# *Y /* destroyed */ |
| 1137 | ); |
| 1138 | /* difference between two elemental sets */ |
| 1139 | |
| 1140 | #define set_symdiffcxx . . $ `external/glpk/glpmpl.h:1140:9`! _glp_mpl_set_symdiff |
| 1141 | ELEMSETcxx . . $ ELEMSET# *set_symdiffcxx . . $ `external/glpk/glpmpl.h:1140:9`! |
| 1142 | ( MPLcxx . . $ MPL# *mpl, |
| 1143 | ELEMSETcxx . . $ ELEMSET# *X, /* destroyed */ |
| 1144 | ELEMSETcxx . . $ ELEMSET# *Y /* destroyed */ |
| 1145 | ); |
| 1146 | /* symmetric difference between two elemental sets */ |
| 1147 | |
| 1148 | #define set_intercxx . . $ `external/glpk/glpmpl.h:1148:9`! _glp_mpl_set_inter |
| 1149 | ELEMSETcxx . . $ ELEMSET# *set_intercxx . . $ `external/glpk/glpmpl.h:1148:9`! |
| 1150 | ( MPLcxx . . $ MPL# *mpl, |
| 1151 | ELEMSETcxx . . $ ELEMSET# *X, /* destroyed */ |
| 1152 | ELEMSETcxx . . $ ELEMSET# *Y /* destroyed */ |
| 1153 | ); |
| 1154 | /* intersection of two elemental sets */ |
| 1155 | |
| 1156 | #define set_crosscxx . . $ `external/glpk/glpmpl.h:1156:9`! _glp_mpl_set_cross |
| 1157 | ELEMSETcxx . . $ ELEMSET# *set_crosscxx . . $ `external/glpk/glpmpl.h:1156:9`! |
| 1158 | ( MPLcxx . . $ MPL# *mpl, |
| 1159 | ELEMSETcxx . . $ ELEMSET# *X, /* destroyed */ |
| 1160 | ELEMSETcxx . . $ ELEMSET# *Y /* destroyed */ |
| 1161 | ); |
| 1162 | /* cross (Cartesian) product of two elemental sets */ |
| 1163 | |
| 1164 | /**********************************************************************/ |
| 1165 | /* * * ELEMENTAL VARIABLES * * */ |
| 1166 | /**********************************************************************/ |
| 1167 | |
| 1168 | struct ELEMVARcxx . . $ ELEMVAR# |
| 1169 | { /* elemental variable; formally it is a "value" assigned to |
| 1170 | members of model variables (like numbers and symbols, which |
| 1171 | are values assigned to members of model parameters) */ |
| 1172 | int jcxx . . $ ELEMVAR#j.; |
| 1173 | /* LP column number assigned to this elemental variable */ |
| 1174 | VARIABLEcxx . . $ VARIABLE# *varcxx . . $ ELEMVAR#var.; |
| 1175 | /* model variable, which contains this elemental variable */ |
| 1176 | MEMBERcxx . . $ MEMBER# *membcxx . . $ ELEMVAR#memb.; |
| 1177 | /* array member, which is assigned this elemental variable */ |
| 1178 | double lbndcxx . . $ ELEMVAR#lbnd.; |
| 1179 | /* lower bound */ |
| 1180 | double ubndcxx . . $ ELEMVAR#ubnd.; |
| 1181 | /* upper bound */ |
| 1182 | double tempcxx . . $ ELEMVAR#temp.; |
| 1183 | /* working quantity used in operations on linear forms; normally |
| 1184 | it contains floating-point zero */ |
| 1185 | #if 1 /* 15/V-2010 */ |
| 1186 | int statcxx . . $ ELEMVAR#stat.; |
| 1187 | double primcxx . . $ ELEMVAR#prim., dualcxx . . $ ELEMVAR#dual.; |
| 1188 | /* solution components provided by the solver */ |
| 1189 | #endif |
| 1190 | }; |
| 1191 | |
| 1192 | /**********************************************************************/ |
| 1193 | /* * * LINEAR FORMS * * */ |
| 1194 | /**********************************************************************/ |
| 1195 | |
| 1196 | struct FORMULAcxx . . $ FORMULA# |
| 1197 | { /* term of linear form c * x, where c is a coefficient, x is an |
| 1198 | elemental variable; the linear form itself is the sum of terms |
| 1199 | and is associated with its first term; (note that the linear |
| 1200 | form may be empty that means the sum is equal to zero) */ |
| 1201 | double coefcxx . . $ FORMULA#coef.; |
| 1202 | /* coefficient at elemental variable or constant term */ |
| 1203 | ELEMVARcxx . . $ ELEMVAR# *varcxx . . $ FORMULA#var.; |
| 1204 | /* reference to elemental variable; NULL means constant term */ |
| 1205 | FORMULAcxx . . $ FORMULA# *nextcxx . . $ FORMULA#next.; |
| 1206 | /* the next term of linear form */ |
| 1207 | }; |
| 1208 | |
| 1209 | #define constant_termcxx . . $ `external/glpk/glpmpl.h:1209:9`! _glp_mpl_constant_term |
| 1210 | FORMULAcxx . . $ FORMULA# *constant_termcxx . . $ `external/glpk/glpmpl.h:1209:9`!(MPLcxx . . $ MPL# *mpl, double coef); |
| 1211 | /* create constant term */ |
| 1212 | |
| 1213 | #define single_variablecxx . . $ `external/glpk/glpmpl.h:1213:9`! _glp_mpl_single_variable |
| 1214 | FORMULAcxx . . $ FORMULA# *single_variablecxx . . $ `external/glpk/glpmpl.h:1213:9`! |
| 1215 | ( MPLcxx . . $ MPL# *mpl, |
| 1216 | ELEMVARcxx . . $ ELEMVAR# *var /* referenced */ |
| 1217 | ); |
| 1218 | /* create single variable */ |
| 1219 | |
| 1220 | #define copy_formulacxx . . $ `external/glpk/glpmpl.h:1220:9`! _glp_mpl_copy_formula |
| 1221 | FORMULAcxx . . $ FORMULA# *copy_formulacxx . . $ `external/glpk/glpmpl.h:1220:9`! |
| 1222 | ( MPLcxx . . $ MPL# *mpl, |
| 1223 | FORMULAcxx . . $ FORMULA# *form /* not changed */ |
| 1224 | ); |
| 1225 | /* make copy of linear form */ |
| 1226 | |
| 1227 | #define delete_formulacxx . . $ `external/glpk/glpmpl.h:1227:9`! _glp_mpl_delete_formula |
| 1228 | void delete_formulacxx . . $ `external/glpk/glpmpl.h:1227:9`! |
| 1229 | ( MPLcxx . . $ MPL# *mpl, |
| 1230 | FORMULAcxx . . $ FORMULA# *form /* destroyed */ |
| 1231 | ); |
| 1232 | /* delete linear form */ |
| 1233 | |
| 1234 | #define linear_combcxx . . $ `external/glpk/glpmpl.h:1234:9`! _glp_mpl_linear_comb |
| 1235 | FORMULAcxx . . $ FORMULA# *linear_combcxx . . $ `external/glpk/glpmpl.h:1234:9`! |
| 1236 | ( MPLcxx . . $ MPL# *mpl, |
| 1237 | double a, FORMULAcxx . . $ FORMULA# *fx, /* destroyed */ |
| 1238 | double b, FORMULAcxx . . $ FORMULA# *fy /* destroyed */ |
| 1239 | ); |
| 1240 | /* linear combination of two linear forms */ |
| 1241 | |
| 1242 | #define remove_constantcxx . . $ `external/glpk/glpmpl.h:1242:9`! _glp_mpl_remove_constant |
| 1243 | FORMULAcxx . . $ FORMULA# *remove_constantcxx . . $ `external/glpk/glpmpl.h:1242:9`! |
| 1244 | ( MPLcxx . . $ MPL# *mpl, |
| 1245 | FORMULAcxx . . $ FORMULA# *form, /* destroyed */ |
| 1246 | double *coef /* modified */ |
| 1247 | ); |
| 1248 | /* remove constant term from linear form */ |
| 1249 | |
| 1250 | #define reduce_termscxx . . $ `external/glpk/glpmpl.h:1250:9`! _glp_mpl_reduce_terms |
| 1251 | FORMULAcxx . . $ FORMULA# *reduce_termscxx . . $ `external/glpk/glpmpl.h:1250:9`! |
| 1252 | ( MPLcxx . . $ MPL# *mpl, |
| 1253 | FORMULAcxx . . $ FORMULA# *form /* destroyed */ |
| 1254 | ); |
| 1255 | /* reduce identical terms in linear form */ |
| 1256 | |
| 1257 | /**********************************************************************/ |
| 1258 | /* * * ELEMENTAL CONSTRAINTS * * */ |
| 1259 | /**********************************************************************/ |
| 1260 | |
| 1261 | struct ELEMCONcxx . . $ ELEMCON# |
| 1262 | { /* elemental constraint; formally it is a "value" assigned to |
| 1263 | members of model constraints (like numbers or symbols, which |
| 1264 | are values assigned to members of model parameters) */ |
| 1265 | int icxx . . $ ELEMCON#i.; |
| 1266 | /* LP row number assigned to this elemental constraint */ |
| 1267 | CONSTRAINTcxx . . $ CONSTRAINT# *concxx . . $ ELEMCON#con.; |
| 1268 | /* model constraint, which contains this elemental constraint */ |
| 1269 | MEMBERcxx . . $ MEMBER# *membcxx . . $ ELEMCON#memb.; |
| 1270 | /* array member, which is assigned this elemental constraint */ |
| 1271 | FORMULAcxx . . $ FORMULA# *formcxx . . $ ELEMCON#form.; |
| 1272 | /* linear form */ |
| 1273 | double lbndcxx . . $ ELEMCON#lbnd.; |
| 1274 | /* lower bound */ |
| 1275 | double ubndcxx . . $ ELEMCON#ubnd.; |
| 1276 | /* upper bound */ |
| 1277 | #if 1 /* 15/V-2010 */ |
| 1278 | int statcxx . . $ ELEMCON#stat.; |
| 1279 | double primcxx . . $ ELEMCON#prim., dualcxx . . $ ELEMCON#dual.; |
| 1280 | /* solution components provided by the solver */ |
| 1281 | #endif |
| 1282 | }; |
| 1283 | |
| 1284 | /**********************************************************************/ |
| 1285 | /* * * GENERIC VALUES * * */ |
| 1286 | /**********************************************************************/ |
| 1287 | |
| 1288 | union VALUEcxx . . $ VALUE# |
| 1289 | { /* generic value, which can be assigned to object member or be a |
| 1290 | result of evaluation of expression */ |
| 1291 | /* indicator that specifies the particular type of generic value |
| 1292 | is stored in the corresponding array or pseudo-code descriptor |
| 1293 | and can be one of the following: |
| 1294 | A_NONE - no value |
| 1295 | A_NUMERIC - floating-point number |
| 1296 | A_SYMBOLIC - symbol |
| 1297 | A_LOGICAL - logical value |
| 1298 | A_TUPLE - n-tuple |
| 1299 | A_ELEMSET - elemental set |
| 1300 | A_ELEMVAR - elemental variable |
| 1301 | A_FORMULA - linear form |
| 1302 | A_ELEMCON - elemental constraint */ |
| 1303 | void *nonecxx . . $ VALUE#none.; /* null */ |
| 1304 | double numcxx . . $ VALUE#num.; /* value */ |
| 1305 | SYMBOLcxx . . $ SYMBOL# *symcxx . . $ VALUE#sym.; /* value */ |
| 1306 | int bitcxx . . $ VALUE#bit.; /* value */ |
| 1307 | TUPLEcxx . . $ TUPLE# *tuplecxx . . $ VALUE#tuple.; /* value */ |
| 1308 | ELEMSETcxx . . $ ELEMSET# *setcxx . . $ VALUE#set.; /* value */ |
| 1309 | ELEMVARcxx . . $ ELEMVAR# *varcxx . . $ VALUE#var.; /* reference */ |
| 1310 | FORMULAcxx . . $ FORMULA# *formcxx . . $ VALUE#form.; /* value */ |
| 1311 | ELEMCONcxx . . $ ELEMCON# *concxx . . $ VALUE#con.; /* reference */ |
| 1312 | }; |
| 1313 | |
| 1314 | #define delete_valuecxx . . $ `external/glpk/glpmpl.h:1314:9`! _glp_mpl_delete_value |
| 1315 | void delete_valuecxx . . $ `external/glpk/glpmpl.h:1314:9`! |
| 1316 | ( MPLcxx . . $ MPL# *mpl, |
| 1317 | int type, |
| 1318 | VALUEcxx . . $ VALUE# *value /* content destroyed */ |
| 1319 | ); |
| 1320 | /* delete generic value */ |
| 1321 | |
| 1322 | /**********************************************************************/ |
| 1323 | /* * * SYMBOLICALLY INDEXED ARRAYS * * */ |
| 1324 | /**********************************************************************/ |
| 1325 | |
| 1326 | struct ARRAYcxx . . $ ARRAY# |
| 1327 | { /* multi-dimensional array, a set of members indexed over simple |
| 1328 | or compound sets of symbols; arrays are used to represent the |
| 1329 | contents of model objects (i.e. sets, parameters, variables, |
| 1330 | constraints, and objectives); arrays also are used as "values" |
| 1331 | that are assigned to members of set objects, in which case the |
| 1332 | array itself represents an elemental set */ |
| 1333 | int typecxx . . $ ARRAY#type.; |
| 1334 | /* type of generic values assigned to the array members: |
| 1335 | A_NONE - none (members have no assigned values) |
| 1336 | A_NUMERIC - floating-point numbers |
| 1337 | A_SYMBOLIC - symbols |
| 1338 | A_ELEMSET - elemental sets |
| 1339 | A_ELEMVAR - elemental variables |
| 1340 | A_ELEMCON - elemental constraints */ |
| 1341 | int dimcxx . . $ ARRAY#dim.; |
| 1342 | /* dimension of the array that determines number of components in |
| 1343 | n-tuples for all members of the array, dim >= 0; dim = 0 means |
| 1344 | the array is 0-dimensional */ |
| 1345 | int sizecxx . . $ ARRAY#size.; |
| 1346 | /* size of the array, i.e. number of its members */ |
| 1347 | MEMBERcxx . . $ MEMBER# *headcxx . . $ ARRAY#head.; |
| 1348 | /* the first array member; NULL means the array is empty */ |
| 1349 | MEMBERcxx . . $ MEMBER# *tailcxx . . $ ARRAY#tail.; |
| 1350 | /* the last array member; NULL means the array is empty */ |
| 1351 | AVLcxx . . $ AVL# *treecxx . . $ ARRAY#tree.; |
| 1352 | /* the search tree intended to find array members for logarithmic |
| 1353 | time; NULL means the search tree doesn't exist */ |
| 1354 | ARRAYcxx . . $ ARRAY# *prevcxx . . $ ARRAY#prev.; |
| 1355 | /* the previous array in the translator database */ |
| 1356 | ARRAYcxx . . $ ARRAY# *nextcxx . . $ ARRAY#next.; |
| 1357 | /* the next array in the translator database */ |
| 1358 | }; |
| 1359 | |
| 1360 | struct MEMBERcxx . . $ MEMBER# |
| 1361 | { /* array member */ |
| 1362 | TUPLEcxx . . $ TUPLE# *tuplecxx . . $ MEMBER#tuple.; |
| 1363 | /* n-tuple, which identifies the member; number of its components |
| 1364 | is the same for all members within the array and determined by |
| 1365 | the array dimension; duplicate members are not allowed */ |
| 1366 | MEMBERcxx . . $ MEMBER# *nextcxx . . $ MEMBER#next.; |
| 1367 | /* the next array member */ |
| 1368 | VALUEcxx . . $ VALUE# valuecxx . . $ MEMBER#value.; |
| 1369 | /* generic value assigned to the member */ |
| 1370 | }; |
| 1371 | |
| 1372 | #define create_arraycxx . . $ `external/glpk/glpmpl.h:1372:9`! _glp_mpl_create_array |
| 1373 | ARRAYcxx . . $ ARRAY# *create_arraycxx . . $ `external/glpk/glpmpl.h:1372:9`!(MPLcxx . . $ MPL# *mpl, int type, int dim); |
| 1374 | /* create array */ |
| 1375 | |
| 1376 | #define find_membercxx . . $ `external/glpk/glpmpl.h:1376:9`! _glp_mpl_find_member |
| 1377 | MEMBERcxx . . $ MEMBER# *find_membercxx . . $ `external/glpk/glpmpl.h:1376:9`! |
| 1378 | ( MPLcxx . . $ MPL# *mpl, |
| 1379 | ARRAYcxx . . $ ARRAY# *array, /* not changed */ |
| 1380 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1381 | ); |
| 1382 | /* find array member with given n-tuple */ |
| 1383 | |
| 1384 | #define add_membercxx . . $ `external/glpk/glpmpl.h:1384:9`! _glp_mpl_add_member |
| 1385 | MEMBERcxx . . $ MEMBER# *add_membercxx . . $ `external/glpk/glpmpl.h:1384:9`! |
| 1386 | ( MPLcxx . . $ MPL# *mpl, |
| 1387 | ARRAYcxx . . $ ARRAY# *array, /* modified */ |
| 1388 | TUPLEcxx . . $ TUPLE# *tuple /* destroyed */ |
| 1389 | ); |
| 1390 | /* add new member to array */ |
| 1391 | |
| 1392 | #define delete_arraycxx . . $ `external/glpk/glpmpl.h:1392:9`! _glp_mpl_delete_array |
| 1393 | void delete_arraycxx . . $ `external/glpk/glpmpl.h:1392:9`! |
| 1394 | ( MPLcxx . . $ MPL# *mpl, |
| 1395 | ARRAYcxx . . $ ARRAY# *array /* destroyed */ |
| 1396 | ); |
| 1397 | /* delete array */ |
| 1398 | |
| 1399 | /**********************************************************************/ |
| 1400 | /* * * DOMAINS AND DUMMY INDICES * * */ |
| 1401 | /**********************************************************************/ |
| 1402 | |
| 1403 | struct DOMAINcxx . . $ `external/glpk/glpmpl.h:45:9`! |
| 1404 | { /* domain (a simple or compound set); syntactically domain looks |
| 1405 | like '{ i in I, (j,k) in S, t in T : <predicate> }'; domains |
| 1406 | are used to define sets, over which model objects are indexed, |
| 1407 | and also as constituents of iterated operators */ |
| 1408 | DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK# *listcxx . . $ DOMAIN1#list.; |
| 1409 | /* linked list of domain blocks (in the example above such blocks |
| 1410 | are 'i in I', '(j,k) in S', and 't in T'); this list cannot be |
| 1411 | empty */ |
| 1412 | CODEcxx . . $ CODE# *codecxx . . $ DOMAIN1#code.; |
| 1413 | /* pseudo-code for computing the logical predicate, which follows |
| 1414 | the colon; NULL means no predicate is specified */ |
| 1415 | }; |
| 1416 | |
| 1417 | struct DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK# |
| 1418 | { /* domain block; syntactically domain blocks look like 'i in I', |
| 1419 | '(j,k) in S', and 't in T' in the example above (in the sequel |
| 1420 | sets like I, S, and T are called basic sets) */ |
| 1421 | DOMAIN_SLOTcxx . . $ DOMAIN_SLOT# *listcxx . . $ DOMAIN_BLOCK#list.; |
| 1422 | /* linked list of domain slots (i.e. indexing positions); number |
| 1423 | of slots in this list is the same as dimension of n-tuples in |
| 1424 | the basic set; this list cannot be empty */ |
| 1425 | CODEcxx . . $ CODE# *codecxx . . $ DOMAIN_BLOCK#code.; |
| 1426 | /* pseudo-code for computing basic set; cannot be NULL */ |
| 1427 | TUPLEcxx . . $ TUPLE# *backupcxx . . $ DOMAIN_BLOCK#backup.; |
| 1428 | /* if this n-tuple is not empty, current values of dummy indices |
| 1429 | in the domain block are the same as components of this n-tuple |
| 1430 | (note that this n-tuple may have larger dimension than number |
| 1431 | of dummy indices in this block, in which case extra components |
| 1432 | are ignored); this n-tuple is used to restore former values of |
| 1433 | dummy indices, if they were changed due to recursive calls to |
| 1434 | the domain block */ |
| 1435 | DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK# *nextcxx . . $ DOMAIN_BLOCK#next.; |
| 1436 | /* the next block in the same domain */ |
| 1437 | }; |
| 1438 | |
| 1439 | struct DOMAIN_SLOTcxx . . $ DOMAIN_SLOT# |
| 1440 | { /* domain slot; it specifies an individual indexing position and |
| 1441 | defines the corresponding dummy index */ |
| 1442 | char *namecxx . . $ DOMAIN_SLOT#name.; |
| 1443 | /* symbolic name of the dummy index; null pointer means the dummy |
| 1444 | index is not explicitly specified */ |
| 1445 | CODEcxx . . $ CODE# *codecxx . . $ DOMAIN_SLOT#code.; |
| 1446 | /* pseudo-code for computing symbolic value, at which the dummy |
| 1447 | index is bound; NULL means the dummy index is free within the |
| 1448 | domain scope */ |
| 1449 | SYMBOLcxx . . $ SYMBOL# *valuecxx . . $ DOMAIN_SLOT#value.; |
| 1450 | /* current value assigned to the dummy index; NULL means no value |
| 1451 | is assigned at the moment */ |
| 1452 | CODEcxx . . $ CODE# *listcxx . . $ DOMAIN_SLOT#list.; |
| 1453 | /* linked list of pseudo-codes with operation O_INDEX referring |
| 1454 | to this slot; this linked list is used to invalidate resultant |
| 1455 | values of the operation, which depend on this dummy index */ |
| 1456 | DOMAIN_SLOTcxx . . $ DOMAIN_SLOT# *nextcxx . . $ DOMAIN_SLOT#next.; |
| 1457 | /* the next slot in the same domain block */ |
| 1458 | }; |
| 1459 | |
| 1460 | #define assign_dummy_indexcxx . . $ `external/glpk/glpmpl.h:1460:9`! _glp_mpl_assign_dummy_index |
| 1461 | void assign_dummy_indexcxx . . $ `external/glpk/glpmpl.h:1460:9`! |
| 1462 | ( MPLcxx . . $ MPL# *mpl, |
| 1463 | DOMAIN_SLOTcxx . . $ DOMAIN_SLOT# *slot, /* modified */ |
| 1464 | SYMBOLcxx . . $ SYMBOL# *value /* not changed */ |
| 1465 | ); |
| 1466 | /* assign new value to dummy index */ |
| 1467 | |
| 1468 | #define update_dummy_indicescxx . . $ `external/glpk/glpmpl.h:1468:9`! _glp_mpl_update_dummy_indices |
| 1469 | void update_dummy_indicescxx . . $ `external/glpk/glpmpl.h:1468:9`! |
| 1470 | ( MPLcxx . . $ MPL# *mpl, |
| 1471 | DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK# *block /* not changed */ |
| 1472 | ); |
| 1473 | /* update current values of dummy indices */ |
| 1474 | |
| 1475 | #define enter_domain_blockcxx . . $ `external/glpk/glpmpl.h:1475:9`! _glp_mpl_enter_domain_block |
| 1476 | int enter_domain_blockcxx . . $ `external/glpk/glpmpl.h:1475:9`! |
| 1477 | ( MPLcxx . . $ MPL# *mpl, |
| 1478 | DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK# *block, /* not changed */ |
| 1479 | TUPLEcxx . . $ TUPLE# *tuple, /* not changed */ |
| 1480 | void *info, void (*func)(MPLcxx . . $ MPL# *mpl, void *info) |
| 1481 | ); |
| 1482 | /* enter domain block */ |
| 1483 | |
| 1484 | #define eval_within_domaincxx . . $ `external/glpk/glpmpl.h:1484:9`! _glp_mpl_eval_within_domain |
| 1485 | int eval_within_domaincxx . . $ `external/glpk/glpmpl.h:1484:9`! |
| 1486 | ( MPLcxx . . $ MPL# *mpl, |
| 1487 | DOMAINcxx . . $ DOMAIN1# *domain, /* not changed */ |
| 1488 | TUPLEcxx . . $ TUPLE# *tuple, /* not changed */ |
| 1489 | void *info, void (*func)(MPLcxx . . $ MPL# *mpl, void *info) |
| 1490 | ); |
| 1491 | /* perform evaluation within domain scope */ |
| 1492 | |
| 1493 | #define loop_within_domaincxx . . $ `external/glpk/glpmpl.h:1493:9`! _glp_mpl_loop_within_domain |
| 1494 | void loop_within_domaincxx . . $ `external/glpk/glpmpl.h:1493:9`! |
| 1495 | ( MPLcxx . . $ MPL# *mpl, |
| 1496 | DOMAINcxx . . $ DOMAIN1# *domain, /* not changed */ |
| 1497 | void *info, int (*func)(MPLcxx . . $ MPL# *mpl, void *info) |
| 1498 | ); |
| 1499 | /* perform iterations within domain scope */ |
| 1500 | |
| 1501 | #define out_of_domaincxx . . $ `external/glpk/glpmpl.h:1501:9`! _glp_mpl_out_of_domain |
| 1502 | void out_of_domaincxx . . $ `external/glpk/glpmpl.h:1501:9`! |
| 1503 | ( MPLcxx . . $ MPL# *mpl, |
| 1504 | char *name, /* not changed */ |
| 1505 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1506 | ); |
| 1507 | /* raise domain exception */ |
| 1508 | |
| 1509 | #define get_domain_tuplecxx . . $ `external/glpk/glpmpl.h:1509:9`! _glp_mpl_get_domain_tuple |
| 1510 | TUPLEcxx . . $ TUPLE# *get_domain_tuplecxx . . $ `external/glpk/glpmpl.h:1509:9`! |
| 1511 | ( MPLcxx . . $ MPL# *mpl, |
| 1512 | DOMAINcxx . . $ DOMAIN1# *domain /* not changed */ |
| 1513 | ); |
| 1514 | /* obtain current n-tuple from domain */ |
| 1515 | |
| 1516 | #define clean_domaincxx . . $ `external/glpk/glpmpl.h:1516:9`! _glp_mpl_clean_domain |
| 1517 | void clean_domaincxx . . $ `external/glpk/glpmpl.h:1516:9`!(MPLcxx . . $ MPL# *mpl, DOMAINcxx . . $ `external/glpk/glpmpl.h:45:9`! *domain); |
| 1518 | /* clean domain */ |
| 1519 | |
| 1520 | /**********************************************************************/ |
| 1521 | /* * * MODEL SETS * * */ |
| 1522 | /**********************************************************************/ |
| 1523 | |
| 1524 | struct SETcxx . . $ SET# |
| 1525 | { /* model set */ |
| 1526 | char *namecxx . . $ SET#name.; |
| 1527 | /* symbolic name; cannot be NULL */ |
| 1528 | char *aliascxx . . $ SET#alias.; |
| 1529 | /* alias; NULL means alias is not specified */ |
| 1530 | int dimcxx . . $ SET#dim.; /* aka arity */ |
| 1531 | /* dimension (number of subscripts); dim = 0 means 0-dimensional |
| 1532 | (unsubscripted) set, dim > 0 means set of sets */ |
| 1533 | DOMAINcxx . . $ DOMAIN1# *domaincxx . . $ SET#domain.; |
| 1534 | /* subscript domain; NULL for 0-dimensional set */ |
| 1535 | int dimencxx . . $ SET#dimen.; |
| 1536 | /* dimension of n-tuples, which members of this set consist of |
| 1537 | (note that the model set itself is an array of elemental sets, |
| 1538 | which are its members; so, don't confuse this dimension with |
| 1539 | dimension of the model set); always non-zero */ |
| 1540 | WITHINcxx . . $ WITHIN# *withincxx . . $ SET#within.; |
| 1541 | /* list of supersets, which restrict each member of the set to be |
| 1542 | in every superset from this list; this list can be empty */ |
| 1543 | CODEcxx . . $ CODE# *assigncxx . . $ SET#assign.; |
| 1544 | /* pseudo-code for computing assigned value; can be NULL */ |
| 1545 | CODEcxx . . $ CODE# *optioncxx . . $ SET#option.; |
| 1546 | /* pseudo-code for computing default value; can be NULL */ |
| 1547 | GADGETcxx . . $ GADGET# *gadgetcxx . . $ SET#gadget.; |
| 1548 | /* plain set used to initialize the array of sets; can be NULL */ |
| 1549 | int datacxx . . $ SET#data.; |
| 1550 | /* data status flag: |
| 1551 | 0 - no data are provided in the data section |
| 1552 | 1 - data are provided, but not checked yet |
| 1553 | 2 - data are provided and have been checked */ |
| 1554 | ARRAYcxx . . $ ARRAY# *arraycxx . . $ SET#array.; |
| 1555 | /* array of members, which are assigned elemental sets */ |
| 1556 | }; |
| 1557 | |
| 1558 | struct WITHINcxx . . $ WITHIN# |
| 1559 | { /* restricting superset list entry */ |
| 1560 | CODEcxx . . $ CODE# *codecxx . . $ WITHIN#code.; |
| 1561 | /* pseudo-code for computing the superset; cannot be NULL */ |
| 1562 | WITHINcxx . . $ WITHIN# *nextcxx . . $ WITHIN#next.; |
| 1563 | /* the next entry for the same set or parameter */ |
| 1564 | }; |
| 1565 | |
| 1566 | struct GADGETcxx . . $ GADGET# |
| 1567 | { /* plain set used to initialize the array of sets with data */ |
| 1568 | SETcxx . . $ SET# *setcxx . . $ GADGET#set.; |
| 1569 | /* pointer to plain set; cannot be NULL */ |
| 1570 | int indcxx . . $ GADGET#ind.[20]; /* ind[dim+dimen]; */ |
| 1571 | /* permutation of integers 1, 2, ..., dim+dimen */ |
| 1572 | }; |
| 1573 | |
| 1574 | #define check_elem_setcxx . . $ `external/glpk/glpmpl.h:1574:9`! _glp_mpl_check_elem_set |
| 1575 | void check_elem_setcxx . . $ `external/glpk/glpmpl.h:1574:9`! |
| 1576 | ( MPLcxx . . $ MPL# *mpl, |
| 1577 | SETcxx . . $ SET# *set, /* not changed */ |
| 1578 | TUPLEcxx . . $ TUPLE# *tuple, /* not changed */ |
| 1579 | ELEMSETcxx . . $ ELEMSET# *refer /* not changed */ |
| 1580 | ); |
| 1581 | /* check elemental set assigned to set member */ |
| 1582 | |
| 1583 | #define take_member_setcxx . . $ `external/glpk/glpmpl.h:1583:9`! _glp_mpl_take_member_set |
| 1584 | ELEMSETcxx . . $ ELEMSET# *take_member_setcxx . . $ `external/glpk/glpmpl.h:1583:9`! /* returns reference, not value */ |
| 1585 | ( MPLcxx . . $ MPL# *mpl, |
| 1586 | SETcxx . . $ SET# *set, /* not changed */ |
| 1587 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1588 | ); |
| 1589 | /* obtain elemental set assigned to set member */ |
| 1590 | |
| 1591 | #define eval_member_setcxx . . $ `external/glpk/glpmpl.h:1591:9`! _glp_mpl_eval_member_set |
| 1592 | ELEMSETcxx . . $ ELEMSET# *eval_member_setcxx . . $ `external/glpk/glpmpl.h:1591:9`! /* returns reference, not value */ |
| 1593 | ( MPLcxx . . $ MPL# *mpl, |
| 1594 | SETcxx . . $ SET# *set, /* not changed */ |
| 1595 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1596 | ); |
| 1597 | /* evaluate elemental set assigned to set member */ |
| 1598 | |
| 1599 | #define eval_whole_setcxx . . $ `external/glpk/glpmpl.h:1599:9`! _glp_mpl_eval_whole_set |
| 1600 | void eval_whole_setcxx . . $ `external/glpk/glpmpl.h:1599:9`!(MPLcxx . . $ MPL# *mpl, SETcxx . . $ SET# *set); |
| 1601 | /* evaluate model set over entire domain */ |
| 1602 | |
| 1603 | #define clean_setcxx . . $ `external/glpk/glpmpl.h:1603:9`! _glp_mpl_clean_set |
| 1604 | void clean_setcxx . . $ `external/glpk/glpmpl.h:1603:9`!(MPLcxx . . $ MPL# *mpl, SETcxx . . $ SET# *set); |
| 1605 | /* clean model set */ |
| 1606 | |
| 1607 | /**********************************************************************/ |
| 1608 | /* * * MODEL PARAMETERS * * */ |
| 1609 | /**********************************************************************/ |
| 1610 | |
| 1611 | struct PARAMETERcxx . . $ PARAMETER# |
| 1612 | { /* model parameter */ |
| 1613 | char *namecxx . . $ PARAMETER#name.; |
| 1614 | /* symbolic name; cannot be NULL */ |
| 1615 | char *aliascxx . . $ PARAMETER#alias.; |
| 1616 | /* alias; NULL means alias is not specified */ |
| 1617 | int dimcxx . . $ PARAMETER#dim.; /* aka arity */ |
| 1618 | /* dimension (number of subscripts); dim = 0 means 0-dimensional |
| 1619 | (unsubscripted) parameter */ |
| 1620 | DOMAINcxx . . $ DOMAIN1# *domaincxx . . $ PARAMETER#domain.; |
| 1621 | /* subscript domain; NULL for 0-dimensional parameter */ |
| 1622 | int typecxx . . $ PARAMETER#type.; |
| 1623 | /* parameter type: |
| 1624 | A_NUMERIC - numeric |
| 1625 | A_INTEGER - integer |
| 1626 | A_BINARY - binary |
| 1627 | A_SYMBOLIC - symbolic */ |
| 1628 | CONDITIONcxx . . $ CONDITION# *condcxx . . $ PARAMETER#cond.; |
| 1629 | /* list of conditions, which restrict each parameter member to |
| 1630 | satisfy to every condition from this list; this list is used |
| 1631 | only for numeric parameters and can be empty */ |
| 1632 | WITHINcxx . . $ WITHIN# *incxx . . $ PARAMETER#in.; |
| 1633 | /* list of supersets, which restrict each parameter member to be |
| 1634 | in every superset from this list; this list is used only for |
| 1635 | symbolic parameters and can be empty */ |
| 1636 | CODEcxx . . $ CODE# *assigncxx . . $ PARAMETER#assign.; |
| 1637 | /* pseudo-code for computing assigned value; can be NULL */ |
| 1638 | CODEcxx . . $ CODE# *optioncxx . . $ PARAMETER#option.; |
| 1639 | /* pseudo-code for computing default value; can be NULL */ |
| 1640 | int datacxx . . $ PARAMETER#data.; |
| 1641 | /* data status flag: |
| 1642 | 0 - no data are provided in the data section |
| 1643 | 1 - data are provided, but not checked yet |
| 1644 | 2 - data are provided and have been checked */ |
| 1645 | SYMBOLcxx . . $ SYMBOL# *defvalcxx . . $ PARAMETER#defval.; |
| 1646 | /* default value provided in the data section; can be NULL */ |
| 1647 | ARRAYcxx . . $ ARRAY# *arraycxx . . $ PARAMETER#array.; |
| 1648 | /* array of members, which are assigned numbers or symbols */ |
| 1649 | }; |
| 1650 | |
| 1651 | struct CONDITIONcxx . . $ CONDITION# |
| 1652 | { /* restricting condition list entry */ |
| 1653 | int rhocxx . . $ CONDITION#rho.; |
| 1654 | /* flag that specifies the form of the condition: |
| 1655 | O_LT - less than |
| 1656 | O_LE - less than or equal to |
| 1657 | O_EQ - equal to |
| 1658 | O_GE - greater than or equal to |
| 1659 | O_GT - greater than |
| 1660 | O_NE - not equal to */ |
| 1661 | CODEcxx . . $ CODE# *codecxx . . $ CONDITION#code.; |
| 1662 | /* pseudo-code for computing the reference value */ |
| 1663 | CONDITIONcxx . . $ CONDITION# *nextcxx . . $ CONDITION#next.; |
| 1664 | /* the next entry for the same parameter */ |
| 1665 | }; |
| 1666 | |
| 1667 | #define check_value_numcxx . . $ `external/glpk/glpmpl.h:1667:9`! _glp_mpl_check_value_num |
| 1668 | void check_value_numcxx . . $ `external/glpk/glpmpl.h:1667:9`! |
| 1669 | ( MPLcxx . . $ MPL# *mpl, |
| 1670 | PARAMETERcxx . . $ PARAMETER# *par, /* not changed */ |
| 1671 | TUPLEcxx . . $ TUPLE# *tuple, /* not changed */ |
| 1672 | double value |
| 1673 | ); |
| 1674 | /* check numeric value assigned to parameter member */ |
| 1675 | |
| 1676 | #define take_member_numcxx . . $ `external/glpk/glpmpl.h:1676:9`! _glp_mpl_take_member_num |
| 1677 | double take_member_numcxx . . $ `external/glpk/glpmpl.h:1676:9`! |
| 1678 | ( MPLcxx . . $ MPL# *mpl, |
| 1679 | PARAMETERcxx . . $ PARAMETER# *par, /* not changed */ |
| 1680 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1681 | ); |
| 1682 | /* obtain numeric value assigned to parameter member */ |
| 1683 | |
| 1684 | #define eval_member_numcxx . . $ `external/glpk/glpmpl.h:1684:9`! _glp_mpl_eval_member_num |
| 1685 | double eval_member_numcxx . . $ `external/glpk/glpmpl.h:1684:9`! |
| 1686 | ( MPLcxx . . $ MPL# *mpl, |
| 1687 | PARAMETERcxx . . $ PARAMETER# *par, /* not changed */ |
| 1688 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1689 | ); |
| 1690 | /* evaluate numeric value assigned to parameter member */ |
| 1691 | |
| 1692 | #define check_value_symcxx . . $ `external/glpk/glpmpl.h:1692:9`! _glp_mpl_check_value_sym |
| 1693 | void check_value_symcxx . . $ `external/glpk/glpmpl.h:1692:9`! |
| 1694 | ( MPLcxx . . $ MPL# *mpl, |
| 1695 | PARAMETERcxx . . $ PARAMETER# *par, /* not changed */ |
| 1696 | TUPLEcxx . . $ TUPLE# *tuple, /* not changed */ |
| 1697 | SYMBOLcxx . . $ SYMBOL# *value /* not changed */ |
| 1698 | ); |
| 1699 | /* check symbolic value assigned to parameter member */ |
| 1700 | |
| 1701 | #define take_member_symcxx . . $ `external/glpk/glpmpl.h:1701:9`! _glp_mpl_take_member_sym |
| 1702 | SYMBOLcxx . . $ SYMBOL# *take_member_symcxx . . $ `external/glpk/glpmpl.h:1701:9`! /* returns value, not reference */ |
| 1703 | ( MPLcxx . . $ MPL# *mpl, |
| 1704 | PARAMETERcxx . . $ PARAMETER# *par, /* not changed */ |
| 1705 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1706 | ); |
| 1707 | /* obtain symbolic value assigned to parameter member */ |
| 1708 | |
| 1709 | #define eval_member_symcxx . . $ `external/glpk/glpmpl.h:1709:9`! _glp_mpl_eval_member_sym |
| 1710 | SYMBOLcxx . . $ SYMBOL# *eval_member_symcxx . . $ `external/glpk/glpmpl.h:1709:9`! /* returns value, not reference */ |
| 1711 | ( MPLcxx . . $ MPL# *mpl, |
| 1712 | PARAMETERcxx . . $ PARAMETER# *par, /* not changed */ |
| 1713 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1714 | ); |
| 1715 | /* evaluate symbolic value assigned to parameter member */ |
| 1716 | |
| 1717 | #define eval_whole_parcxx . . $ `external/glpk/glpmpl.h:1717:9`! _glp_mpl_eval_whole_par |
| 1718 | void eval_whole_parcxx . . $ `external/glpk/glpmpl.h:1717:9`!(MPLcxx . . $ MPL# *mpl, PARAMETERcxx . . $ PARAMETER# *par); |
| 1719 | /* evaluate model parameter over entire domain */ |
| 1720 | |
| 1721 | #define clean_parametercxx . . $ `external/glpk/glpmpl.h:1721:9`! _glp_mpl_clean_parameter |
| 1722 | void clean_parametercxx . . $ `external/glpk/glpmpl.h:1721:9`!(MPLcxx . . $ MPL# *mpl, PARAMETERcxx . . $ PARAMETER# *par); |
| 1723 | /* clean model parameter */ |
| 1724 | |
| 1725 | /**********************************************************************/ |
| 1726 | /* * * MODEL VARIABLES * * */ |
| 1727 | /**********************************************************************/ |
| 1728 | |
| 1729 | struct VARIABLEcxx . . $ VARIABLE# |
| 1730 | { /* model variable */ |
| 1731 | char *namecxx . . $ VARIABLE#name.; |
| 1732 | /* symbolic name; cannot be NULL */ |
| 1733 | char *aliascxx . . $ VARIABLE#alias.; |
| 1734 | /* alias; NULL means alias is not specified */ |
| 1735 | int dimcxx . . $ VARIABLE#dim.; /* aka arity */ |
| 1736 | /* dimension (number of subscripts); dim = 0 means 0-dimensional |
| 1737 | (unsubscripted) variable */ |
| 1738 | DOMAINcxx . . $ DOMAIN1# *domaincxx . . $ VARIABLE#domain.; |
| 1739 | /* subscript domain; NULL for 0-dimensional variable */ |
| 1740 | int typecxx . . $ VARIABLE#type.; |
| 1741 | /* variable type: |
| 1742 | A_NUMERIC - continuous |
| 1743 | A_INTEGER - integer |
| 1744 | A_BINARY - binary */ |
| 1745 | CODEcxx . . $ CODE# *lbndcxx . . $ VARIABLE#lbnd.; |
| 1746 | /* pseudo-code for computing lower bound; NULL means lower bound |
| 1747 | is not specified */ |
| 1748 | CODEcxx . . $ CODE# *ubndcxx . . $ VARIABLE#ubnd.; |
| 1749 | /* pseudo-code for computing upper bound; NULL means upper bound |
| 1750 | is not specified */ |
| 1751 | /* if both the pointers lbnd and ubnd refer to the same code, the |
| 1752 | variable is fixed at the corresponding value */ |
| 1753 | ARRAYcxx . . $ ARRAY# *arraycxx . . $ VARIABLE#array.; |
| 1754 | /* array of members, which are assigned elemental variables */ |
| 1755 | }; |
| 1756 | |
| 1757 | #define take_member_varcxx . . $ `external/glpk/glpmpl.h:1757:9`! _glp_mpl_take_member_var |
| 1758 | ELEMVARcxx . . $ ELEMVAR# *take_member_varcxx . . $ `external/glpk/glpmpl.h:1757:9`! /* returns reference */ |
| 1759 | ( MPLcxx . . $ MPL# *mpl, |
| 1760 | VARIABLEcxx . . $ VARIABLE# *var, /* not changed */ |
| 1761 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1762 | ); |
| 1763 | /* obtain reference to elemental variable */ |
| 1764 | |
| 1765 | #define eval_member_varcxx . . $ `external/glpk/glpmpl.h:1765:9`! _glp_mpl_eval_member_var |
| 1766 | ELEMVARcxx . . $ ELEMVAR# *eval_member_varcxx . . $ `external/glpk/glpmpl.h:1765:9`! /* returns reference */ |
| 1767 | ( MPLcxx . . $ MPL# *mpl, |
| 1768 | VARIABLEcxx . . $ VARIABLE# *var, /* not changed */ |
| 1769 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1770 | ); |
| 1771 | /* evaluate reference to elemental variable */ |
| 1772 | |
| 1773 | #define eval_whole_varcxx . . $ `external/glpk/glpmpl.h:1773:9`! _glp_mpl_eval_whole_var |
| 1774 | void eval_whole_varcxx . . $ `external/glpk/glpmpl.h:1773:9`!(MPLcxx . . $ MPL# *mpl, VARIABLEcxx . . $ VARIABLE# *var); |
| 1775 | /* evaluate model variable over entire domain */ |
| 1776 | |
| 1777 | #define clean_variablecxx . . $ `external/glpk/glpmpl.h:1777:9`! _glp_mpl_clean_variable |
| 1778 | void clean_variablecxx . . $ `external/glpk/glpmpl.h:1777:9`!(MPLcxx . . $ MPL# *mpl, VARIABLEcxx . . $ VARIABLE# *var); |
| 1779 | /* clean model variable */ |
| 1780 | |
| 1781 | /**********************************************************************/ |
| 1782 | /* * * MODEL CONSTRAINTS AND OBJECTIVES * * */ |
| 1783 | /**********************************************************************/ |
| 1784 | |
| 1785 | struct CONSTRAINTcxx . . $ CONSTRAINT# |
| 1786 | { /* model constraint or objective */ |
| 1787 | char *namecxx . . $ CONSTRAINT#name.; |
| 1788 | /* symbolic name; cannot be NULL */ |
| 1789 | char *aliascxx . . $ CONSTRAINT#alias.; |
| 1790 | /* alias; NULL means alias is not specified */ |
| 1791 | int dimcxx . . $ CONSTRAINT#dim.; /* aka arity */ |
| 1792 | /* dimension (number of subscripts); dim = 0 means 0-dimensional |
| 1793 | (unsubscripted) constraint */ |
| 1794 | DOMAINcxx . . $ DOMAIN1# *domaincxx . . $ CONSTRAINT#domain.; |
| 1795 | /* subscript domain; NULL for 0-dimensional constraint */ |
| 1796 | int typecxx . . $ CONSTRAINT#type.; |
| 1797 | /* constraint type: |
| 1798 | A_CONSTRAINT - constraint |
| 1799 | A_MINIMIZE - objective (minimization) |
| 1800 | A_MAXIMIZE - objective (maximization) */ |
| 1801 | CODEcxx . . $ CODE# *codecxx . . $ CONSTRAINT#code.; |
| 1802 | /* pseudo-code for computing main linear form; cannot be NULL */ |
| 1803 | CODEcxx . . $ CODE# *lbndcxx . . $ CONSTRAINT#lbnd.; |
| 1804 | /* pseudo-code for computing lower bound; NULL means lower bound |
| 1805 | is not specified */ |
| 1806 | CODEcxx . . $ CODE# *ubndcxx . . $ CONSTRAINT#ubnd.; |
| 1807 | /* pseudo-code for computing upper bound; NULL means upper bound |
| 1808 | is not specified */ |
| 1809 | /* if both the pointers lbnd and ubnd refer to the same code, the |
| 1810 | constraint has the form of equation */ |
| 1811 | ARRAYcxx . . $ ARRAY# *arraycxx . . $ CONSTRAINT#array.; |
| 1812 | /* array of members, which are assigned elemental constraints */ |
| 1813 | }; |
| 1814 | |
| 1815 | #define take_member_concxx . . $ `external/glpk/glpmpl.h:1815:9`! _glp_mpl_take_member_con |
| 1816 | ELEMCONcxx . . $ ELEMCON# *take_member_concxx . . $ `external/glpk/glpmpl.h:1815:9`! /* returns reference */ |
| 1817 | ( MPLcxx . . $ MPL# *mpl, |
| 1818 | CONSTRAINTcxx . . $ CONSTRAINT# *con, /* not changed */ |
| 1819 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1820 | ); |
| 1821 | /* obtain reference to elemental constraint */ |
| 1822 | |
| 1823 | #define eval_member_concxx . . $ `external/glpk/glpmpl.h:1823:9`! _glp_mpl_eval_member_con |
| 1824 | ELEMCONcxx . . $ ELEMCON# *eval_member_concxx . . $ `external/glpk/glpmpl.h:1823:9`! /* returns reference */ |
| 1825 | ( MPLcxx . . $ MPL# *mpl, |
| 1826 | CONSTRAINTcxx . . $ CONSTRAINT# *con, /* not changed */ |
| 1827 | TUPLEcxx . . $ TUPLE# *tuple /* not changed */ |
| 1828 | ); |
| 1829 | /* evaluate reference to elemental constraint */ |
| 1830 | |
| 1831 | #define eval_whole_concxx . . $ `external/glpk/glpmpl.h:1831:9`! _glp_mpl_eval_whole_con |
| 1832 | void eval_whole_concxx . . $ `external/glpk/glpmpl.h:1831:9`!(MPLcxx . . $ MPL# *mpl, CONSTRAINTcxx . . $ CONSTRAINT# *con); |
| 1833 | /* evaluate model constraint over entire domain */ |
| 1834 | |
| 1835 | #define clean_constraintcxx . . $ `external/glpk/glpmpl.h:1835:9`! _glp_mpl_clean_constraint |
| 1836 | void clean_constraintcxx . . $ `external/glpk/glpmpl.h:1835:9`!(MPLcxx . . $ MPL# *mpl, CONSTRAINTcxx . . $ CONSTRAINT# *con); |
| 1837 | /* clean model constraint */ |
| 1838 | |
| 1839 | /**********************************************************************/ |
| 1840 | /* * * DATA TABLES * * */ |
| 1841 | /**********************************************************************/ |
| 1842 | |
| 1843 | struct TABLEcxx . . $ TABLE# |
| 1844 | { /* data table */ |
| 1845 | char *namecxx . . $ TABLE#name.; |
| 1846 | /* symbolic name; cannot be NULL */ |
| 1847 | char *aliascxx . . $ TABLE#alias.; |
| 1848 | /* alias; NULL means alias is not specified */ |
| 1849 | int typecxx . . $ TABLE#type.; |
| 1850 | /* table type: |
| 1851 | A_INPUT - input table |
| 1852 | A_OUTPUT - output table */ |
| 1853 | TABARGcxx . . $ TABARG# *argcxx . . $ TABLE#arg.; |
| 1854 | /* argument list; cannot be empty */ |
| 1855 | unioncxx . . $ TABLE#$anonymous_type_0# |
| 1856 | { structcxx . . $ TABLE#$anonymous_type_0#$anonymous_type_1# |
| 1857 | { SETcxx . . $ SET# *setcxx . . $ TABLE#$anonymous_type_0#$anonymous_type_1#set.; |
| 1858 | /* input set; NULL means the set is not specified */ |
| 1859 | TABFLDcxx . . $ TABFLD# *fldcxx . . $ TABLE#$anonymous_type_0#$anonymous_type_1#fld.; |
| 1860 | /* field list; cannot be empty */ |
| 1861 | TABINcxx . . $ TABIN# *listcxx . . $ TABLE#$anonymous_type_0#$anonymous_type_1#list.; |
| 1862 | /* input list; can be empty */ |
| 1863 | } incxx . . $ TABLE#$anonymous_type_0#in.; |
| 1864 | structcxx . . $ TABLE#$anonymous_type_0#$anonymous_type_2# |
| 1865 | { DOMAINcxx . . $ DOMAIN1# *domaincxx . . $ TABLE#$anonymous_type_0#$anonymous_type_2#domain.; |
| 1866 | /* subscript domain; cannot be NULL */ |
| 1867 | TABOUTcxx . . $ TABOUT# *listcxx . . $ TABLE#$anonymous_type_0#$anonymous_type_2#list.; |
| 1868 | /* output list; cannot be empty */ |
| 1869 | } outcxx . . $ TABLE#$anonymous_type_0#out.; |
| 1870 | } ucxx . . $ TABLE#u.; |
| 1871 | }; |
| 1872 | |
| 1873 | struct TABARGcxx . . $ TABARG# |
| 1874 | { /* table argument list entry */ |
| 1875 | CODEcxx . . $ CODE# *codecxx . . $ TABARG#code.; |
| 1876 | /* pseudo-code for computing the argument */ |
| 1877 | TABARGcxx . . $ TABARG# *nextcxx . . $ TABARG#next.; |
| 1878 | /* next entry for the same table */ |
| 1879 | }; |
| 1880 | |
| 1881 | struct TABFLDcxx . . $ TABFLD# |
| 1882 | { /* table field list entry */ |
| 1883 | char *namecxx . . $ TABFLD#name.; |
| 1884 | /* field name; cannot be NULL */ |
| 1885 | TABFLDcxx . . $ TABFLD# *nextcxx . . $ TABFLD#next.; |
| 1886 | /* next entry for the same table */ |
| 1887 | }; |
| 1888 | |
| 1889 | struct TABINcxx . . $ TABIN# |
| 1890 | { /* table input list entry */ |
| 1891 | PARAMETERcxx . . $ PARAMETER# *parcxx . . $ TABIN#par.; |
| 1892 | /* parameter to be read; cannot be NULL */ |
| 1893 | char *namecxx . . $ TABIN#name.; |
| 1894 | /* column name; cannot be NULL */ |
| 1895 | TABINcxx . . $ TABIN# *nextcxx . . $ TABIN#next.; |
| 1896 | /* next entry for the same table */ |
| 1897 | }; |
| 1898 | |
| 1899 | struct TABOUTcxx . . $ TABOUT# |
| 1900 | { /* table output list entry */ |
| 1901 | CODEcxx . . $ CODE# *codecxx . . $ TABOUT#code.; |
| 1902 | /* pseudo-code for computing the value to be written */ |
| 1903 | char *namecxx . . $ TABOUT#name.; |
| 1904 | /* column name; cannot be NULL */ |
| 1905 | TABOUTcxx . . $ TABOUT# *nextcxx . . $ TABOUT#next.; |
| 1906 | /* next entry for the same table */ |
| 1907 | }; |
| 1908 | |
| 1909 | struct TABDCAcxx . . $ TABDCA# |
| 1910 | { /* table driver communication area */ |
| 1911 | int idcxx . . $ TABDCA#id.; |
| 1912 | /* driver identifier (set by mpl_tab_drv_open) */ |
| 1913 | void *linkcxx . . $ TABDCA#link.; |
| 1914 | /* driver link pointer (set by mpl_tab_drv_open) */ |
| 1915 | int nacxx . . $ TABDCA#na.; |
| 1916 | /* number of arguments */ |
| 1917 | char **argcxx . . $ TABDCA#arg.; /* char *arg[1+ns]; */ |
| 1918 | /* arg[k], 1 <= k <= ns, is pointer to k-th argument */ |
| 1919 | int nfcxx . . $ TABDCA#nf.; |
| 1920 | /* number of fields */ |
| 1921 | char **namecxx . . $ TABDCA#name.; /* char *name[1+nc]; */ |
| 1922 | /* name[k], 1 <= k <= nc, is name of k-th field */ |
| 1923 | int *typecxx . . $ TABDCA#type.; /* int type[1+nc]; */ |
| 1924 | /* type[k], 1 <= k <= nc, is type of k-th field: |
| 1925 | '?' - value not assigned |
| 1926 | 'N' - number |
| 1927 | 'S' - character string */ |
| 1928 | double *numcxx . . $ TABDCA#num.; /* double num[1+nc]; */ |
| 1929 | /* num[k], 1 <= k <= nc, is numeric value of k-th field */ |
| 1930 | char **strcxx . . $ TABDCA#str.; |
| 1931 | /* str[k], 1 <= k <= nc, is string value of k-th field */ |
| 1932 | }; |
| 1933 | |
| 1934 | #define mpl_tab_num_argscxx . . $ `external/glpk/glpmpl.h:1934:9`! _glp_mpl_tab_num_args |
| 1935 | int mpl_tab_num_argscxx . . $ `external/glpk/glpmpl.h:1934:9`!(TABDCAcxx . . $ TABDCA# *dca); |
| 1936 | |
| 1937 | #define mpl_tab_get_argcxx . . $ `external/glpk/glpmpl.h:1937:9`! _glp_mpl_tab_get_arg |
| 1938 | const char *mpl_tab_get_argcxx . . $ `external/glpk/glpmpl.h:1937:9`!(TABDCAcxx . . $ TABDCA# *dca, int k); |
| 1939 | |
| 1940 | #define mpl_tab_num_fldscxx . . $ `external/glpk/glpmpl.h:1940:9`! _glp_mpl_tab_num_flds |
| 1941 | int mpl_tab_num_fldscxx . . $ `external/glpk/glpmpl.h:1940:9`!(TABDCAcxx . . $ TABDCA# *dca); |
| 1942 | |
| 1943 | #define mpl_tab_get_namecxx . . $ `external/glpk/glpmpl.h:1943:9`! _glp_mpl_tab_get_name |
| 1944 | const char *mpl_tab_get_namecxx . . $ `external/glpk/glpmpl.h:1943:9`!(TABDCAcxx . . $ TABDCA# *dca, int k); |
| 1945 | |
| 1946 | #define mpl_tab_get_typecxx . . $ `external/glpk/glpmpl.h:1946:9`! _glp_mpl_tab_get_type |
| 1947 | int mpl_tab_get_typecxx . . $ `external/glpk/glpmpl.h:1946:9`!(TABDCAcxx . . $ TABDCA# *dca, int k); |
| 1948 | |
| 1949 | #define mpl_tab_get_numcxx . . $ `external/glpk/glpmpl.h:1949:9`! _glp_mpl_tab_get_num |
| 1950 | double mpl_tab_get_numcxx . . $ `external/glpk/glpmpl.h:1949:9`!(TABDCAcxx . . $ TABDCA# *dca, int k); |
| 1951 | |
| 1952 | #define mpl_tab_get_strcxx . . $ `external/glpk/glpmpl.h:1952:9`! _glp_mpl_tab_get_str |
| 1953 | const char *mpl_tab_get_strcxx . . $ `external/glpk/glpmpl.h:1952:9`!(TABDCAcxx . . $ TABDCA# *dca, int k); |
| 1954 | |
| 1955 | #define mpl_tab_set_numcxx . . $ `external/glpk/glpmpl.h:1955:9`! _glp_mpl_tab_set_num |
| 1956 | void mpl_tab_set_numcxx . . $ `external/glpk/glpmpl.h:1955:9`!(TABDCAcxx . . $ TABDCA# *dca, int k, double num); |
| 1957 | |
| 1958 | #define mpl_tab_set_strcxx . . $ `external/glpk/glpmpl.h:1958:9`! _glp_mpl_tab_set_str |
| 1959 | void mpl_tab_set_strcxx . . $ `external/glpk/glpmpl.h:1958:9`!(TABDCAcxx . . $ TABDCA# *dca, int k, const char *str); |
| 1960 | |
| 1961 | #define mpl_tab_drv_opencxx . . $ `external/glpk/glpmpl.h:1961:9`! _glp_mpl_tab_drv_open |
| 1962 | void mpl_tab_drv_opencxx . . $ `external/glpk/glpmpl.h:1961:9`!(MPLcxx . . $ MPL# *mpl, int mode); |
| 1963 | |
| 1964 | #define mpl_tab_drv_readcxx . . $ `external/glpk/glpmpl.h:1964:9`! _glp_mpl_tab_drv_read |
| 1965 | int mpl_tab_drv_readcxx . . $ `external/glpk/glpmpl.h:1964:9`!(MPLcxx . . $ MPL# *mpl); |
| 1966 | |
| 1967 | #define mpl_tab_drv_writecxx . . $ `external/glpk/glpmpl.h:1967:9`! _glp_mpl_tab_drv_write |
| 1968 | void mpl_tab_drv_writecxx . . $ `external/glpk/glpmpl.h:1967:9`!(MPLcxx . . $ MPL# *mpl); |
| 1969 | |
| 1970 | #define mpl_tab_drv_closecxx . . $ `external/glpk/glpmpl.h:1970:9`! _glp_mpl_tab_drv_close |
| 1971 | void mpl_tab_drv_closecxx . . $ `external/glpk/glpmpl.h:1970:9`!(MPLcxx . . $ MPL# *mpl); |
| 1972 | |
| 1973 | /**********************************************************************/ |
| 1974 | /* * * PSEUDO-CODE * * */ |
| 1975 | /**********************************************************************/ |
| 1976 | |
| 1977 | union OPERANDScxx . . $ OPERANDS# |
| 1978 | { /* operands that participate in pseudo-code operation (choice of |
| 1979 | particular operands depends on the operation code) */ |
| 1980 | /*--------------------------------------------------------------*/ |
| 1981 | double numcxx . . $ OPERANDS#num.; /* O_NUMBER */ |
| 1982 | /* floaing-point number to be taken */ |
| 1983 | /*--------------------------------------------------------------*/ |
| 1984 | char *strcxx . . $ OPERANDS#str.; /* O_STRING */ |
| 1985 | /* character string to be taken */ |
| 1986 | /*--------------------------------------------------------------*/ |
| 1987 | structcxx . . $ OPERANDS#$anonymous_type_3# /* O_INDEX */ |
| 1988 | { DOMAIN_SLOTcxx . . $ DOMAIN_SLOT# *slotcxx . . $ OPERANDS#$anonymous_type_3#slot.; |
| 1989 | /* domain slot, which contains dummy index to be taken */ |
| 1990 | CODEcxx . . $ CODE# *nextcxx . . $ OPERANDS#$anonymous_type_3#next.; |
| 1991 | /* the next pseudo-code with op = O_INDEX, which refers to the |
| 1992 | same slot as this one; pointer to the beginning of this list |
| 1993 | is stored in the corresponding domain slot */ |
| 1994 | } indexcxx . . $ OPERANDS#index.; |
| 1995 | /*--------------------------------------------------------------*/ |
| 1996 | structcxx . . $ OPERANDS#$anonymous_type_4# /* O_MEMNUM, O_MEMSYM */ |
| 1997 | { PARAMETERcxx . . $ PARAMETER# *parcxx . . $ OPERANDS#$anonymous_type_4#par.; |
| 1998 | /* model parameter, which contains member to be taken */ |
| 1999 | ARG_LISTcxx . . $ ARG_LIST# *listcxx . . $ OPERANDS#$anonymous_type_4#list.; |
| 2000 | /* list of subscripts; NULL for 0-dimensional parameter */ |
| 2001 | } parcxx . . $ OPERANDS#par.; |
| 2002 | /*--------------------------------------------------------------*/ |
| 2003 | structcxx . . $ OPERANDS#$anonymous_type_5# /* O_MEMSET */ |
| 2004 | { SETcxx . . $ SET# *setcxx . . $ OPERANDS#$anonymous_type_5#set.; |
| 2005 | /* model set, which contains member to be taken */ |
| 2006 | ARG_LISTcxx . . $ ARG_LIST# *listcxx . . $ OPERANDS#$anonymous_type_5#list.; |
| 2007 | /* list of subscripts; NULL for 0-dimensional set */ |
| 2008 | } setcxx . . $ OPERANDS#set.; |
| 2009 | /*--------------------------------------------------------------*/ |
| 2010 | structcxx . . $ OPERANDS#$anonymous_type_6# /* O_MEMVAR */ |
| 2011 | { VARIABLEcxx . . $ VARIABLE# *varcxx . . $ OPERANDS#$anonymous_type_6#var.; |
| 2012 | /* model variable, which contains member to be taken */ |
| 2013 | ARG_LISTcxx . . $ ARG_LIST# *listcxx . . $ OPERANDS#$anonymous_type_6#list.; |
| 2014 | /* list of subscripts; NULL for 0-dimensional variable */ |
| 2015 | #if 1 /* 15/V-2010 */ |
| 2016 | int suffcxx . . $ OPERANDS#$anonymous_type_6#suff.; |
| 2017 | /* suffix specified: */ |
| 2018 | #define DOT_NONEcxx . . $ `external/glpk/glpmpl.h:2018:9`! 0x00 /* none (means variable itself) */ |
| 2019 | #define DOT_LBcxx . . $ `external/glpk/glpmpl.h:2019:9`! 0x01 /* .lb (lower bound) */ |
| 2020 | #define DOT_UBcxx . . $ `external/glpk/glpmpl.h:2020:9`! 0x02 /* .ub (upper bound) */ |
| 2021 | #define DOT_STATUScxx . . $ `external/glpk/glpmpl.h:2021:9`! 0x03 /* .status (status) */ |
| 2022 | #define DOT_VALcxx . . $ `external/glpk/glpmpl.h:2022:9`! 0x04 /* .val (primal value) */ |
| 2023 | #define DOT_DUALcxx . . $ `external/glpk/glpmpl.h:2023:9`! 0x05 /* .dual (dual value) */ |
| 2024 | #endif |
| 2025 | } varcxx . . $ OPERANDS#var.; |
| 2026 | #if 1 /* 15/V-2010 */ |
| 2027 | /*--------------------------------------------------------------*/ |
| 2028 | structcxx . . $ OPERANDS#$anonymous_type_7# /* O_MEMCON */ |
| 2029 | { CONSTRAINTcxx . . $ CONSTRAINT# *concxx . . $ OPERANDS#$anonymous_type_7#con.; |
| 2030 | /* model constraint, which contains member to be taken */ |
| 2031 | ARG_LISTcxx . . $ ARG_LIST# *listcxx . . $ OPERANDS#$anonymous_type_7#list.; |
| 2032 | /* list of subscripys; NULL for 0-dimensional constraint */ |
| 2033 | int suffcxx . . $ OPERANDS#$anonymous_type_7#suff.; |
| 2034 | /* suffix specified (see O_MEMVAR above) */ |
| 2035 | } concxx . . $ OPERANDS#con.; |
| 2036 | #endif |
| 2037 | /*--------------------------------------------------------------*/ |
| 2038 | ARG_LISTcxx . . $ ARG_LIST# *listcxx . . $ OPERANDS#list.; /* O_TUPLE, O_MAKE, n-ary operations */ |
| 2039 | /* list of operands */ |
| 2040 | /*--------------------------------------------------------------*/ |
| 2041 | DOMAIN_BLOCKcxx . . $ DOMAIN_BLOCK# *slicecxx . . $ OPERANDS#slice.; /* O_SLICE */ |
| 2042 | /* domain block, which specifies slice (i.e. n-tuple that contains |
| 2043 | free dummy indices); this operation is never evaluated */ |
| 2044 | /*--------------------------------------------------------------*/ |
| 2045 | structcxx . . $ OPERANDS#$anonymous_type_8# /* unary, binary, ternary operations */ |
| 2046 | { CODEcxx . . $ CODE# *xcxx . . $ OPERANDS#$anonymous_type_8#x.; |
| 2047 | /* pseudo-code for computing first operand */ |
| 2048 | CODEcxx . . $ CODE# *ycxx . . $ OPERANDS#$anonymous_type_8#y.; |
| 2049 | /* pseudo-code for computing second operand */ |
| 2050 | CODEcxx . . $ CODE# *zcxx . . $ OPERANDS#$anonymous_type_8#z.; |
| 2051 | /* pseudo-code for computing third operand */ |
| 2052 | } argcxx . . $ OPERANDS#arg.; |
| 2053 | /*--------------------------------------------------------------*/ |
| 2054 | structcxx . . $ OPERANDS#$anonymous_type_9# /* iterated operations */ |
| 2055 | { DOMAINcxx . . $ DOMAIN1# *domaincxx . . $ OPERANDS#$anonymous_type_9#domain.; |
| 2056 | /* domain, over which the operation is performed */ |
| 2057 | CODEcxx . . $ CODE# *xcxx . . $ OPERANDS#$anonymous_type_9#x.; |
| 2058 | /* pseudo-code for computing "integrand" */ |
| 2059 | } loopcxx . . $ OPERANDS#loop.; |
| 2060 | /*--------------------------------------------------------------*/ |
| 2061 | }; |
| 2062 | |
| 2063 | struct ARG_LISTcxx . . $ ARG_LIST# |
| 2064 | { /* operands list entry */ |
| 2065 | CODEcxx . . $ CODE# *xcxx . . $ ARG_LIST#x.; |
| 2066 | /* pseudo-code for computing operand */ |
| 2067 | ARG_LISTcxx . . $ ARG_LIST# *nextcxx . . $ ARG_LIST#next.; |
| 2068 | /* the next operand of the same operation */ |
| 2069 | }; |
| 2070 | |
| 2071 | struct CODEcxx . . $ CODE# |
| 2072 | { /* pseudo-code (internal form of expressions) */ |
| 2073 | int opcxx . . $ CODE#op.; |
| 2074 | /* operation code: */ |
| 2075 | #define O_NUMBERcxx . . $ `external/glpk/glpmpl.h:2075:9`! 301 /* take floating-point number */ |
| 2076 | #define O_STRINGcxx . . $ `external/glpk/glpmpl.h:2076:9`! 302 /* take character string */ |
| 2077 | #define O_INDEXcxx . . $ `external/glpk/glpmpl.h:2077:9`! 303 /* take dummy index */ |
| 2078 | #define O_MEMNUMcxx . . $ `external/glpk/glpmpl.h:2078:9`! 304 /* take member of numeric parameter */ |
| 2079 | #define O_MEMSYMcxx . . $ `external/glpk/glpmpl.h:2079:9`! 305 /* take member of symbolic parameter */ |
| 2080 | #define O_MEMSETcxx . . $ `external/glpk/glpmpl.h:2080:9`! 306 /* take member of set */ |
| 2081 | #define O_MEMVARcxx . . $ `external/glpk/glpmpl.h:2081:9`! 307 /* take member of variable */ |
| 2082 | #define O_MEMCONcxx . . $ `external/glpk/glpmpl.h:2082:9`! 308 /* take member of constraint */ |
| 2083 | #define O_TUPLEcxx . . $ `external/glpk/glpmpl.h:2083:9`! 309 /* make n-tuple */ |
| 2084 | #define O_MAKEcxx . . $ `external/glpk/glpmpl.h:2084:9`! 310 /* make elemental set of n-tuples */ |
| 2085 | #define O_SLICEcxx . . $ `external/glpk/glpmpl.h:2085:9`! 311 /* define domain block (dummy op) */ |
| 2086 | /* 0-ary operations --------------------*/ |
| 2087 | #define O_IRAND224cxx . . $ `external/glpk/glpmpl.h:2087:9`! 312 /* pseudo-random in [0, 2^24-1] */ |
| 2088 | #define O_UNIFORM01cxx . . $ `external/glpk/glpmpl.h:2088:9`! 313 /* pseudo-random in [0, 1) */ |
| 2089 | #define O_NORMAL01cxx . . $ `external/glpk/glpmpl.h:2089:9`! 314 /* gaussian random, mu = 0, sigma = 1 */ |
| 2090 | #define O_GMTIMEcxx . . $ `external/glpk/glpmpl.h:2090:9`! 315 /* current calendar time (UTC) */ |
| 2091 | /* unary operations --------------------*/ |
| 2092 | #define O_CVTNUMcxx . . $ `external/glpk/glpmpl.h:2092:9`! 316 /* conversion to numeric */ |
| 2093 | #define O_CVTSYMcxx . . $ `external/glpk/glpmpl.h:2093:9`! 317 /* conversion to symbolic */ |
| 2094 | #define O_CVTLOGcxx . . $ `external/glpk/glpmpl.h:2094:9`! 318 /* conversion to logical */ |
| 2095 | #define O_CVTTUPcxx . . $ `external/glpk/glpmpl.h:2095:9`! 319 /* conversion to 1-tuple */ |
| 2096 | #define O_CVTLFMcxx . . $ `external/glpk/glpmpl.h:2096:9`! 320 /* conversion to linear form */ |
| 2097 | #define O_PLUScxx . . $ `external/glpk/glpmpl.h:2097:9`! 321 /* unary plus */ |
| 2098 | #define O_MINUScxx . . $ `external/glpk/glpmpl.h:2098:9`! 322 /* unary minus */ |
| 2099 | #define O_NOTcxx . . $ `external/glpk/glpmpl.h:2099:9`! 323 /* negation (logical "not") */ |
| 2100 | #define O_ABScxx . . $ `external/glpk/glpmpl.h:2100:9`! 324 /* absolute value */ |
| 2101 | #define O_CEILcxx . . $ `external/glpk/glpmpl.h:2101:9`! 325 /* round upward ("ceiling of x") */ |
| 2102 | #define O_FLOORcxx . . $ `external/glpk/glpmpl.h:2102:9`! 326 /* round downward ("floor of x") */ |
| 2103 | #define O_EXPcxx . . $ `external/glpk/glpmpl.h:2103:9`! 327 /* base-e exponential */ |
| 2104 | #define O_LOGcxx . . $ `external/glpk/glpmpl.h:2104:9`! 328 /* natural logarithm */ |
| 2105 | #define O_LOG10cxx . . $ `external/glpk/glpmpl.h:2105:9`! 329 /* common (decimal) logarithm */ |
| 2106 | #define O_SQRTcxx . . $ `external/glpk/glpmpl.h:2106:9`! 330 /* square root */ |
| 2107 | #define O_SINcxx . . $ `external/glpk/glpmpl.h:2107:9`! 331 /* trigonometric sine */ |
| 2108 | #define O_COScxx . . $ `external/glpk/glpmpl.h:2108:9`! 332 /* trigonometric cosine */ |
| 2109 | #define O_ATANcxx . . $ `external/glpk/glpmpl.h:2109:9`! 333 /* trigonometric arctangent */ |
| 2110 | #define O_ROUNDcxx . . $ `external/glpk/glpmpl.h:2110:9`! 334 /* round to nearest integer */ |
| 2111 | #define O_TRUNCcxx . . $ `external/glpk/glpmpl.h:2111:9`! 335 /* truncate to nearest integer */ |
| 2112 | #define O_CARDcxx . . $ `external/glpk/glpmpl.h:2112:9`! 336 /* cardinality of set */ |
| 2113 | #define O_LENGTHcxx . . $ `external/glpk/glpmpl.h:2113:9`! 337 /* length of symbolic value */ |
| 2114 | /* binary operations -------------------*/ |
| 2115 | #define O_ADDcxx . . $ `external/glpk/glpmpl.h:2115:9`! 338 /* addition */ |
| 2116 | #define O_SUBcxx . . $ `external/glpk/glpmpl.h:2116:9`! 339 /* subtraction */ |
| 2117 | #define O_LESScxx . . $ `external/glpk/glpmpl.h:2117:9`! 340 /* non-negative subtraction */ |
| 2118 | #define O_MULcxx . . $ `external/glpk/glpmpl.h:2118:9`! 341 /* multiplication */ |
| 2119 | #define O_DIVcxx . . $ `external/glpk/glpmpl.h:2119:9`! 342 /* division */ |
| 2120 | #define O_IDIVcxx . . $ `external/glpk/glpmpl.h:2120:9`! 343 /* quotient of exact division */ |
| 2121 | #define O_MODcxx . . $ `external/glpk/glpmpl.h:2121:9`! 344 /* remainder of exact division */ |
| 2122 | #define O_POWERcxx . . $ `external/glpk/glpmpl.h:2122:9`! 345 /* exponentiation (raise to power) */ |
| 2123 | #define O_ATAN2cxx . . $ `external/glpk/glpmpl.h:2123:9`! 346 /* trigonometric arctangent */ |
| 2124 | #define O_ROUND2cxx . . $ `external/glpk/glpmpl.h:2124:9`! 347 /* round to n fractional digits */ |
| 2125 | #define O_TRUNC2cxx . . $ `external/glpk/glpmpl.h:2125:9`! 348 /* truncate to n fractional digits */ |
| 2126 | #define O_UNIFORMcxx . . $ `external/glpk/glpmpl.h:2126:9`! 349 /* pseudo-random in [a, b) */ |
| 2127 | #define O_NORMALcxx . . $ `external/glpk/glpmpl.h:2127:9`! 350 /* gaussian random, given mu and sigma */ |
| 2128 | #define O_CONCATcxx . . $ `external/glpk/glpmpl.h:2128:9`! 351 /* concatenation */ |
| 2129 | #define O_LTcxx . . $ `external/glpk/glpmpl.h:2129:9`! 352 /* comparison on 'less than' */ |
| 2130 | #define O_LEcxx . . $ `external/glpk/glpmpl.h:2130:9`! 353 /* comparison on 'not greater than' */ |
| 2131 | #define O_EQcxx . . $ `external/glpk/glpmpl.h:2131:9`! 354 /* comparison on 'equal to' */ |
| 2132 | #define O_GEcxx . . $ `external/glpk/glpmpl.h:2132:9`! 355 /* comparison on 'not less than' */ |
| 2133 | #define O_GTcxx . . $ `external/glpk/glpmpl.h:2133:9`! 356 /* comparison on 'greater than' */ |
| 2134 | #define O_NEcxx . . $ `external/glpk/glpmpl.h:2134:9`! 357 /* comparison on 'not equal to' */ |
| 2135 | #define O_ANDcxx . . $ `external/glpk/glpmpl.h:2135:9`! 358 /* conjunction (logical "and") */ |
| 2136 | #define O_ORcxx . . $ `external/glpk/glpmpl.h:2136:9`! 359 /* disjunction (logical "or") */ |
| 2137 | #define O_UNIONcxx . . $ `external/glpk/glpmpl.h:2137:9`! 360 /* union */ |
| 2138 | #define O_DIFFcxx . . $ `external/glpk/glpmpl.h:2138:9`! 361 /* difference */ |
| 2139 | #define O_SYMDIFFcxx . . $ `external/glpk/glpmpl.h:2139:9`! 362 /* symmetric difference */ |
| 2140 | #define O_INTERcxx . . $ `external/glpk/glpmpl.h:2140:9`! 363 /* intersection */ |
| 2141 | #define O_CROSScxx . . $ `external/glpk/glpmpl.h:2141:9`! 364 /* cross (Cartesian) product */ |
| 2142 | #define O_INcxx . . $ `external/glpk/glpmpl.h:2142:9`! 365 /* test on 'x in Y' */ |
| 2143 | #define O_NOTINcxx . . $ `external/glpk/glpmpl.h:2143:9`! 366 /* test on 'x not in Y' */ |
| 2144 | #define O_WITHINcxx . . $ `external/glpk/glpmpl.h:2144:9`! 367 /* test on 'X within Y' */ |
| 2145 | #define O_NOTWITHINcxx . . $ `external/glpk/glpmpl.h:2145:9`! 368 /* test on 'X not within Y' */ |
| 2146 | #define O_SUBSTRcxx . . $ `external/glpk/glpmpl.h:2146:9`! 369 /* substring */ |
| 2147 | #define O_STR2TIMEcxx . . $ `external/glpk/glpmpl.h:2147:9`! 370 /* convert string to time */ |
| 2148 | #define O_TIME2STRcxx . . $ `external/glpk/glpmpl.h:2148:9`! 371 /* convert time to string */ |
| 2149 | /* ternary operations ------------------*/ |
| 2150 | #define O_DOTScxx . . $ `external/glpk/glpmpl.h:2150:9`! 372 /* build "arithmetic" set */ |
| 2151 | #define O_FORKcxx . . $ `external/glpk/glpmpl.h:2151:9`! 373 /* if-then-else */ |
| 2152 | #define O_SUBSTR3cxx . . $ `external/glpk/glpmpl.h:2152:9`! 374 /* substring */ |
| 2153 | /* n-ary operations --------------------*/ |
| 2154 | #define O_MINcxx . . $ `external/glpk/glpmpl.h:2154:9`! 375 /* minimal value (n-ary) */ |
| 2155 | #define O_MAXcxx . . $ `external/glpk/glpmpl.h:2155:9`! 376 /* maximal value (n-ary) */ |
| 2156 | /* iterated operations -----------------*/ |
| 2157 | #define O_SUMcxx . . $ `external/glpk/glpmpl.h:2157:9`! 377 /* summation */ |
| 2158 | #define O_PRODcxx . . $ `external/glpk/glpmpl.h:2158:9`! 378 /* multiplication */ |
| 2159 | #define O_MINIMUMcxx . . $ `external/glpk/glpmpl.h:2159:9`! 379 /* minimum */ |
| 2160 | #define O_MAXIMUMcxx . . $ `external/glpk/glpmpl.h:2160:9`! 380 /* maximum */ |
| 2161 | #define O_FORALLcxx . . $ `external/glpk/glpmpl.h:2161:9`! 381 /* conjunction (A-quantification) */ |
| 2162 | #define O_EXISTScxx . . $ `external/glpk/glpmpl.h:2162:9`! 382 /* disjunction (E-quantification) */ |
| 2163 | #define O_SETOFcxx . . $ `external/glpk/glpmpl.h:2163:9`! 383 /* compute elemental set */ |
| 2164 | #define O_BUILDcxx . . $ `external/glpk/glpmpl.h:2164:9`! 384 /* build elemental set */ |
| 2165 | OPERANDScxx . . $ OPERANDS# argcxx . . $ CODE#arg.; |
| 2166 | /* operands that participate in the operation */ |
| 2167 | int typecxx . . $ CODE#type.; |
| 2168 | /* type of the resultant value: |
| 2169 | A_NUMERIC - numeric |
| 2170 | A_SYMBOLIC - symbolic |
| 2171 | A_LOGICAL - logical |
| 2172 | A_TUPLE - n-tuple |
| 2173 | A_ELEMSET - elemental set |
| 2174 | A_FORMULA - linear form */ |
| 2175 | int dimcxx . . $ CODE#dim.; |
| 2176 | /* dimension of the resultant value; for A_TUPLE and A_ELEMSET it |
| 2177 | is the dimension of the corresponding n-tuple(s) and cannot be |
| 2178 | zero; for other resultant types it is always zero */ |
| 2179 | CODEcxx . . $ CODE# *upcxx . . $ CODE#up.; |
| 2180 | /* parent pseudo-code, which refers to this pseudo-code as to its |
| 2181 | operand; NULL means this pseudo-code has no parent and defines |
| 2182 | an expression, which is not contained in another expression */ |
| 2183 | int vflagcxx . . $ CODE#vflag.; |
| 2184 | /* volatile flag; being set this flag means that this operation |
| 2185 | has a side effect; for primary expressions this flag is set |
| 2186 | directly by corresponding parsing routines (for example, if |
| 2187 | primary expression is a reference to a function that generates |
| 2188 | pseudo-random numbers); in other cases this flag is inherited |
| 2189 | from operands */ |
| 2190 | int validcxx . . $ CODE#valid.; |
| 2191 | /* if this flag is set, the resultant value, which is a temporary |
| 2192 | result of evaluating this operation on particular values of |
| 2193 | operands, is valid; if this flag is clear, the resultant value |
| 2194 | doesn't exist and therefore not valid; having been evaluated |
| 2195 | the resultant value is stored here and not destroyed until the |
| 2196 | dummy indices, which this value depends on, have been changed |
| 2197 | (and if it doesn't depend on dummy indices at all, it is never |
| 2198 | destroyed); thus, if the resultant value is valid, evaluating |
| 2199 | routine can immediately take its copy not computing the result |
| 2200 | from scratch; this mechanism is similar to moving invariants |
| 2201 | out of loops and allows improving efficiency at the expense of |
| 2202 | some extra memory needed to keep temporary results */ |
| 2203 | /* however, if the volatile flag (see above) is set, even if the |
| 2204 | resultant value is valid, evaluating routine computes it as if |
| 2205 | it were not valid, i.e. caching is not used in this case */ |
| 2206 | VALUEcxx . . $ VALUE# valuecxx . . $ CODE#value.; |
| 2207 | /* resultant value in generic format */ |
| 2208 | }; |
| 2209 | |
| 2210 | #define eval_numericcxx . . $ `external/glpk/glpmpl.h:2210:9`! _glp_mpl_eval_numeric |
| 2211 | double eval_numericcxx . . $ `external/glpk/glpmpl.h:2210:9`!(MPLcxx . . $ MPL# *mpl, CODEcxx . . $ CODE# *code); |
| 2212 | /* evaluate pseudo-code to determine numeric value */ |
| 2213 | |
| 2214 | #define eval_symboliccxx . . $ `external/glpk/glpmpl.h:2214:9`! _glp_mpl_eval_symbolic |
| 2215 | SYMBOLcxx . . $ SYMBOL# *eval_symboliccxx . . $ `external/glpk/glpmpl.h:2214:9`!(MPLcxx . . $ MPL# *mpl, CODEcxx . . $ CODE# *code); |
| 2216 | /* evaluate pseudo-code to determine symbolic value */ |
| 2217 | |
| 2218 | #define eval_logicalcxx . . $ `external/glpk/glpmpl.h:2218:9`! _glp_mpl_eval_logical |
| 2219 | int eval_logicalcxx . . $ `external/glpk/glpmpl.h:2218:9`!(MPLcxx . . $ MPL# *mpl, CODEcxx . . $ CODE# *code); |
| 2220 | /* evaluate pseudo-code to determine logical value */ |
| 2221 | |
| 2222 | #define eval_tuplecxx . . $ `external/glpk/glpmpl.h:2222:9`! _glp_mpl_eval_tuple |
| 2223 | TUPLEcxx . . $ TUPLE# *eval_tuplecxx . . $ `external/glpk/glpmpl.h:2222:9`!(MPLcxx . . $ MPL# *mpl, CODEcxx . . $ CODE# *code); |
| 2224 | /* evaluate pseudo-code to construct n-tuple */ |
| 2225 | |
| 2226 | #define eval_elemsetcxx . . $ `external/glpk/glpmpl.h:2226:9`! _glp_mpl_eval_elemset |
| 2227 | ELEMSETcxx . . $ ELEMSET# *eval_elemsetcxx . . $ `external/glpk/glpmpl.h:2226:9`!(MPLcxx . . $ MPL# *mpl, CODEcxx . . $ CODE# *code); |
| 2228 | /* evaluate pseudo-code to construct elemental set */ |
| 2229 | |
| 2230 | #define is_membercxx . . $ `external/glpk/glpmpl.h:2230:9`! _glp_mpl_is_member |
| 2231 | int is_membercxx . . $ `external/glpk/glpmpl.h:2230:9`!(MPLcxx . . $ MPL# *mpl, CODEcxx . . $ CODE# *code, TUPLEcxx . . $ TUPLE# *tuple); |
| 2232 | /* check if n-tuple is in set specified by pseudo-code */ |
| 2233 | |
| 2234 | #define eval_formulacxx . . $ `external/glpk/glpmpl.h:2234:9`! _glp_mpl_eval_formula |
| 2235 | FORMULAcxx . . $ FORMULA# *eval_formulacxx . . $ `external/glpk/glpmpl.h:2234:9`!(MPLcxx . . $ MPL# *mpl, CODEcxx . . $ CODE# *code); |
| 2236 | /* evaluate pseudo-code to construct linear form */ |
| 2237 | |
| 2238 | #define clean_codecxx . . $ `external/glpk/glpmpl.h:2238:9`! _glp_mpl_clean_code |
| 2239 | void clean_codecxx . . $ `external/glpk/glpmpl.h:2238:9`!(MPLcxx . . $ MPL# *mpl, CODEcxx . . $ CODE# *code); |
| 2240 | /* clean pseudo-code */ |
| 2241 | |
| 2242 | /**********************************************************************/ |
| 2243 | /* * * MODEL STATEMENTS * * */ |
| 2244 | /**********************************************************************/ |
| 2245 | |
| 2246 | struct CHECKcxx . . $ CHECK# |
| 2247 | { /* check statement */ |
| 2248 | DOMAINcxx . . $ DOMAIN1# *domaincxx . . $ CHECK#domain.; |
| 2249 | /* subscript domain; NULL means domain is not used */ |
| 2250 | CODEcxx . . $ CODE# *codecxx . . $ CHECK#code.; |
| 2251 | /* code for computing the predicate to be checked */ |
| 2252 | }; |
| 2253 | |
| 2254 | struct DISPLAYcxx . . $ DISPLAY# |
| 2255 | { /* display statement */ |
| 2256 | DOMAINcxx . . $ `external/glpk/glpmpl.h:45:9`! *domaincxx . . $ DISPLAY#domain.; |
| 2257 | /* subscript domain; NULL means domain is not used */ |
| 2258 | DISPLAY1cxx . . $ DISPLAY1# *listcxx . . $ DISPLAY#list.; |
| 2259 | /* display list; cannot be empty */ |
| 2260 | }; |
| 2261 | |
| 2262 | struct DISPLAY1cxx . . $ DISPLAY1# |
| 2263 | { /* display list entry */ |
| 2264 | int typecxx . . $ DISPLAY1#type.; |
| 2265 | /* item type: |
| 2266 | A_INDEX - dummy index |
| 2267 | A_SET - model set |
| 2268 | A_PARAMETER - model parameter |
| 2269 | A_VARIABLE - model variable |
| 2270 | A_CONSTRAINT - model constraint/objective |
| 2271 | A_EXPRESSION - expression */ |
| 2272 | unioncxx . . $ DISPLAY1#$anonymous_type_10# |
| 2273 | { DOMAIN_SLOTcxx . . $ DOMAIN_SLOT# *slotcxx . . $ DISPLAY1#$anonymous_type_10#slot.; |
| 2274 | SETcxx . . $ SET# *setcxx . . $ DISPLAY1#$anonymous_type_10#set.; |
| 2275 | PARAMETERcxx . . $ PARAMETER# *parcxx . . $ DISPLAY1#$anonymous_type_10#par.; |
| 2276 | VARIABLEcxx . . $ VARIABLE# *varcxx . . $ DISPLAY1#$anonymous_type_10#var.; |
| 2277 | CONSTRAINTcxx . . $ CONSTRAINT# *concxx . . $ DISPLAY1#$anonymous_type_10#con.; |
| 2278 | CODEcxx . . $ CODE# *codecxx . . $ DISPLAY1#$anonymous_type_10#code.; |
| 2279 | } ucxx . . $ DISPLAY1#u.; |
| 2280 | /* item to be displayed */ |
| 2281 | #if 0 /* 15/V-2010 */ |
| 2282 | ARG_LIST *list; |
| 2283 | /* optional subscript list (for constraint/objective only) */ |
| 2284 | #endif |
| 2285 | DISPLAY1cxx . . $ DISPLAY1# *nextcxx . . $ DISPLAY1#next.; |
| 2286 | /* the next entry for the same statement */ |
| 2287 | }; |
| 2288 | |
| 2289 | struct PRINTFcxx . . $ PRINTF# |
| 2290 | { /* printf statement */ |
| 2291 | DOMAINcxx . . $ `external/glpk/glpmpl.h:45:9`! *domaincxx . . $ PRINTF#domain.; |
| 2292 | /* subscript domain; NULL means domain is not used */ |
| 2293 | CODEcxx . . $ CODE# *fmtcxx . . $ PRINTF#fmt.; |
| 2294 | /* pseudo-code for computing format string */ |
| 2295 | PRINTF1cxx . . $ PRINTF1# *listcxx . . $ PRINTF#list.; |
| 2296 | /* printf list; can be empty */ |
| 2297 | CODEcxx . . $ CODE# *fnamecxx . . $ PRINTF#fname.; |
| 2298 | /* pseudo-code for computing filename to redirect the output; |
| 2299 | NULL means the output goes to stdout */ |
| 2300 | int appcxx . . $ PRINTF#app.; |
| 2301 | /* if this flag is set, the output is appended */ |
| 2302 | }; |
| 2303 | |
| 2304 | struct PRINTF1cxx . . $ PRINTF1# |
| 2305 | { /* printf list entry */ |
| 2306 | CODEcxx . . $ CODE# *codecxx . . $ PRINTF1#code.; |
| 2307 | /* pseudo-code for computing value to be printed */ |
| 2308 | PRINTF1cxx . . $ PRINTF1# *nextcxx . . $ PRINTF1#next.; |
| 2309 | /* the next entry for the same statement */ |
| 2310 | }; |
| 2311 | |
| 2312 | struct FORcxx . . $ FOR# |
| 2313 | { /* for statement */ |
| 2314 | DOMAINcxx . . $ DOMAIN1# *domaincxx . . $ FOR#domain.; |
| 2315 | /* subscript domain; cannot be NULL */ |
| 2316 | STATEMENTcxx . . $ STATEMENT# *listcxx . . $ FOR#list.; |
| 2317 | /* linked list of model statements within this for statement in |
| 2318 | the original order */ |
| 2319 | }; |
| 2320 | |
| 2321 | struct STATEMENTcxx . . $ STATEMENT# |
| 2322 | { /* model statement */ |
| 2323 | int linecxx . . $ STATEMENT#line.; |
| 2324 | /* number of source text line, where statement begins */ |
| 2325 | int typecxx . . $ STATEMENT#type.; |
| 2326 | /* statement type: |
| 2327 | A_SET - set statement |
| 2328 | A_PARAMETER - parameter statement |
| 2329 | A_VARIABLE - variable statement |
| 2330 | A_CONSTRAINT - constraint/objective statement |
| 2331 | A_TABLE - table statement |
| 2332 | A_SOLVE - solve statement |
| 2333 | A_CHECK - check statement |
| 2334 | A_DISPLAY - display statement |
| 2335 | A_PRINTF - printf statement |
| 2336 | A_FOR - for statement */ |
| 2337 | unioncxx . . $ STATEMENT#$anonymous_type_11# |
| 2338 | { SETcxx . . $ SET# *setcxx . . $ STATEMENT#$anonymous_type_11#set.; |
| 2339 | PARAMETERcxx . . $ PARAMETER# *parcxx . . $ STATEMENT#$anonymous_type_11#par.; |
| 2340 | VARIABLEcxx . . $ VARIABLE# *varcxx . . $ STATEMENT#$anonymous_type_11#var.; |
| 2341 | CONSTRAINTcxx . . $ CONSTRAINT# *concxx . . $ STATEMENT#$anonymous_type_11#con.; |
| 2342 | TABLEcxx . . $ TABLE# *tabcxx . . $ STATEMENT#$anonymous_type_11#tab.; |
| 2343 | void *slvcxx . . $ STATEMENT#$anonymous_type_11#slv.; /* currently not used (set to NULL) */ |
| 2344 | CHECKcxx . . $ CHECK# *chkcxx . . $ STATEMENT#$anonymous_type_11#chk.; |
| 2345 | DISPLAYcxx . . $ DISPLAY# *dpycxx . . $ STATEMENT#$anonymous_type_11#dpy.; |
| 2346 | PRINTFcxx . . $ PRINTF# *prtcxx . . $ STATEMENT#$anonymous_type_11#prt.; |
| 2347 | FORcxx . . $ FOR# *furcxx . . $ STATEMENT#$anonymous_type_11#fur.; |
| 2348 | } ucxx . . $ STATEMENT#u.; |
| 2349 | /* specific part of statement */ |
| 2350 | STATEMENTcxx . . $ STATEMENT# *nextcxx . . $ STATEMENT#next.; |
| 2351 | /* the next statement; in this list statements follow in the same |
| 2352 | order as they appear in the model section */ |
| 2353 | }; |
| 2354 | |
| 2355 | #define execute_tablecxx . . $ `external/glpk/glpmpl.h:2355:9`! _glp_mpl_execute_table |
| 2356 | void execute_tablecxx . . $ `external/glpk/glpmpl.h:2355:9`!(MPLcxx . . $ MPL# *mpl, TABLEcxx . . $ TABLE# *tab); |
| 2357 | /* execute table statement */ |
| 2358 | |
| 2359 | #define free_dcacxx . . $ `external/glpk/glpmpl.h:2359:9`! _glp_mpl_free_dca |
| 2360 | void free_dcacxx . . $ `external/glpk/glpmpl.h:2359:9`!(MPLcxx . . $ MPL# *mpl); |
| 2361 | /* free table driver communucation area */ |
| 2362 | |
| 2363 | #define clean_tablecxx . . $ `external/glpk/glpmpl.h:2363:9`! _glp_mpl_clean_table |
| 2364 | void clean_tablecxx . . $ `external/glpk/glpmpl.h:2363:9`!(MPLcxx . . $ MPL# *mpl, TABLEcxx . . $ TABLE# *tab); |
| 2365 | /* clean table statement */ |
| 2366 | |
| 2367 | #define execute_checkcxx . . $ `external/glpk/glpmpl.h:2367:9`! _glp_mpl_execute_check |
| 2368 | void execute_checkcxx . . $ `external/glpk/glpmpl.h:2367:9`!(MPLcxx . . $ MPL# *mpl, CHECKcxx . . $ CHECK# *chk); |
| 2369 | /* execute check statement */ |
| 2370 | |
| 2371 | #define clean_checkcxx . . $ `external/glpk/glpmpl.h:2371:9`! _glp_mpl_clean_check |
| 2372 | void clean_checkcxx . . $ `external/glpk/glpmpl.h:2371:9`!(MPLcxx . . $ MPL# *mpl, CHECKcxx . . $ CHECK# *chk); |
| 2373 | /* clean check statement */ |
| 2374 | |
| 2375 | #define execute_displaycxx . . $ `external/glpk/glpmpl.h:2375:9`! _glp_mpl_execute_display |
| 2376 | void execute_displaycxx . . $ `external/glpk/glpmpl.h:2375:9`!(MPLcxx . . $ MPL# *mpl, DISPLAYcxx . . $ DISPLAY# *dpy); |
| 2377 | /* execute display statement */ |
| 2378 | |
| 2379 | #define clean_displaycxx . . $ `external/glpk/glpmpl.h:2379:9`! _glp_mpl_clean_display |
| 2380 | void clean_displaycxx . . $ `external/glpk/glpmpl.h:2379:9`!(MPLcxx . . $ MPL# *mpl, DISPLAYcxx . . $ DISPLAY# *dpy); |
| 2381 | /* clean display statement */ |
| 2382 | |
| 2383 | #define execute_printfcxx . . $ `external/glpk/glpmpl.h:2383:9`! _glp_mpl_execute_printf |
| 2384 | void execute_printfcxx . . $ `external/glpk/glpmpl.h:2383:9`!(MPLcxx . . $ MPL# *mpl, PRINTFcxx . . $ PRINTF# *prt); |
| 2385 | /* execute printf statement */ |
| 2386 | |
| 2387 | #define clean_printfcxx . . $ `external/glpk/glpmpl.h:2387:9`! _glp_mpl_clean_printf |
| 2388 | void clean_printfcxx . . $ `external/glpk/glpmpl.h:2387:9`!(MPLcxx . . $ MPL# *mpl, PRINTFcxx . . $ PRINTF# *prt); |
| 2389 | /* clean printf statement */ |
| 2390 | |
| 2391 | #define execute_forcxx . . $ `external/glpk/glpmpl.h:2391:9`! _glp_mpl_execute_for |
| 2392 | void execute_forcxx . . $ `external/glpk/glpmpl.h:2391:9`!(MPLcxx . . $ MPL# *mpl, FORcxx . . $ FOR# *fur); |
| 2393 | /* execute for statement */ |
| 2394 | |
| 2395 | #define clean_forcxx . . $ `external/glpk/glpmpl.h:2395:9`! _glp_mpl_clean_for |
| 2396 | void clean_forcxx . . $ `external/glpk/glpmpl.h:2395:9`!(MPLcxx . . $ MPL# *mpl, FORcxx . . $ FOR# *fur); |
| 2397 | /* clean for statement */ |
| 2398 | |
| 2399 | #define execute_statementcxx . . $ `external/glpk/glpmpl.h:2399:9`! _glp_mpl_execute_statement |
| 2400 | void execute_statementcxx . . $ `external/glpk/glpmpl.h:2399:9`!(MPLcxx . . $ MPL# *mpl, STATEMENTcxx . . $ STATEMENT# *stmt); |
| 2401 | /* execute specified model statement */ |
| 2402 | |
| 2403 | #define clean_statementcxx . . $ `external/glpk/glpmpl.h:2403:9`! _glp_mpl_clean_statement |
| 2404 | void clean_statementcxx . . $ `external/glpk/glpmpl.h:2403:9`!(MPLcxx . . $ MPL# *mpl, STATEMENTcxx . . $ STATEMENT# *stmt); |
| 2405 | /* clean specified model statement */ |
| 2406 | |
| 2407 | /**********************************************************************/ |
| 2408 | /* * * GENERATING AND POSTSOLVING MODEL * * */ |
| 2409 | /**********************************************************************/ |
| 2410 | |
| 2411 | #define alloc_contentcxx . . $ `external/glpk/glpmpl.h:2411:9`! _glp_mpl_alloc_content |
| 2412 | void alloc_contentcxx . . $ `external/glpk/glpmpl.h:2411:9`!(MPLcxx . . $ MPL# *mpl); |
| 2413 | /* allocate content arrays for all model objects */ |
| 2414 | |
| 2415 | #define generate_modelcxx . . $ `external/glpk/glpmpl.h:2415:9`! _glp_mpl_generate_model |
| 2416 | void generate_modelcxx . . $ `external/glpk/glpmpl.h:2415:9`!(MPLcxx . . $ MPL# *mpl); |
| 2417 | /* generate model */ |
| 2418 | |
| 2419 | #define build_problemcxx . . $ `external/glpk/glpmpl.h:2419:9`! _glp_mpl_build_problem |
| 2420 | void build_problemcxx . . $ `external/glpk/glpmpl.h:2419:9`!(MPLcxx . . $ MPL# *mpl); |
| 2421 | /* build problem instance */ |
| 2422 | |
| 2423 | #define postsolve_modelcxx . . $ `external/glpk/glpmpl.h:2423:9`! _glp_mpl_postsolve_model |
| 2424 | void postsolve_modelcxx . . $ `external/glpk/glpmpl.h:2423:9`!(MPLcxx . . $ MPL# *mpl); |
| 2425 | /* postsolve model */ |
| 2426 | |
| 2427 | #define clean_modelcxx . . $ `external/glpk/glpmpl.h:2427:9`! _glp_mpl_clean_model |
| 2428 | void clean_modelcxx . . $ `external/glpk/glpmpl.h:2427:9`!(MPLcxx . . $ MPL# *mpl); |
| 2429 | /* clean model content */ |
| 2430 | |
| 2431 | /**********************************************************************/ |
| 2432 | /* * * INPUT/OUTPUT * * */ |
| 2433 | /**********************************************************************/ |
| 2434 | |
| 2435 | #define open_inputcxx . . $ `external/glpk/glpmpl.h:2435:9`! _glp_mpl_open_input |
| 2436 | void open_inputcxx . . $ `external/glpk/glpmpl.h:2435:9`!(MPLcxx . . $ MPL# *mpl, char *file); |
| 2437 | /* open input text file */ |
| 2438 | |
| 2439 | #define read_charcxx . . $ `external/glpk/glpmpl.h:2439:9`! _glp_mpl_read_char |
| 2440 | int read_charcxx . . $ `external/glpk/glpmpl.h:2439:9`!(MPLcxx . . $ MPL# *mpl); |
| 2441 | /* read next character from input text file */ |
| 2442 | |
| 2443 | #define close_inputcxx . . $ `external/glpk/glpmpl.h:2443:9`! _glp_mpl_close_input |
| 2444 | void close_inputcxx . . $ `external/glpk/glpmpl.h:2443:9`!(MPLcxx . . $ MPL# *mpl); |
| 2445 | /* close input text file */ |
| 2446 | |
| 2447 | #define open_outputcxx . . $ `external/glpk/glpmpl.h:2447:9`! _glp_mpl_open_output |
| 2448 | void open_outputcxx . . $ `external/glpk/glpmpl.h:2447:9`!(MPLcxx . . $ MPL# *mpl, char *file); |
| 2449 | /* open output text file */ |
| 2450 | |
| 2451 | #define write_charcxx . . $ `external/glpk/glpmpl.h:2451:9`! _glp_mpl_write_char |
| 2452 | void write_charcxx . . $ `external/glpk/glpmpl.h:2451:9`!(MPLcxx . . $ MPL# *mpl, int c); |
| 2453 | /* write next character to output text file */ |
| 2454 | |
| 2455 | #define write_textcxx . . $ `external/glpk/glpmpl.h:2455:9`! _glp_mpl_write_text |
| 2456 | void write_textcxx . . $ `external/glpk/glpmpl.h:2455:9`!(MPLcxx . . $ MPL# *mpl, char *fmt, ...); |
| 2457 | /* format and write text to output text file */ |
| 2458 | |
| 2459 | #define flush_outputcxx . . $ `external/glpk/glpmpl.h:2459:9`! _glp_mpl_flush_output |
| 2460 | void flush_outputcxx . . $ `external/glpk/glpmpl.h:2459:9`!(MPLcxx . . $ MPL# *mpl); |
| 2461 | /* finalize writing data to output text file */ |
| 2462 | |
| 2463 | /**********************************************************************/ |
| 2464 | /* * * SOLVER INTERFACE * * */ |
| 2465 | /**********************************************************************/ |
| 2466 | |
| 2467 | #define MPL_FRcxx . . $ `external/glpk/glpmpl.h:2467:9`! 401 /* free (unbounded) */ |
| 2468 | #define MPL_LOcxx . . $ `external/glpk/glpmpl.h:2468:9`! 402 /* lower bound */ |
| 2469 | #define MPL_UPcxx . . $ `external/glpk/glpmpl.h:2469:9`! 403 /* upper bound */ |
| 2470 | #define MPL_DBcxx . . $ `external/glpk/glpmpl.h:2470:9`! 404 /* both lower and upper bounds */ |
| 2471 | #define MPL_FXcxx . . $ `external/glpk/glpmpl.h:2471:9`! 405 /* fixed */ |
| 2472 | |
| 2473 | #define MPL_STcxx . . $ `external/glpk/glpmpl.h:2473:9`! 411 /* constraint */ |
| 2474 | #define MPL_MINcxx . . $ `external/glpk/glpmpl.h:2474:9`! 412 /* objective (minimization) */ |
| 2475 | #define MPL_MAXcxx . . $ `external/glpk/glpmpl.h:2475:9`! 413 /* objective (maximization) */ |
| 2476 | |
| 2477 | #define MPL_NUMcxx . . $ `external/glpk/glpmpl.h:2477:9`! 421 /* continuous */ |
| 2478 | #define MPL_INTcxx . . $ `external/glpk/glpmpl.h:2478:9`! 422 /* integer */ |
| 2479 | #define MPL_BINcxx . . $ `external/glpk/glpmpl.h:2479:9`! 423 /* binary */ |
| 2480 | |
| 2481 | #define mpl_errorcxx . . $ `external/glpk/glpmpl.h:2481:9`! _glp_mpl_error |
| 2482 | void mpl_errorcxx . . $ `external/glpk/glpmpl.h:2481:9`!(MPLcxx . . $ MPL# *mpl, char *fmt, ...); |
| 2483 | /* print error message and terminate model processing */ |
| 2484 | |
| 2485 | #define warningcxx . . $ `external/glpk/glpmpl.h:2485:9`! _glp_mpl_warning |
| 2486 | void warningcxx . . $ `external/glpk/glpmpl.h:2485:9`!(MPLcxx . . $ MPL# *mpl, char *fmt, ...); |
| 2487 | /* print warning message and continue model processing */ |
| 2488 | |
| 2489 | #define mpl_initializecxx . . $ `external/glpk/glpmpl.h:2489:9`! _glp_mpl_initialize |
| 2490 | MPLcxx . . $ MPL# *mpl_initializecxx . . $ `external/glpk/glpmpl.h:2489:9`!(void); |
| 2491 | /* create and initialize translator database */ |
| 2492 | |
| 2493 | #define mpl_read_modelcxx . . $ `external/glpk/glpmpl.h:2493:9`! _glp_mpl_read_model |
| 2494 | int mpl_read_modelcxx . . $ `external/glpk/glpmpl.h:2493:9`!(MPLcxx . . $ MPL# *mpl, char *file, int skip_data); |
| 2495 | /* read model section and optional data section */ |
| 2496 | |
| 2497 | #define mpl_read_datacxx . . $ `external/glpk/glpmpl.h:2497:9`! _glp_mpl_read_data |
| 2498 | int mpl_read_datacxx . . $ `external/glpk/glpmpl.h:2497:9`!(MPLcxx . . $ MPL# *mpl, char *file); |
| 2499 | /* read data section */ |
| 2500 | |
| 2501 | #define mpl_generatecxx . . $ `external/glpk/glpmpl.h:2501:9`! _glp_mpl_generate |
| 2502 | int mpl_generatecxx . . $ `external/glpk/glpmpl.h:2501:9`!(MPLcxx . . $ MPL# *mpl, char *file); |
| 2503 | /* generate model */ |
| 2504 | |
| 2505 | #define mpl_get_prob_namecxx . . $ `external/glpk/glpmpl.h:2505:9`! _glp_mpl_get_prob_name |
| 2506 | char *mpl_get_prob_namecxx . . $ `external/glpk/glpmpl.h:2505:9`!(MPLcxx . . $ MPL# *mpl); |
| 2507 | /* obtain problem (model) name */ |
| 2508 | |
| 2509 | #define mpl_get_num_rowscxx . . $ `external/glpk/glpmpl.h:2509:9`! _glp_mpl_get_num_rows |
| 2510 | int mpl_get_num_rowscxx . . $ `external/glpk/glpmpl.h:2509:9`!(MPLcxx . . $ MPL# *mpl); |
| 2511 | /* determine number of rows */ |
| 2512 | |
| 2513 | #define mpl_get_num_colscxx . . $ `external/glpk/glpmpl.h:2513:9`! _glp_mpl_get_num_cols |
| 2514 | int mpl_get_num_colscxx . . $ `external/glpk/glpmpl.h:2513:9`!(MPLcxx . . $ MPL# *mpl); |
| 2515 | /* determine number of columns */ |
| 2516 | |
| 2517 | #define mpl_get_row_namecxx . . $ `external/glpk/glpmpl.h:2517:9`! _glp_mpl_get_row_name |
| 2518 | char *mpl_get_row_namecxx . . $ `external/glpk/glpmpl.h:2517:9`!(MPLcxx . . $ MPL# *mpl, int i); |
| 2519 | /* obtain row name */ |
| 2520 | |
| 2521 | #define mpl_get_row_kindcxx . . $ `external/glpk/glpmpl.h:2521:9`! _glp_mpl_get_row_kind |
| 2522 | int mpl_get_row_kindcxx . . $ `external/glpk/glpmpl.h:2521:9`!(MPLcxx . . $ MPL# *mpl, int i); |
| 2523 | /* determine row kind */ |
| 2524 | |
| 2525 | #define mpl_get_row_bndscxx . . $ `external/glpk/glpmpl.h:2525:9`! _glp_mpl_get_row_bnds |
| 2526 | int mpl_get_row_bndscxx . . $ `external/glpk/glpmpl.h:2525:9`!(MPLcxx . . $ MPL# *mpl, int i, double *lb, double *ub); |
| 2527 | /* obtain row bounds */ |
| 2528 | |
| 2529 | #define mpl_get_mat_rowcxx . . $ `external/glpk/glpmpl.h:2529:9`! _glp_mpl_get_mat_row |
| 2530 | int mpl_get_mat_rowcxx . . $ `external/glpk/glpmpl.h:2529:9`!(MPLcxx . . $ MPL# *mpl, int i, int ndx[], double val[]); |
| 2531 | /* obtain row of the constraint matrix */ |
| 2532 | |
| 2533 | #define mpl_get_row_c0cxx . . $ `external/glpk/glpmpl.h:2533:9`! _glp_mpl_get_row_c0 |
| 2534 | double mpl_get_row_c0cxx . . $ `external/glpk/glpmpl.h:2533:9`!(MPLcxx . . $ MPL# *mpl, int i); |
| 2535 | /* obtain constant term of free row */ |
| 2536 | |
| 2537 | #define mpl_get_col_namecxx . . $ `external/glpk/glpmpl.h:2537:9`! _glp_mpl_get_col_name |
| 2538 | char *mpl_get_col_namecxx . . $ `external/glpk/glpmpl.h:2537:9`!(MPLcxx . . $ MPL# *mpl, int j); |
| 2539 | /* obtain column name */ |
| 2540 | |
| 2541 | #define mpl_get_col_kindcxx . . $ `external/glpk/glpmpl.h:2541:9`! _glp_mpl_get_col_kind |
| 2542 | int mpl_get_col_kindcxx . . $ `external/glpk/glpmpl.h:2541:9`!(MPLcxx . . $ MPL# *mpl, int j); |
| 2543 | /* determine column kind */ |
| 2544 | |
| 2545 | #define mpl_get_col_bndscxx . . $ `external/glpk/glpmpl.h:2545:9`! _glp_mpl_get_col_bnds |
| 2546 | int mpl_get_col_bndscxx . . $ `external/glpk/glpmpl.h:2545:9`!(MPLcxx . . $ MPL# *mpl, int j, double *lb, double *ub); |
| 2547 | /* obtain column bounds */ |
| 2548 | |
| 2549 | #define mpl_has_solve_stmtcxx . . $ `external/glpk/glpmpl.h:2549:9`! _glp_mpl_has_solve_stmt |
| 2550 | int mpl_has_solve_stmtcxx . . $ `external/glpk/glpmpl.h:2549:9`!(MPLcxx . . $ MPL# *mpl); |
| 2551 | /* check if model has solve statement */ |
| 2552 | |
| 2553 | #if 1 /* 15/V-2010 */ |
| 2554 | #define mpl_put_row_solncxx . . $ `external/glpk/glpmpl.h:2554:9`! _glp_mpl_put_row_soln |
| 2555 | void mpl_put_row_solncxx . . $ `external/glpk/glpmpl.h:2554:9`!(MPLcxx . . $ MPL# *mpl, int i, int stat, double prim, |
| 2556 | double dual); |
| 2557 | /* store row (constraint/objective) solution components */ |
| 2558 | #endif |
| 2559 | |
| 2560 | #if 1 /* 15/V-2010 */ |
| 2561 | #define mpl_put_col_solncxx . . $ `external/glpk/glpmpl.h:2561:9`! _glp_mpl_put_col_soln |
| 2562 | void mpl_put_col_solncxx . . $ `external/glpk/glpmpl.h:2561:9`!(MPLcxx . . $ MPL# *mpl, int j, int stat, double prim, |
| 2563 | double dual); |
| 2564 | /* store column (variable) solution components */ |
| 2565 | #endif |
| 2566 | |
| 2567 | #if 0 /* 15/V-2010 */ |
| 2568 | #define mpl_put_col_value _glp_mpl_put_col_value |
| 2569 | void mpl_put_col_value(MPL *mpl, int j, double val); |
| 2570 | /* store column value */ |
| 2571 | #endif |
| 2572 | |
| 2573 | #define mpl_postsolvecxx . . $ `external/glpk/glpmpl.h:2573:9`! _glp_mpl_postsolve |
| 2574 | int mpl_postsolvecxx . . $ `external/glpk/glpmpl.h:2573:9`!(MPLcxx . . $ MPL# *mpl); |
| 2575 | /* postsolve model */ |
| 2576 | |
| 2577 | #define mpl_terminatecxx . . $ `external/glpk/glpmpl.h:2577:9`! _glp_mpl_terminate |
| 2578 | void mpl_terminatecxx . . $ `external/glpk/glpmpl.h:2577:9`!(MPLcxx . . $ MPL# *mpl); |
| 2579 | /* free all resources used by translator */ |
| 2580 | |
| 2581 | #endif |
| 2582 | |
| 2583 | /* eof */ |