Dip  0.92.4
TSP_ConcordeI.h
Go to the documentation of this file.
1 //===========================================================================//
2 // This file is part of the Decomp Solver Framework. //
3 // //
4 // Decomp is distributed under the Common Public License as part of the //
5 // COIN-OR repository (http://www.coin-or.org). //
6 // //
7 // Authors: Matthew Galati, SAS Institute Inc. (matthew.galati@sas.com) //
8 // Ted Ralphs, Lehigh University (ted@lehigh.edu) //
9 // Jiadong Wang, Lehigh University (jiw408@lehigh.edu) //
10 // //
11 // Copyright (C) 2002-2019, Lehigh University, Matthew Galati, and Ted Ralphs//
12 // All Rights Reserved. //
13 //===========================================================================//
14 
15 #ifndef TSP_CONCORDEI_INCLUDED
16 #define TSP_CONCORDEI_INCLUDED
17 
18 // --------------------------------------------------------------------- //
19 typedef struct CCtsp_skeleton {
20  int atomcount;
21  int * atoms;
23 
24 typedef struct CCtsp_segment {
25  int lo;
26  int hi;
28 
29 typedef struct CCtsp_lpclique {
30  int segcount;
31  struct CCtsp_segment * nodes;
32  int hashnext;
33  int refcount;
35 
36 typedef struct CCtsp_lpcut_in {
39  int rhs;
40  char sense;
41  char branch;
43  struct CCtsp_lpdomino *dominos;
48 
49 #define CC_FOREACH_NODE_IN_CLIQUE(i,c,tmp) \
50  for(tmp=0;tmp<(c).segcount;tmp++) \
51  for(i=(c).nodes[tmp].lo;i<=(c).nodes[tmp].hi;i++)
52 
53 
54 
55 
56 #if 0
57 
58 
59 typedef struct CCtsp_lpdomino {
60  CCtsp_lpclique sets[2];
61  int hashnext;
62  int refcount;
63 } CCtsp_lpdomino;
64 
65 #endif
66 
67 
68 extern int CCtsp_exact_subtours (CCtsp_lpcut_in ** cuts,
69  int * cutcount,
70  int ncount,
71  int ecount,
72  int * elist,
73  double * x);
74 extern void
76 
77 
78 #endif
struct CCtsp_lpcut_in CCtsp_lpcut_in
struct CCtsp_segment CCtsp_segment
struct CCtsp_skeleton CCtsp_skeleton
struct CCtsp_lpdomino * dominos
Definition: TSP_ConcordeI.h:43
Definition: network.h:55
struct CCtsp_segment * nodes
Definition: TSP_ConcordeI.h:31
CCtsp_lpclique * cliques
Definition: TSP_ConcordeI.h:42
struct CCtsp_lpclique CCtsp_lpclique
struct CCtsp_lpcut_in * prev
Definition: TSP_ConcordeI.h:46
void CCtsp_free_lpcut_in(CCtsp_lpcut_in *c)
CCtsp_skeleton skel
Definition: TSP_ConcordeI.h:44
struct CCtsp_lpcut_in * next
Definition: TSP_ConcordeI.h:45
int CCtsp_exact_subtours(CCtsp_lpcut_in **cuts, int *cutcount, int ncount, int ecount, int *elist, double *x)