COIN-OR::LEMON - Graph Library

source: lemon-benchmark/generators/netgen/main.h @ 8:3c30bd0f9ccc

Last change on this file since 8:3c30bd0f9ccc was 7:79d9c9f6c446, checked in by Alpar Juttner <alpar@…>, 14 years ago

Command line parameter support for netgen

File size: 1.1 KB
Line 
1#ifndef NETGEN_MAIN_H
2#define NETGEN_MAIN_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define PROBLEM_PARMS 13                /* aliases for generation parameters */
9#define NODES       parms[0]            /* number of nodes */
10#define SOURCES     parms[1]            /* number of sources (including transshipment) */
11#define SINKS       parms[2]            /* number of sinks (including transshipment) */
12#define DENSITY     parms[3]            /* number of (requested) arcs */
13#define MINCOST     parms[4]            /* minimum cost of arcs */
14#define MAXCOST     parms[5]            /* maximum cost of arcs */
15#define SUPPLY      parms[6]            /* total supply */
16#define TSOURCES    parms[7]            /* transshipment sources */
17#define TSINKS      parms[8]            /* transshipment sinks */
18#define HICOST      parms[9]            /* percent of skeleton arcs given maximum cost */
19#define CAPACITATED parms[10]           /* percent of arcs to be capacitated */
20#define MINCAP      parms[11]           /* minimum capacity for capacitated arcs */
21#define MAXCAP      parms[12]           /* maximum capacity for capacitated arcs */
22
23  int orig_main(long seed,long problem,long *parms);
24
25#ifdef __cplusplus
26}
27#endif
28
29
30#endif
Note: See TracBrowser for help on using the repository browser.