1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/generators/netgen/main.h Thu Mar 17 18:28:37 2011 +0100
1.3 @@ -0,0 +1,30 @@
1.4 +#ifndef NETGEN_MAIN_H
1.5 +#define NETGEN_MAIN_H
1.6 +
1.7 +#ifdef __cplusplus
1.8 +extern "C" {
1.9 +#endif
1.10 +
1.11 +#define PROBLEM_PARMS 13 /* aliases for generation parameters */
1.12 +#define NODES parms[0] /* number of nodes */
1.13 +#define SOURCES parms[1] /* number of sources (including transshipment) */
1.14 +#define SINKS parms[2] /* number of sinks (including transshipment) */
1.15 +#define DENSITY parms[3] /* number of (requested) arcs */
1.16 +#define MINCOST parms[4] /* minimum cost of arcs */
1.17 +#define MAXCOST parms[5] /* maximum cost of arcs */
1.18 +#define SUPPLY parms[6] /* total supply */
1.19 +#define TSOURCES parms[7] /* transshipment sources */
1.20 +#define TSINKS parms[8] /* transshipment sinks */
1.21 +#define HICOST parms[9] /* percent of skeleton arcs given maximum cost */
1.22 +#define CAPACITATED parms[10] /* percent of arcs to be capacitated */
1.23 +#define MINCAP parms[11] /* minimum capacity for capacitated arcs */
1.24 +#define MAXCAP parms[12] /* maximum capacity for capacitated arcs */
1.25 +
1.26 + int orig_main(long seed,long problem,long *parms);
1.27 +
1.28 +#ifdef __cplusplus
1.29 +}
1.30 +#endif
1.31 +
1.32 +
1.33 +#endif