generators/netgen/main.h
author Alpar Juttner <alpar@cs.elte.hu>
Sun, 11 Dec 2011 07:33:29 +0100
changeset 10 d7ce0311ece2
permissions -rw-r--r--
Some common benchmarking tools added
     1 #ifndef NETGEN_MAIN_H
     2 #define NETGEN_MAIN_H
     3 
     4 #ifdef __cplusplus
     5 extern "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