Debian Codegraph @

external/glpk/glpios.h

raw symbols SCIP
1 /* glpios.h (integer optimization suite) */cxx . . $ `<file>/external/glpk/glpios.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 GLPIOS_H
26 #define GLPIOS_Hcxx . . $ `external/glpk/glpios.h:26:9`!
27
28 #define GLP_TREE_DEFINEDcxx . . $ `external/glpk/glpios.h:28:9`!
29 typedef struct glp_treecxx . . $ glp_tree# glp_treecxx . . $ glp_tree#;
30
31 #include "glpapi.h"cxx . . $ `<file>/external/glpk/glpapi.h`/
32
33 typedef struct IOSLOTcxx . . $ IOSLOT# IOSLOTcxx . . $ IOSLOT#;
34 typedef struct IOSNPDcxx . . $ IOSNPD# IOSNPDcxx . . $ IOSNPD#;
35 typedef struct IOSBNDcxx . . $ IOSBND# IOSBNDcxx . . $ IOSBND#;
36 typedef struct IOSTATcxx . . $ IOSTAT# IOSTATcxx . . $ IOSTAT#;
37 typedef struct IOSROWcxx . . $ IOSROW# IOSROWcxx . . $ IOSROW#;
38 typedef struct IOSAIJcxx . . $ IOSAIJ# IOSAIJcxx . . $ IOSAIJ#;
39 typedef struct IOSPOOLcxx . . $ IOSPOOL# IOSPOOLcxx . . $ IOSPOOL#;
40 typedef struct IOSCUTcxx . . $ IOSCUT# IOSCUTcxx . . $ IOSCUT#;
41
42 struct glp_treecxx . . $ glp_tree#
43 { /* branch-and-bound tree */
44 int magiccxx . . $ glp_tree#magic.;
45 /* magic value used for debugging */
46 DMPcxx . . $ DMP# *poolcxx . . $ glp_tree#pool.;
47 /* memory pool to store all IOS components */
48 int ncxx . . $ glp_tree#n.;
49 /* number of columns (variables) */
50 /*--------------------------------------------------------------*/
51 /* problem components corresponding to the original MIP and its
52 LP relaxation (used to restore the original problem object on
53 exit from the solver) */
54 int orig_mcxx . . $ glp_tree#orig_m.;
55 /* number of rows */
56 unsigned char *orig_typecxx . . $ glp_tree#orig_type.; /* uchar orig_type[1+orig_m+n]; */
57 /* types of all variables */
58 double *orig_lbcxx . . $ glp_tree#orig_lb.; /* double orig_lb[1+orig_m+n]; */
59 /* lower bounds of all variables */
60 double *orig_ubcxx . . $ glp_tree#orig_ub.; /* double orig_ub[1+orig_m+n]; */
61 /* upper bounds of all variables */
62 unsigned char *orig_statcxx . . $ glp_tree#orig_stat.; /* uchar orig_stat[1+orig_m+n]; */
63 /* statuses of all variables */
64 double *orig_primcxx . . $ glp_tree#orig_prim.; /* double orig_prim[1+orig_m+n]; */
65 /* primal values of all variables */
66 double *orig_dualcxx . . $ glp_tree#orig_dual.; /* double orig_dual[1+orig_m+n]; */
67 /* dual values of all variables */
68 double orig_objcxx . . $ glp_tree#orig_obj.;
69 /* optimal objective value for LP relaxation */
70 /*--------------------------------------------------------------*/
71 /* branch-and-bound tree */
72 int nslotscxx . . $ glp_tree#nslots.;
73 /* length of the array of slots (enlarged automatically) */
74 int availcxx . . $ glp_tree#avail.;
75 /* index of the first free slot; 0 means all slots are in use */
76 IOSLOTcxx . . $ IOSLOT# *slotcxx . . $ glp_tree#slot.; /* IOSLOT slot[1+nslots]; */
77 /* array of slots:
78 slot[0] is not used;
79 slot[p], 1 <= p <= nslots, either contains a pointer to some
80 node of the branch-and-bound tree, in which case p is used on
81 API level as the reference number of corresponding subproblem,
82 or is free; all free slots are linked into single linked list;
83 slot[1] always contains a pointer to the root node (it is free
84 only if the tree is empty) */
85 IOSNPDcxx . . $ IOSNPD# *headcxx . . $ glp_tree#head.;
86 /* pointer to the head of the active list */
87 IOSNPDcxx . . $ IOSNPD# *tailcxx . . $ glp_tree#tail.;
88 /* pointer to the tail of the active list */
89 /* the active list is a doubly linked list of active subproblems
90 which correspond to leaves of the tree; all subproblems in the
91 active list are ordered chronologically (each a new subproblem
92 is always added to the tail of the list) */
93 int a_cntcxx . . $ glp_tree#a_cnt.;
94 /* current number of active nodes (including the current one) */
95 int n_cntcxx . . $ glp_tree#n_cnt.;
96 /* current number of all (active and inactive) nodes */
97 int t_cntcxx . . $ glp_tree#t_cnt.;
98 /* total number of nodes including those which have been already
99 removed from the tree; this count is increased by one whenever
100 a new node is created and never decreased */
101 /*--------------------------------------------------------------*/
102 /* problem components corresponding to the root subproblem */
103 int root_mcxx . . $ glp_tree#root_m.;
104 /* number of rows */
105 unsigned char *root_typecxx . . $ glp_tree#root_type.; /* uchar root_type[1+root_m+n]; */
106 /* types of all variables */
107 double *root_lbcxx . . $ glp_tree#root_lb.; /* double root_lb[1+root_m+n]; */
108 /* lower bounds of all variables */
109 double *root_ubcxx . . $ glp_tree#root_ub.; /* double root_ub[1+root_m+n]; */
110 /* upper bounds of all variables */
111 unsigned char *root_statcxx . . $ glp_tree#root_stat.; /* uchar root_stat[1+root_m+n]; */
112 /* statuses of all variables */
113 /*--------------------------------------------------------------*/
114 /* current subproblem and its LP relaxation */
115 IOSNPDcxx . . $ IOSNPD# *currcxx . . $ glp_tree#curr.;
116 /* pointer to the current subproblem (which can be only active);
117 NULL means the current subproblem does not exist */
118 glp_probcxx . . $ glp_prob# *mipcxx . . $ glp_tree#mip.;
119 /* original problem object passed to the solver; if the current
120 subproblem exists, its LP segment corresponds to LP relaxation
121 of the current subproblem; if the current subproblem does not
122 exist, its LP segment corresponds to LP relaxation of the root
123 subproblem (note that the root subproblem may differ from the
124 original MIP, because it may be preprocessed and/or may have
125 additional rows) */
126 unsigned char *non_intcxx . . $ glp_tree#non_int.; /* uchar non_int[1+n]; */
127 /* these column flags are set each time when LP relaxation of the
128 current subproblem has been solved;
129 non_int[0] is not used;
130 non_int[j], 1 <= j <= n, is j-th column flag; if this flag is
131 set, corresponding variable is required to be integer, but its
132 value in basic solution is fractional */
133 /*--------------------------------------------------------------*/
134 /* problem components corresponding to the parent (predecessor)
135 subproblem for the current subproblem; used to inspect changes
136 on freezing the current subproblem */
137 int pred_mcxx . . $ glp_tree#pred_m.;
138 /* number of rows */
139 int pred_maxcxx . . $ glp_tree#pred_max.;
140 /* length of the following four arrays (enlarged automatically),
141 pred_max >= pred_m + n */
142 unsigned char *pred_typecxx . . $ glp_tree#pred_type.; /* uchar pred_type[1+pred_m+n]; */
143 /* types of all variables */
144 double *pred_lbcxx . . $ glp_tree#pred_lb.; /* double pred_lb[1+pred_m+n]; */
145 /* lower bounds of all variables */
146 double *pred_ubcxx . . $ glp_tree#pred_ub.; /* double pred_ub[1+pred_m+n]; */
147 /* upper bounds of all variables */
148 unsigned char *pred_statcxx . . $ glp_tree#pred_stat.; /* uchar pred_stat[1+pred_m+n]; */
149 /* statuses of all variables */
150 /****************************************************************/
151 /* built-in cut generators segment */
152 IOSPOOLcxx . . $ IOSPOOL# *localcxx . . $ glp_tree#local.;
153 /* local cut pool */
154 void *mir_gencxx . . $ glp_tree#mir_gen.;
155 /* pointer to working area used by the MIR cut generator */
156 void *clq_gencxx . . $ glp_tree#clq_gen.;
157 /* pointer to working area used by the clique cut generator */
158 /*--------------------------------------------------------------*/
159 void *pcostcxx . . $ glp_tree#pcost.;
160 /* pointer to working area used on pseudocost branching */
161 int *iwrkcxx . . $ glp_tree#iwrk.; /* int iwrk[1+n]; */
162 /* working array */
163 double *dwrkcxx . . $ glp_tree#dwrk.; /* double dwrk[1+n]; */
164 /* working array */
165 /*--------------------------------------------------------------*/
166 /* control parameters and statistics */
167 const glp_iocpcxx . . $ glp_iocp# *parmcxx . . $ glp_tree#parm.;
168 /* copy of control parameters passed to the solver */
169 glp_longcxx . . $ glp_long# tm_begcxx . . $ glp_tree#tm_beg.;
170 /* starting time of the search, in seconds; the total time of the
171 search is the difference between xtime() and tm_beg */
172 glp_longcxx . . $ glp_long# tm_lagcxx . . $ glp_tree#tm_lag.;
173 /* the most recent time, in seconds, at which the progress of the
174 the search was displayed */
175 int sol_cntcxx . . $ glp_tree#sol_cnt.;
176 /* number of integer feasible solutions found */
177 /*--------------------------------------------------------------*/
178 /* advanced solver interface */
179 int reasoncxx . . $ glp_tree#reason.;
180 /* flag indicating the reason why the callback routine is being
181 called (see glpk.h) */
182 int stopcxx . . $ glp_tree#stop.;
183 /* flag indicating that the callback routine requires premature
184 termination of the search */
185 int next_pcxx . . $ glp_tree#next_p.;
186 /* reference number of active subproblem selected to continue
187 the search; 0 means no subproblem has been selected */
188 int reoptcxx . . $ glp_tree#reopt.;
189 /* flag indicating that the current LP relaxation needs to be
190 re-optimized */
191 int reinvcxx . . $ glp_tree#reinv.;
192 /* flag indicating that some (non-active) rows were removed from
193 the current LP relaxation, so if there no new rows appear, the
194 basis must be re-factorized */
195 int br_varcxx . . $ glp_tree#br_var.;
196 /* the number of variable chosen to branch on */
197 int br_selcxx . . $ glp_tree#br_sel.;
198 /* flag indicating which branch (subproblem) is suggested to be
199 selected to continue the search:
200 GLP_DN_BRNCH - select down-branch
201 GLP_UP_BRNCH - select up-branch
202 GLP_NO_BRNCH - use general selection technique */
203 int childcxx . . $ glp_tree#child.;
204 /* subproblem reference number corresponding to br_sel */
205 };
206
207 struct IOSLOTcxx . . $ IOSLOT#
208 { /* node subproblem slot */
209 IOSNPDcxx . . $ IOSNPD# *nodecxx . . $ IOSLOT#node.;
210 /* pointer to subproblem descriptor; NULL means free slot */
211 int nextcxx . . $ IOSLOT#next.;
212 /* index of another free slot (only if this slot is free) */
213 };
214
215 struct IOSNPDcxx . . $ IOSNPD#
216 { /* node subproblem descriptor */
217 int pcxx . . $ IOSNPD#p.;
218 /* subproblem reference number (it is the index to corresponding
219 slot, i.e. slot[p] points to this descriptor) */
220 IOSNPDcxx . . $ IOSNPD# *upcxx . . $ IOSNPD#up.;
221 /* pointer to the parent subproblem; NULL means this node is the
222 root of the tree, in which case p = 1 */
223 int levelcxx . . $ IOSNPD#level.;
224 /* node level (the root node has level 0) */
225 int countcxx . . $ IOSNPD#count.;
226 /* if count = 0, this subproblem is active; if count > 0, this
227 subproblem is inactive, in which case count is the number of
228 its child subproblems */
229 /* the following three linked lists are destroyed on reviving and
230 built anew on freezing the subproblem: */
231 IOSBNDcxx . . $ IOSBND# *b_ptrcxx . . $ IOSNPD#b_ptr.;
232 /* linked list of rows and columns of the parent subproblem whose
233 types and bounds were changed */
234 IOSTATcxx . . $ IOSTAT# *s_ptrcxx . . $ IOSNPD#s_ptr.;
235 /* linked list of rows and columns of the parent subproblem whose
236 statuses were changed */
237 IOSROWcxx . . $ IOSROW# *r_ptrcxx . . $ IOSNPD#r_ptr.;
238 /* linked list of rows (cuts) added to the parent subproblem */
239 int solvedcxx . . $ IOSNPD#solved.;
240 /* how many times LP relaxation of this subproblem was solved;
241 for inactive subproblem this count is always non-zero;
242 for active subproblem, which is not current, this count may be
243 non-zero, if the subproblem was temporarily suspended */
244 double lp_objcxx . . $ IOSNPD#lp_obj.;
245 /* optimal objective value to LP relaxation of this subproblem;
246 on creating a subproblem this value is inherited from its
247 parent; for the root subproblem, which has no parent, this
248 value is initially set to -DBL_MAX (minimization) or +DBL_MAX
249 (maximization); each time the subproblem is re-optimized, this
250 value is appropriately changed */
251 double boundcxx . . $ IOSNPD#bound.;
252 /* local lower (minimization) or upper (maximization) bound for
253 integer optimal solution to *this* subproblem; this bound is
254 local in the sense that only subproblems in the subtree rooted
255 at this node cannot have better integer feasible solutions;
256 on creating a subproblem its local bound is inherited from its
257 parent and then can be made stronger (never weaker); for the
258 root subproblem its local bound is initially set to -DBL_MAX
259 (minimization) or +DBL_MAX (maximization) and then improved as
260 the root LP relaxation has been solved */
261 /* the following two quantities are defined only if LP relaxation
262 of this subproblem was solved at least once (solved > 0): */
263 int ii_cntcxx . . $ IOSNPD#ii_cnt.;
264 /* number of integer variables whose value in optimal solution to
265 LP relaxation of this subproblem is fractional */
266 double ii_sumcxx . . $ IOSNPD#ii_sum.;
267 /* sum of integer infeasibilities */
268 #if 1 /* 30/XI-2009 */
269 int changedcxx . . $ IOSNPD#changed.;
270 /* how many times this subproblem was re-formulated (by adding
271 cutting plane constraints) */
272 #endif
273 int br_varcxx . . $ IOSNPD#br_var.;
274 /* ordinal number of branching variable, 1 <= br_var <= n, used
275 to split this subproblem; 0 means that either this subproblem
276 is active or branching was made on a constraint */
277 double br_valcxx . . $ IOSNPD#br_val.;
278 /* (fractional) value of branching variable in optimal solution
279 to final LP relaxation of this subproblem */
280 void *datacxx . . $ IOSNPD#data.; /* char data[tree->cb_size]; */
281 /* pointer to the application-specific data */
282 IOSNPDcxx . . $ IOSNPD# *tempcxx . . $ IOSNPD#temp.;
283 /* working pointer used by some routines */
284 IOSNPDcxx . . $ IOSNPD# *prevcxx . . $ IOSNPD#prev.;
285 /* pointer to previous subproblem in the active list */
286 IOSNPDcxx . . $ IOSNPD# *nextcxx . . $ IOSNPD#next.;
287 /* pointer to next subproblem in the active list */
288 };
289
290 struct IOSBNDcxx . . $ IOSBND#
291 { /* bounds change entry */
292 int kcxx . . $ IOSBND#k.;
293 /* ordinal number of corresponding row (1 <= k <= m) or column
294 (m+1 <= k <= m+n), where m and n are the number of rows and
295 columns, resp., in the parent subproblem */
296 unsigned char typecxx . . $ IOSBND#type.;
297 /* new type */
298 double lbcxx . . $ IOSBND#lb.;
299 /* new lower bound */
300 double ubcxx . . $ IOSBND#ub.;
301 /* new upper bound */
302 IOSBNDcxx . . $ IOSBND# *nextcxx . . $ IOSBND#next.;
303 /* pointer to next entry for the same subproblem */
304 };
305
306 struct IOSTATcxx . . $ IOSTAT#
307 { /* status change entry */
308 int kcxx . . $ IOSTAT#k.;
309 /* ordinal number of corresponding row (1 <= k <= m) or column
310 (m+1 <= k <= m+n), where m and n are the number of rows and
311 columns, resp., in the parent subproblem */
312 unsigned char statcxx . . $ IOSTAT#stat.;
313 /* new status */
314 IOSTATcxx . . $ IOSTAT# *nextcxx . . $ IOSTAT#next.;
315 /* pointer to next entry for the same subproblem */
316 };
317
318 struct IOSROWcxx . . $ IOSROW#
319 { /* row (constraint) addition entry */
320 char *namecxx . . $ IOSROW#name.;
321 /* row name or NULL */
322 unsigned char origincxx . . $ IOSROW#origin.;
323 /* row origin flag (see glp_attr.origin) */
324 unsigned char klasscxx . . $ IOSROW#klass.;
325 /* row class descriptor (see glp_attr.klass) */
326 unsigned char typecxx . . $ IOSROW#type.;
327 /* row type (GLP_LO, GLP_UP, etc.) */
328 double lbcxx . . $ IOSROW#lb.;
329 /* row lower bound */
330 double ubcxx . . $ IOSROW#ub.;
331 /* row upper bound */
332 IOSAIJcxx . . $ IOSAIJ# *ptrcxx . . $ IOSROW#ptr.;
333 /* pointer to the row coefficient list */
334 double riicxx . . $ IOSROW#rii.;
335 /* row scale factor */
336 unsigned char statcxx . . $ IOSROW#stat.;
337 /* row status (GLP_BS, GLP_NL, etc.) */
338 IOSROWcxx . . $ IOSROW# *nextcxx . . $ IOSROW#next.;
339 /* pointer to next entry for the same subproblem */
340 };
341
342 struct IOSAIJcxx . . $ IOSAIJ#
343 { /* constraint coefficient */
344 int jcxx . . $ IOSAIJ#j.;
345 /* variable (column) number, 1 <= j <= n */
346 double valcxx . . $ IOSAIJ#val.;
347 /* non-zero coefficient value */
348 IOSAIJcxx . . $ IOSAIJ# *nextcxx . . $ IOSAIJ#next.;
349 /* pointer to next coefficient for the same row */
350 };
351
352 struct IOSPOOLcxx . . $ IOSPOOL#
353 { /* cut pool */
354 int sizecxx . . $ IOSPOOL#size.;
355 /* pool size = number of cuts in the pool */
356 IOSCUTcxx . . $ IOSCUT# *headcxx . . $ IOSPOOL#head.;
357 /* pointer to the first cut */
358 IOSCUTcxx . . $ IOSCUT# *tailcxx . . $ IOSPOOL#tail.;
359 /* pointer to the last cut */
360 int ordcxx . . $ IOSPOOL#ord.;
361 /* ordinal number of the current cut, 1 <= ord <= size */
362 IOSCUTcxx . . $ IOSCUT# *currcxx . . $ IOSPOOL#curr.;
363 /* pointer to the current cut */
364 };
365
366 struct IOSCUTcxx . . $ IOSCUT#
367 { /* cut (cutting plane constraint) */
368 char *namecxx . . $ IOSCUT#name.;
369 /* cut name or NULL */
370 unsigned char klasscxx . . $ IOSCUT#klass.;
371 /* cut class descriptor (see glp_attr.klass) */
372 IOSAIJcxx . . $ IOSAIJ# *ptrcxx . . $ IOSCUT#ptr.;
373 /* pointer to the cut coefficient list */
374 unsigned char typecxx . . $ IOSCUT#type.;
375 /* cut type:
376 GLP_LO: sum a[j] * x[j] >= b
377 GLP_UP: sum a[j] * x[j] <= b
378 GLP_FX: sum a[j] * x[j] = b */
379 double rhscxx . . $ IOSCUT#rhs.;
380 /* cut right-hand side */
381 IOSCUTcxx . . $ IOSCUT# *prevcxx . . $ IOSCUT#prev.;
382 /* pointer to previous cut */
383 IOSCUTcxx . . $ IOSCUT# *nextcxx . . $ IOSCUT#next.;
384 /* pointer to next cut */
385 };
386
387 #define ios_create_treecxx . . $ `external/glpk/glpios.h:387:9`! _glp_ios_create_tree
388 glp_treecxx . . $ glp_tree# *ios_create_treecxx . . $ `external/glpk/glpios.h:387:9`!(glp_probcxx . . $ glp_prob# *mip, const glp_iocpcxx . . $ glp_iocp# *parm);
389 /* create branch-and-bound tree */
390
391 #define ios_revive_nodecxx . . $ `external/glpk/glpios.h:391:9`! _glp_ios_revive_node
392 void ios_revive_nodecxx . . $ `external/glpk/glpios.h:391:9`!(glp_treecxx . . $ glp_tree# *tree, int p);
393 /* revive specified subproblem */
394
395 #define ios_freeze_nodecxx . . $ `external/glpk/glpios.h:395:9`! _glp_ios_freeze_node
396 void ios_freeze_nodecxx . . $ `external/glpk/glpios.h:395:9`!(glp_treecxx . . $ glp_tree# *tree);
397 /* freeze current subproblem */
398
399 #define ios_clone_nodecxx . . $ `external/glpk/glpios.h:399:9`! _glp_ios_clone_node
400 void ios_clone_nodecxx . . $ `external/glpk/glpios.h:399:9`!(glp_treecxx . . $ glp_tree# *tree, int p, int nnn, int ref[]);
401 /* clone specified subproblem */
402
403 #define ios_delete_nodecxx . . $ `external/glpk/glpios.h:403:9`! _glp_ios_delete_node
404 void ios_delete_nodecxx . . $ `external/glpk/glpios.h:403:9`!(glp_treecxx . . $ glp_tree# *tree, int p);
405 /* delete specified subproblem */
406
407 #define ios_delete_treecxx . . $ `external/glpk/glpios.h:407:9`! _glp_ios_delete_tree
408 void ios_delete_treecxx . . $ `external/glpk/glpios.h:407:9`!(glp_treecxx . . $ glp_tree# *tree);
409 /* delete branch-and-bound tree */
410
411 #define ios_eval_degradcxx . . $ `external/glpk/glpios.h:411:9`! _glp_ios_eval_degrad
412 void ios_eval_degradcxx . . $ `external/glpk/glpios.h:411:9`!(glp_treecxx . . $ glp_tree# *tree, int j, double *dn, double *up);
413 /* estimate obj. degrad. for down- and up-branches */
414
415 #define ios_round_boundcxx . . $ `external/glpk/glpios.h:415:9`! _glp_ios_round_bound
416 double ios_round_boundcxx . . $ `external/glpk/glpios.h:415:9`!(glp_treecxx . . $ glp_tree# *tree, double bound);
417 /* improve local bound by rounding */
418
419 #define ios_is_hopefulcxx . . $ `external/glpk/glpios.h:419:9`! _glp_ios_is_hopeful
420 int ios_is_hopefulcxx . . $ `external/glpk/glpios.h:419:9`!(glp_treecxx . . $ glp_tree# *tree, double bound);
421 /* check if subproblem is hopeful */
422
423 #define ios_best_nodecxx . . $ `external/glpk/glpios.h:423:9`! _glp_ios_best_node
424 int ios_best_nodecxx . . $ `external/glpk/glpios.h:423:9`!(glp_treecxx . . $ glp_tree# *tree);
425 /* find active node with best local bound */
426
427 #define ios_relative_gapcxx . . $ `external/glpk/glpios.h:427:9`! _glp_ios_relative_gap
428 double ios_relative_gapcxx . . $ `external/glpk/glpios.h:427:9`!(glp_treecxx . . $ glp_tree# *tree);
429 /* compute relative mip gap */
430
431 #define ios_solve_nodecxx . . $ `external/glpk/glpios.h:431:9`! _glp_ios_solve_node
432 int ios_solve_nodecxx . . $ `external/glpk/glpios.h:431:9`!(glp_treecxx . . $ glp_tree# *tree);
433 /* solve LP relaxation of current subproblem */
434
435 #define ios_create_poolcxx . . $ `external/glpk/glpios.h:435:9`! _glp_ios_create_pool
436 IOSPOOLcxx . . $ IOSPOOL# *ios_create_poolcxx . . $ `external/glpk/glpios.h:435:9`!(glp_treecxx . . $ glp_tree# *tree);
437 /* create cut pool */
438
439 #define ios_add_rowcxx . . $ `external/glpk/glpios.h:439:9`! _glp_ios_add_row
440 int ios_add_rowcxx . . $ `external/glpk/glpios.h:439:9`!(glp_treecxx . . $ glp_tree# *tree, IOSPOOLcxx . . $ IOSPOOL# *pool,
441 const char *name, int klass, int flags, int len, const int ind[],
442 const double val[], int type, double rhs);
443 /* add row (constraint) to the cut pool */
444
445 #define ios_find_rowcxx . . $ `external/glpk/glpios.h:445:9`! _glp_ios_find_row
446 IOSCUTcxx . . $ IOSCUT# *ios_find_rowcxx . . $ `external/glpk/glpios.h:445:9`!(IOSPOOLcxx . . $ IOSPOOL# *pool, int i);
447 /* find row (constraint) in the cut pool */
448
449 #define ios_del_rowcxx . . $ `external/glpk/glpios.h:449:9`! _glp_ios_del_row
450 void ios_del_rowcxx . . $ `external/glpk/glpios.h:449:9`!(glp_treecxx . . $ glp_tree# *tree, IOSPOOLcxx . . $ IOSPOOL# *pool, int i);
451 /* remove row (constraint) from the cut pool */
452
453 #define ios_clear_poolcxx . . $ `external/glpk/glpios.h:453:9`! _glp_ios_clear_pool
454 void ios_clear_poolcxx . . $ `external/glpk/glpios.h:453:9`!(glp_treecxx . . $ glp_tree# *tree, IOSPOOLcxx . . $ IOSPOOL# *pool);
455 /* remove all rows (constraints) from the cut pool */
456
457 #define ios_delete_poolcxx . . $ `external/glpk/glpios.h:457:9`! _glp_ios_delete_pool
458 void ios_delete_poolcxx . . $ `external/glpk/glpios.h:457:9`!(glp_treecxx . . $ glp_tree# *tree, IOSPOOLcxx . . $ IOSPOOL# *pool);
459 /* delete cut pool */
460
461 #define ios_preprocess_nodecxx . . $ `external/glpk/glpios.h:461:9`! _glp_ios_preprocess_node
462 int ios_preprocess_nodecxx . . $ `external/glpk/glpios.h:461:9`!(glp_treecxx . . $ glp_tree# *tree, int max_pass);
463 /* preprocess current subproblem */
464
465 #define ios_drivercxx . . $ `external/glpk/glpios.h:465:9`! _glp_ios_driver
466 int ios_drivercxx . . $ `external/glpk/glpios.h:465:9`!(glp_treecxx . . $ glp_tree# *tree);
467 /* branch-and-bound driver */
468
469 /**********************************************************************/
470
471 typedef struct IOSVECcxx . . $ IOSVEC# IOSVECcxx . . $ IOSVEC#;
472
473 struct IOSVECcxx . . $ IOSVEC#
474 { /* sparse vector v = (v[j]) */
475 int ncxx . . $ IOSVEC#n.;
476 /* dimension, n >= 0 */
477 int nnzcxx . . $ IOSVEC#nnz.;
478 /* number of non-zero components, 0 <= nnz <= n */
479 int *poscxx . . $ IOSVEC#pos.; /* int pos[1+n]; */
480 /* pos[j] = k, 1 <= j <= n, is position of (non-zero) v[j] in the
481 arrays ind and val, where 1 <= k <= nnz; pos[j] = 0 means that
482 v[j] is structural zero */
483 int *indcxx . . $ IOSVEC#ind.; /* int ind[1+n]; */
484 /* ind[k] = j, 1 <= k <= nnz, is index of v[j] */
485 double *valcxx . . $ IOSVEC#val.; /* double val[1+n]; */
486 /* val[k], 1 <= k <= nnz, is a numeric value of v[j] */
487 };
488
489 #define ios_create_veccxx . . $ `external/glpk/glpios.h:489:9`! _glp_ios_create_vec
490 IOSVECcxx . . $ IOSVEC# *ios_create_veccxx . . $ `external/glpk/glpios.h:489:9`!(int n);
491 /* create sparse vector */
492
493 #define ios_check_veccxx . . $ `external/glpk/glpios.h:493:9`! _glp_ios_check_vec
494 void ios_check_veccxx . . $ `external/glpk/glpios.h:493:9`!(IOSVECcxx . . $ IOSVEC# *v);
495 /* check that sparse vector has correct representation */
496
497 #define ios_get_vjcxx . . $ `external/glpk/glpios.h:497:9`! _glp_ios_get_vj
498 double ios_get_vjcxx . . $ `external/glpk/glpios.h:497:9`!(IOSVECcxx . . $ IOSVEC# *v, int j);
499 /* retrieve component of sparse vector */
500
501 #define ios_set_vjcxx . . $ `external/glpk/glpios.h:501:9`! _glp_ios_set_vj
502 void ios_set_vjcxx . . $ `external/glpk/glpios.h:501:9`!(IOSVECcxx . . $ IOSVEC# *v, int j, double val);
503 /* set/change component of sparse vector */
504
505 #define ios_clear_veccxx . . $ `external/glpk/glpios.h:505:9`! _glp_ios_clear_vec
506 void ios_clear_veccxx . . $ `external/glpk/glpios.h:505:9`!(IOSVECcxx . . $ IOSVEC# *v);
507 /* set all components of sparse vector to zero */
508
509 #define ios_clean_veccxx . . $ `external/glpk/glpios.h:509:9`! _glp_ios_clean_vec
510 void ios_clean_veccxx . . $ `external/glpk/glpios.h:509:9`!(IOSVECcxx . . $ IOSVEC# *v, double eps);
511 /* remove zero or small components from sparse vector */
512
513 #define ios_copy_veccxx . . $ `external/glpk/glpios.h:513:9`! _glp_ios_copy_vec
514 void ios_copy_veccxx . . $ `external/glpk/glpios.h:513:9`!(IOSVECcxx . . $ IOSVEC# *x, IOSVECcxx . . $ IOSVEC# *y);
515 /* copy sparse vector (x := y) */
516
517 #define ios_linear_combcxx . . $ `external/glpk/glpios.h:517:9`! _glp_ios_linear_comb
518 void ios_linear_combcxx . . $ `external/glpk/glpios.h:517:9`!(IOSVECcxx . . $ IOSVEC# *x, double a, IOSVECcxx . . $ IOSVEC# *y);
519 /* compute linear combination (x := x + a * y) */
520
521 #define ios_delete_veccxx . . $ `external/glpk/glpios.h:521:9`! _glp_ios_delete_vec
522 void ios_delete_veccxx . . $ `external/glpk/glpios.h:521:9`!(IOSVECcxx . . $ IOSVEC# *v);
523 /* delete sparse vector */
524
525 /**********************************************************************/
526
527 #define ios_gmi_gencxx . . $ `external/glpk/glpios.h:527:9`! _glp_ios_gmi_gen
528 void ios_gmi_gencxx . . $ `external/glpk/glpios.h:527:9`!(glp_treecxx . . $ glp_tree# *tree);
529 /* generate Gomory's mixed integer cuts */
530
531 #define ios_mir_initcxx . . $ `external/glpk/glpios.h:531:9`! _glp_ios_mir_init
532 void *ios_mir_initcxx . . $ `external/glpk/glpios.h:531:9`!(glp_treecxx . . $ glp_tree# *tree);
533 /* initialize MIR cut generator */
534
535 #define ios_mir_gencxx . . $ `external/glpk/glpios.h:535:9`! _glp_ios_mir_gen
536 void ios_mir_gencxx . . $ `external/glpk/glpios.h:535:9`!(glp_treecxx . . $ glp_tree# *tree, void *gen);
537 /* generate MIR cuts */
538
539 #define ios_mir_termcxx . . $ `external/glpk/glpios.h:539:9`! _glp_ios_mir_term
540 void ios_mir_termcxx . . $ `external/glpk/glpios.h:539:9`!(void *gen);
541 /* terminate MIR cut generator */
542
543 #define ios_cov_gencxx . . $ `external/glpk/glpios.h:543:9`! _glp_ios_cov_gen
544 void ios_cov_gencxx . . $ `external/glpk/glpios.h:543:9`!(glp_treecxx . . $ glp_tree# *tree);
545 /* generate mixed cover cuts */
546
547 #define ios_clq_initcxx . . $ `external/glpk/glpios.h:547:9`! _glp_ios_clq_init
548 void *ios_clq_initcxx . . $ `external/glpk/glpios.h:547:9`!(glp_treecxx . . $ glp_tree# *tree);
549 /* initialize clique cut generator */
550
551 #define ios_clq_gencxx . . $ `external/glpk/glpios.h:551:9`! _glp_ios_clq_gen
552 void ios_clq_gencxx . . $ `external/glpk/glpios.h:551:9`!(glp_treecxx . . $ glp_tree# *tree, void *gen);
553 /* generate clique cuts */
554
555 #define ios_clq_termcxx . . $ `external/glpk/glpios.h:555:9`! _glp_ios_clq_term
556 void ios_clq_termcxx . . $ `external/glpk/glpios.h:555:9`!(void *gen);
557 /* terminate clique cut generator */
558
559 #define ios_pcost_initcxx . . $ `external/glpk/glpios.h:559:9`! _glp_ios_pcost_init
560 void *ios_pcost_initcxx . . $ `external/glpk/glpios.h:559:9`!(glp_treecxx . . $ glp_tree# *tree);
561 /* initialize working data used on pseudocost branching */
562
563 #define ios_pcost_branchcxx . . $ `external/glpk/glpios.h:563:9`! _glp_ios_pcost_branch
564 int ios_pcost_branchcxx . . $ `external/glpk/glpios.h:563:9`!(glp_treecxx . . $ glp_tree# *T, int *next);
565 /* choose branching variable with pseudocost branching */
566
567 #define ios_pcost_updatecxx . . $ `external/glpk/glpios.h:567:9`! _glp_ios_pcost_update
568 void ios_pcost_updatecxx . . $ `external/glpk/glpios.h:567:9`!(glp_treecxx . . $ glp_tree# *tree);
569 /* update history information for pseudocost branching */
570
571 #define ios_pcost_freecxx . . $ `external/glpk/glpios.h:571:9`! _glp_ios_pcost_free
572 void ios_pcost_freecxx . . $ `external/glpk/glpios.h:571:9`!(glp_treecxx . . $ glp_tree# *tree);
573 /* free working area used on pseudocost branching */
574
575 #define ios_feas_pumpcxx . . $ `external/glpk/glpios.h:575:9`! _glp_ios_feas_pump
576 void ios_feas_pumpcxx . . $ `external/glpk/glpios.h:575:9`!(glp_treecxx . . $ glp_tree# *T);
577 /* feasibility pump heuristic */
578
579 #define ios_process_cutscxx . . $ `external/glpk/glpios.h:579:9`! _glp_ios_process_cuts
580 void ios_process_cutscxx . . $ `external/glpk/glpios.h:579:9`!(glp_treecxx . . $ glp_tree# *T);
581 /* process cuts stored in the local cut pool */
582
583 #define ios_choose_nodecxx . . $ `external/glpk/glpios.h:583:9`! _glp_ios_choose_node
584 int ios_choose_nodecxx . . $ `external/glpk/glpios.h:583:9`!(glp_treecxx . . $ glp_tree# *T);
585 /* select subproblem to continue the search */
586
587 #define ios_choose_varcxx . . $ `external/glpk/glpios.h:587:9`! _glp_ios_choose_var
588 int ios_choose_varcxx . . $ `external/glpk/glpios.h:587:9`!(glp_treecxx . . $ glp_tree# *T, int *next);
589 /* select variable to branch on */
590
591 #endif
592
593 /* eof */